Nutrition arithmetic

Caffeine half-life: how much caffeine is left at bedtime

Caffeine's half-life is about 5 hours on average but varies widely. Work out how much is left from each drink at bedtime, and what sleep studies found.

THE SHORT ANSWER

Caffeine's half-life is the time your body takes to clear half of the caffeine in it. A 2024 review gives an average of about 5 hours in healthy people, with a range of 1.5 to 9.5 hours. To estimate what is left, multiply the dose by 0.5 once for each half-life that has passed: 100 mg at 2 p.m. leaves about 50 mg at 7 p.m. and 25 mg at midnight at a 5-hour half-life. Add the remainders of all your drinks. The result is an estimate, because nobody knows your own half-life without a test, and a study found that 400 mg taken 6 hours before bed still cut sleep by more than an hour.

See sources and limitations ↓Use the Caffeine calculator
Photo: Aphiwat chuangchoem / Pexels (opens in a new tab)

What a half-life means for caffeine

A half-life is not the time caffeine takes to wear off. It is the time the amount in your body takes to fall by half. After one half-life, half of the dose is left. After two, a quarter is left. After three, an eighth. The amount keeps getting smaller but takes many hours to reach almost zero.

The arithmetic is: caffeine left = dose × 0.5^(hours since the drink ÷ half-life). The ^ sign means “to the power of”. For 100 mg after 10 hours at a 5-hour half-life, 10 ÷ 5 = 2 half-lives, and 100 × 0.5 × 0.5 = 25 mg. A phone calculator with an xʸ key does the same sum for hours that are not a whole number of half-lives.

How much of 100 mg is left after each hour

The table uses the three half-life settings in the caffeine calculator: 3 hours (fast), 5 hours (typical) and 8 hours (slow). It uses the simple formula above, which counts the whole dose from the moment you drink it. Scale the numbers for a different dose: for 200 mg, double each value.

Caffeine left from one 100 mg dose, in mg, rounded to whole numbers. Estimates from the half-life formula, not measurements.

Hours after the drink3-hour half-life5-hour half-life8-hour half-life
3506677
5315065
6254459
8163350
10102542
1261935
1531327

The half-life setting matters more than small changes in timing. Ten hours after a 100 mg drink, the estimate is 10 mg at a 3-hour half-life and 42 mg at an 8-hour half-life. A cup of coffee in the late afternoon can leave very different amounts at bedtime for two different people.

Work through a day with two drinks

Take a hypothetical day: 100 mg at 8 a.m., 100 mg at 2 p.m., and bedtime at 11 p.m., with a 5-hour half-life. Work out each drink on its own, then add them.

  1. First drink: 8 a.m. to 11 p.m. is 15 hours. 15 ÷ 5 = 3 half-lives. 100 × 0.5 × 0.5 × 0.5 = 12.5 mg.
  2. Second drink: 2 p.m. to 11 p.m. is 9 hours. 9 ÷ 5 = 1.8 half-lives. 100 × 0.5^1.8 = 28.7 mg.
  3. Add them: 12.5 + 28.7 = 41.2 mg, or about 41 mg at bedtime.

The afternoon drink leaves more than twice as much as the morning drink, although both had the same dose. Later drinks count for more at bedtime.

The caffeine calculator gives about 46 mg for the same entries, not 41 mg. It treats each drink as absorbed evenly over 45 minutes and starts the halving after that. Its formula is dose × e^(−0.693 × hours after absorption ÷ half-life). The number 0.693 is the natural logarithm of 2, so this is the same halving rule. In the example, the first drink has 14.25 hours of halving and leaves 13.9 mg. The second has 8.25 hours and leaves 31.9 mg. Both methods are simplified models. The difference shows how much an assumption about absorption can move the result.

Why your half-life can differ from the average

Many medicines can also change how caffeine is cleared. If you take a regular medicine, are pregnant or have a liver condition, ask a pharmacist or clinician whether it affects caffeine. You cannot find your own half-life from how alert you feel. The calculator's fast, typical and slow settings show a range of results. Its smoking option halves the selected half-life, and its pregnancy option uses an 11.5-hour value. These are the calculator's own model settings for comparison, not measurements of your body.

What sleep studies found about timing

