Health Calculators
Caffeine half-life.
See how much caffeine is still in your body hours after a drink, and how long until it falls to a level you choose. Exponential decay, with a half-life you set. Runs in your browser; nothing is sent anywhere.
Your drink
Caffeine remaining
Fill the form and press Calculate.
Decay over the day
Worked example
You drink one 8 oz brewed coffee (135 mg, Health Canada) and use a 5 hour half-life. After 6 hours: 135 × 0.5(6/5) = 135 × 0.435 = 58.8 mg, or 43.5% of the original. To find when it drops to 25 mg: 5 × log2(135/25) = 12.2 hours.
How it works
remaining = dose × 0.5(time / half-life). After one half-life half is left, after two a quarter, and so on. The time to reach a target amount is half-life × log2(dose / target). This assumes simple first-order elimination from a single dose, taken all at once and fully absorbed. It ignores absorption time, food, and caffeine already in your body from earlier drinks (treat them as a separate calculation).
Half-life is personal. The default of 5 hours is not a rule. A clinical study reported a mean caffeine elimination half-life of 5.0 hours in men and 9.7 hours in women taking oral contraceptives (PubMed 15060505, Clin Pharmacol Ther 2004), and another reported 5.8 hours in 8 healthy male volunteers (PubMed 2612543, Eur J Clin Pharmacol 1989). Some medicines slow clearance; in that second study, terbinafine raised it to 7.6 hours. Change the half-life to suit.
Drink amounts are published averages (as of 2026-10-01). Real drinks vary widely, so check the label. 12 fl oz figures are from the FDA (updated 2024-08-28): brewed coffee 113 to 247 mg, black tea 71 mg, green tea 37 mg, caffeinated soft drinks 23 to 83 mg, energy drinks 41 to 246 mg. Health Canada (page modified 2025-04-02) lists 135 mg for 8 oz of brewed coffee and 8 mg for 8 oz of chocolate milk.
Daily limits. Health Canada: up to 400 mg a day for adults, 300 mg a day if pregnant, planning pregnancy or breastfeeding, and 2.5 mg per kg of body weight for children and adolescents. The FDA cites 400 mg a day for most healthy adults.
Track your fluids with the water intake calculator, and see the jet lag calculator if you are crossing time zones.
What half-life means for caffeine
A half-life is the time it takes for half of a substance to leave your body. After one half-life half the caffeine is left, after two a quarter, after three an eighth. With a 5 hour half-life, a 200 mg dose follows this pattern:
- After 5 hours: 100 mg
- After 10 hours: 50 mg
- After 15 hours: 25 mg
- After 20 hours: 12.5 mg (about 6% of the dose)
So "how long does caffeine stay in your system?" has no single answer. Most of it is gone within a day for a typical half-life, but a small amount can linger. For a 200 mg dose at 5 hours, 8 hours later the model leaves about 66 mg (33%). If your half-life is 9.7 hours, as measured in one group of women taking oral contraceptives, the same dose leaves about 113 mg after 8 hours.
Several drinks in one day
The calculator handles a single time of dose (with a number of servings). If you drink coffee more than once, run each drink separately and add the results, because each dose decays on its own clock. Example with a 5 hour half-life: a 135 mg coffee at 8:00 and another at 13:00. By 22:00 the first has 135 × 0.5(14/5) = 19 mg left and the second 135 × 0.5(9/5) = 39 mg left, so about 58 mg in total from 270 mg consumed.
Caffeine and sleep
A study by Drake and colleagues gave 400 mg of caffeine 0, 3 or 6 hours before habitual bedtime, compared with a placebo. All three timings significantly disturbed sleep, and the authors concluded that caffeine taken 6 hours before bed still had important disruptive effects, supporting advice to avoid substantial caffeine for at least 6 hours before bedtime. With a 5 hour half-life, 6 hours before bed leaves about 43.5% of the dose, so a 400 mg dose would still leave roughly 174 mg at bedtime. That is a simple model, not a measurement, and sensitivity varies.
How much caffeine is in a drink?
The amounts in the drop-down list are published averages. Health Canada lists 135 mg for 8 oz (237 ml) of brewed coffee. The FDA lists 113 to 247 mg for 12 fl oz of brewed coffee, 71 mg for black tea and 37 mg for green tea, and 41 to 246 mg for energy drinks. Real drinks vary with the bean, the brew and the cup size, so check the label or the café's published figures when you can.
Daily limits
Health Canada gives a maximum of 400 mg a day for adults, 300 mg a day if pregnant, planning pregnancy or breastfeeding, and 2.5 mg per kg of body weight for children and adolescents, noting that the child figure is precautionary and based on limited data. The FDA also cites 400 mg a day for most healthy adults. These are daily limits for healthy people; the calculator shows your dose as a percentage of 400 mg.
What this calculator does not do
It assumes simple first-order elimination from one dose that is fully absorbed at once. It does not model absorption time, food, medications, pregnancy, liver disease or genetic differences, and it cannot say when it is safe to sleep, drive or take a medicine. Track your fluids with the water intake calculator, check your total with the caffeine limit calculator, and see the jet lag calculator if you are crossing time zones.
FAQ
What is caffeine's half-life?
The time it takes the body to clear half of the caffeine in it. Studies of healthy adults report a mean of about 5 hours (5.0 h in men in one study, 5.8 h in healthy controls in another), but it varies widely between people.
How long does caffeine stay in your system?
With a 5 hour half-life, a dose falls to about 6% after 20 hours, so most of it is gone within a day. Your own half-life may be shorter or longer, which changes how long traces remain.
Why can I change the half-life?
Published values are averages from small studies, and individuals differ. In one study the mean was 9.7 hours in women taking oral contraceptives against 5.0 hours in men. Set the half-life that fits what you know about yourself.
How long before bed should I stop caffeine?
One study found that 400 mg of caffeine taken 6 hours before bedtime still disturbed sleep significantly, so the authors supported avoiding substantial caffeine for at least 6 hours before bed. Sensitivity varies, so some people need longer.
How much caffeine is in a cup of coffee?
Health Canada lists 135 mg for 8 oz of brewed coffee. The FDA lists 113 to 247 mg for a 12 fl oz cup. Real amounts depend on the coffee and the brew.
How much caffeine is too much?
Health Canada gives a maximum of 400 mg a day for adults, 300 mg a day if pregnant, planning pregnancy or breastfeeding, and 2.5 mg per kg of body weight for children and adolescents. The FDA also cites 400 mg a day for most healthy adults.
Does this tell me when it is safe to sleep or drive?
No. It is a simple decay estimate, not a measurement of the caffeine in your blood or of how it affects you. Sensitivity differs, so treat the number as a rough guide only.
Sources
Official and primary sources used on this page, retrieved October 2026 (2026-10).
- Health Canada, Caffeine in foods: daily maximums (400 mg adults, 300 mg pregnancy and breastfeeding, 2.5 mg/kg children) and 135 mg in 8 oz brewed coffee (retrieved 2026-10).
- US FDA, Spilling the Beans: How Much Caffeine Is Too Much?: 400 mg a day for most healthy adults and caffeine per 12 fl oz drink (retrieved 2026-10).
- Haller CA, Jacob P, Benowitz NL., Clin Pharmacol Ther 2004;75(4):259-273: mean caffeine elimination half-life 9.7 h in women taking oral contraceptives vs 5.0 h in men (retrieved 2026-10).
- Wahlländer A, Paumgartner G., Eur J Clin Pharmacol 1989;37(3):279-283: caffeine half-life of 5.8 h in 8 healthy male volunteers, 7.6 h with terbinafine (retrieved 2026-10).
- Drake C et al., Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 2013;9(11):1195-1200: 400 mg caffeine 6 hours before bed still disturbed sleep (retrieved 2026-10).
Disclaimer
Not medical advice and not a dosing tool. This is a simple estimate; it does not measure caffeine in your body and cannot say when it is safe to sleep, drive or take any medication. Talk to a healthcare professional about caffeine if you are pregnant, have a heart condition, or take medicines.