Caffeine Half-Life Calculator

Calculate how much caffeine remains in your body over time. See hourly caffeine decay, find your ideal cutoff time before bed, and understand caffeine metabolism.

⚠️ Medical Disclaimer: This calculator provides general estimates. Individual caffeine metabolism varies significantly. Consult a healthcare provider for personalized advice, especially during pregnancy or with liver conditions.
mg
hrs
Common Caffeine Amounts (tap to expand)
Brewed Coffee (8 oz)95 mg
Espresso (1 shot)63 mg
Black Tea (8 oz)47 mg
Green Tea (8 oz)28 mg
Cola (12 oz)34 mg
Energy Drink (8 oz)80 mg
Pre-Workout (1 scoop)200 mg
Dark Chocolate (1 oz)23 mg
Decaf Coffee (8 oz)7 mg
Caffeine at Bedtime
57 mg
Moderate Sleep Impact
9h after consumption • Started at 200 mg
Caffeine at Bedtime
57 mg
9h after intake
Ideal Cutoff Time
1:00 PM
10h before bed for <50 mg
Time to 25 mg
15 hrs
Negligible sleep impact
Time to 10 mg
21.6 hrs
Essentially cleared

Hourly Caffeine Decay

2:00 PM
200 mg
3:00 PM
174 mg
4:00 PM
152 mg
5:00 PM
132 mg
6:00 PM
115 mg
7:00 PM
100 mg
8:00 PM
87 mg
9:00 PM
76 mg
10:00 PM
66 mg
11:00 PM 🛏
57 mg
12:00 AM
50 mg
1:00 AM
44 mg
2:00 AM
38 mg
3:00 AM
33 mg
4:00 AM
29 mg
5:00 AM
25 mg
6:00 AM
22 mg
7:00 AM
19 mg
8:00 AM
17 mg
9:00 AM
14 mg
10:00 AM
13 mg
11:00 AM
11 mg
12:00 PM
10 mg
1:00 PM
8 mg
2:00 PM
7 mg

Factors Affecting Half-Life

FactorEstimated Half-LifeEffect
Average Adult~5 hoursBaseline
Smoker~3 hoursCYP1A2 induction (faster)
Fast Metabolizer (genetic)~3 hoursCYP1A2*1A allele
Slow Metabolizer (genetic)~7 hoursCYP1A2*1F allele
Oral Contraceptives~7–10 hoursCYP1A2 inhibition
Pregnancy (3rd trimester)~11–15 hoursHormonal inhibition
Liver DiseaseUp to 96 hoursSeverely impaired
Planning notes, formulas, and examples

About the Caffeine Half-Life Calculator

The Caffeine Half-Life Calculator shows how much caffeine remains in your body hour by hour after consumption. Caffeine's half-life — the time for your body to eliminate half of the dose — averages about 5 hours in healthy adults, but ranges from 3 to 7 hours depending on genetics, liver function, pregnancy, medications, and smoking status.

Understanding caffeine metabolism helps you time your last cup of coffee or tea to avoid sleep disruption. Research shows that even 200 mg of caffeine 6 hours before bed can reduce total sleep time by over 1 hour and significantly impair sleep quality. Most sleep experts recommend keeping caffeine below 50–100 mg by bedtime.

This calculator lets you input your caffeine dose, time consumed, and personal half-life to see the full hourly decay curve and find the ideal time to stop consuming caffeine.

When This Page Helps

Many people underestimate how long caffeine stays active. A 200 mg afternoon coffee at 2 PM still has 100 mg in your system at 7 PM and 50 mg at midnight. That's enough to delay sleep onset and reduce deep sleep, even if you feel sleepy. This calculator makes the invisible caffeine in your body visible, helping you make informed decisions about consumption timing.

How to Use the Inputs

  1. Enter the caffeine dose in milligrams (use the reference table for common drinks).
  2. Enter the time you consumed the caffeine (hour in 24h format).
  3. Optionally adjust the half-life (default: 5 hours for average adults).
  4. Enter your target bedtime to see caffeine remaining at bedtime.
  5. View the hourly decay curve showing caffeine levels over 24 hours.
  6. Check the recommended caffeine cutoff time for quality sleep.
Formula used
Caffeine Remaining = Dose × (0.5)^(t / half_life) where: • Dose = initial caffeine in mg • t = hours since consumption • half_life = individual half-life (default: 5 hours) Average half-life adjustments: • Healthy adults: ~5 hours (3–7 range) • Pregnant women: ~9–11 hours (much slower) • Smokers: ~3 hours (faster metabolism) • Oral contraceptive users: ~7–10 hours • Liver disease: up to 96 hours Sleep impact threshold: ~50–100 mg at bedtime disrupts sleep quality

Example Calculation

Result: ~55 mg caffeine remaining at bedtime

From 2 PM to 11 PM is 9 hours. Caffeine remaining = 200 × (0.5)^(9/5) = 200 × 0.2756 = 55.1 mg. This is near the upper boundary of the sleep disruption threshold (50–100 mg). For better sleep, the caffeine cutoff would be around 12–1 PM for a 200 mg dose with a 5-hour half-life.

Tips & Best Practices

  • Most sleep experts recommend a caffeine cutoff 8–10 hours before bedtime to allow levels to drop below 25 mg.
  • If you're sensitive to caffeine, use a longer half-life (6–7 hours) in the calculator for a more conservative estimate.
  • Decaf coffee still contains 2–15 mg of caffeine — multiple cups in the evening can add up.
  • Caffeine blocks adenosine receptors but doesn't remove adenosine. When caffeine wears off, the accumulated adenosine causes a "crash."
  • Dark chocolate contains 12–30 mg caffeine per ounce. An evening chocolate bar could affect sleep.
  • Regular caffeine consumers develop tolerance to its alerting effects but not to its sleep-disrupting effects.

Caffeine and Sleep Architecture

Caffeine doesn't just delay sleep — it changes the structure of sleep. Studies using polysomnography show that caffeine reduces slow-wave sleep (deep sleep) even when subjects report no difficulty falling asleep. This means you can feel like you slept fine while actually getting lower quality rest, leading to chronic partial sleep deprivation.

Genetic Variation

The CYP1A2 gene has common polymorphisms that create "fast" and "slow" metabolizer phenotypes. Fast metabolizers (CYP1A2*1A allele) can drink espresso after dinner and sleep fine because their half-life may be 3 hours. Slow metabolizers (CYP1A2*1F allele) should stop caffeine by early afternoon. Genetic testing can identify your metabolizer status.

Strategic Caffeine Use

The most effective caffeine strategy is to delay your first cup until 90–120 minutes after waking (to let natural cortisol peak pass), keep total daily intake under 400 mg, and set a firm cutoff time 8–10 hours before bed. This maximizes the alertness benefit while protecting sleep quality.

Sources & Methodology

Last updated:

Methodology

This calculator applies the usual half-life decay equation to the entered caffeine dose and chosen half-life so it can estimate how much caffeine remains in the body over time. The bedtime cutoff guidance is then built from that same decay curve using the sleep-threshold targets shown on the page.

The result is still a planning estimate rather than a direct sleep measurement. Caffeine sensitivity varies widely with CYP1A2 metabolism, pregnancy, liver function, smoking status, medication interactions, and the timing of other doses during the day.

Sources

Frequently Asked Questions

  • Caffeine is metabolized primarily by the CYP1A2 enzyme in the liver. The rate depends on genetics (CYP1A2 polymorphisms), overall liver function, and competing substances. Five hours is the population average, but the range is 3–7 hours. About 10% of people are "slow metabolizers" with half-lives of 7+ hours.