ToolNimba Browse

Caffeine Half-Life Calculator

By ToolNimba Health Team · Reviewed by ToolNimba Editorial Review, consumer health content · Updated 2026-06-19

This calculator is for general information only and is not medical advice. Caffeine half-life varies widely between people: it can be as short as 2 to 3 hours in fast metabolizers and stretch to 8 hours or more during pregnancy, with liver conditions, or when taking certain medications such as some oral contraceptives. The 5-hour figure used here is a population average, not a measurement of your own body. Talk to a qualified healthcare professional about your caffeine intake if you are pregnant, breastfeeding, taking medication, or managing a heart, sleep, or anxiety condition.

Estimate only. Caffeine clears at different speeds in different people. This uses an average half-life of 5 hours and is not medical advice. Talk to a doctor about caffeine if you are pregnant, taking medication, or have a health condition.

The average adult half-life is about 5 hours. Use a lower value for fast metabolizers, higher for pregnancy or some medications.

Common amounts: brewed coffee (8 oz) about 95 mg, espresso shot about 63 mg, black tea (8 oz) about 47 mg, cola (12 oz) about 35 mg, energy drink (8 oz) about 80 mg.

Caffeine remaining now
- mg
Enter your dose and hours above.
How it fades over time
Hours from now Caffeine left (mg) Percent of dose

This caffeine calculator estimates how much caffeine is still in your system after a given number of hours. Enter the dose in milligrams (for example, about 95 mg for a cup of brewed coffee) and how many hours have passed, and it applies the standard half-life decay used in pharmacology. You also get a short table showing how the amount keeps falling over the next 5, 10, 15, and 20 hours, so you can judge whether an afternoon coffee is likely to still be working against you at bedtime.

What is the Caffeine Calculator?

Caffeine is cleared from the body following first-order kinetics, which means a fixed fraction is removed in each fixed window of time rather than a fixed amount. That window is the half-life: the time it takes for the level in your blood to fall by half. For a typical healthy adult the caffeine half-life is roughly 5 hours, so 200 mg of caffeine drops to about 100 mg after 5 hours, 50 mg after 10 hours, and 25 mg after 15 hours. The amount never quite reaches zero on paper, but after four or five half-lives so little is left that it has almost no effect.

The calculation is a simple exponential decay. If you start with a dose D and a half-life H, the amount remaining after t hours is D multiplied by 0.5 raised to the power t divided by H. Because the exponent uses t divided by H, the result depends only on how many half-lives have elapsed, not on the raw hours. This is why doubling your half-life (say from 5 to 10 hours during pregnancy) makes caffeine linger dramatically longer: at any given clock time, far fewer half-lives have passed.

The single most important caveat is that the half-life is not fixed. Genetics (chiefly the CYP1A2 liver enzyme), smoking (which speeds clearance), pregnancy and oral contraceptives (which slow it sharply), liver function, and other medications can all push your personal half-life well above or below 5 hours. Sensitivity to a given blood level also varies, so two people with the same remaining milligrams can feel very different. Treat the number here as a planning estimate, not a precise reading of your bloodstream.

When to use it

  • Deciding whether an afternoon coffee will still be keeping you awake at bedtime.
  • Working out a caffeine cut-off time so it does not interfere with your sleep.
  • Understanding why caffeine seems to last longer for you during pregnancy or on certain medications.
  • Comparing how a single large energy drink lingers versus a smaller morning coffee.

How to use the Caffeine Calculator

  1. Enter the caffeine dose in milligrams. Use the on-page reference for common drinks if you are not sure.
  2. Enter how many hours have passed since you consumed it.
  3. Adjust the half-life if you metabolize caffeine faster or slower than the 5-hour average.
  4. Read the caffeine remaining now, then check the table to see how it keeps falling over the next 20 hours.

Formula & method

remaining = dose x 0.5^(hours / half-life). With a 5-hour half-life, the amount halves every 5 hours, so after t hours you have dose x 0.5^(t / 5) milligrams left.

Worked examples

You drink a 200 mg coffee and want to know how much is left after 5 hours, using the 5-hour half-life.

  1. Half-lives elapsed = 5 hours / 5 hours = 1
  2. remaining = 200 x 0.5^1
  3. remaining = 200 x 0.5 = 100 mg
  4. That is 100 / 200 = 50% of the original dose still active.

