Calculate This № 01 · Body
Instrument № 01 - The Body

Caffeine
Half-Life

How much caffeine is still circulating, hour by hour, after every cup, can, or pill - with adjustable clearance and support for stacking multiple doses.

See the math behind this calculator
Half-life range
3 – 7 hours

Typical adult
≈ 5 hours

Best-by threshold
< 10 mg
Mode
Clearance - half-life
Single dose
Decay curve
Remaining now - mg
Percent remaining -
Drops below threshold in -
In 6 hours -
In 12 hours -

How it works

Caffeine clears the body on a first-order curve. Every half-life period - typically about five hours - the amount in your bloodstream is cut in half.

If you take 200 mg of caffeine at noon and your personal half-life is 5 hours, you still have 100 mg at 5 PM, 50 mg at 10 PM, and 25 mg at 3 AM. That last quarter-dose is the main reason an innocent afternoon coffee wrecks sleep without feeling like it should.

amount(t) = dose × 0.5(t / half_life)

For multiple doses, the calculator runs that equation independently for each dose and sums the results across the timeline.

Frequently asked

What half-life should I use?

Five hours is the default for healthy adults. Smokers can try 3–4. If you’re pregnant or on hormonal birth control, push toward 7+ hours - clearance slows dramatically.

Why does afternoon coffee ruin sleep?

Because caffeine keeps doing real work at concentrations far below what you can feel. A 2 PM cup leaves roughly a quarter of the dose in your system at bedtime, blocking adenosine receptors and lengthening sleep latency.

What counts as “cleared”?

There’s no universal definition. This calculator considers anything below 10 mg effectively cleared - too low to noticeably affect alertness or sleep.

How accurate is the dose chart?

It’s a reasonable average, but real-world caffeine content swings widely by brand and brew. A Starbucks brewed coffee runs closer to 180 mg per 12 oz; a McDonald’s the same size is about 110. When precision matters, look up the specific drink.

Show the working

Exponential decay, applied per dose and summed. Nothing here is more complicated than one power function. If any of it looks wrong, it might be - tell us what we got wrong.

Caffeine remaining from one dose remaining = dose × 0.5^(hours elapsed ÷ half-life)
With several doses through the day total = sum over each dose of dose × 0.5^((hours ago + hours ahead) ÷ half-life)
Percentage left percent = remaining ÷ dose × 100
Time to fall below a threshold hours = half-life × log₂(current amount ÷ threshold)

Constants used

  • 5 hours — default half-life. The real range is roughly 3 to 7 hours and is affected by genetics, smoking, pregnancy and oral contraceptives
  • 0.5 — the halving factor — the definition of a half-life

This models a single compartment with instant absorption, so it slightly overstates how much is circulating in the first hour after drinking. Peak blood caffeine actually arrives around 30 to 60 minutes in.

The sources

The exponential decay on this page is exact arithmetic. Everything interesting is in the half-life you feed it, and that number varies between people far more than most caffeine calculators admit.

Exponential decay remaining = dose x 0.5 ^ (hours elapsed / half-life)
  1. The Safety of Ingested Caffeine: A Comprehensive Review. PubMed Central, NIH. The 5-hour mean half-life this page defaults to, and the full population range of roughly 1.5 to 9.5 hours.
  2. Pharmacology of Caffeine. Institute of Medicine, via NCBI Bookshelf. The underlying pharmacokinetics, including why CYP1A2 activity is what actually sets your personal half-life.
  3. Pharmacokinetics of Caffeine: A Systematic Analysis of Reported Data. PubMed Central, NIH. Pools the reported half-life data across many studies, which is the best single check on whether 5 hours is a fair default.
  4. Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. Eur J Clin Pharmacol, 1985. Oral contraceptives roughly double the half-life - measured at 7.88 hours against 5.37 in controls.
  5. The effect of pregnancy on the pharmacokinetics of caffeine. Br J Clin Pharmacol. Pregnancy extends the half-life substantially, by an average of over 8 hours and in late pregnancy considerably more.

Three adjustments worth making to the default before trusting the curve. Smoking cuts clearance sharply, with one dataset putting the half-life at 3.5 hours against 6.0 in non-smokers. Oral contraceptives roughly double it. Late pregnancy can take it past 10 hours. If any of those apply, change the half-life field - the shape of the curve is right, the timescale is yours.