Caffeine Half-Life Calculator

Find out when your coffee leaves your system so you can sleep.

CaffeinePre-WorkoutSleep QualityHalf-LifeStimulantsJet Lag
Section
Health & Vitality
Reviewed
Your data
Stays local

1 Protocol

Hours
:
Mins

Half-life varies roughly two-fold between people, mostly via CYP1A2.

Clearance Timeline

After one half-life
7:30 PM
100 mg left
After two half-lives
1:00 AM
50 mg left
Six hours later
Drake 2013: 400 mg six hours before bed still cut measured sleep by over an hour
94 mg left

The formula

Remaining = D × 0.5^(t / T½)

Full derivation and the conditions it holds under are in Method and basis, below.

Method and basis

How the figure above is derived, and when not to act on it.

Caffeine Half-Life: What Is Actually Left in Your Blood at Bedtime

Caffeine does not wear off. It is cleared, and clearance follows first-order kinetics — a constant *fraction* leaves per unit time rather than a constant amount. That distinction is the whole reason a half-life is the useful number: it is the only figure that stays the same no matter how much you drank, which makes the arithmetic of "how much is still in me" tractable on the back of an envelope.

The practical consequence is unintuitive. A 200 mg double espresso at 2 PM leaves roughly 100 mg at 7:30 PM and 50 mg at 1 AM — about a cup of coffee's worth of caffeine still circulating while you are trying to sleep.


The Elimination Curve

For a dose D taken t hours ago with half-life T½:

Remaining = D × 0.5^(t / T½)

That is the whole model. Because the exponent is a ratio, each successive half-life removes half of what remains rather than half of the original dose:

Half-lives elapsedFraction remainingFrom a 200 mg dose
150%100 mg
225%50 mg
312.5%25 mg
46.25%12.5 mg
53.1%6 mg
Five half-lives is the pharmacological convention for "effectively cleared". At a typical 5.5-hour half-life, that is a little over a day — which is why a genuinely heavy caffeine habit never fully washes out between doses.

Absorption is not the bottleneck. Caffeine is absorbed almost completely from the gut, with peak plasma concentration reached about 30–60 minutes after an oral dose and bioavailability close to 100%. There is no meaningful first-pass loss, so the dose you drink is the dose you have to clear. The only thing that varies is how fast.


Why 5 Hours Is a Population Average, Not Your Number

The widely quoted 5-hour half-life is a central estimate for healthy non-smoking adults. The spread around it is large enough that the average is close to useless for an individual: reported half-lives in healthy adults range from roughly 1.5 to 9.5 hours, a more than six-fold span.

Almost all of that variation runs through a single enzyme. CYP1A2 performs around 95% of caffeine's primary metabolism, and its activity is both genetically variable and strongly inducible:

  • Smoking induces CYP1A2 and shortens the half-life substantially — smokers clear caffeine roughly half again as fast as non-smokers. Quitting reverses this within days, which is one reason newly abstinent smokers often feel unexpectedly wired on their usual coffee.
  • Combined oral contraceptives inhibit CYP1A2 and roughly double the half-life.
  • Pregnancy slows clearance progressively, with third-trimester half-lives reported around twice to three times the non-pregnant value.
  • CYP1A2 genotype (commonly typed at rs762551) separates faster from slower metabolisers among people with none of the above.
This page uses a single half-life you choose, which is the right model for one dose on one day. If you want the factors above applied, and several doses stacked on top of each other, use the caffeine metabolism tracker instead — it models the accumulation curve rather than a single decay.

The Sleep Evidence Is Stronger Than the Folk Rule

The common advice to stop caffeine "six hours before bed" is not arbitrary, and it is not conservative either.

Drake and colleagues (*Journal of Clinical Sleep Medicine*, 2013) gave 400 mg of caffeine at 0, 3, and 6 hours before habitual bedtime and measured sleep both by self-report and with a validated portable monitor. All three timings significantly disturbed sleep relative to placebo — including the dose taken six hours before bed, which reduced objectively measured total sleep time by more than an hour.

Two details matter more than the headline:

1. Participants did not notice. Subjective reports did not track the objective disruption. People reliably underestimate what an afternoon coffee costs them, because the thing being damaged is sleep depth and continuity, not the feeling of being able to fall asleep. 2. It was a small, fixed-dose study. Twelve healthy normal sleepers, all given 400 mg regardless of body size. That is roughly two large coffees, and a larger dose than most people have in the afternoon. Treat the six-hour figure as a well-motivated floor, not a precise threshold, and scale your own caution to your own dose.

The mechanism is specific: caffeine is an adenosine receptor antagonist. Adenosine accumulates through waking hours and is the principal driver of sleep pressure, so blocking its receptors does not just delay sleep onset — it suppresses the depth of the sleep you do get.


Reading the Number This Tool Gives You

The calculator reports what remains after one and two half-lives, and separately what remains six hours after your dose, because that six-hour figure is the one with trial evidence attached to it.

What to do with it:

  • Under about 25 mg at bedtime is roughly a cup of green tea and unlikely to be the thing wrecking your sleep.
  • 50–100 mg at bedtime is a real dose still on board. If your sleep is fragmented and you cannot explain why, this is the first thing to move.
  • Above 100 mg at bedtime means your last dose was too large, too late, or both.
Moving the dose earlier works better than shrinking it. Because elimination is exponential, shifting a 200 mg coffee from 4 PM to 11 AM removes far more bedtime caffeine than cutting it to 100 mg at 4 PM — five extra hours is nearly a full half-life, and halving the dose only buys you one.

For dosing caffeine deliberately before training rather than trying to get rid of it, see the caffeine pre-workout calculator, which works from the 3–6 mg/kg ergogenic range instead.