Caffeine & Sleep
Matthew Walker warns caffeine lingers far longer than you feel it, quietly cutting deep sleep even when you fall asleep fine. Caffeine's half-life of 5 to 6 hours means a noon coffee still has a quarter of its dose circulating at midnight, and Walker's lab found it can cut deep sleep by 15 to 30% when you fall asleep fine.
Walker, author of Why We Sleep, is blunt about caffeine: most people drink it too late and trust the wrong signal (whether they can fall asleep). The protocol is simple and behavioural: understand caffeine's real timeline, set a curfew, and protect your deep sleep.
Why it works▼
Know caffeine's real timeline
A coffee at noon means roughly a quarter of that caffeine is still in your brain at midnight. Caffeine outstays its welcome by hours.
Set a caffeine curfew
This keeps the lingering quarter-life from eating into your night. If you go to bed around 10:30pm, that means last caffeine around midday to early afternoon.
Keep the dose modest and morning-only
Walker's rule of thumb: enjoy coffee, but front-load it and cap it. The dose and the timing make the poison.
Switch the afternoon cup to decaf
Walker notes the health benefits of coffee come largely from its antioxidants, not the caffeine, and decaf keeps most of those. It lets you keep the ritual without the sleep cost.
Don't trust 'I sleep fine on coffee'
Many people fall asleep after an evening coffee but still lose deep sleep quality. Sleeping through is not the same as sleeping well.
Break the caffeine dependency loop
Poor sleep drives more coffee, which degrades the next night, which drives more coffee. Fixing the timing breaks the loop at its source.
- Afternoon coffee drinkers who don't fall asleep well
- People who 'sleep fine' on caffeine but wake unrefreshed
- Anyone stuck in the more-coffee, worse-sleep loop
- Ritual lovers who want to keep the cup without the cost
- Caffeine sensitivity is genetic and varies widely; some people need a much earlier curfew than others.
- Don't quit caffeine abruptly if you drink a lot; taper to avoid headaches.
- This is about sleep quality, not a medical claim; if you have a heart or anxiety condition, follow your physician's caffeine guidance.
- We may earn a commission on products bought through this page; these can also be bought elsewhere.
- July 3, 2026 Protocol published.
New expert protocols and evidence updates, cited to the source. No spam; unsubscribe anytime.
Not medical advice. This page is for education only and is not a substitute for professional medical care. Consult a qualified clinician before changing your health routine.
Independent curation. YourProtocol.ai is an independent platform. This protocol is based on the publicly available work of Matthew Walker and is not created, reviewed, endorsed by, or affiliated with Matthew Walker or UC Berkeley.