
Caffeine and Sleep: How Late Is Too Late?
Wed Aug 19 2026 · caffeine, sleep-timing, sleep-hygiene
Caffeine and Sleep: How Late Is Too Late?
A cup of coffee or tea is one of the most common culprits behind poor sleep — and it’s also one of the easiest things to fix. This guide explains how caffeine affects sleep, how long its effects actually last, and what the NHS and the US National Institutes of Health (NIH) recommend about timing.
This is general information, not medical advice.
How caffeine affects sleep
Caffeine is a stimulant. It blocks the chemical in your brain that makes you feel sleepy, which is why it keeps you alert — and why, taken too late in the day, it can keep you from falling asleep or staying asleep.
The NIH is clear: caffeine is a stimulant that can interfere with sleep.
Source: US NIH, NHLBI — Healthy Sleep Habits.
How long caffeine’s effects really last
This is the key fact most people underestimate. According to the NIH:
The effects of caffeine can last up to 8 hours. A cup of coffee in the late afternoon can make it hard for you to fall asleep at night.
So that coffee at 3 or 4pm may still be affecting you well into the evening — long after you imagine its effect has worn off.
Source: US NIH, NHLBI — Healthy Sleep Habits.
What the NHS recommends on timing
The NHS advice on insomnia goes a step further and recommends a clear cutoff:
Do not smoke, or drink alcohol, tea or coffee at least 6 hours before going to bed.
So the NHS suggests treating caffeine (and alcohol and smoking) as things to cut off at least 6 hours before bedtime.
Source: NHS — Insomnia.
Putting the two together
There’s a slight difference in the two figures, which is worth being honest about:
- NIH highlights that caffeine’s effects can persist up to 8 hours — a useful “worst case” to keep in mind.
- NHS recommends cutting off tea/coffee at least 6 hours before bed.
A practical rule that fits both: if you struggle with sleep, stop caffeine roughly 6–8 hours before bedtime. If you go to bed at 11pm, that means your last caffeine should be around 3–5pm — not after dinner.
Practical tips
- Watch more than coffee. The NIH notes caffeine is also in caffeinated soda, tea, and chocolate. Many people don’t count a late soda or an evening hot chocolate when they’re thinking about “coffee.”
- Set a caffeine cutoff (e.g. no caffeine after mid-afternoon) and stick to it for a week to see if your sleep improves.
- Decaf and herbal teas are fine alternatives for the evening.
- Caffeine isn’t the only stimulant — nicotine is too, and the NIH links both nicotine and caffeine to sleep problems.
The honest bottom line
Caffeine is a proven sleep-disrupter, and its effects last far longer than many people assume — up to 8 hours per the NIH. The safest, evidence-backed habit is to stop caffeine 6–8 hours before bedtime. For most people, that means the afternoon coffee has to go if you want a better night’s sleep.
If cutting caffeine (and alcohol and smoking) before bed doesn’t fix your sleep, the next step per the NHS is poor-sleep habits more broadly — and cognitive behavioural therapy (CBT) from a GP if insomnia persists.
Sources
- US National Institutes of Health, NHLBI — Healthy Sleep Habits (caffeine effects can last up to 8 hours; nicotine and caffeine are stimulants): https://www.nhlbi.nih.gov/health/sleep-deprivation/healthy-sleep-habits
- NHS — Insomnia (do not drink tea or coffee at least 6 hours before bed): https://www.nhs.uk/conditions/insomnia/
This article is for general information and is not a substitute for professional medical advice.