☕ Sleep threshold 50 mg

Caffeine Half-Life Calculator: When Can You Sleep?

Enter your drinks and your planned bedtime – the calculator instantly shows when caffeine in your body falls below the critical sleep threshold of 50 mg.

Caffeine Half-Life Calculator

Health & Fitness

Caffeine sensitivity

Slow metabolism: pregnant, on the pill, low tolerance. Fast: smoker, high coffee tolerance.

☕ Your drinks today
Sleep-ready at
⏳ Wait time
📊 Current caffeine level
0 mg
📅 Total caffeine today
0 mg
😴 Too late for your bedtime?
Ad | Affiliate Link
View on Amazon →

* Affiliate link – As an Amazon Associate we earn from qualifying purchases.

Ad | Affiliate Link
View on Amazon →

* Affiliate link – As an Amazon Associate we earn from qualifying purchases.

Ad | Affiliate Link
View on Amazon →

* Affiliate link – As an Amazon Associate we earn from qualifying purchases.

Ad | Affiliate Link
View on Amazon →

* Affiliate link – As an Amazon Associate we earn from qualifying purchases.

ℹ️ The half-life of caffeine averages 5 hours but can range from 1.5 to 9.5 hours depending on genetics, medication, pregnancy, liver health, and tolerance. The 50 mg sleep threshold is a research guideline, not a clinical limit. This calculator is for orientation and does not replace medical advice.

How does caffeine break down in your body?

Roughly 95 percent of caffeine is metabolized by the liver – the CYP1A2 enzyme converts it into paraxanthin, theobromine, and theophylline. How fast that happens is described by the half-life: the time it takes for half the original dose to be cleared. The average is 5 hours, but it can range from 1.5 to 9.5 hours. The math: C(t) = C₀ × 0.5^(t/h). So if you drink an 8 oz (250 ml) cup of drip coffee with 95 mg at 2 PM, with a 5 h half-life you still have 48 mg in your body at 7 PM, 24 mg at midnight, and 12 mg at 5 AM. The 50 mg sleep threshold established by sleep research means: below this level, caffeine no longer disturbs falling asleep. Above 50 mg, sleep onset takes longer and deep sleep measurably decreases. A Wayne State University study (Drake et al., 2013) showed that even 400 mg of caffeine 6 hours before bed cut total sleep by an average of one hour – even though subjects no longer felt the effect.

Typical daily drink scenarios and sleep-ready times

The table below shows realistic daily patterns and when you fall below the 50 mg threshold (with 5 h half-life). Use the calculator above to model your own pattern.

Profile Drinks Total mg Last drink Sleep-ready at
Morning coffee drinker2× drip at 9 AM190 mg9:00 AM6:40 PM
Classic office day1 drip 8 AM + 2 espressos 1:30 PM221 mg1:30 PM10:20 PM
Afternoon coffee1 drip 8 AM + 1 drip 3 PM190 mg3:00 PM10:00 PM
Power day2 drips morning + 2 double espressos 2 PM442 mg2:00 PM4:10 AM (next day)
Student study sessionCold brew 10 AM + energy drink 4 PM280 mg4:00 PM12:45 AM (next day)
Evening cola1 morning drip + cola at 7 PM129 mg7:00 PM7:40 PM
Tea drinker3× black tea 9 AM / 12 / 3 PM141 mg3:00 PM8:00 PM
Shift worker2× large energy drinks 4/10 PM320 mg10:00 PM9:00 AM (next day)

Notable: the time of your last drink is a much stronger lever than total amount. With a moderate dose ending at 3 PM, most people are sleep-ready by 10 PM. A first cup at 6 PM, however, pushes sleep-ready well past midnight. To check how many hours of sleep you actually get from there, combine this calculator with our Sleep Calculator, which determines optimal wake-up times based on 90-minute sleep cycles.

Half-life comparison: Slow vs. Normal vs. Fast

Individual half-life makes a huge difference. With 200 mg of caffeine consumed at 2 PM:

Half-lifeWho's affectedAfter 5 h (7 PM)After 10 h (12 AM)Sleep-ready at
4 h (Fast)Smokers, high tolerance84 mg35 mg10:00 PM
5 h (Normal)Average adult100 mg50 mg12:00 AM
6 h (Slow)Pregnant, on the pill, sensitive112 mg63 mg2:00 AM (next day)

If you regularly struggle to fall asleep, check your personal sensitivity first. Roughly half the population carries a CYP1A2 gene variant that breaks caffeine down slowly – these people stay "awake" several hours longer after an afternoon coffee than they actually feel.

Common mistakes with coffee timing

❌ Underestimating the afternoon coffee
Problem: A cup at 3 PM feels harmless – but with 5 h half-life, around 31 mg are still in your body at 11 PM, already enough to reduce deep sleep. Studies show caffeine cuts slow-wave sleep activity by up to 30%.
✅ Fix: Last caffeinated coffee by 2 PM. Switch to decaf, herbal tea, or water after that. With a slow metabolism (pill, pregnancy), even cap it at noon.

❌ Stacking energy drinks in the afternoon
Problem: Drinking two large energy drinks (160 mg each) starting at 4 PM puts 320 mg into your system. With 5 h half-life, the sleep threshold isn't crossed until around 4 AM – losing a full third of your night.
✅ Fix: Energy drinks only in the morning or, at the latest, early afternoon. After 2 PM, switch to low-caffeine alternatives. If you really need alertness: a precisely dosed 100 mg caffeine pill works better than a second sugary energy drink.

