Most people dramatically underestimate caffeine's duration of action. Ask someone when they should stop drinking coffee to sleep well, and the common answer is "early afternoon" or "3pm." The pharmacology suggests the answer is closer to "late morning" — and for slow metabolisers, potentially earlier still.
The Half-Life Problem
Caffeine has an average half-life of approximately five to seven hours in healthy adults. This means that if you drink a 200mg coffee at 2pm, you'll still have 100mg of caffeine active in your system at 7-9pm, and around 50mg by midnight. The residual caffeine doesn't just make it harder to fall asleep — it actively alters the architecture of your sleep even when you do sleep.
A landmark study by researcher Christopher Drake and colleagues found that caffeine consumed six hours before bedtime significantly reduced total sleep time by more than an hour — even when subjects reported no difficulty falling asleep. This is the critical insight: caffeine can impair sleep quality without producing obvious insomnia. You sleep, but the sleep is less restorative.
What Caffeine Does to Sleep Architecture
Caffeine works by blocking adenosine receptors. Adenosine is the molecule that accumulates during waking hours and creates sleep pressure — the feeling of growing tiredness across the day. Blocking adenosine doesn't eliminate the accumulation; it just prevents you from feeling it. When caffeine clears, the adenosine is still there, and often creates a rebound crash.
More significantly, caffeine consumption — even hours before bed — has been shown to reduce slow wave sleep (deep sleep, stages N3) by up to 20% in some studies. Slow wave sleep is the most physically restorative phase of sleep: where human growth hormone is released, tissue repair occurs, and immune function is consolidated. A 20% reduction in slow wave sleep is meaningful even if you don't notice it consciously.
Caffeine Metabolism Facts
- Average half-life: 5–7 hours in healthy adults
- Slow metabolisers (CYP1A2 variants): half-life can exceed 9–10 hours
- Oral contraceptives can double caffeine half-life
- Smoking accelerates metabolism — half-life closer to 3 hours
- Pregnancy significantly slows caffeine clearance
Genetic Variation and Why It Matters
Caffeine is metabolised primarily by the liver enzyme CYP1A2. Genetic variants in the gene encoding this enzyme produce significant variation in metabolic speed. Roughly half the population carries a "slow metaboliser" variant — for these individuals, caffeine's half-life can extend to nine hours or more. For someone who is a slow metaboliser and drinks coffee at 2pm, caffeine is still substantially active at midnight.
This explains a lot of the variation in people's relationship with caffeine. "I can drink coffee at 9pm and sleep fine" is a real experience for fast metabolisers — but extrapolating that to assume everyone can is a mistake. If you're consistently sleeping six to seven hours but feel chronically underrested, caffeine timing is worth examining before assuming the problem is something else.
The easiest experiment: switch to decaf for everything after midday for two weeks, and track sleep quality and morning energy. The results are often more noticeable than people expect.
The Practical Takeaway
For the average adult with a standard caffeine half-life, meaningful sleep impact extends until roughly 10–12 hours after the last caffeinated drink. For the significant minority with slower metabolism, this window extends further. The practical guideline of "no caffeine after midday" is conservative but defensible for most people who prioritise sleep quality.
This is one of the cleaner arguments for functional decaf formats: they preserve the ritual and the polyphenol benefits of coffee consumption throughout the day, while removing the compound most directly responsible for sleep architecture disruption. For anyone who genuinely values sleep as a performance variable — which the evidence increasingly suggests it should be — this is a significant quality-of-life upgrade.