Caffeine Calculator: how much is still in you at bedtime?

Caffeine has a half-life of about 5 hours, so an afternoon coffee can still be in your system at midnight. This free caffeine calculator estimates how much caffeine remains in your body at bedtime and works out your last-call time for coffee, tea, or energy drinks — adjustable for your own half-life (3, 5, or 7 hours) and bedtime target.

Add up to three drinks. All drinks are assumed to be on the same calendar day; use the bedtime-day selector to place bedtime on that day or the next.

How the estimate works

Caffeine leaves your body roughly exponentially. After one half-life, half is left; after two, a quarter, and so on. We compute the amount remaining at your bedtime and the latest time a drink can be finished for the remainder to fall to your chosen bedtime target.

The bedtime target is only a calculation setting. Individual sensitivity varies a lot, and no amount of remaining caffeine is guaranteed to be free of effects on sleep.

The 400 mg example in the FAQ comes from Drake et al. (2013); it does not establish a safe cutoff for smaller doses.

Typical caffeine amounts

DrinkCaffeine
Brewed coffee (8 oz / 240 ml)~95 mg
Espresso shot~63 mg
Black tea (8 oz / 240 ml)~47 mg
Green tea (8 oz / 240 ml)~28 mg
Energy drink (8.4 oz / 250 ml)~80 mg
Cola (12 oz / 355 ml)~34 mg

Looking for everyday habits to try? Read our practical guide to better sleep.

Frequently asked questions

What is caffeine half-life?

The time it takes your body to clear half of the caffeine. Five hours is a common planning estimate; a commonly cited range is about 3 to 7 hours, but individual clearance varies.

How much caffeine is too close to bedtime?

There is no established safe amount for sleep. One study found that 400 mg taken 6 hours before bed disrupted sleep (Drake et al., 2013). The bedtime target in this tool (10, 25 or 50 mg) is a number you choose for the calculation; it is not a proven no-effect dose.

Are the drink amounts exact?

No. Caffeine content varies by brand, roast, and brewing. Use the custom field if you know your exact dose.

Is this medical advice?

No. It is a simple decay estimate. Talk to a clinician if you have heart, anxiety, or pregnancy-related concerns about caffeine.

What does the "last call" time mean?

The latest time you could finish this one drink so the remaining caffeine falls to your chosen bedtime target (10, 25, or 50 mg). It is calculated for the first drink alone; any extra drinks add to the total remaining at bedtime.

Can I track more than one drink?

Yes. Add up to two more drinks (three in total), each with its own time and amount. The tool sums the caffeine remaining from all of them at your bedtime.