Caffeine Half-Life Calculator (When Does Caffeine Clear?)
Live- The mean caffeine half-life in healthy adults is 4 to 6 hours but ranges from 1.5 to 9.5 hours depending on smoking status, pregnancy, oral contraceptives, and CYP1A2 genetic variation. Sleep guidance: avoid caffeine within 10 hours of bedtime if you are sleep-sensitive.
Caffeine clears from the bloodstream on a predictable exponential decay curve, with the personal half-life setting the rate. The mean half-life in healthy non-smoking adults is 5 hours, meaning half your caffeine is metabolised in the first 5 hours and half of what remains is metabolised in the next 5 hours. After 5 hours you have 50 percent left; after 10 hours, 25 percent; after 15 hours, 12.5 percent; after 25 hours, around 3 percent.
This calculator takes the dose in mg, your personal half-life in hours, and how many hours have elapsed since intake. It returns the amount of caffeine remaining in your bloodstream at that point and a decay table showing the amount at 1, 2, 4, 8, 16, and 24 hours. The personal half-life is the input most people underestimate: it varies from about 1.5 hours in heavy smokers to over 9 hours in pregnant women in their third trimester and in people taking oral contraceptives. Genetic variation in the CYP1A2 liver enzyme accounts for most of the variation in healthy non-smokers.
A rough sanity check: a 200 mg cup of coffee at 7 AM with a 5-hour half-life leaves 100 mg in your bloodstream by noon, 50 mg by 5 PM, 25 mg by 10 PM, and 12.5 mg by 3 AM. The amount that disrupts sleep varies by individual, but most sleep researchers suggest avoiding caffeine within 8 to 10 hours of bedtime if you are sleep-sensitive. For a 11 PM bedtime, that means no caffeine after 1 to 3 PM.
If you are uncertain about your personal half-life, start with the 5-hour default and adjust based on observed sleep effects. If you can drink coffee at 4 PM and still sleep fine, your half-life is probably shorter than average (3 to 4 hours). If a 10 AM coffee disrupts your sleep, your half-life is probably longer than average (6 to 7 hours).
What changes your caffeine half-life
Caffeine is metabolised by the cytochrome P450 1A2 (CYP1A2) liver enzyme. Five factors significantly affect the speed of CYP1A2 metabolism and therefore your half-life.
Smoking (tobacco) induces CYP1A2 activity substantially. Heavy smokers can have caffeine half-lives as short as 1.5 to 3 hours, meaning they need much more caffeine to feel the same alertness effect and the caffeine clears much faster after consumption. When smokers quit, their half-life can extend within days, which often produces uncomfortable post-quit jitteriness from the same coffee they used to drink.
Oral contraceptives (estrogen-containing) inhibit CYP1A2, extending caffeine half-life to 7 to 10 hours. Women on combined oral contraceptives often find that a 2 PM coffee disrupts sleep in ways it does not for non-users.
Pregnancy progressively extends caffeine half-life. The first trimester is closer to baseline; by the third trimester the half-life can reach 10 to 16 hours. Pregnancy guidelines recommend limiting caffeine to under 200 mg per day partly because of this extended clearance.
Liver disease (hepatitis, cirrhosis) can dramatically extend half-life because liver function affects CYP1A2 capacity. Heavy regular alcohol use can also extend half-life.
Genetic variation in the CYP1A2 gene (specifically the rs762551 polymorphism) divides the population into fast metabolisers (AA genotype) and slow metabolisers (AC or CC genotypes). Fast metabolisers have half-lives around 3 to 4 hours; slow metabolisers around 6 to 7 hours. This is a fixed genetic factor that does not change with behavior.
Age has a small effect (slightly slower in older adults) but the difference is small compared to smoking and oral contraceptives.
How much caffeine is in common drinks
Reference doses (typical, not extreme):
Brewed coffee, 8 oz cup: 95 mg.
Espresso, single shot: 65 mg.
Latte or cappuccino, 12 oz: 75 mg (single shot) or 150 mg (double shot).
Decaf coffee, 8 oz: 5 mg (it is not zero).
Black tea, 8 oz: 50 mg.
Green tea, 8 oz: 30 mg.
Matcha, prepared: 70 mg.
Coca-Cola, 12 oz: 34 mg.
Mountain Dew, 12 oz: 54 mg.
Red Bull, 8.4 oz: 80 mg.
Monster, 16 oz: 160 mg.
Bang energy drink, 16 oz: 300 mg.
Caffeine pill: 100 to 200 mg per pill, depending on brand.
Pre-workout supplements vary wildly from 75 mg to over 400 mg per serving; read the label.
When to cut off caffeine before bed
Most sleep researchers recommend avoiding caffeine within 8 to 10 hours of bedtime for sleep-sensitive individuals. For an 11 PM bedtime, this means no caffeine after 1 to 3 PM. If your half-life is on the long side (oral contraceptives, slow metaboliser, pregnant), push the cutoff back to 6 hours before bed minimum.
A practical rule that works for most people: drink your last coffee no later than 12 noon. By 11 PM (a typical bedtime), 200 mg consumed at noon decays to about 25 mg with a 5-hour half-life. This is low enough that most people can fall asleep normally. For night owls or shift workers, calculate your own cutoff from your bedtime and personal half-life.
Tolerance and dependence
Regular caffeine consumption produces tolerance: your brain adapts by upregulating adenosine receptors, which means the same caffeine dose produces less subjective alertness over time. Tolerance develops within 1 to 2 weeks of daily consumption and takes 7 to 12 days to reverse after stopping.
Withdrawal from regular caffeine (more than 100 mg per day for several weeks) produces headache, fatigue, irritability, and difficulty concentrating starting 12 to 24 hours after the last dose and lasting 2 to 9 days. Tapering down rather than stopping cold typically reduces withdrawal severity.
Caffeine is technically a mild stimulant drug with the standard adaptive features. Most adults can maintain a moderate consumption pattern (under 300 mg per day) indefinitely without health problems, but heavy consumption (over 500 mg per day) is associated with anxiety, insomnia, and elevated blood pressure in sensitive individuals.
What this calculator does not include
Absorption time (caffeine is fully absorbed within 30 to 60 minutes of intake; the calculator assumes instantaneous absorption, which slightly overestimates levels in the first hour). Multiple doses across the day (the calculator handles a single dose; for multiple doses, run it for each dose separately and sum the remaining amounts at the time of interest). Tolerance effects on subjective alertness (the calculator estimates blood levels, not subjective stimulation). Tea L-theanine interaction (theanine in tea modifies the alertness profile of caffeine, but does not change clearance). Other CYP1A2 substrates that compete for metabolism (some medications). For a comprehensive caffeine timing strategy, track your sleep quality alongside caffeine intake for 2 to 4 weeks and adjust your half-life estimate based on observed effects.
Frequently asked questions
About 5 hours in healthy non-smoking adults not taking oral contraceptives. The range across the healthy adult population is 1.5 to 9.5 hours. Heavy smokers are at the low end (1.5 to 3 hours); pregnant women in the third trimester and oral-contraceptive users are at the high end (7 to 10+ hours). Genetic CYP1A2 variation accounts for much of the remaining variation.
Related calculators
- HealthBMR CalculatorCalculate your basal metabolic rate using the Mifflin-St Jeor equation, plus daily calorie needs at five common activity levels.
- HealthCalorie & Macro CalculatorCalculate the daily calories and macronutrient grams you need to lose, maintain, or gain weight. Uses Mifflin-St Jeor BMR with realistic activity multipliers.
- HealthSleep CalculatorCalculate the best bedtime or wake time based on 90-minute sleep cycles, so you wake up between cycles and feel refreshed instead of groggy.
- HealthHydration CalculatorCalculate your recommended daily water intake in ml, liters, cups, and 500 ml bottles. Adjusts for activity, climate, and pregnancy.