Caffeine Decay
Estimate remaining caffeine after t hours assuming 5h half-life.
Caffeine remaining (mg)
—
Caffeine decay formula
Your body clears caffeine by first-order kinetics, so the math is just C(t) = C₀ · e^(-k·t), with k = ln(2) / t½. In healthy adults the half-life sits somewhere around 3–5 h, with a median near 5 h. Example: drink 200 mg at 18:00 and by 23:00 you are down to roughly 100 mg at 23:00, then around 50 mg at 04:00 when you would rather be asleep. Genetics matter a lot here. The CYP1A2 polymorphism sorts people into fast metabolizers (AA homozygotes, t½ ~3 h) and slow ones (AC/CC, t½ 8 h+). Pregnancy stretches clearance about threefold (t½ 9–13 h), and a newborn can take up to 80 h. The practical takeaway is to cut caffeine at least 6 hours before bedtime.
Applications
Timing a pre-workout dose (3–6 mg/kg about 30–45 min before training). Keeping intake in check during pregnancy (FDA <200 mg/day). Chasing down insomnia by lining up the last dose against the bedtime curve. And riding out withdrawal, where the headache tends to last 3–7 days if you quit cold turkey.
FAQ
Why does coffee not keep me awake? Probably a fast CYP1A2 variant, or tolerance built up from drinking it every day. Either way, your sleep architecture can still take a hit even if you do nod off.
How long until caffeine is fully cleared? Five half-lives knock the dose down to about 3% of what you took. With a 5 h half-life that works out to 25 h.
Does decaf count? It does. Figure 2–15 mg a cup, which is small but not nothing.
Is the model exact? No. It runs on average pharmacokinetics, and your own half-life shifts with genetics, smoking, oral contraceptives and liver function.
Related Tools
Caffeine Calculator
Calculate how long caffeine stays in your body. See the remaining amount after each half-life and when it is safe to sleep. Includes a sources table (coffee, tea, energy drinks, chocolate). Everything in your browser.
Number of Half-Lives
Compute how many half-lives have elapsed, n = t/T½, and the fraction of radioactive material remaining, (1/2)ⁿ, from the elapsed time and the half-life. With each half-life the amount halves: after 1 half-life 50% remains, after 2 it is 25%, after 10 less than 0.1%. It is the intuitive way to assess how much of a source (or contamination) is left. Enter the elapsed time and the half-life.
Caffeine Half-Life Calculator
Find out how much caffeine is still in your body after a few hours, using the roughly 5-hour half-life. Enter the dose and the time elapsed.
Decay Constant
Compute the radioactive decay constant, λ = ln(2)/T½, from the half-life (T½). The constant λ is the probability of a nucleus decaying per unit time — the larger it is, the more unstable the isotope and the shorter its half-life. It links the half-life (time for half the nuclei to decay) to the activity and to the exponential decay law. Enter the isotope's half-life.
Radioactive Half-life
Compute remaining amount A = A₀·(1/2)^(t/T) for radioactive decay.
Substance Half-Life Calculator
Compute how long for a substance to leave the body (5 half-lives = undetectable). Caffeine, alcohol, nicotine, common drugs.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.