Sleep tools · Free

How late can you drink coffee?

Caffeine's half-life is 3 to 7 hours in adults (Temple et al., 2017). At 5 hours, the middle of that range, a 200mg coffee at noon still leaves 100mg in your system at 5 pm and 50mg at 10 pm. In one home study, 400mg taken six hours before bed still cut measured sleep by more than an hour (Drake et al., 2013). This calculator finds the latest time to have your last cup, based on your sensitivity and bedtime.

Inputs

From our comparison desk

Keep the cup, drop the caffeine

If an afternoon cup is the habit, a caffeine-free herbal tea keeps the ritual. Both of these are chamomile blends with no valerian.

Compare all →

Affiliate disclosure: purchases via these links fund our work at no extra cost to you. Scores are independent of revenue.

How it works

The liver enzyme CYP1A2 handles about 95% of the caffeine you drink, and how fast you clear it varies with genetics, age, hormones, smoking and medications (Nehlig, 2018). In adults the half-life runs 3 to 7 hours (Temple et al., 2017), so the calculator uses three bands from that range: 3 hours for low sensitivity, 5 for normal and 7 for high.

The cutoff comes from the sleep research rather than a formula. In a home study, 400mg of caffeine taken six hours before bed still cut measured sleep by more than an hour, and the authors advise avoiding substantial caffeine for at least six hours before bed (Drake et al., 2013). So six hours is the floor: the calculator uses it only for low sensitivity, and stops caffeine eight hours before bed for normal sensitivity and ten for high. The result page shows three reference times (a morning coffee, a post-lunch latte and a late-afternoon pick-me-up) so you can see how much of each is left at bedtime.

Caveats. One, the bands are a simplification, not a measurement of you: your own half-life could sit anywhere in the adult range. Two, the contraceptive pill tends to double the half-life, pregnancy lengthens it by 8.3 hours on average, and smoking speeds clearance (Temple et al., 2017); the 7-hour high band may still understate the pill and pregnancy. Three, the calculator treats caffeine from coffee, tea, energy drinks and tablets the same way.

How to read your cutoff

The cutoff is the latest clock time to have your last caffeine. It comes from the sleep research, not a decay formula: 400mg taken six hours before bed still cut sleep in a home study, so the normal band stops eight hours out. High sensitivity gets an earlier cutoff because a slower half-life leaves more caffeine circulating at lights-out.

Two things quietly break the number: hidden sources and decaf. Tea, chocolate, caffeinated soft drinks, energy drinks and some pain relievers all carry caffeine (Temple et al., 2017), so count them toward the same daily total. Decaf is not caffeine-free either: an 8-ounce cup typically has 2 to 15mg (FDA), small next to regular coffee but worth testing late in the evening if you are very sensitive.

The science: why 'I fall asleep fine' is misleading

In a home study, Drake and colleagues gave 12 healthy adults 400mg of caffeine at bedtime, 3 hours or 6 hours before bed, and compared each with a placebo. Even the 6-hour dose cut total sleep, measured with a home EEG headband, by more than an hour, while the sleepers' own diaries showed a smaller loss that was not statistically significant. Falling asleep is not the same as sleeping well.

The mechanism is adenosine. Adenosine builds up in the brain across the day and creates sleep pressure; caffeine blocks its receptors, mainly the A2A receptor (Nehlig, 2018). A systematic review found caffeine typically delays sleep, shortens it and reduces deep slow-wave sleep, with more arousals and time awake (Clark & Landolt, 2017), so a night can start on schedule and still run lighter.

How to cut back without the withdrawal headache

Taper rather than quitting cold. Stopping a regular habit abruptly can bring withdrawal symptoms such as headache, fatigue and trouble concentrating, which typically start 12 to 24 hours after the last dose and can last 3 to 7 days (Temple et al., 2017). Move your cutoff earlier by about an hour a week, and swap the afternoon cup for decaf or a herbal tea so the ritual survives while the dose drops.

Dose and timing both matter (Clark & Landolt, 2017), so if you drink caffeine all day, cut the amount as well as moving the cutoff. Keep the back half of your day light, and let this calculator set the hard stop.

References
  1. [1]Drake C, Roehrs T, Shambroom J, Roth T. 'Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed.' Journal of Clinical Sleep Medicine, 2013. (12 healthy adults, 400mg, home EEG headband; the 6-hour dose cut measured sleep by more than an hour; the authors advise no substantial caffeine for at least 6 hours before bed.)
  2. [2]Temple JL, Bernard C, Lipshultz SE, et al. 'The safety of ingested caffeine: a comprehensive review.' Frontiers in Psychiatry, 2017. (Adult half-life 3-7 hours; oral contraceptives tend to double it; pregnancy lengthens it; smoking doubles clearance; caffeine in some pain relievers; withdrawal symptoms start 12-24 hours after stopping and may last 3-7 days.)
  3. [3]Nehlig A. 'Interindividual differences in caffeine metabolism and factors driving caffeine consumption.' Pharmacological Reviews, 2018. (CYP1A2 metabolises 95% of caffeine; metabolism varies with genetics, age, hormones, smoking and medications; the adenosine A2A receptor is caffeine's main brain target.)
  4. [4]Clark I, Landolt HP. 'Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials.' Sleep Medicine Reviews, 2017.
  5. [5]U.S. Food and Drug Administration. 'Spilling the Beans: How Much Caffeine is Too Much?' (Typical caffeine in 12-ounce drinks; decaf 2-15mg per 8 ounces.)
FAQ

Common questions.

Why does the cutoff move with sensitivity?

Caffeine's half-life is 3 to 7 hours in adults (Temple et al., 2017). If you clear it slowly (high sensitivity), the same dose lingers longer, so the cutoff moves earlier. Normal sensitivity uses 5 hours, the middle of that range.

Can I drink decaf after the cutoff?

It has far less caffeine: decaf coffee typically has 2 to 15mg per 8-ounce cup, against 113 to 247mg in 12 ounces of regular brewed coffee (FDA). If you are very sensitive, even decaf late in the evening is worth testing.

Does tolerance change the math?

The sources here don't settle it: the authors of the main sleep study say its design does not allow conclusions about tolerance (Drake et al., 2013). Some people really are less sensitive to caffeine, partly for genetic reasons (Clark & Landolt, 2017), but feeling fine at bedtime does not rule out lighter sleep. Test it: move your cutoff two hours earlier for a week or two and compare.

What counts as 'high sensitivity'?

If an afternoon coffee keeps you awake or leaves you sleeping badly, choose high. The contraceptive pill tends to double caffeine's half-life and pregnancy lengthens it (Temple et al., 2017), so either is a reason to pick high, though even the high band may understate them. When in doubt, start with high.

Why don't you account for energy drinks separately?

The calculator uses the same half-life whatever the source, because the caffeine is the same. What differs is the dose: the FDA puts a 12-ounce energy drink at 41 to 246mg, so enter your drink's real caffeine content rather than assuming it matches a coffee.

What is the source for the half-life numbers?

Temple et al. (2017, Frontiers in Psychiatry), a review of caffeine safety, gives an adult half-life of 3 to 7 hours. The calculator's 3, 5 and 7-hour bands are the two ends and the middle of that range, a simplification rather than measured groups. The 6, 8 and 10-hour cutoffs are anchored on Drake et al. (2013): 400mg six hours before bed still cut measured sleep by more than an hour.

Related

Keep going