Caffeine Half-Life Calculator
Enter what you drank and how long ago. The calculator applies first-order elimination to show how much caffeine is still circulating — and when it falls below the level that disturbs sleep.
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.
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
- Enter the caffeine in the drink, not the volume — a 12 oz drip coffee is usually 120–180 mg.
- Enter the hours since you finished the drink; absorption peaks at about 30–45 minutes.
- Adjust the half-life if you know you are a fast or slow metaboliser, or if you are pregnant.
Formulas and assumptions
Each half-life removes half of what remains. After one half-life 50% is left, after two 25%, after three 12.5%.
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.
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
| Hours later | Remaining | Share of dose | How it usually feels |
|---|---|---|---|
| 0 h | 200 mg | 100% | Peak effect around 30–60 minutes after drinking. |
| 2 h | 152 mg | 76% | Still clearly stimulating. |
| 5 h | 100 mg | 50% | Half gone — about one cup of tea's worth. |
| 8 h | 66 mg | 33% | Enough to delay sleep in sensitive people. |
| 10 h | 50 mg | 25% | Roughly a quarter cup of coffee. |
| 15 h | 25 mg | 12.5% | Below most people's sleep threshold. |
| 20 h | 12.5 mg | 6% | 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
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.