What Caffeine Really Does to Your Sleep
A half-life of around five hours means an afternoon coffee is still measurably present at midnight. Sleeping through it is not the same as being unaffected by it.
What to remember
- Caffeine has a half-life of roughly 5 hours in most adults, with wide individual variation.
- It blocks adenosine, the molecule that signals sleep pressure, rather than adding energy.
- It reduces deep sleep even in people who fall asleep without difficulty.
- Up to 400mg a day is generally considered safe for most adults; less in pregnancy.
How it works, and why that matters
Adenosine accumulates in the brain across the waking day and is the main chemical signal of sleep pressure. Caffeine occupies adenosine receptors without activating them, so the pressure is still building, you simply stop perceiving it. This is why the crash when it wears off feels so abrupt: the accumulated signal arrives all at once.
The arithmetic of a half-life
A half-life of five hours means a 200mg dose at 3pm leaves about 100mg at 8pm and about 50mg at 1am. Fifty milligrams is roughly a shot of espresso, and few people would choose to drink one at 1am. Individual variation is large, driven substantially by a liver enzyme whose activity varies genetically: slow metabolisers can carry an afternoon coffee well past midnight.
Sleeping through it is not the same as being unaffected
People who say caffeine does not affect their sleep usually mean it does not stop them falling asleep. Studies giving caffeine before bed find reduced slow-wave sleep and reduced total sleep time even where sleep onset is unimpaired. Deep sleep is the portion most associated with feeling restored, so the result is a full night that delivers less than it should, followed by needing coffee to function. That loop is the reason the advice exists.
Where the limits sit
European and UK food safety assessments put 400mg a day as generally safe for most healthy adults, and 200mg a day in pregnancy. A typical filter coffee is 100 to 150mg, an instant coffee 60 to 100mg, a mug of tea 40 to 75mg, a can of energy drink around 80mg. Decaf is not caffeine-free but is usually under 10mg.
The numbers, in one place
| Measure | Figure |
|---|---|
| Half-life in a typical adult | about 5 hours |
| General adult daily limit | 400mg |
| Recommended limit in pregnancy | 200mg |
| Filter coffee, a mug | 100-150mg |
| Instant coffee, a mug | 60-100mg |
| Tea, a mug | 40-75mg |
| Energy drink, 250ml can | around 80mg |
| Practical cut-off before bed | 8-10 hours for sensitive sleepers |
Do
- Set a personal cut-off time and keep it; early afternoon suits most people
- Count tea, cola, energy drinks and chocolate towards the total
- Reduce gradually over a week or two if you are cutting down, to limit headaches
- Treat poor sleep and high caffeine intake as a loop, and break it at the caffeine end
Do not
- Do not assume falling asleep easily means your sleep quality is unaffected
- Do not use energy drinks to compensate for a sleep debt across consecutive days
- Do not exceed 200mg a day if you are pregnant
When to speak to a doctor
See a GP if you have palpitations, tremor, or anxiety that worsens with caffeine, or if you need caffeine to function despite adequate time in bed, which can point to sleep apnoea, anaemia or thyroid problems. Seek urgent advice for an irregular or racing heartbeat that does not settle.
Where to go next
- How to Fall Asleep Faster Without Medication
- What the Guidance Really Says About Insomnia
- Understanding Insomnia: A Plain-English Explainer
Where this comes from
- European Food Safety Authority - Scientific Opinion on the safety of caffeine
- NHS - Caffeine in pregnancy
- The Sleep Charity - caffeine and sleep
Medical disclaimer
This article is general information, not medical advice. It cannot account for your own history, medication or circumstances. Always speak to a GP, pharmacist or another qualified health professional before making changes that affect your treatment, and never delay seeking medical advice because of something you have read here. In an emergency, call 999.
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.