Caffeine Half-Life Calculator

Enter how much caffeine you had and how many hours ago. Using caffeine's typical half-life, the calculator estimates how much is still in your system — useful for judging an afternoon coffee against your bedtime.

Enter a dose and time to estimate remaining caffeine.

Updated 2026-06-25 · By Mustafa Bilgic, Editor

How caffeine clears from your body

Caffeine is eliminated through first-order kinetics: a fixed fraction leaves per unit time, so the amount remaining follows exponential decay. The half-life is the time for half the dose to be cleared. For a healthy adult it averages about 5 hours, though it ranges roughly 3–7 hours.

remaining = dose × (½) ^ (hours ÷ half-life)

Because it halves each interval, caffeine lingers longer than people expect: after one half-life half remains, after two a quarter, after three an eighth. Five half-lives (about a day, for most people) is the usual rule for "effectively cleared".

Worked example

You drink a coffee with 95 mg of caffeine at 3 pm. How much is left at 9 pm (6 hours later), assuming a 5-hour half-life?

Exponent: 6 ÷ 5 = 1.2 half-lives.
Fraction left: 0.5 ^ 1.2 ≈ 0.435.
Remaining: 95 × 0.435 ≈ 41 mg — still roughly half a coffee, at bedtime.

Caffeine in common drinks

Doses vary widely by brew and serving size; these are typical figures (a useful cross-check is the US FDA's note that a regular 8 oz coffee is about 80–100 mg):

DrinkServingCaffeine (typical)
Brewed coffee8 oz (240 ml)80–100 mg
Espresso1 shot (30 ml)60–75 mg
Black tea8 oz40–70 mg
Green tea8 oz25–45 mg
Cola12 oz (355 ml)30–40 mg
Energy drink8–16 oz70–160 mg

Caffeine, sleep and what changes your half-life

The worked example shows the problem with a late coffee: caffeine still circulating at bedtime delays sleep onset and reduces deep sleep, even if you fall asleep fine. Sleep researchers often suggest stopping caffeine 6–8 hours before bed for this reason.

Your personal half-life isn't fixed — adjust the slider toward what fits you:

  • Faster clearance (shorter half-life): regular smoking can roughly halve caffeine's half-life.
  • Slower clearance (longer half-life): pregnancy can extend it to many hours, and some medications (certain antibiotics, oral contraceptives) slow caffeine metabolism. Liver function and genetics matter too.
Important: this is an educational estimate using a single average half-life, not a medical tool. The US FDA cites about 400 mg/day as generally safe for healthy adults, but tolerance, pregnancy, heart conditions and medications change that. Talk to a clinician for personal guidance.

Frequently asked questions

How long does caffeine stay in your system?

With a ~5-hour half-life, about half remains after 5 hours, a quarter after 10, and it's largely cleared after about 5 half-lives (roughly a day). Late doses can still be active at bedtime.

What is caffeine's half-life?

The time for your body to eliminate half a dose — about 5 hours on average for healthy adults, but ranging from around 3 to 7 hours depending on genetics, smoking, pregnancy and medications.

When should I stop drinking coffee before bed?

Many sleep experts suggest 6–8 hours before bedtime. Use the calculator with your bedtime to see how much would still be in your system.

Is this medical advice?

No. It's an educational estimate using exponential decay and an average half-life. For health decisions, especially during pregnancy or with heart conditions, consult a clinician.

MB
Mustafa Bilgic · Editor, Calcool
Estimates use first-order exponential decay with an adjustable half-life (average ~5 hours). Drink caffeine figures are typical ranges; the US FDA cites ~80–100 mg per 8 oz coffee and ~400 mg/day as generally safe for healthy adults. Educational only, not medical advice.

Related calculators