❌ Treating cold brew as a "mild" drink
Problem: Cold brew tastes smoother and less acidic than hot drip coffee thanks to the cold-extraction method – but contains up to 200 mg of caffeine per 12 oz (350 ml) glass, more than twice a regular cup.
✅ Fix: Treat cold brew as cold brew, not as iced coffee. A small portion (5–7 fl oz / 150–200 ml) per morning is plenty. Diluting with milk reduces the caffeine density per sip.

❌ Ignoring your individual half-life
Problem: Standard recommendations assume 5 h half-life – but if you're pregnant, on the pill, or genetically a "slow" metabolizer, your half-life is 6–9 h. "Sleep-ready in 8 hours" easily becomes 12–14 hours.
✅ Fix: Deliberately pick "Slow" in the calculator if any of those apply to you. Pregnant women in the third trimester should limit caffeine to 100 mg per day or skip it entirely.

❌ Drinking more coffee against the sleep urge
Problem: An evening coffee against tiredness is largely useless – adenosine receptors are already saturated. Instead, you get a double effect: the body wants to sleep, the caffeine blocks falling asleep.
✅ Fix: For evening tiredness, take a 20-minute power nap or just go to bed early. An extra coffee only postpones the problem by a few hours – at the cost of the entire night.

Frequently asked questions about caffeine breakdown

How long does caffeine stay in your body?
With an average half-life of 5 hours, half of the original dose is still in your blood after 5 hours, a quarter after 10 hours, and an eighth after 15 hours. A cup of drip coffee with 95 mg drops to 48 mg after 5 hours – right around the sleep threshold. Caffeine is fully cleared only after about 24 hours.
How many hours before bed should I stop drinking coffee?
Rule of thumb: stop 8 hours before bedtime. With a 11 PM bedtime, that means no coffee after 3 PM. A Wayne State University study showed that even 400 mg of caffeine 6 hours before sleep cut total sleep by an average of 1 hour – even when subjects no longer felt the effect.
What is caffeine half-life?
Half-life is the time your body needs to clear exactly half of a caffeine dose. With a 5-hour half-life (average), 200 mg drops to 100 mg after 5 hours, 50 mg after 10 hours, 25 mg after 15 hours. Smokers metabolize caffeine roughly twice as fast (3–4 h), pregnant women in the third trimester about 3 times slower (15 h).
Is 200 mg of caffeine enough to stay alert?
Yes. 200 mg (about two cups of drip coffee) is the standard dose for full alertness over 4–6 hours. More rarely adds benefit but significantly increases side effects (jitters, racing heart, delayed sleep). EFSA recommends a maximum of 400 mg per day and no more than 200 mg per single dose.
Does afternoon coffee really hurt sleep?
Yes, very likely. A cup with 95 mg at 3 PM still has around 31 mg in your body at 11 PM (with 5 h half-life) – just below the sleep threshold, but already enough to reduce deep-sleep phases. Sensitive people should avoid coffee after noon or switch to decaf.
Which drinks have the most caffeine?
Per serving: cold brew coffee with about 200 mg per 12 oz (350 ml) glass leads, ahead of double espresso (126 mg) and large energy drinks (160 mg in 16 oz / 500 ml). A cup of drip coffee has 95 mg, a single espresso only 63 mg. Cola has just 34 mg per 12 oz (330 ml) can – less than most teas.
Why do I metabolize caffeine slower than others?
The main factor is genetics: about 50% of the population has a CYP1A2 gene variant that breaks down caffeine slowly. Other factors: pregnancy (3× slower), birth control pills (~40% slower), certain antibiotics, liver conditions, and age over 65. In the calculator, choose the "Slow" setting.
Does water or exercise speed up caffeine clearance?
No, not measurably. Caffeine is cleared exclusively by the liver – water, exercise, sauna, or cold showers don't change the half-life. What helps: skip the drink in the first place (deliberate cutoff after 2 PM), spread smaller doses across the day, or simply wait it out if you're shaky or your heart is racing.

Special cases: Pregnancy, shift work, the pill

Pregnancy: In the third trimester, caffeine clearance slows to a half-life of 11 to 15 hours – almost three times normal. The American College of Obstetricians and Gynecologists recommends pregnant women keep caffeine below 200 mg per day (about two small cups of coffee). The baby is exposed too: caffeine crosses the placenta and the fetus metabolizes it even more slowly.

Shift work and night shifts: Night workers flip the coffee schedule. Same rule: no caffeine after the shift ends, and the last coffee at least 8 hours before planned daytime sleep. A cup at 3 AM, with 5 h half-life, still leaves about 12 mg by 11 AM – borderline, but no longer a hard sleep-blocker.

Birth control pills: Estrogen-containing pills slow caffeine metabolism by about 40 percent. A 5 h half-life becomes 7 h. Anyone on the pill drinking afternoon coffee should choose "Slow" in the calculator or schedule the last coffee at least two hours earlier than normal.

Older adults (65+): Liver activity decreases with age, extending half-life to 6–7 hours. Seniors often notice that "the evening coffee suddenly bothers me, even though it never used to." Solution: switch to low-caffeine teas or decaf after 2 PM.

Planning other daily decisions around sleep and alertness? On our overview page you'll find free calculators for sleep cycles, hydration, and more – useful complements to caffeine planning.

The half-life of caffeine averages 5 hours but can range from 1.5 to 9.5 hours depending on genetics, medication, pregnancy, liver health, and tolerance. The 50 mg sleep threshold is a research guideline, not a clinical limit. This calculator is for orientation and does not replace medical advice.