Does caffeine affect deep sleep?
On this page
Yes. Across 24 studies, caffeine cut deep sleep by about 11 minutes a night and total sleep by about 45. In a 2025 trial, 400 mg taken 4 hours before bed cut about 30 minutes of deep sleep, and taken 12 hours before it still cut about 21.
Most people judge a coffee by whether they can fall asleep. Across those 24 studies, caffeine made falling asleep only about 9 minutes slower. The deep sleep goes missing after you’re already asleep, so there’s nothing to notice at the time. You find out the next day, if at all.
We think deep sleep is the cost of caffeine you don’t feel. If you fall asleep fine but wake up tired, move your last cup earlier for two weeks before you blame anything else.
What caffeine does to a night
A 2023 review pulled together 24 studies where people had caffeine or a placebo before sleep. On average, caffeine changed the night like this:
| Measure | Change with caffeine |
|---|---|
| Total sleep | about 45 minutes less |
| Sleep efficiency, the share of time in bed spent asleep | about 7% lower |
| Time to fall asleep | about 9 minutes longer |
| Time awake after falling asleep | about 12 minutes more |
| Light sleep | about 6 minutes more |
| Deep sleep | about 11 minutes less |
The dose decides how much
The 2025 trial gave 23 healthy young men 100 mg or 400 mg at 12, 8 or 4 hours before bed, on separate nights, and measured their sleep at home with a forehead monitor.
| Dose and timing | Deep sleep |
|---|---|
| 100 mg at 12, 8 or 4 hours | nothing measurable |
| 400 mg at 12 hours | about 21 minutes less |
| 400 mg at 8 hours | about 15 minutes less, and about 29 more minutes awake |
| 400 mg at 4 hours | about 30 minutes less, and about 51 minutes less sleep in all |
A small coffee in the afternoon looks safe in these numbers. A big dose costs deep sleep even 12 hours before bed, which for an 11pm bedtime is 11am.
Why it happens
The longer you’re awake, the more adenosine builds up in your brain, and adenosine is one of the main signals that makes you sleepy. Caffeine works by blocking the receptors adenosine uses. Whatever caffeine is still in you at night keeps blocking some of them, and the sleep you get is lighter and more broken.
Can you feel it?
Mostly not. In the 2025 trial, the men only rated their sleep worse after 400 mg at 4 hours, and just 22% could guess both the dose and the timing they’d had. In a 2013 study, 400 mg 6 hours before bed cut more than an hour of measured sleep, but people’s own diaries put it at 41 minutes. The myth I fall asleep fine, so coffee isn’t hurting my sleep has the whole story.
Test it on yourself
If you track your sleep with a ring or a watch, compare your deep sleep and time awake over a week with your usual last cup and a week with it moved earlier. Without a tracker, write down each morning how rested you feel. The cutoff clock shows what your current day leaves at bedtime. HRV is a different story, and hrv.guide covers whether caffeine lowers HRV.
The cup beats the clock
4 sources
- Gardiner C and others, The effect of caffeine on subsequent sleep: a systematic review and meta-analysis, Sleep Medicine Reviews, 2023doi.org
- Gardiner C and others, Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial, Sleep, 2025doi.org
- Drake C, Roehrs T, Shambroom J, Roth T, Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed, Journal of Clinical Sleep Medicine, 2013pmc.ncbi.nlm.nih.gov
- Reichert CF, Deboer T, Landolt HP, Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives, Journal of Sleep Research, 2022doi.org