Sleep tools

How late can you drink coffee?

Caffeine half-life averages five hours, which means a 200mg coffee at noon still has 100mg in your system at 5 pm and 50mg at 10 pm. That residual caffeine fragments your deep sleep even when you fall asleep on time. This calculator finds the latest time to have your last cup, calibrated to your sensitivity and bedtime.

Inputs
FAQ

Common questions.

Why does the cutoff move with sensitivity?

Caffeine half-life ranges roughly 3 to 7 hours across the population. If you metabolise slowly (high sensitivity), the same dose lingers longer, so the cutoff has to move earlier to compensate. Normal sensitivity assumes a 5-hour half-life — the median.

Is decaf safe after the cutoff?

Mostly yes. Decaf coffee has 2 to 15mg per cup, well under the 25mg threshold the calculator uses. Decaf tea ranges higher (10 to 30mg), and decaf espresso varies wildly between brands. If you are sensitive, treat decaf as 30mg until you know your brand.

What if I am tolerant — does that change the math?

Tolerance lowers caffeine's perceived effect on alertness, but it does not change the half-life much. Regular drinkers may metabolise slightly faster, but the residual mg at bedtime is roughly the same as a non-tolerant drinker. The sleep disruption is similar even if the alertness boost feels weaker.

What counts as 'high sensitivity'?

If a single afternoon coffee keeps you awake at 11 pm, you are high-sensitivity. Other markers: caffeine causes jitters in others around you but you are wired hours later, or you have CYP1A2 slow-metaboliser genotype on a 23andMe result. When in doubt, start with high.

Why don't you account for energy drinks separately?

Caffeine from any source metabolises through the same pathway, so the half-life math is identical. The differences between coffee, energy drinks, and tea are in absorption rate (how fast caffeine reaches peak blood level) and in supplementary ingredients. The cutoff math at 6+ hours out is dominated by half-life, not absorption.

What is the source for the half-life numbers?

The 5-hour normal half-life is the most commonly cited figure across pharmacology references (e.g., Drake et al. 2013, Journal of Clinical Sleep Medicine). The 3 and 7-hour bands for low and high sensitivity are based on the standard ±2 standard-deviation range across the studied population.

Related

Keep going

Reviewed by Dr. Logan Foley, CSSCreview pending