Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Caffeine calculator

Add the drinks you have and when you have them. See your total caffeine against the FDA's 400 mg a day, and how much is left in your body hour by hour.

DrinkServingsTime

Servings can be decimals: a 12 oz can of cola is 1.5 servings of 8 oz. Times are for one day.

General estimate, not medical advice. If you're pregnant, trying to get pregnant, breastfeeding, have a heart condition or take medicines, ask your doctor how much caffeine is right for you.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Plan your night with the sleep calculator, or see how much sleep you've missed with the sleep debt calculator.

How it's calculated

The calculator adds up the caffeine in each drink, compares the total with the FDA's figure of 400 mg a day for healthy adults, and then estimates how much is still in your body through the day.

total = Σ (caffeine per serving × servings)
caffeine left at time T = Σ dose × 0.5(hours since that drink ÷ half-life)

The half-life is the time your body takes to clear half the caffeine. EFSA gives an average of about 4 hours for healthy adults, with a range of 2 to 8 hours, and CDC NIOSH material puts it at 5 to 6 hours. The calculator uses 5 hours unless you change it. It treats each drink as absorbed when you drink it, which is a simplification: caffeine actually takes a little time to reach your blood.

Caffeine in common drinks

DrinkTypical caffeine
Brewed coffee, 8 oz96 mg
Espresso, 1 oz63 mg
Instant coffee, 8 oz62 mg
Black tea, 8 oz48 mg
Green tea, 8 oz29 mg
Bottled tea, 8 oz26 mg
Cola, 8 oz33 mg
Citrus soda with caffeine, 8 oz36 mg
Energy drink, 8 oz79 mg
Energy shot, 2 oz200 mg

These are typical amounts from the Mayo Clinic's chart. The citrus soda figure is for caffeinated citrus sodas; most citrus sodas have 0 mg, so check the label. Real drinks vary a lot. The FDA gives 113 to 247 mg for 12 oz of brewed coffee, 23 to 83 mg for 12 oz of caffeinated soda, and 41 to 246 mg for 12 oz of energy drink. If your drink's label lists caffeine, enter it under "Other caffeine".

Worked example

A cup of coffee at 7:00 AM (96 mg), another at noon (96 mg) and a 12 oz cola at 3:00 PM (1.5 × 33 = 49.5 mg):

total = 96 + 96 + 49.5 = 241.5 mg, about 60% of 400 mg
left at 10:00 PM = 96 × 0.515/5 + 96 × 0.510/5 + 49.5 × 0.57/5
= 12.0 + 24.0 + 18.8 = 54.8 mg

So about 55 mg, more than half a cup of coffee's worth, is still in your body at bedtime. With a 4-hour half-life it would be about 39 mg; with 6 hours, about 69 mg.

Limits and who should be careful

  • 400 mg is for healthy adults. The FDA notes that people differ widely in how sensitive they are to caffeine and how fast they clear it.
  • Pregnancy and breastfeeding: the FDA advises talking with your health care provider about limiting caffeine.
  • Children and teens: medical experts advise against energy drinks for them, and the Dietary Guidelines say children under 2 should avoid caffeinated drinks.
  • Large amounts fast are dangerous. The FDA says toxic effects such as seizures can occur with rapid consumption of around 1,200 mg, for example from caffeine powders.
  • Smoking speeds up caffeine clearance, and oral contraceptives slow it, according to a 2022 review of caffeine studies, so your own half-life may be shorter or longer.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • Coffee 7 AM, coffee noon, 1.5 colas 3 PM: 242 mg ✓
  • Same: 55 mg left at 10 PM (5-hour half-life) ✓
  • Same with a 6-hour half-life: 69 mg at 10 PM ✓
  • 5 cups of coffee: 480 mg, over 400 mg ✓
  • A 20-hour half-life is rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How much caffeine is too much?

The FDA cites 400 mg a day, about four 8 oz cups of brewed coffee, as an amount not generally linked with negative effects in healthy adults. Some people are more sensitive.

How long does caffeine stay in your system?

Its half-life averages about 4 to 6 hours in healthy adults, so half of it is still there several hours later. After two half-lives, about a quarter remains.

How much caffeine is in a cup of coffee?

About 96 mg in 8 oz of brewed coffee by the Mayo Clinic's figure, but it varies with the beans and brewing. The FDA gives 113 to 247 mg for 12 oz.

When should I stop drinking coffee before bed?

With a 5-hour half-life, a 96 mg cup at 2 PM still leaves about 36 mg at 9 PM. If caffeine affects your sleep, try stopping earlier in the day.

Does decaf have caffeine?

A little. The FDA says an 8 oz cup of decaf usually has 2 to 15 mg. Enter it under Other caffeine if you want to count it.

Related calculators