How caffeine actually leaves your system
Caffeine does not switch off at a fixed time after you drink it — it decays exponentially, meaning a fixed fraction of what remains clears every hour, not a fixed amount. That is the same mathematics as radioactive decay, and it is why "it takes eight hours to leave your system" is a rough rule of thumb rather than a real cutoff: technically, caffeine never reaches exactly zero, it just gets low enough to stop mattering.
Remaining = dose × 0.5^(hours elapsed ÷ half-life)The half-life used here is 5 hours, a commonly cited average for healthy adults. Every 5 hours, roughly half of whatever caffeine is left gets cleared, regardless of how much was there to start.
Worked example
Two cups of coffee at 95 mg of caffeine each is a 190 mg dose. Five hours later, about half remains (95 mg); ten hours later, about a quarter (47 mg); fifteen hours later, about an eighth (24 mg). This is why a coffee at 2pm can still measurably affect sleep at 10pm — eight hours later there is still roughly a third of the original dose in your system.
Why 5 hours is an average, not your number
| Factor | Effect on half-life |
|---|---|
| Genetics (CYP1A2 gene variants) | Can roughly double or halve metabolism speed between individuals |
| Pregnancy | Roughly doubles or triples the half-life |
| Hormonal contraceptives | Extends it moderately |
| Smoking | Shortens it — smokers metabolise caffeine notably faster |
| Liver function | Impaired liver function slows clearance significantly |
| Age | Clearance generally slows somewhat with age |
The published range for healthy adults runs roughly 3 to 7 hours, and the factors above can push individuals outside even that range. Two people drinking the same coffee at the same time can have genuinely different amounts left in their system by evening.
Common caffeine amounts, for reference
| Drink | Typical caffeine |
|---|---|
| Brewed coffee, 240 ml | ~95 mg |
| Espresso, single shot | ~63 mg |
| Instant coffee, 240 ml | ~62 mg |
| Black tea, 240 ml | ~47 mg |
| Green tea, 240 ml | ~28 mg |
| Cola, 355 ml can | ~34 mg |
| Energy drink, 250 ml | ~80 mg (varies widely by brand) |
| Dark chocolate, 28 g | ~12 mg |
What this does not do
It models blood caffeine level, not how alert or jittery you feel — subjective effects depend on tolerance built up from regular use, individual sensitivity, and how much was consumed in one sitting rather than spread out, none of which a simple decay curve captures. It also is not medical advice: if you are managing a heart condition, anxiety, pregnancy or a sleep disorder, guidance from a doctor about caffeine matters more than an estimate from a decay curve.