How it is calculated
Sleeping better
- Move your last caffeinated drink earlier in the day.
- Watch for hidden caffeine in tea, chocolate, pre-workout and some pain relievers.
- If you are sensitive, try the “slow” half-life setting.
Brewing at home? Get the ratio right with the coffee ratio calculator.
How to use the calculator
- Enter the caffeine content and time of up to three drinks today.
- Choose a half-life that fits you (5 hours is the typical adult average) and the time you plan to sleep.
- Read how much caffeine will still be in your body at bedtime and when it drops below common thresholds.
Caffeine in common drinks
| Drink | Caffeine (mg) |
|---|---|
| Brewed coffee, 8 oz (240 ml) | 80–100 (≈95) |
| Espresso, 1 shot (30 ml) | ≈63 |
| Instant coffee, 8 oz | 60–80 |
| Decaf coffee, 8 oz | 2–15 |
| Black tea, 8 oz | 40–50 |
| Green tea, 8 oz | 25–30 |
| Cola, 12 oz (355 ml) | 30–40 |
| Energy drink, 8.4 oz (250 ml) | ≈80 |
| Large energy drink, 16 oz | 150–300 |
| Dark chocolate, 1 oz (28 g) | ≈12–25 |
Values are typical figures from USDA FoodData Central and manufacturers; coffee shop servings can contain much more — a large brewed coffee may exceed 300 mg.
What affects caffeine half-life?
For most healthy adults the half-life of caffeine is about 3–7 hours, averaging around 5. It varies with:
- Smoking: roughly halves the half-life, so smokers clear caffeine much faster.
- Pregnancy: extends it substantially, up to 15 hours or more in the third trimester.
- Oral contraceptives: can roughly double it.
- Genetics: variations in the CYP1A2 liver enzyme make some people fast and others slow metabolizers.
- Liver disease and some medications (for example fluvoxamine and some antibiotics) slow clearance markedly.
How much is too much?
The U.S. Food and Drug Administration and the European Food Safety Authority consider up to 400 mg a day generally safe for healthy adults — about four cups of brewed coffee. EFSA suggests no more than about 200 mg in a single dose and no more than 200 mg a day during pregnancy. Children and teenagers should have much less.
Caffeine and sleep
Caffeine blocks adenosine, the brain chemical that builds sleep pressure during the day. A controlled study (Drake et al., 2013, Journal of Clinical Sleep Medicine) found that 400 mg taken even 6 hours before bed reduced total sleep by more than an hour, often without people noticing. A practical rule is to stop caffeine at least 8 hours before bedtime and to keep the amount remaining at bedtime low; the calculator shows when your level falls below 50 mg as a guide.