Skip to content

Coffee Half-Life Calculator

With a 200 mg dose, a 5-hour half-life, and a 20 mg threshold, about 115 mg of caffeine remains at 4 hours (57.4% of the dose), and it takes roughly 16.6 hours to fall below 20 mg. At 2 hours about 152 mg is left; at 8 hours about 66 mg.

Updated 2026-11-19 Editorial estimate Calccc Editorial Team Free · No sign-up
mg

Add up every caffeinated drink or supplement in the serving you actually had.

hours

About 4 to 5 hours for most adults. Pregnancy, some medicines, smoking, and genetics change it.

mg

The level you want to fall below for this experiment. It is not a medical safety limit.

Scenarios A/BSave two input sets and compare the results. Stored only in this browser.
AEmpty
BEmpty

Your inputs stay in this browser. No account, no uploads.

Professional worksheet

Detailed schedule & assumptions

Inputs used, method, sensitivity, and any year-by-year table. The summary above stays compact; the audit lives here.

Professional worksheet

Inputs, scope, and sensitivity

Inputs used

Method and scope

Result audit

MetricValue

What this calculator does

Caffeine does not vanish when the cup is empty; it leaves the body exponentially, which is why a late afternoon coffee can still be measurable at midnight. This calculator models that decay with the half-life you choose, shows how much caffeine remains at two-hour intervals, and estimates how long it takes to fall below a threshold you set. The defaults - a 200 mg dose, a 5-hour half-life, and a 20 mg threshold - are common planning values for a healthy adult, not recommendations for you. Half-life varies widely with genetics, pregnancy, oral contraceptives, liver conditions, smoking, and medicines, and a real drink peaks about 30 to 60 minutes after you finish it. Use this to picture the curve, not to dose yourself, decide whether you are safe to drive, or replace medical advice.

How to use it

  1. Add up the caffeine in the serving you actually had, in milligrams - check labels rather than guessing when you can.
  2. Set the half-life; leave 5 hours for a general adult estimate, raise it for pregnancy or certain medicines after asking a clinician.
  3. Set the threshold you want to fall below, such as 20 mg, and treat it as a planning value, not a safety line.
  4. Read the time until below the threshold and the share of the dose remaining at 4 hours.
  5. Use the two-hour table to see the shape of the curve instead of a single endpoint.
  6. Change one input at a time: doubling the half-life doubles the time to the threshold, while doubling the dose adds one half-life.

How it works

Remaining caffeine = dose x 0.5^(hours / half-life). Share remaining = (remaining / dose) x 100. Hours to reach a threshold = half-life x log2(dose / threshold). Half-lives to reach the threshold = log2(dose / threshold). Default case: 200 x 0.5^(4 / 5) = 114.9 mg, or 57.4% of the dose, at 4 hours. Hours to 20 mg = 5 x log2(200 / 20) = 5 x 3.322 = 16.6 hours. The table shows 2-hour values from 2 to 12 hours: about 152, 115, 87, 66, 50, and 38 mg.

Example calculations

Example 1: A 200 mg coffee

A 200 mg dose with a 5-hour half-life leaves about 152 mg at 2 hours, 115 mg at 4 hours (57.4%), 87 mg at 6 hours, and 66 mg at 8 hours. It falls below 20 mg after about 16.6 hours - most of a waking day.

Example 2: A smaller dose

A 100 mg tea or small coffee with the same 5-hour half-life drops below 20 mg after about 11.6 hours, and about 57 mg is left at 4 hours. Halving the dose does not halve the time to the threshold; it removes exactly one half-life, about 5 hours.

Example 3: A long half-life

A 400 mg dose with a 6-hour half-life leaves about 159 mg at 8 hours and takes about 25.9 hours to fall below 20 mg. The same 300 mg with a 4-hour half-life falls below 20 mg in about 15.6 hours and is down to about 75 mg at 8 hours. The half-life matters as much as the dose.

What the result means

