Caffeine and Sleep: The Cut-Off Time That Matters
A doctor explains how long caffeine really lasts, why an afternoon coffee still costs you sleep, and how to find the cut-off time that suits your own body.

The short version
- Caffeine has a half-life of roughly five hours in most adults, so a mid-afternoon coffee still leaves a meaningful amount in your system at bedtime.
- A cut-off around eight hours before bed suits most people, and trials show caffeine taken even six hours before bed measurably reduces total sleep.
- It often damages sleep quality without stopping you falling asleep, which is why people who sleep after an evening coffee still wake unrefreshed.
See a doctor promptly if
These are the signs that change this from something to read about into something to act on.
- Palpitations, chest pain or a persistently fast heartbeat after caffeine. Get this assessed rather than assuming it is harmless
- Needing steadily more caffeine to function, or using high-caffeine energy products to stay awake at work or while driving
- Severe anxiety, tremor or panic symptoms that improve when caffeine is stopped
Caffeine has a half-life of around five hours in the average adult, so a coffee at four in the afternoon still leaves roughly a quarter of that dose circulating at two in the morning. For most people a cut-off about eight hours before bed is a sensible starting point, and it is a bigger lever on sleep quality than almost anything else in the evening routine.
Why it works, and why that is the problem#
Throughout the day a molecule called adenosine accumulates in the brain and produces the sensation of sleepiness. Caffeine fits the same receptors and blocks it. It does not remove tiredness. It hides the signal, and the accumulated adenosine is still waiting when caffeine wears off. That is the afternoon crash.
Because the effect is on the sleep-pressure system itself, caffeine interferes with sleep even when it does not stop you dropping off. Studies giving caffeine at set intervals before bed found that a dose taken six hours beforehand reduced total sleep time by around an hour, and participants frequently did not notice. The most common form of caffeine-related sleep damage is lighter, less restorative sleep in someone who insists coffee does not affect them.
Finding your own cut-off#
Half-life varies far more between people than the average suggests. Genetics affect the liver enzyme that clears it, smoking speeds clearance up, pregnancy and some medicines including certain contraceptives slow it down considerably, and clearance slows with age.
The practical method is a two-week experiment. Set a cut-off eight hours before your usual bedtime, keep everything else the same, and note how you feel on waking rather than how quickly you fall asleep. Then adjust. Some people find a noon cut-off is needed; some are fine at four.
The loop worth breaking#
Poor sleep leads to more caffeine, which further degrades sleep, which demands more caffeine. It is one of the most self-sustaining patterns in ordinary life, and it is usually invisible from inside. Cutting down abruptly produces headache, irritability and fatigue for two to five days. Reducing gradually over a couple of weeks avoids most of that, and the withdrawal ending is not the same as the sleep improving, so judge the result after three weeks rather than three days.
Caffeine also amplifies anxiety. Racing heart, tremor and a sense of dread are common at higher intakes, and in people prone to panic symptoms caffeine can trigger episodes directly. Anyone with new palpitations should be checked rather than reassured by a coffee habit. Establishing that the heart is normal comes before attributing the sensation to caffeine or stress.
Where to take this next#
If your sleep does not improve after a proper caffeine experiment, the issue is likely to be insomnia rather than stimulants, and the fuller guide to fixing sleep sets out the treatment with the best long-term evidence.
Common questions
How long does caffeine actually stay in your body?
I fall asleep fine after coffee. Is it still affecting me?
How much caffeine is too much?
Sources
Still not sure what this means for you?
Bring your reports to a call with one of our doctors. Leave with a written summary and the right questions for your own doctor.