Result: About 100 mg remains, half of the original dose.

A 160 mg energy drink at 3 pm, checking the level at 11 pm (8 hours later) with a 5-hour half-life.

  1. Half-lives elapsed = 8 hours / 5 hours = 1.6
  2. remaining = 160 x 0.5^1.6
  3. 0.5^1.6 = 0.3299
  4. remaining = 160 x 0.3299 = 52.8 mg

Result: About 53 mg is still in your system at bedtime, roughly a third of the original dose.

Caffeine remaining from a 200 mg dose using a 5-hour half-life

Hours elapsedHalf-livesCaffeine left (mg)Percent of dose
0 h0200100%
5 h110050%
10 h25025%
15 h32512.5%
20 h412.56.25%

Approximate caffeine content of common drinks

DrinkServingCaffeine (mg)
Brewed coffee8 oz (240 ml)about 95
Espresso1 shot (30 ml)about 63
Black tea8 oz (240 ml)about 47
Cola12 oz (355 ml)about 35
Energy drink8 oz (240 ml)about 80
Decaf coffee8 oz (240 ml)about 2

Common mistakes to avoid

  • Assuming everyone clears caffeine in 5 hours. The 5-hour half-life is an average. Fast metabolizers may clear caffeine in 2 to 3 hours, while during pregnancy or on some medications the half-life can double to 8 to 10 hours or more, so the same coffee lingers far longer.
  • Treating the half-life as the time caffeine fully leaves. After one half-life, half the dose is still present, not none. It takes roughly four to five half-lives (about 20 to 25 hours at 5 hours each) before so little remains that the effect is negligible.
  • Forgetting hidden sources of caffeine. Tea, cola, energy drinks, dark chocolate, pre-workout supplements, and some pain relievers all add caffeine. If you only count coffee, your real total dose is higher than what you entered.
  • Ignoring sensitivity differences. The calculator estimates milligrams remaining, not how you will feel. The same blood level can keep one person wired and barely affect another, depending on tolerance, genetics, and sleep debt.

Glossary

Half-life
The time it takes for the amount of caffeine in your blood to fall by half. About 5 hours on average for adults.
First-order kinetics
A clearance pattern where a constant fraction of the substance is removed per unit time, producing exponential decay.
Dose
The total amount of caffeine consumed, measured in milligrams (mg).
CYP1A2
The main liver enzyme that breaks down caffeine. Genetic differences in it make some people fast and others slow metabolizers.
Exponential decay
A process where a quantity decreases by the same proportion in each equal time step, the shape caffeine clearance follows.

Frequently asked questions

What is the half-life of caffeine?

In a typical healthy adult the half-life of caffeine is about 5 hours, meaning the amount in your blood falls by half roughly every 5 hours. It varies a lot between people: as short as 2 to 3 hours in fast metabolizers and up to 8 to 10 hours or more during pregnancy or with some medications.

How long does caffeine stay in your system?

A measurable amount can linger for a long time. After one 5-hour half-life half the dose remains, and it usually takes about four to five half-lives (roughly 20 to 25 hours) before so little is left that it has almost no effect. This is why a late coffee can still disturb sleep.

How does this caffeine calculator work?

It uses exponential decay: remaining = dose x 0.5^(hours / half-life). You enter the dose in milligrams, the hours that have passed, and the half-life (5 hours by default). It then shows how much caffeine is left now and how the amount keeps falling over the next 20 hours.

When should I stop drinking caffeine before bed?

A common guideline is to avoid caffeine for at least 6 to 8 hours before sleep, since a meaningful amount can still be active by bedtime. Use the table here to see how much of your dose remains at your usual bedtime, and cut off earlier if you are caffeine-sensitive.

Why does caffeine last longer during pregnancy?

Pregnancy slows the liver enzymes that break caffeine down, so the half-life can roughly double to around 10 hours or more, especially in later pregnancy. The caffeine stays in the system far longer, which is one reason health bodies advise limiting intake while pregnant.

How much caffeine is too much?

For most healthy adults, up to about 400 mg of caffeine a day is generally considered moderate, roughly four cups of brewed coffee. Pregnant people are usually advised to stay under about 200 mg. Individual tolerance varies, so check with a healthcare professional about your own limit.

Sources