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 CalculatorEstimate how much caffeine may remain after a selected number of hours using an editable caffeine half-life.
- Blood Pressure Average CalculatorCalculate the arithmetic average of up to seven systolic and diastolic blood-pressure readings without diagnosing or classifying the result.
- Refill CalculatorEstimate medication days of supply, expected run-out date and a reminder date from quantity, daily use and a planning buffer.
- Invisalign Price CalculatorEstimate Invisalign treatment cost, insurance contribution, down payment and an illustrative monthly payment from editable assumptions.
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):
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
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
Related Guides
- How Invisalign Pricing and Payment Estimates WorkLearn how to use the Invisalign Price Calculator, understand its assumptions and interpret the estimate.
- How Medication Refill Dates and Days Supply Are EstimatedLearn how to use the Refill Calculator, understand its assumptions and interpret the estimate.
- How Losertown-Style Weight Projections Work: TDEE, Deficit, and TimelineUnderstand how Losertown-style weight loss projections calculate your expected weight over time from daily calorie deficit, TDEE, and adaptive metabolism adjustments.
- How to Calculate Your Water Intake on CreatineLearn how creatine affects hydration, how much extra water to drink when supplementing, and how to calculate your daily fluid needs during loading and maintenance phases.
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