Free tool

Caffeine calculator: how much caffeine is left at bedtime?

Add what you drank today and when. It shows how much caffeine is still in your body at bedtime, and the latest time for one more coffee.

1. Tap each drink you had today

Something elsemg

2. When did you have them?

  • Coffee95 mg8:00 AM

3. Bedtime

4. How fast do you clear caffeine?

13 mg still in you at 11:00 PM

About 14% of a cup of coffee, out of 95 mg today.

12:15 PMlast call for coffee6:30 PMback under 25 mg
50 mg6:00 AM12:00 PM6:00 PM12:00 AM
Caffeine in your body from 4am to 4am. The blue line is your bedtime.

An estimate, not a lab result: each drink is absorbed over 45 minutes, then halves every 5 hours. Real cups vary by brand and brew; check the label where there is one.

How the calculator works

Caffeine leaves your body at a steady rate: every few hours, half of what's left is gone. That time is the half-life, about 5 hours for a typical adult. So a 95 mg coffee at 3pm still leaves roughly 47 mg at 8pm and about 24 mg at 1am. The calculator adds up every drink this way, assuming each is absorbed over about 45 minutes.

The half-life varies more than most people expect. The FDA notes wide differences in how fast people clear caffeine. Smoking speeds it up; pregnancy, some contraceptive pills and some medicines slow it down a lot. If coffee at lunch keeps you awake at night, pick the slower setting.

Why the bedtime number matters

Caffeine you can't feel can still cost you sleep. In a 2013 study, 400 mg of caffeine taken six hours before bed cut sleep by more than an hour, and the people taking it mostly didn't notice. Less sleep tonight means a harder alarm tomorrow, and more coffee to get through it.

Typical caffeine in common drinks

DrinkTypical caffeine
Brewed coffee, 8 ozAbout 95 mg
Espresso, one shotAbout 64 mg
Cold brew, 16 ozAbout 200 mg
Black tea, 8 ozAbout 47 mg
Green tea, 8 ozAbout 28 mg
Cola, 12 ozAbout 34 mg
Energy drink54 to 328 mg per 16 oz, says the FDA

These are typical figures; real cups vary a lot by bean, brew strength and size. Where there's a label, use it.

How to use the caffeine calculator

  1. Tap each drink you had today. Something else lets you type an amount in mg.
  2. Use the − and + buttons to set when you had each one, in 30-minute steps.
  3. Tap your bedtime, and how fast you clear caffeine. Leave it on Typical unless you know otherwise.
  4. Read how much caffeine is left at bedtime, and your last call for coffee.

Questions people ask

What is the half-life of caffeine?

About 5 hours for a typical healthy adult, but it varies a lot: shorter in smokers, and much longer in pregnancy and with some medicines. After one half-life, half the caffeine is still in your body.

How long before bed should I stop drinking coffee?

At least six hours. In a 2013 sleep study, caffeine taken six hours before bed still cut sleep by more than an hour, and people mostly didn't notice.

How much caffeine is too much?

The FDA cites 400 mg a day, about two to three 12 oz cups of coffee, as an amount not generally linked with negative effects in most adults. People vary a lot in sensitivity.

How much caffeine is in a cup of coffee?

Typically about 95 mg in an 8 oz cup of brewed coffee and about 64 mg in a shot of espresso, but it ranges widely by bean, brew and cup size.

Put this caffeine calculator on your site

Free for blogs, schools and sleep coaches. Paste this code where you want it to appear. It sets no cookies, shows no ads and needs no sign-up.