Caffeine Calculator
Estimate daily caffeine intake from coffee, tea, energy drinks, chocolate or supplements, then model caffeine left before sleep using a half-life estimate.
Daily reference: 399 mg · Single-dose reference: 200 mg
Hours until target bedtime
Total today
63 mg
Within reference
% of daily reference
16%
of 399 mg
Current estimate
63 mg
using ~5 hr half-life
At bedtime
21 mg
Lower sleep-impact estimate
Time to low 50 mg
1 hr 40 min
Conditional sleep estimate, not a guarantee
FDA and EFSA references for healthy adults commonly use up to 400 mg/day and up to 200 mg as a single dose. Pregnancy and breastfeeding often use a lower 200 mg/day reference. Energy drinks are not recommended for children or teens. Half-life can change with pregnancy, medication and oral contraceptives; smoking can speed caffeine metabolism.
Calculate caffeine intake for the day
Caffeine calculator intent is practical: total the caffeine in drinks, foods and supplements, compare it with adult reference levels, and estimate how much may still be active near bedtime.
Dday - total caffeine today, mgi - caffeine in one serving, ni - number of servings.
Lday - daily reference in milligrams, W - body weight in kilograms.
Lsingle - single-dose reference in milligrams.
Caffeine half-life and sleep
The calculator uses a simple half-life model. English search results increasingly expect a bedtime estimate, but individual caffeine clearance varies a lot.
R - estimated remaining caffeine, mg - dose, t - hours after intake, 5 - default half-life in hours.
ttarget - hours until a selected remaining-caffeine threshold.
- A 50 mg target is a model threshold for a low remaining amount, not an official sleep-safety cutoff.
- Drake et al. found sleep effects when caffeine was taken 0, 3 or 6 hours before bedtime.
- Pregnancy, some medications and oral contraceptives can slow caffeine metabolism.
- Smoking can speed caffeine metabolism; sensitivity can change after quitting.
Reference levels and caveats
| Situation | Reference used | How to read it |
|---|---|---|
| Healthy adult | Up to 400 mg/day | FDA and EFSA-aligned general reference, not a personal prescription |
| Single adult dose | Up to 200 mg | EFSA single-dose reference for adults |
| Pregnancy or breastfeeding | Often 200 mg/day or lower | Discuss an individual limit with a clinician |
| Children and teens | Avoid energy drinks | AAP warns against energy drinks for children and adolescents |
| High-concentration caffeine | Extra caution | Pure or highly concentrated caffeine products can cause serious harm from small measuring errors |
Frequently Asked Questions
Sources and References
- Spilling the Beans: How Much Caffeine is Too Much?FDA
- Safety of caffeineEFSA Journal
- Caffeine effects on sleep taken 0, 3, or 6 hours before bedtimePubMed / Drake et al.
- Sports Drinks and Energy Drinks for Children and AdolescentsAmerican Academy of Pediatrics
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Estimate daily calorie needs from BMR, TDEE, activity level and goal, then review maintenance, weight-loss, weight-gain and macro targets.
Estimate daily protein, carbohydrate and fat targets from calories, activity, goals and common macro splits, with US and metric inputs.
Calculate recipe calories from ingredients by weight, with totals for the whole recipe, per serving and per 100 g finished weight.
Estimate blood alcohol concentration from drinks, body weight, biological sex and time using a Widmark-style model. For safety education only, never for deciding whether to drive.