Calciro

How Caffeine Half-Life Works: When to Drink Coffee and When to Stop

Understand caffeine half-life: how long caffeine stays in your system, when it affects sleep quality, and how to time coffee consumption for peak alertness without disrupting sleep.

Related Calculators

Caffeine Half-Life: The Basics

Half-life is the time it takes for your body to eliminate half of a substance. Caffeine's half-life in healthy adults is approximately 5–6 hours on average, but ranges from 1.5 to 9.5 hours depending on individual factors.

Formula: Caffeine Remaining = Initial Dose × (0.5)^(Hours Elapsed / Half-life)

How Long Caffeine Stays in Your System

Starting with a typical 200 mg cup of coffee (average for 16 oz):

Hours After DrinkingCaffeine Remaining (at 5-hr half-life)
0 hours200 mg (100%)
5 hours100 mg (50%)
10 hours50 mg (25%)
15 hours25 mg (12.5%)
20 hours12.5 mg (6.25%)
24 hours~8 mg (4%)

Even 10 hours after your last coffee, you still have 50 mg of caffeine active — equivalent to half a small cup of coffee.

Factors Affecting Individual Half-Life

FactorEffect on Half-Life
SmokingReduces to ~3 hours (CYP1A2 induction)
Pregnancy (3rd trimester)Increases to 15–18 hours
Liver diseaseSignificantly increased
Oral contraceptives~5× longer (up to 10–11 hrs)
Genetics (CYP1A2 fast)~2.5–3 hours
Genetics (CYP1A2 slow)~7–9 hours

This is why some people can drink coffee at 8 PM and sleep fine, while others can't have caffeine after noon.

Sleep Impact: The Critical Timing Question

Research (particularly Matthew Walker's sleep science work and Journal of Clinical Sleep Medicine studies) shows:

Caffeine consumed 6 hours before bed reduces sleep quality by ~20% — even if you can fall asleep normally. The reduction is in slow-wave (deep) sleep, which is critical for physical recovery and memory consolidation.

Practical guideline: Stop caffeine 6–8 hours before your target bedtime. - Bedtime at 11 PM → last caffeine at 3–5 PM - Bedtime at 10 PM → last caffeine at 2–4 PM

Optimal Caffeine Timing for Alertness

Avoid the "cortisol spike" window: Cortisol naturally peaks 30–45 minutes after waking. Drinking caffeine immediately upon waking competes with your natural cortisol peak and may increase tolerance.

Recommended: Delay first caffeine by 60–90 minutes after waking. This allows cortisol to complete its natural peak before caffeine takes effect.

For pre-workout: Caffeine peaks in blood approximately 30–60 minutes post-consumption. Time pre-workout coffee 30–60 minutes before training.

Common Caffeine Doses Reference

SourceCaffeine Content
Espresso (1 oz)63 mg
Drip coffee (8 oz)95–165 mg
Cold brew (8 oz)150–220 mg
Energy drink (8 oz)70–150 mg
Black tea (8 oz)40–70 mg
Green tea (8 oz)20–45 mg

Related Guides

Frequently Asked Questions

How long does caffeine stay in your system?
With a 5-hour half-life, 200 mg of caffeine drops to 100 mg after 5 hours, 50 mg after 10 hours, 25 mg after 15 hours. After 24 hours, approximately 4–8 mg remains. It's practically eliminated (< 10 mg) in about 20 hours for most people. Individual variation in CYP1A2 enzyme speed significantly changes this.
What is the caffeine half-life formula?
Caffeine Remaining = Initial Dose × (0.5)^(Time / Half-life). For 200 mg at T=8 hours with 5-hour half-life: 200 × (0.5)^(8/5) = 200 × (0.5)^1.6 = 200 × 0.330 = 66 mg remaining. This exponential decay formula applies to any starting dose.
When should I stop drinking coffee to sleep well?
Stop caffeine 6–8 hours before bedtime. Research shows caffeine 6 hours before bed reduces slow-wave sleep quality by ~20% even if you can fall asleep. For a 10 PM bedtime: last caffeine at 2–4 PM. For an 11 PM bedtime: last caffeine at 3–5 PM. Sensitivity varies — fast metabolizers may drink later; slow metabolizers may need to stop earlier.
Why can some people drink coffee before bed and sleep fine?
Genetic variation in the CYP1A2 enzyme determines caffeine metabolism rate. 'Fast metabolizers' (one gene variant) clear caffeine in 2.5–3 hours rather than 5–6 hours. They may have little caffeine remaining by bedtime after a late-afternoon cup. 'Slow metabolizers' retain caffeine for 7–9+ hours and are much more sleep-disrupted by late caffeine.

Last updated 7/28/2026