Caffeine and Sleep: How Half-Life Affects Your Rest
That 2 PM latte may be why you're staring at the ceiling at midnight. Caffeine doesn't just “wear off”—it follows a predictable exponential decay curve that can keep significant amounts in your bloodstream well past bedtime.
The 5-Hour Half-Life
For the average healthy adult, caffeine has a half-life of approximately 5 hours. This means that 5 hours after consuming caffeine, half of it remains in your body. After 10 hours, 25% remains. It takes roughly 5-6 half-lives (25-30 hours) for caffeine to be completely cleared.
Example: 160mg energy drink at 12:00 PM
- 5:00 PM (5 hours): 80mg remaining
- 10:00 PM (10 hours): 40mg remaining
- 3:00 AM (15 hours): 20mg remaining
Even at midnight, you still have roughly 19mg of caffeine from that lunch beverage. While this won't prevent you from falling asleep, clinical studies show that even sub-50mg levels at bedtime disrupt deep slow-wave sleep, the most restorative phase.
Why Half-Life Varies Between People
The 5-hour average masks significant individual variation driven by:
- Genetics (CYP1A2 enzyme): This is the biggest factor. Some people are “fast metabolizers” (half-life ~3 hours) while others are “slow metabolizers” (half-life ~7+ hours). A slow metabolizer drinking coffee at 4 PM is effectively drinking coffee at bedtime.
- Smoking: Nicotine significantly accelerates caffeine clearance, shortening the half-life to about 3-4 hours.
- Oral Contraceptives: Can roughly double the half-life to ~10 hours by inhibiting the liver enzymes that process caffeine.
- Pregnancy: Especially in the third trimester, half-life can extend to 11-15 hours. Most medical guidelines recommend limiting caffeine to 200mg/day during pregnancy.
Finding Your Cutoff Time
Sleep experts recommend having less than 20-25mg of caffeine remaining in your system at bedtime to protect deep sleep quality. Using the exponential decay formula:
Remaining Caffeine = Initial Dose × 0.5Hours / Half-Life
If you drink 200mg of caffeine (roughly two cups of coffee) and have a standard 5-hour half-life, you need approximately 17 hours to clear down to below 20mg. That means your cutoff time should be around 6:00 AM to safely have 20mg or less at 11:00 PM.
Track Your Own Caffeine
Use our caffeine calculator to visualize your personal decay curve across multiple drinks, find your ideal cutoff time, and track your caffeine levels at bedtime:
Open Caffeine CalculatorDisclaimer: This guide is for educational purposes. Caffeine metabolism varies significantly between individuals. Consult a healthcare professional for personalized medical advice regarding caffeine consumption, sleep issues, or medication interactions.