The half-life arithmetic helps explain these findings. At a 5-hour half-life, 400 mg taken 6 hours before bed leaves about 174 mg at bedtime, which is more than one 100 mg drink at its peak. The 2013 study also suggests that people may not notice the effect themselves. No source here gives a bedtime amount of caffeine that is safe for sleep. The calculator's note on when one 95 mg serving falls to 50 mg is a timing comparison, not a sleep threshold.

Daily amounts are a separate question

The half-life tells you when caffeine leaves. It does not tell you how much is too much in a day. Public bodies give daily reference amounts for that question.

Drinks vary a lot. The FDA lists 113 to 247 mg for 12 fluid ounces of brewed coffee and 41 to 246 mg for 12 fluid ounces of energy drink. The calculator's presets, such as 95 mg for brewed coffee, are starting values. Use the amount on the label or the café's information when you have it. The reference amounts are for adults and are comparison values, not targets. The FDA page cites the Dietary Guidelines for Americans, which say caffeinated drinks should be avoided for children younger than 2, and notes that medical experts advise against energy drinks for children and teens.

Common questions

How long does caffeine stay in your body?

It does not leave at one fixed time. Each half-life halves the amount still in your body. With the average half-life of about 5 hours, a quarter of a dose is left after 10 hours, and about 3% after 25 hours. With a slower 8-hour half-life, a quarter is still left after 16 hours.

If the half-life is 5 hours, is caffeine gone after 10 hours?

No. Two half-lives leave a quarter of the dose. From 100 mg, about 25 mg is left after 10 hours at a 5-hour half-life.

Does decaf coffee count?

It contains a small amount. The FDA says decaf coffee typically has 2 to 15 mg in an 8-fluid-ounce cup. Add it as an entry with the amount on the label if you want the calculator to include it.

CHECK THE EVIDENCESources & limitations6 sources

Sources checked October 31, 2026. These notes explain methods and assumptions. They have not received an independent clinical review.

  1. A 2024 review states that caffeine is 99% absorbed within 45 minutes, peaks in plasma 15 to 120 minutes after ingestion, has a mean half-life of about 5 hours in healthy people, and can range from 1.5 to 9.5 hours, with pregnancy, obesity, oral contraceptives, smoking and altitude among the influences. (opens in a new tab)pmc.ncbi.nlm.nih.gov
  2. A 2022 systematic analysis of caffeine pharmacokinetic data from 141 publications found that smoking increases caffeine clearance and shortens its half-life, while oral contraceptive use has the opposite effect. (opens in a new tab)pmc.ncbi.nlm.nih.gov
  3. In a 2013 home study of 12 healthy adults, 400 mg of caffeine taken 0, 3 or 6 hours before bedtime reduced sleep measured by a portable EEG monitor; at 6 hours sleep fell by more than 1 hour, while sleep diaries did not show a significant change at 6 hours. (opens in a new tab)pmc.ncbi.nlm.nih.gov
  4. A 2023 meta-analysis of 24 studies found caffeine reduced total sleep time by 45 minutes and estimated that coffee (107 mg per 250 mL) should be consumed at least 8.8 hours before bedtime, and a 217.5 mg pre-workout serve at least 13.2 hours before, to avoid a reduction in total sleep time. (opens in a new tab)pubmed.ncbi.nlm.nih.gov
  5. EFSA states that single doses of 100 mg may affect sleep duration and patterns in some adults, particularly close to bedtime, and gives 200 mg single doses, 400 mg a day for healthy adults and 200 mg a day in pregnancy as levels that do not raise safety concerns (the last for the foetus). (opens in a new tab)efsa.europa.eu
  6. The FDA cites 400 mg a day as an amount not generally associated with negative effects for most adults, notes wide variation in sensitivity and elimination, and lists caffeine ranges for common drinks. (opens in a new tab)fda.gov

Use these tools and guides

Caffeine calculator →Why calculators give different answers →Methods & sources →

ABOUT THE AUTHOR

Body Numeral editorial team

Body Numeral guides are published under the site's editorial team byline. Each guide shows where a number comes from, what it can tell you, and what it cannot, one step at a time.

Guides are drafted with AI help, and a separate AI review step checks them against their cited sources before publication. This byline does not represent clinical review.

How the guides are made →

Keep reading

All guides