Caffeine Calculator: Daily Limit & How Long It Stays in Your Body

Add up your coffee, tea and energy drinks, check your daily caffeine limit and see how much is left at bedtime.

Health Calculators Free

What you drank

About you

The half-life is how long your body needs to clear half of the caffeine. It is about 5 hours for most adults but varies a lot from person to person.
Your caffeine
0Total caffeine (mg)
0%Of your daily limit
0Still in your body at bedtime (mg)
-Below 50 mg at
You are over your daily caffeine limit. Cut back or switch to decaf for the rest of the day.
You are within your daily caffeine limit.
Too much caffeine will still be active at bedtime, which can make it harder to fall asleep. Try to have your last caffeine earlier.
The caffeine left at bedtime is low, so it is unlikely to disturb your sleep.
Choose at least one drink and enter how many servings you had.
Caffeine amounts are typical values and differ by brand and brewing. The limits follow common health guidance (FDA, EFSA, Health Canada). This is general information, not medical advice.

About this tool

What is the caffeine calculator?

This tool adds up the caffeine in the drinks you have during the day and compares the total with a daily limit. It also uses the caffeine half-life to estimate how much is still active in your body at bedtime and when it falls below 50 mg.

How to use it

  1. Pick a drink for each row, enter the servings and the time you had it. Choose Custom amount to type the mg from a label.
  2. Choose your daily limit and how fast your body clears caffeine.
  3. Set your bedtime and read the result.

How it works

Caffeine is cleared exponentially. After one half-life (about 5 hours for most adults) half of it is gone. The amount left is the dose times 0.5 to the power of hours passed divided by the half-life. Doses are summed for all drinks.

Typical caffeine content

  • Espresso shot: about 63 mg
  • Brewed coffee, 240 ml: about 95 mg
  • Black tea: about 47 mg
  • Cola can: about 34 mg
  • Energy drink, 250 ml: about 80 mg

FAQ

How much caffeine is safe per day?

Health agencies such as the FDA and EFSA consider up to 400 mg a day safe for most healthy adults, and up to 200 mg during pregnancy.

When should I stop drinking coffee?

Many people sleep better if less than about 50 mg is left at bedtime. Use the bedtime result to test different times.

This is general information and not medical advice.