Caffeine is cleared by the liver enzyme CYP1A2, and for most adults about half of what is in the body disappears every five hours. That is why a 200 mg coffee at 3 pm still leaves roughly 70 mg in your bloodstream at 11 pm — enough to delay sleep in most people, even if you feel fine.

mg
h
mg
25 mg is roughly a quarter of a cup of coffee.

What this calculator is doing

The five-hour figure is an average. Normal clearance runs from about three to seven hours, and it changes with pregnancy, oral contraceptives, liver function, smoking and genetics. The default here is deliberately middle-of-the-road; if you know your own pattern, move the half-life and watch how the curve shifts.

How to use it

  1. Enter the caffeine in the drink, not the volume — a 12 oz drip coffee is usually 120–180 mg.
  2. Enter the hours since you finished the drink; absorption peaks at about 30–45 minutes.
  3. Adjust the half-life if you know you are a fast or slow metaboliser, or if you are pregnant.

Formulas and assumptions

First-order elimination
C(t) = C₀ × 0.5^(t ÷ t½)

Each half-life removes half of what remains. After one half-life 50% is left, after two 25%, after three 12.5%.

Time to reach a given level
t = t½ × log₂(C₀ ÷ target)

Solve the elimination equation for time. A 200 mg dose falls to 25 mg after four half-lives — about 20 hours at a five-hour half-life.

Typical half-life values
3–7 hours in healthy adults, mean ≈ 5 h

Pregnancy, oral contraceptives and liver disease lengthen it; smoking roughly halves it. Genetics can double or halve it again.

What 200 mg looks like over time

200 mg caffeine, five-hour half-life, first-order elimination.
Hours laterRemainingShare of doseHow it usually feels
0 h200 mg100%Peak effect around 30–60 minutes after drinking.
2 h152 mg76%Still clearly stimulating.
5 h100 mg50%Half gone — about one cup of tea's worth.
8 h66 mg33%Enough to delay sleep in sensitive people.
10 h50 mg25%Roughly a quarter cup of coffee.
15 h25 mg12.5%Below most people's sleep threshold.
20 h12.5 mg6%Negligible for most adults.

Caffeine absorbed from coffee peaks in about 30–45 minutes; energy drinks and capsules can peak later because of the stomach contents.

Frequently asked questions

Why can I still feel a 4 pm coffee at 11 pm?

At a five-hour half-life, a 200 mg coffee at 4 pm leaves about 80 mg at 11 pm. That is enough to increase the time it takes to fall asleep and reduce deep sleep, even when you do not notice the stimulation.

Does tolerance change the half-life?

No. Tolerance is an adaptation in the brain's adenosine receptors — you feel less from the same dose. Your liver still clears caffeine at the same rate, which is why the sleep effects persist even when the buzz fades.

What speeds up or slows down clearance?

Smoking roughly halves the half-life; pregnancy can extend it to 10–15 hours in the third trimester. Oral contraceptives, some antibiotics and liver disease slow it. Genetics of CYP1A2 account for much of the rest of the variation.

Is decaf really caffeine free?

No. A decaf coffee typically has 2–15 mg per 8 oz cup, and decaf espresso can carry more. If you are very sensitive, several decafs in an evening can add up.

Sources and further reading

  • U.S. Food and Drug Administration. Spilling the beans: how much caffeine is too much? source
  • European Food Safety Authority. Scientific opinion on the safety of caffeine. EFSA Journal. 2015;13(5):4102. source
  • Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-1201. source
Last updated: November 2026 Reviewed by the RhythmCalc editorial team How we build our calculators

RhythmCalc gives general information for healthy adults, not medical advice. Sleep, caffeine and nutrition needs vary between people and change with health conditions, medication and pregnancy. Talk to a qualified clinician about your own situation.