Sleep · Habits · 4 min read
Caffeine and sleep: how early is early enough?
A 2023 meta-analysis of 24 studies put numbers on what an afternoon coffee can do to your night.
Last coffee at 4 pm, and you figure that's safe? A 2023 systematic review and meta-analysis in Sleep Medicine Reviews suggests the line may sit earlier than most people think. The authors pooled 24 controlled studies in healthy adults aged 18 to 65, comparing a night after caffeine with a night without it.
What the studies found
After caffeine, people slept 45 minutes less on average. They took 9 minutes longer to fall asleep, spent 12 more minutes awake during the night, and their sleep efficiency (the share of time in bed actually spent asleep) fell by about 7 percentage points. Deep sleep shrank by 11.4 minutes. Light sleep grew by 6.1 minutes.
For total sleep, both the dose and the clock mattered. The bigger the dose and the closer it was to bedtime, the more sleep people lost.
The cutoff times
The authors used their model to estimate how long before bed caffeine stops causing a statistically significant drop in total sleep. For a cup of coffee (107 mg of caffeine per 250 mL), that was at least 8.8 hours. With a 10 pm bedtime, that means finishing it before 1:12 pm.
A bigger dose pushes the line earlier. For 217.5 mg, the paper's example of a typical pre-workout supplement serving, it was 13.2 hours. For a cup of black tea (47 mg per 250 mL), the model found no clear cutoff at all.
What you can try
- Count back 8.8 hours from your usual bedtime and have your last coffee before then. That figure assumes a typical cup with about 107 mg of caffeine.
- If you want something warm in the afternoon, a cup of black tea is an option. With a 10 pm bedtime, one cup didn't significantly cut total sleep in this model, but that's an average for a single cup, and your own response may differ.
- Check how much caffeine your usual drink really has. The 107 mg figure is the paper's typical cup, and yours may be different.
- Run it for two weeks and note the time of your last caffeine next to how you slept. A simple sleep diary works. The authors suggest using their cutoffs as a starting point and adjusting to how your own sleep responds.
What this study can't tell you
Everyone in these studies was a healthy adult, mostly low to moderate caffeine drinkers. The authors say the results may not carry over to teens, adults over 65, people who never have caffeine, or heavy daily drinkers. The results may not apply to people with insomnia either.
Daily drinkers may adapt. Two studies that gave caffeine for 9 and 14 days in a row found no significant harm to sleep, though the authors note tolerance hasn't been clearly shown in humans.
The cutoffs come from statistical significance, so they don't mark the moment you'd feel a difference. The model also used only the last dose of the day. If you spread caffeine across several drinks, the authors say it may understate how much dose and timing matter.
The evidence base is small, too. The total-sleep estimate pooled 37 comparisons from 20 studies, with 340 participant entries in total (the same person could be counted in more than one comparison), and 5 of the 24 studies were judged at high risk of bias. How long caffeine stays in your body also varies a lot from person to person, so your own line may sit earlier or later.
References
- SMR 2023Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. doi:10.1016/j.smrv.2023.101764
doi.org/10.1016/j.smrv.2023.101764
This guide is for education only and isn't medical advice. Results vary. If sleep problems last, or come with other symptoms, talk to a doctor or a trained CBT-I provider.
