Skip to content
SleepUncovered

Calculator

Caffeine Half-Life Calculator

Caffeine has an average half-life of ~5 hours, but ranges 1.5–9.5 hours depending on your genetics, liver function, and medications. This calculator tells you how much caffeine is still active at bedtime — and when it will drop below the threshold that disrupts deep sleep.

Or pick a drink below to autofill.

Half-life: 5h

Quick reference — tap to set dose

At your bedtime

27 mg

Caffeine still in your system at 23:00. Probably negligible.

Below 100mg at
2:00pm

Generally below the threshold where caffeine measurably disrupts deep sleep.

Below 30mg at
10:19pm

Equivalent to about a cup of green tea. Usually negligible.

How it works

Caffeine follows first-order elimination kinetics: the amount remaining at time t equals C₀ × 0.5^(t / half-life). That's a straightforward exponential decay — every half-life period halves the remaining caffeine.

The default 5-hour half-life is the population average for healthy adults (Arnaud, 2011). But individual variation is enormous: the CYP1A2gene determines how quickly your liver clears caffeine. “Slow metabolisers” (about 50% of the population) have half-lives closer to 8 hours. Pregnancy roughly doubles half-life. Smoking shortens it. Hormonal contraceptives lengthen it.

We flag two thresholds: 100 mg (the level above which sleep architecture measurably degrades in lab studies — Drake et al, 2013) and 30 mg (roughly background level, usually negligible).

Why it matters

People consistently underestimate how long caffeine stays active. A 200mg dose at 2pm leaves roughly 50mg in your system at 10pm in an average metaboliser — enough to measurably reduce slow-wave sleep that night, even if you don't feel “wired” at bedtime.

If you suspect afternoon coffee is affecting your sleep, see caffeine and sleep and try the caffeine cut-off calculator.

Sources

  1. 1Arnaud, M. J.. Pharmacokinetics and metabolism of natural methylxanthines in animal and man · Handbook of Experimental Pharmacology · 2011PMID 20859798
  2. 2Drake, C. et al.. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed · Journal of Clinical Sleep Medicine · 2013PMID 24235903