Sleep & Lifestyle calculator
Caffeine Half-Life Calculator
Caffeine stays in the body for hours. This calculator estimates how much of a dose remains when you go to bed, using a typical half-life of about five hours.
Estimate caffeine at bedtime
Sleep
Enter the caffeine dose, the hours before bed and a half-life.
What this calculator does
Caffeine is cleared roughly exponentially, with an average half-life of four to six hours in healthy adults. The calculator applies that decay to your dose. Individual half-life varies widely because of genetics, pregnancy, smoking and medicines.
How to use the calculator
- Enter the caffeine in your drink or supplement in milligrams.
- Enter how many hours before bed you had it.
- Adjust the half-life if you know you metabolise caffeine slowly.
- Select Calculate to see the estimated amount at bedtime.
Formula
| Variable | Meaning |
|---|---|
| Dose | Caffeine consumed in milligrams. |
| Hours | Time between consumption and bedtime. |
| Half-life | Time for the amount to halve; about 5 hours on average. |
Example calculation
200 mg taken 6 hours before bed, with a 5-hour half-life, leaves 200 × 0.5^1.2 ≈ 87 mg at bedtime.
Understanding your result
- Under 30 mg is unlikely to affect most sleepers.
- 30–100 mg may disturb sensitive sleepers.
- Over 100 mg at bedtime is likely to impair sleep.
- The estimate assumes a single dose and average metabolism.
Factors that affect the result
- Genetics change caffeine clearance substantially.
- Pregnancy roughly doubles the half-life.
- Smoking speeds clearance; oral contraceptives slow it.
- Liver disease and some medicines prolong it.
Limitations
- It assumes first-order elimination, which is an approximation.
- It does not account for multiple doses.
- It cannot predict your individual sensitivity.
- It is not a guide to a safe intake for pregnancy.
Frequently asked questions
What is the half-life of caffeine?
About five hours on average, ranging roughly from two to ten hours.
How much caffeine is in coffee?
A brewed cup contains roughly 80–100 mg, but values vary widely by bean, roast and size.
Does caffeine after lunch affect sleep?
It can. A 200 mg dose at 2 pm may still leave meaningful amounts at 10 pm.
Is decaf caffeine-free?
No. Decaf contains small amounts, typically a few milligrams per cup.
References
- Nehlig A. Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacol Rev. 2018;70(2):384–411.
Related calculators
For education only. Limit caffeine in pregnancy and discuss intake with a clinician if you have heart, liver or sleep problems.
Reviewed November 2026. Educational content, not a clinical record.