Caffeine calculator

Our caffeine calculator shows how the caffeine in your coffee, tea, energy drinks and anything else you drink adds up throughout the day. It estimates how much may still be in your body at bedtime, so you can compare what happens when you have less caffeine or drink it earlier.

What's still in you at bedtime?

The amounts are typical figures for each drink. If your can, cup or tub says something different, tap the drink and change it.

Set your bedtime, then add what you drink and when.

Clock

Add a drink

Not on the shelf?

The caffeine in your body, hour by hour

The colors are about what's still in you when you go to bed: green up to about 30 mg, yellow up to about 60, red above that. Each drink is colored by what it leaves on its own, the verdict below by all of them together.

Why those numbers: in a review of 24 sleep studies, a coffee within about 9 hours of bed or a pre-workout scoop within about 13 shortened sleep on average, and both leave a little over 30 mg by bedtime. Up to 60, the studies disagree; 400 mg twelve hours before bed, about 75 left, delayed sleep.

Tap a drink above and it lands here. Drag a drink along the day to when you had it, or tap it to change it. Your day's caffeine shows up here. Your day is cleared. Undo {n} mg {name}, {mg} mg, at {time} Bedtime, {time} Bedtime Remove {name} Between 1 and 1,000 mg, please. Caffeine in your body through the day. {big} About {mg} mg still in you at {time} Practically none left by {time} Between {lo} and {hi} mg (the dashed lines), depending on how fast your body clears caffeine. Up to {hi} mg if your body clears caffeine slowly. Unlikely to cost you sleep: it leaves about {left} mg in you at bedtime. Unlikely to cost you sleep: almost none of it is left by bedtime. Cutting it close: it leaves about {left} mg in you at bedtime. May cost you sleep: it leaves about {left} mg in you at bedtime. After your bedtime, so it isn't in the bedtime number. unlikely to cost you sleep cutting it close may cost you sleep after your bedtime Practically nothing left. Less than half a mug of coffee's worth. About half a mug of coffee's worth. About a mug of coffee's worth. About {n} mugs of coffee's worth. Unlikely to cost you sleep Cutting it close May cost you sleep Your drinks leave little caffeine in you by bedtime. Room for one more {name}: have it by {time} and your night stays in the green. Another {name} today would take your night out of the green. Mostly your {name} at {time}. Moved to {clear} or earlier, your night would be in the green. Mostly your {name} at {time}. Moved to {clear} or earlier, you'd only be cutting it close. Mostly your {name} at {time}. Without it, your night would be in the green. Mostly your {name} at {time}. Without it, you'd only be cutting it close. Your drinks add up: even without your {name} at {time}, the rest leave about {rest} mg. Fewer, or earlier, would bring it down. A drink this size still leaves a lot in you at bedtime, even first thing in the morning. Each drink is small on its own, but together they add up. Fewer, or earlier, would bring it down. drink {mg} mg The line marks 400 mg, the daily amount US and EU food safety agencies say is fine for most adults. Past the line: more than the 400 mg a day US and EU food safety agencies say is fine for most adults. {big}. {verdict}. Today, {total} mg. am pm

What your result means

The bedtime number is an estimate for a typical body, not a measurement of yours. Bodies clear caffeine at different speeds, which is what the range under it shows.

The colors are our own rough guide, not a promise about your night. Why caffeine can cut into your sleep even on nights that feel fine is explained in why energy drinks make you tired.

Tap a drink under the chart and its line shows, in the same colors, what that drink alone would leave at bedtime if you had it earlier or later.

For most healthy adults, the guidance is up to about 200 mg at a time and 400 mg in a day (200 mg a day in pregnancy), so read the line under your day’s total as a ceiling, not a target.

This page is general information from coaches, not medical advice. If you have a medical condition or an injury, or take medication, talk to your doctor before you change your training or diet.

Sources

  1. Gardiner C, Weakley J, Burke LM, Roach GD, Sargent C, Maniar N, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews, 2023;69:101764. DOI.

  2. Gardiner CL, Weakley J, Burke LM, Fernandez F, Johnston RD, Leota J, et al. Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 2025;48(4):zsae230. DOI.

  3. Guest NS, VanDusseldorp TA, Nelson MT, Grgic J, Schoenfeld BJ, Jenkins NDM, et al. International Society of Sports Nutrition position stand: caffeine and exercise performance. Journal of the International Society of Sports Nutrition, 2021;18(1):1. DOI.

  4. EFSA Panel on Dietetic Products, Nutrition and Allergies. Scientific opinion on the safety of caffeine. EFSA Journal, 2015;13(5):4102. DOI.

  5. Blanchard J, Sawers SJ. The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 1983;24(1):93-98. DOI.

  6. Desbrow B, Hall S, O’Connor H, Slater G, Barnes K, Grant G. Caffeine content of pre-workout supplements commonly used by Australian consumers. Drug Testing and Analysis, 2019;11(3):523-529. DOI.

  7. US Food and Drug Administration. Spilling the beans: how much caffeine is too much? Consumer update. fda.gov.

  8. US Department of Agriculture, FoodData Central (SR Legacy): brewed coffee, espresso, instant coffee, black tea and cola. fdc.nal.usda.gov.