The curve is exponential, so most of the drop happens early and the tail is long. That is why the 2-hour table is more useful than a single number: it shows the shape of the afternoon and evening rather than one endpoint. The half-life is the single most uncertain input. Published estimates for caffeine cluster around 4 to 5 hours in healthy adults, but ranges from roughly 1.5 to 9 hours are reported depending on genetics, pregnancy, oral contraceptives, liver disease, smoking, and medicines. A threshold is not a safety limit; it is a level you chose so the calculator has a finish line. And the model is smooth, while real absorption peaks after the drink and then declines, so the first hour is approximate. If you are pregnant, breastfeeding, taking medicines, or managing a heart, sleep, or anxiety condition, talk to a clinician or pharmacist about your own caffeine rather than tuning this calculator.

Common mistakes

  • Treating the threshold as a medical safety limit rather than a planning value you chose.
  • Using a 5-hour half-life for everyone, when pregnancy, some medicines, smoking, and genetics change it substantially.
  • Forgetting that absorption peaks about 30 to 60 minutes after the drink, so the first hour is not pure decay.
  • Adding up only coffee and ignoring tea, cola, energy drinks, chocolate, supplements, and some medicines.
  • Using the model to decide whether it is safe to drive or to skip a medical question; it cannot do either.

Assumptions and limits

  • Caffeine is eliminated with first-order kinetics and a constant half-life you choose.
  • The whole dose is absorbed quickly; real absorption peaks about 30 to 60 minutes after consumption.
  • The threshold is a personal planning value, not a medical or legal safety limit.
  • No new caffeine is consumed during the modeled window; a second drink starts a new curve.
  • The default half-life of 5 hours is a general adult estimate, not a personalized prediction.

Frequently asked questions

What is the half-life of caffeine?

About 4 to 5 hours in most healthy adults, but published estimates range from roughly 1.5 to 9 hours. Pregnancy, oral contraceptives, liver conditions, smoking, and some medicines change it. The calculator lets you set it so you can see how much the answer depends on that one input.

How long does caffeine stay in your system?

It depends on dose, half-life, and the threshold you care about. With a 200 mg dose and a 5-hour half-life, it takes about 16.6 hours to fall below 20 mg. For most adults, a meaningful amount is still present many hours after the last drink, which is why timing matters for sleep.

Is 400 mg of caffeine a day safe?

The FDA cites 400 mg a day as an amount not generally associated with negative effects in most healthy adults, and EFSA uses the same daily figure with up to 200 mg in a single dose as reference points. Those are general reference values, not personal limits. Pregnancy, breastfeeding, heart conditions, anxiety, sleep problems, and medicines can change the advice, so ask a clinician.

Why does the calculator show values every two hours?

Because the curve is easiest to understand as a shape. Two-hour points cover the usual afternoon and evening window without a wall of numbers, and the share-remaining column shows how quickly the first half of the caffeine disappears compared with the long tail.

Does the threshold mean I am safe below it?

No. It is a planning value you choose, not a medical safety line. The calculator cannot tell you whether you are safe to drive, whether caffeine will affect your sleep, or how your body will respond. Those questions need a clinician who knows your health and medicines.

Why is there no single answer for my body?

Because caffeine metabolism is personal. The model uses one constant half-life and immediate absorption, while real bodies absorb, distribute, and clear caffeine at different rates. That is why the calculator shows a range-friendly curve and a visible half-life input instead of a single definitive number.

Sources

This calculator is an educational model of caffeine decay, not medical advice and not a dosing tool. It cannot tell you whether you are safe to drive, how caffeine will affect your sleep, or what is right for your health. If you are pregnant, breastfeeding, taking medicines, or managing a health condition, talk to a clinician or pharmacist.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

FROM THE EXPERIMENT TO THE REAL ANSWER

If you need the real number

The Lab is for playing. These calculators are built for decisions that matter.

Calccc Editorial Team · Updated 2026-11-19

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial review by the Calccc Editorial Team against FDA and EFSA reference values; not a licensed medical review.