Caffeine calculator
Add what you drink today and when. The calculator shows how much caffeine is still in your body at bedtime, using a 5-hour half-life and the 2-to-8-hour range EFSA gives for healthy adults.
The calculator
At 23:00, about 40 mg of caffeine is still in your body, with a half-life of 5 hours.
40 mg
at bedtime (23:00), half-life 5 h
7–67 mg
with a half-life of 2 to 8 h, EFSA's range
170 mg
in total today
- At bedtime about 40 mg is still in your body, less than the 100 mg that EFSA says may affect sleep in some adults when taken close to bedtime.
- Today's total is 170 mg. EFSA sees no safety concerns for healthy adults up to 400 mg spread over the day, and up to 200 mg a day in pregnancy.
- Largest single amount: 90 mg. EFSA sees no safety concerns for single doses up to 200 mg in healthy adults.
- For a 107 mg cup of coffee, a meta-analysis put the gap before bed at no less than 8.8 hours: 14:12 for a 23:00 bedtime.
The caffeine calculator estimates how much caffeine from coffee, tea, cola or chocolate is still in your body at bedtime. It works with the half-life, the time your body needs to clear half of it, and shows the whole range that EFSA, Europe's food safety authority, gives for healthy adults. How long you feel it is answered in how long caffeine lasts.
How the caffeine calculator works
Each drink climbs to its full amount over 30 minutes, roughly the time blood levels took to peak in ten young men, 29.8 minutes on average (Blanchard & Sawers, 1983); EFSA gives 30 to 120 minutes (EFSA Panel on Dietetic Products, Nutrition and Allergies [EFSA NDA Panel], 2015). From there the amount halves with every half-life, so a quarter is left after two and an eighth after three. EFSA calls caffeine's kinetics linear up to 10 mg per kilogram of body weight, with one study seeing a departure only from 500 mg in one go. The amounts per drink are EFSA's guide values, about 90 mg for a 200 ml cup of filter coffee and 80 mg for a 60 ml espresso (European Food Safety Authority [EFSA], 2015), so if your can says otherwise, type in its figure.
How fast you clear caffeine
The default is 5 hours. EFSA puts the average for healthy adults at about four hours, with a range of two to eight (EFSA NDA Panel, 2015), while two studies of non-smokers found means of 6.0 and 6.2 hours (Parsons & Neims, 1978; Patwardhan et al., 1980), and 5 sits between them. Smoking shortens the half-life: 3.5 hours in 13 smokers against 6.0 in 13 non-smokers (Parsons & Neims, 1978). The pill lengthens it, to 10.7 hours in nine women against 6.2 in nine without (Patwardhan et al., 1980), and by the end of a pregnancy it is three to four times as long as usual, according to EFSA (EFSA NDA Panel, 2015). About 95 per cent of the work falls to one liver enzyme, CYP1A2, which severe liver disease slows markedly. For its best-known gene variant, two studies found no difference in enzyme activity among non-smokers.
What EFSA says about caffeine and sleep
In 2015 EFSA assessed which amounts raise no safety concerns for healthy adults: single doses up to 200 mg and up to 400 mg spread over the day, and for pregnant women up to 200 mg a day (EFSA NDA Panel, 2015). On sleep, the opinion is specific: "Single doses of 100 mg (about 1.4 mg/kg bw for a 70-kg adult) of caffeine may increase sleep latency and reduce sleep duration in some adult individuals, particularly when consumed close to bedtime." That is why the calculator compares the amount left at bedtime with 100 mg. It is no guarantee either way, because people differ in sensitivity, and variants in the adenosine receptor gene are one suggested reason.
What the calculator does not know
It estimates an amount, not an effect, and uses one half-life for the whole day, without your body weight. A meta-analysis of 24 studies put the gap for a 107 mg cup of coffee at no less than 8.8 hours before bed (Gardiner et al., 2023), so the calculator shows that time too. If your afternoon cup is aimed at the afternoon slump, the curve shows how much of it reaches the night. In the nine:thirty protocol the caffeine cut-off sits at 14:00, and in the nine:thirty app you set its reminder to your own time; the other daytime items are in our overview of focus.
Frequently asked questions
How much caffeine is too much in a day?
For healthy adults, EFSA sees no safety concerns up to 400 mg spread over the day, a little over four 200 ml cups of filter coffee at its guide value of 90 mg (EFSA, 2015). Single doses up to 200 mg raise no concerns either. For pregnant women, EFSA's figure is up to 200 mg a day (EFSA NDA Panel, 2015).
How much caffeine is in a cup of coffee?
EFSA's guide value is about 90 mg for a 200 ml cup of filter coffee and about 80 mg for a 60 ml espresso (EFSA, 2015). Both are approximate, because caffeine content and portion sizes vary within and between countries. If the label on your drink gives a different figure, enter that in the calculator as your own amount.
How long before bed should you stop drinking caffeine?
A meta-analysis of 24 studies calculated at least 8.8 hours for a 107 mg cup of coffee, which means 14:12 for a 23:00 bedtime (Gardiner et al., 2023). That holds for an average rate of clearance. Smokers clear caffeine faster and women on the pill more slowly (Parsons & Neims, 1978; Patwardhan et al., 1980), and the calculator shows what is left at your own bedtime.
Sources
- Blanchard, J., & Sawers, S. J. A. (1983). The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 24(1), 93–98. https://doi.org/10.1007/BF00613933
- EFSA Panel on Dietetic Products, Nutrition and Allergies [EFSA NDA Panel]. (2015). Scientific opinion on the safety of caffeine. EFSA Journal, 13(5), Article 4102. https://doi.org/10.2903/j.efsa.2015.4102
- European Food Safety Authority [EFSA]. (2015). EFSA explains risk assessment: Caffeine. Publications Office of the European Union. https://doi.org/10.2805/618813
- Gardiner, C., Weakley, J., Burke, L. M., Roach, G. D., Sargent, C., Maniar, N., Townshend, A., & Halson, S. L. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, Article 101764. https://doi.org/10.1016/j.smrv.2023.101764
- Parsons, W. D., & Neims, A. H. (1978). Effect of smoking on caffeine clearance. Clinical Pharmacology & Therapeutics, 24(1), 40–45. https://doi.org/10.1002/cpt197824140
- Patwardhan, R. V., Desmond, P. V., Johnson, R. F., & Schenker, S. (1980). Impaired elimination of caffeine by oral contraceptive steroids. The Journal of Laboratory and Clinical Medicine, 95(4), 603–608. https://pubmed.ncbi.nlm.nih.gov/7359014/


