Your Caffeine Calculator
Enter your last caffeine intake and your bedtime
Select Drink Type:
Caffeine Half-Life and Sleep โ The Science You Need to Know
Caffeine is the world's most widely consumed psychoactive substance, used daily by approximately 80% of adults. Its primary mechanism: blocking adenosine receptors in the brain. Adenosine is the "sleep pressure" molecule that accumulates during waking hours and drives the urge to sleep. Caffeine doesn't destroy adenosine โ it just blocks the receptors that detect it. When caffeine clears, the accumulated adenosine floods back, causing the familiar "caffeine crash."
The Half-Life Problem
A 200mg dose of caffeine at 2pm means 100mg is still circulating at 7:30pm (one half-life later), 50mg at 1am, and 25mg at 6:30am. Even 25mg meaningfully disrupts deep sleep architecture. A 2013 study by Drake et al. in the Journal of Clinical Sleep Medicine found that caffeine consumed 6 hours before bedtime reduced total sleep time by one hour โ and participants were often unaware their sleep was impaired because they still fell asleep normally. The sleep disruption was invisible to them but measurable on polysomnography.
CYP1A2 Genetics โ Why Your Friend Can Drink Coffee at 9pm and Sleep Fine
The CYP1A2 enzyme in the liver metabolizes 95% of all caffeine. A genetic variant in the CYP1A2 gene creates "fast" and "slow" metabolizers. Fast metabolizers clear caffeine in 3โ5 hours; slow metabolizers take 7โ9+ hours. If caffeine never seems to affect your sleep, you are likely a fast metabolizer. If even morning coffee disturbs your sleep, you may be a slow metabolizer or have reduced CYP1A2 activity due to medications, oral contraceptives, or other factors.
For average metabolizers, a common guideline is to stop all caffeine intake 8โ10 hours before bedtime. This ensures less than 25% of the original dose remains at sleep time. For slow metabolizers, 12+ hours may be necessary. For fast metabolizers, 6 hours before bed may be sufficient. This calculator gives you a personalized estimate based on your chosen metabolizer type.