Free Caffeine Tool
Caffeine Half-Life Calculator
A caffeine half-life calculator shows how much caffeine is still in your body hours after your last drink. In healthy adults, caffeine’s half-life is about 5 hours. That means half of a 200 mg coffee is still working 5 hours later, and a quarter is left after 10 hours. Smoking can shorten the half-life, while birth control pills and pregnancy can make it much longer. Enter your drinks and bedtime to see how much caffeine you take to bed.
- Handles up to 4 drinks and absorption time
- Runs in your browser. Nothing is stored
- Last updated: September 2026
Caffeine in your body
—
Still in your body at bedtime —
—
—
Highest level today
—
—
Drink by drink
| Time | Drink | Caffeine | Left at bedtime | Hours before bed |
|---|
These are estimates based on average values. Your own half-life can be much shorter or longer.
Half-life result
Caffeine left
—
—
Time to reach your target
—
—
| Half-lives | Hours | Caffeine left | Share left |
|---|
What Is a Caffeine Half-Life Calculator?
A caffeine half-life calculator estimates how much caffeine is left in your body at any time after you drink it. Half-life is the time it takes your body to clear half of a substance. For caffeine, that is about 5 hours in a typical healthy adult.
The half-life matters because caffeine lasts longer than its buzz. You may feel alert for an hour or two, but a large part of an afternoon coffee can still be in your blood at bedtime. A study in 2013 found that 400 mg of caffeine taken 6 hours before bed cut sleep by more than an hour, and most people did not notice it.
This calculator adds up every drink you have in a day, shows how much caffeine you take to bed, and draws the curve over the day. It also shows how smoking, birth control pills and pregnancy change the numbers.
How to Use the Caffeine Half-Life Calculator
- Pick each drink you had, or plan to have, and set the time. Up to four drinks. Change the mg if your label says something different.
- Choose the option that fits you best: typical adult, smoker, on birth control pills, or late pregnancy. Pick Custom if you know your own half-life.
- Enter your bedtime and wake-up time.
- Read your results: caffeine at bedtime, your peak level, your daily total, what is left in the morning, and the latest time for a regular coffee.
- Check the drink-by-drink table to see which drink leaves the most caffeine at bedtime.
- Use the second tab for quick math with a single dose.
How Does the Caffeine Half-Life Calculator Work?
Your gut absorbs almost all the caffeine you drink. Levels in your blood usually peak 30 minutes to 2 hours after drinking. Your liver then breaks caffeine down, mostly with an enzyme called CYP1A2.
The liver clears a steady share of the caffeine each hour, not a fixed number of milligrams. So the amount falls fast at first and then more slowly. Each half-life removes half of whatever is left.
The calculator follows each drink separately. It spreads the absorption over roughly the first hour, with the peak about 45 minutes after drinking. It then applies your half-life and adds all the drinks together.
Caffeine Half-Life Formula
The basic half-life formula is the same one used for most medicines:
Caffeine left = dose × 0.5 ^ (hours since drinking ÷ half-life)Hours to reach a level = half-life × log2(dose ÷ level)
With a 5-hour half-life, 1 half-life leaves 50%, 2 leave 25%, 3 leave 12.5%, 4 leave about 6% and 5 leave about 3%. That is why it takes roughly a day to clear most of a strong dose.
The first tab also adds a short absorption phase, using a standard one-compartment model. This makes the curve rise over the first hour instead of jumping up at once. It changes the bedtime number only a little.
Caffeine Half-Life Calculation Examples
Example 1: two coffees, typical half-life
You drink 100 mg at 8 a.m. and 150 mg at 2 p.m. You go to bed at 11 p.m. The half-life is 5 hours.
- Morning coffee: 15 hours later, 100 × 0.5^(15 ÷ 5) = 12.5 mg left.
- Afternoon coffee: 9 hours later, 150 × 0.5^(9 ÷ 5) = about 43 mg left.
- Total at bedtime: about 56 mg, roughly half a small cup of coffee.
Example 2: the same drinks on birth control pills
With a 10-hour half-life, the morning coffee leaves about 35 mg and the afternoon coffee about 80 mg. That makes about 116 mg at bedtime, twice as much as in example 1.
Factors That Affect Caffeine Half-Life
Caffeine half-life varies a lot from person to person. These factors have the biggest effect:
| Factor | Effect on half-life |
|---|---|
| Smoking | Shorter. Smoking speeds up caffeine breakdown and can cut the half-life by up to half. |
| Birth control pills | Longer. The pill can almost double caffeine half-life. |
| Pregnancy | Much longer, especially in the third trimester, when it can reach about 15 hours. |
| Liver disease | Longer. The effect grows with how severe the liver disease is. |
| Some medicines | Longer. Fluvoxamine and some antibiotics, such as norfloxacin, strongly slow caffeine breakdown. |
| Alcohol | Longer. Drinking about 50 g of alcohol a day (3 to 4 standard drinks) was linked to a 72% longer half-life. |
| Genes | Varies. Differences in the CYP1A2 enzyme make some people fast and others slow at clearing caffeine. |
| Newborn babies | Very long. Premature babies can take up to about 100 hours. Children over about 9 months clear caffeine like adults. |
How to Interpret Your Caffeine Half-Life Result
There is no exact safe level of caffeine at bedtime. Sensitivity varies. Research does give useful timing guidance:
- A 2023 review of 24 studies found that caffeine cut total sleep by about 45 minutes and made it take about 9 minutes longer to fall asleep.
- The authors suggest having a regular coffee (about 107 mg) at least 8.8 hours before bed.
- For a larger dose, such as a pre-workout drink (about 217 mg), they suggest at least 13.2 hours.
The calculator uses these gaps to flag drinks that are too close to bedtime. For a bedtime of 11 p.m., the latest regular coffee would be about 2:10 p.m.
If your bedtime number is high and you sleep badly, try moving your last caffeinated drink earlier or making it smaller. If the number is low but you still sleep poorly, caffeine may not be the main cause.
How Much Caffeine Is in Common Drinks?
These ranges are from the US Food and Drug Administration (FDA), per 12 fl oz serving:
| Drink (12 fl oz) | Caffeine |
|---|---|
| Brewed coffee | 113 to 247 mg |
| Energy drink | 41 to 246 mg |
| Caffeinated soft drink | 23 to 83 mg |
| Black tea | About 71 mg |
| Green tea | About 37 mg |
The FDA says 400 mg a day is not generally linked to harmful effects in healthy adults. That is about two to three 12 oz cups of coffee. Pregnancy guidance from the American College of Obstetricians and Gynecologists (ACOG) is under 200 mg a day.
Common Caffeine Half-Life Calculation Mistakes
- Thinking caffeine is gone when the buzz fades. The alert feeling fades well before the caffeine does.
- Counting only coffee. Tea, soda, energy drinks, pre-workout powders, some pain relievers and dark chocolate add up.
- Using the cup size, not the caffeine. A large coffee-shop brew can hold twice as much as a home cup.
- Assuming everyone has a 5-hour half-life. Birth control pills or pregnancy can double or triple it.
- Believing caffeine clears in a straight line. The body removes a share each hour, so the last part takes the longest to clear.
Limitations and When to Talk to a Doctor
This calculator uses average half-lives and typical drink values. It cannot measure the caffeine in your blood, and it does not replace medical advice. Your real half-life can differ a lot from the preset.
Speak to a doctor or pharmacist if:
- you are pregnant, breastfeeding or trying to conceive
- you have heart rhythm problems, high blood pressure, anxiety or liver disease
- you take medicines that may interact with caffeine, such as fluvoxamine, some antibiotics or theophylline
- you have ongoing insomnia, even after cutting back on caffeine
Get urgent help for a fast or irregular heartbeat, chest pain, confusion, severe vomiting or a seizure after taking caffeine, especially from pills or powders. Pure caffeine powder is very easy to overdose on.
Caffeine Half-Life Calculator FAQs
What is the half-life of caffeine?
About 5 hours in a typical healthy adult, but it varies widely. Smokers may clear caffeine in about half that time, while birth control pills or late pregnancy can make it last two to three times longer.
How long does caffeine stay in your system?
With a 5-hour half-life, about a quarter of a dose is left after 10 hours and about 6% after 20 hours. Most of it is gone within about a day.
What time should I stop drinking coffee?
A 2023 review suggests at least 8.8 hours before bed for a regular coffee, and 13.2 hours for a larger dose such as a pre-workout drink. For an 11 p.m. bedtime, that means your last coffee by about 2 p.m.
How much caffeine is left after 6 hours?
With a 5-hour half-life, about 44% remains after 6 hours. From a 200 mg coffee, that is about 87 mg.
Can I speed up how fast caffeine leaves my body?
There is no proven way to speed it up much. Drinking water or exercising does not clear caffeine faster in any meaningful way. Time is what clears it.
Does decaf coffee have caffeine?
Yes, a small amount. Decaf usually has a few milligrams per cup, much less than regular coffee.
Sources and References
- Evans J, et al. Caffeine. StatPearls. NCBI Bookshelf. ncbi.nlm.nih.gov
- US Food and Drug Administration. Spilling the beans: how much caffeine is too much? fda.gov
- Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews. 2023;69:101764. PubMed 36870101
- Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. 2013;9(11):1195–1200. jcsm.aasm.org
- Nehlig A. Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacological Reviews. 2018;70(2):384–411. Summary: coffeeandhealth.org
- Grzegorzewski J, et al. Pharmacokinetics of caffeine: a systematic analysis of reported data. Frontiers in Pharmacology. 2021. frontiersin.org
- American College of Obstetricians and Gynecologists. Committee Opinion No. 462: Moderate caffeine consumption during pregnancy. acog.org
Reviewed and updated: September 2026.