Caffeine and sleep: how late is too late?
What research says about caffeine timing, why an afternoon coffee can still affect your night, and practical swaps.
4 min read · 19 November 2026
How caffeine works
Caffeine blocks adenosine, a chemical that builds up while you're awake and helps create sleep pressure. Blocking it makes you feel more alert, which is great at 9 AM and less helpful at 10 PM.
The effect lasts longer than you think
In a controlled study, 400 mg of caffeine taken even 6 hours before bed reduced total sleep time compared with placebo. People vary in how fast they process caffeine, so some are more sensitive than others.
Practical swaps
Move your last caffeinated drink to before early afternoon. Remember tea, cola, energy drinks, pre-workout powders and dark chocolate contain caffeine too. Try decaf, herbal tea or sparkling water in the afternoon.
See which habits affect your nights
Take the free 2-minute sleep-habit assessment.
Start the assessmentSources
- Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195–1200.
- Gardiner C et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764.
Educational content, not medical advice.