Caffeine & Sleep Calculator
See exactly how much caffeine will still be active at your bedtime — and find your personal cutoff.
Why Caffeine Disrupts Sleep: The Science
Caffeine works by blocking adenosine receptors in your brain. Adenosine is the chemical that accumulates throughout the day and creates the progressive feeling of sleepiness. When caffeine occupies those receptors, it doesn’t destroy adenosine — it just prevents it from signalling. The moment caffeine clears, adenosine floods the receptors all at once, which is why the crash after a heavy caffeine day can feel especially hard.
The sleep disruption isn’t limited to falling asleep. Even when caffeine doesn’t delay sleep onset, it suppresses slow-wave sleep (the deepest, most physically restorative stage) and delays the first REM cycle. A 1994 study in Sleep and follow-up work in JCSM (2013) found measurable sleep disruption from caffeine consumed 6 hours before bed — with total sleep time reduced by over an hour even when subjects reported feeling they’d slept normally.
Half-life = the time for your body to eliminate 50% of the caffeine dose.
Example: 200 mg consumed at 2:00 PM (average 5hr half-life)
→ 7:00 PM: 100 mg remaining
→ 12:00 AM: 50 mg remaining
→ 5:00 AM: 25 mg remaining
At midnight, that 50 mg is still enough to measurably suppress slow-wave sleep for most people.
Safe Caffeine Cutoff Times by Bedtime
These cutoffs are based on reducing active caffeine to under 30mg at bedtime — a level generally considered below the threshold for measurable sleep disruption in most adults. Adjust earlier if you’re a slow metaboliser or sensitive to caffeine.
| Target Bedtime | Fast Metaboliser (3hr) | Average Metaboliser (5hr) | Slow Metaboliser (7hr) |
|---|---|---|---|
| 9:00 PM | 3:00 PM | 11:00 AM | 8:00 AM |
| 10:00 PM | 4:00 PM | 12:00 PM (noon) | 9:00 AM |
| 11:00 PM | 5:00 PM | 1:00 PM | 10:00 AM |
| 12:00 AM (midnight) | 6:00 PM | 2:00 PM | 11:00 AM |
| 1:00 AM | 7:00 PM | 3:00 PM | 12:00 PM |
These times assume a single 95–100mg dose (one standard cup of coffee). If you’ve had 200mg+ in a single serving (cold brew, Bang Energy, large coffeehouse coffee), subtract an additional 1–2 hours from the cutoffs above.
Common Drinks & Their Sleep Risk After 3 PM
Sleep risk is not just about the drink — it’s about the dose combined with the time. Here’s how popular drinks score if consumed after 3 PM for an average metaboliser targeting a 10:30 PM bedtime:
| Drink | Caffeine | Still Active at 10:30 PM | Sleep Risk |
|---|---|---|---|
| Green Tea (8 oz) | 28 mg | ~9 mg | Low |
| Dark Chocolate (1 oz) | 23 mg | ~7 mg | Low (unless late evening) |
| Black Tea (8 oz) | 47 mg | ~15 mg | Low–Moderate |
| Espresso (1 shot) | 63 mg | ~20 mg | Moderate |
| Red Bull (8.4 oz) | 80 mg | ~26 mg | Moderate |
| Brewed Coffee (8 oz) | 95 mg | ~30 mg | Moderate–High |
| Flat White (250ml) | 120 mg | ~38 mg | High |
| Monster Energy (16 oz) | 160 mg | ~51 mg | High |
| Cold Brew (12 oz) | 185 mg | ~59 mg | Very High |
| Bang Energy (16 oz) | 300 mg | ~95 mg | Very High |
| Starbucks Grande Brewed | 330 mg | ~105 mg | Very High |
Caffeine and Sleep by Age Group
What Else Affects Caffeine’s Half-Life?
Beyond age, several factors push your half-life toward the slow end of the range: oral contraceptives (roughly doubles half-life), liver conditions (slows clearance), fluvoxamine or ciprofloxacin antibiotics (inhibit the CYP1A2 enzyme), and grapefruit juice (mild inhibitor). On the fast end: cigarette smoking speeds caffeine clearance, and a high-protein diet may also accelerate it slightly.
How to Sleep Better While Still Enjoying Caffeine
-
⏰
Use the calculator to find your personal cutoff. The generic “no caffeine after 2 PM” rule doesn’t account for your metaboliser speed, dose, or bedtime. Your actual cutoff could be anywhere from noon to 5 PM.
-
🍵
Switch to herbal tea after your cutoff. Chamomile contains apigenin, which binds to GABA receptors and promotes relaxation. Passionflower and valerian have also shown sleep benefits in clinical studies. Warm liquids themselves have a relaxing effect.
-
💧
Hydrate well. Dehydration worsens caffeine’s physiological effects and independently degrades sleep quality. Aim for at least one glass of water for every caffeinated drink consumed.
-
📉
Watch your total dose, not just timing. A 300mg cold brew at 10 AM lingers longer than a 95mg coffee at noon. Total mg matters as much as time. Use the calculator to track cumulative intake.
-
🍫
Count the hidden sources. Dark chocolate (12–23mg/oz), some protein bars, kombucha, and certain medications all add caffeine to your total — and the dose adds up, especially for sensitive individuals or slow metabolisers.
-
📊
Track sleep quality for 2 weeks after changing your cutoff. Apps like Sleep Cycle or a simple journal can reveal whether your new cutoff time is working. Many people find that moving their last caffeine 2 hours earlier produces measurable improvement in sleep depth and morning alertness.
-
☕
Consider half-caf in the afternoon. Mixing decaf and regular coffee 50/50 halves the caffeine dose while keeping the ritual intact. A 47mg half-caf flat white at 4 PM poses far less sleep risk than a 120mg full flat white at the same time.
Frequently Asked Questions
About This Calculator
Most caffeine-and-sleep guides just give a generic “stop caffeine by 2 PM” rule. This calculator uses the actual exponential decay formula with your specific dose, drink time, bedtime, and metaboliser speed to show the exact mg remaining at your bedtime — plus a visual hour-by-hour decay timeline so you can see precisely when your level drops below the sleep-disruption threshold.
More Caffeine Tools
Sources: Drake C et al., JCSM 2013 · Landolt HP, Sleep 1995 · FDA · American Academy of Sleep Medicine · National Sleep Foundation | Last reviewed: March 2026