Sport nutrition · Caffeine

Caffeine half-life
calculator

How much caffeine is still on board at bedtime — read across the real 1.5–9.5 h half-life range (Institute of Medicine 2001), not one fixed number, and scored against the 100 mg that can delay sleep (EFSA 2015). The honest answer is a band and a cut-off time, not a single "cleared by" number.

Compute · Caffeine at bedtime
Your dose
On board at bedtime · typical ~5 h half-life
—
—
Fast · 1.5 h
—
mg left
Typical · 5 h
—
mg left
Slow · 9.5 h
—
mg left
Take it this long before bed to be under 100 mg at lights-out
Fast · 1.5 h
—
Typical · 5 h
—
Slow · 9.5 h
—
This is a math estimate, not medical advice. The half-life is a wide individual range — this page spans 1.5–9.5 h (Institute of Medicine 2001), but your own value depends on genetics (CYP1A2), and it runs longer in pregnancy and on oral contraceptives, shorter in habitual smokers, so the band is an estimate, not a clock. The 100 mg sleep-latency figure and the 400 mg/day ceiling are population figures for healthy, non-pregnant adults (EFSA 2015). They don't cover pregnancy (where 200 mg/day is the usual limit), children, or anyone with a heart rhythm problem, anxiety disorder, or a medication that interacts with caffeine. If any of those apply, ask a doctor rather than a decay curve.

How the math works

Caffeine clears by first-order kinetics, so the amount left after a stretch of time is a plain exponential-decay identity. The only number that matters is the elimination half-life — the time for the amount on board to halve:

remaining (mg) = dose (mg) × (1/2) ^ (hours ÷ half-life)

half-life: ~5 h typical (EFSA 2015) · 1.5–9.5 h across healthy adults (IOM 2001)
hours to drop below a line = half-life × log2(dose ÷ threshold)

The second identity is the one with a finite answer. Because the curve only ever halves, it never reaches zero — "how long until caffeine is out of my system" has no endpoint. But the time to fall below a threshold does: solving dose × 0.5^(t/half-life) = threshold for t gives half-life × log2(dose ÷ threshold). Set the threshold at the 100 mg that can delay sleep (EFSA 2015) and you get the latest you could take a dose and still be under that line by bedtime.

The reason this page shows three columns, not one, is that the half-life isn't a constant. The Institute of Medicine's 2001 report puts the healthy-adult range at 1.5 to 9.5 hours around a mean near 5 — a six-fold spread driven mostly by the CYP1A2 enzyme that clears over 95% of it. A "fast" metaboliser at 1.5 h and a "slow" one at 9.5 h are both normal, so one fixed-half-life number is false precision. The honest output is the band.

Worked example

Take a 200 mg dose — about two 8 oz (240 mL) cups of brewed coffee — for a 4 p.m. pick-me-up, with bedtime at 10 p.m., so 6 hours between the dose and lights-out. Caffeine is milligrams in any measurement system, so there's no imperial-versus-metric form; the dose is the same number everywhere. Across the half-life range:

That's the flip a one-number tool hides: at the typical half-life this dose looks fine (87 mg), but a slow metaboliser is still carrying 129 mg at bedtime. The cut-off makes it concrete — to be under 100 mg by lights-out, a 200 mg dose needs 5 hours at the typical half-life (log2(200/100) = 1, so one half-life) but 9.5 hours if you clear it slowly. If you don't know which you are, plan to the slow end.

Separately, the day's total has its own ceiling. If that 200 mg sat on top of a 250 mg morning coffee, the day's 450 mg is past the 400 mg/day that raises no safety concern for healthy adults (EFSA 2015; the same figure the US FDA cites) — a different question from the bedtime residual, and the one the ceiling check answers.

When this calculator is wrong

A caffeine half-life calculator is only as good as the half-life you feed it, and the single number every generic tool uses is the weak link. The real spread is large enough that the same dose at the same hour can be a non-issue or a sleep-wrecker depending on who's drinking it.

What to do with the result

Work backwards from bedtime. If your evening number sits above 100 mg at the slow end, the fix is timing, not abstinence: move the dose earlier until the cut-off clears your bedtime, or make it smaller. As a planning rule the band supports, keeping meaningful caffeine out of the 8–10 hours before bed covers most slow metabolisers for a typical dose — tighten that window if you're caffeine-sensitive or know you clear it slowly.

For reference, the US FDA puts a typical 8 oz cup of coffee at about 80–100 mg, an 8 oz tea at 30–50 mg, and energy drinks anywhere from 40 to 250 mg a serving — so a late "one more coffee" is often a 100 mg dose landing inside the window. Track the day's total against 400 mg as a separate habit, and treat the decay curve as a reason to shift caffeine earlier, not to drink more of it to stay ahead. If you're pregnant, managing a heart or anxiety condition, or on medication that changes how you clear caffeine, set your limits with a clinician — the ranges here are for healthy adults.

Common questions

How long does caffeine stay in your system?
There's no single answer, for two reasons. Caffeine decays by halving — a ~5 hour half-life typically, but anywhere from 1.5 to 9.5 hours across healthy adults (IOM 2001) — so it never fully reaches zero; it just keeps halving. The useful question is how long until it drops below a level that matters, like the 100 mg that can delay sleep. For a 200 mg dose that's about 5 hours at a typical rate and 9.5 hours if you clear it slowly.
How much caffeine is left at bedtime?
Enter the dose and the hours between it and bedtime. The page shows the amount on board at the fast (1.5 h), typical (5 h) and slow (9.5 h) ends of the half-life range, because which one is "you" changes the answer several-fold. A 200 mg dose six hours before bed leaves roughly 13 mg if you clear it fast, 87 mg typically, and 129 mg if you're slow — only the slow case is above the 100 mg sleep line.
What's a safe amount of caffeine at bedtime?
EFSA (2015) found that a single 100 mg dose near bedtime can increase the time it takes to fall asleep and cut sleep duration in some adults, so 100 mg is the defensible line to stay under — not the 50 mg some calculators use, which we couldn't trace to a primary source. Sensitivity varies, so if your sleep is affected below that, your personal threshold is lower.
Why does the calculator give a range instead of one number?
Because the half-life genuinely is a range. The Institute of Medicine's 2001 report puts healthy-adult caffeine half-life at 1.5 to 9.5 hours, a spread driven mostly by the CYP1A2 enzyme, and lengthened by pregnancy and oral contraceptives, shortened by smoking. A calculator that hides that behind one fixed number is giving most people someone else's answer.
Does the half-life change caffeine's safe daily limit?
No — those are separate questions. The 400 mg/day figure (EFSA 2015; also the FDA's cited level for healthy adults) is about the day's total intake, regardless of timing. The half-life is about when a given dose clears enough to stop affecting your sleep. You can be under 400 mg for the day and still have a late dose disrupting your night, or over it with everything taken in the morning.
Can I speed up how fast caffeine leaves my body?
Not meaningfully on the timescale that matters for one night. Half-life is set mostly by liver enzyme activity (CYP1A2), which genetics, pregnancy, oral contraceptives and smoking shift over the long run — not something a glass of water or a workout changes in the hours before bed. The reliable lever is the dose and when you take it, which is what this calculator is for.