Caffeine half-life is the time required for your body to metabolize half of the caffeine you consumed. With an average half-life of 5-6 hours, that afternoon coffee at 3pm still leaves ~25mg of caffeine in your system at midnight — enough to impair deep sleep. This calculator shows your personal clearance timeline based on your dose, timing, and metabolism.
Your Caffeine Intake
Caffeine Timeline
Caffeine Decay Curve
Hour-by-Hour Level
Select a source and calculate to see caffeine clearance
How Caffeine Half-Life Works
Caffeine is metabolized primarily in the liver by the CYP1A2 enzyme. The rate at which this happens is largely genetic, giving caffeine a half-life that varies from 3 hours (fast metabolizers) to 9+ hours (slow metabolizers) in healthy adults.
The Half-Life Formula
Caffeine remaining = initial dose × (0.5 ^ (hours elapsed / half-life)). If you drink 200 mg of caffeine at noon with a 5.5-hour half-life, at 5:30pm you have 100 mg remaining. At 11pm you have 50 mg. At 4:30am you have 25 mg — still technically above the sleep-disrupting threshold.
The Sleep-Safe Threshold
Research suggests 25-50 mg of caffeine measurably disrupts sleep architecture even in people who can "fall asleep fine." Less deep sleep and less REM sleep lead to feeling unrested despite a full night in bed. This calculator uses 25 mg as the conservative sleep-safe threshold.
Who Metabolizes Caffeine Slowly?
People on oral contraceptives metabolize caffeine up to 50% slower than average. Pregnant women in the second and third trimester can have half-lives of 10-18 hours — their morning coffee affects them all day. Smokers typically metabolize caffeine 50% faster. Certain medications (fluvoxamine, fluoroquinolone antibiotics) can dramatically slow caffeine clearance.
Practical Cutoff Times
For a 10pm bedtime: fast metabolizers (4-hour half-life) can drink caffeine until about 4pm. Average metabolizers should stop by 2pm. Slow metabolizers (7-hour half-life) should cut off caffeine by noon. Very slow metabolizers may need to avoid afternoon caffeine entirely.
FAQ
Is this caffeine calculator free?
Yes, completely free with no signup required. All calculations run locally in your browser.
What is caffeine half-life?
Caffeine half-life is the time it takes for half of the caffeine in your bloodstream to be metabolized. The average is 5-6 hours, meaning 200 mg of caffeine becomes 100 mg after about 5.5 hours, then 50 mg after another 5.5 hours. After 3-4 half-lives (16-24 hours), caffeine is effectively cleared from your system.
Why does caffeine affect sleep even hours after drinking?
Caffeine blocks adenosine receptors in the brain — adenosine is the chemical that promotes sleepiness. Even after caffeine levels drop, the blocking effect persists. Research suggests even 25-50 mg of remaining caffeine can measurably impair sleep quality. This calculator uses 25 mg as the sleep-safe threshold.
What factors affect caffeine metabolism speed?
Several factors influence how fast you metabolize caffeine: genetics (CYP1A2 gene variants create fast and slow metabolizers), smoking (speeds up metabolism by 50%), oral contraceptives (slow metabolism by up to 50%), pregnancy (dramatically slows metabolism), liver health, and age (metabolism slows with age).
How much caffeine is in coffee vs. energy drinks?
An 8 oz drip coffee contains approximately 95 mg caffeine. A single espresso shot has about 63 mg. Green tea has 28 mg per 8 oz. Black tea has 47 mg. A 12 oz can of cola contains about 34 mg. Energy drinks vary widely from 80 mg (Red Bull 8 oz) to 300+ mg for large energy shots.
Does body weight affect caffeine metabolism?
Body weight affects the concentration of caffeine in your bloodstream (heavier individuals have more blood volume), but the half-life itself is primarily determined by liver enzyme activity. The peak effects of caffeine may feel less intense for larger individuals simply because the dose is more diluted.
What is a safe last caffeine time for a 10pm bedtime?
For an average metabolizer (5.5 hour half-life), the last safe coffee time for a 10pm bedtime is approximately 2pm. Fast metabolizers (4 hour half-life) can have caffeine until about 4pm. Slow metabolizers (7+ hour half-life) should stop caffeine by noon or earlier. This calculator shows your specific cutoff time.
Can caffeine tolerance change how it affects sleep?
Regular caffeine consumers develop tolerance to some alerting effects, but research consistently shows that caffeine near bedtime impairs sleep architecture (less deep sleep, less REM) even in habitual coffee drinkers. Tolerance does not fully protect against sleep disruption.