How Late Is Too Late for Coffee? It Depends on the Size of the Cup.
A big dose six hours before bed cost people an hour of measured sleep, and they barely noticed. An ordinary cup is a different story.
Editorial · Every study described here is linked in the text and listed under Sources.
Most people know caffeine and sleep don't mix. The useful question is how late is too late, and the answer most often quoted, six hours, comes from a 2013 study that is worth reading closely.
The six-hour study
Researchers gave 12 healthy adults, six women and six men aged 19 to 48, a 400 mg caffeine pill or a dummy pill on four separate nights: at bedtime, three hours before, six hours before, or not at all. Neither they nor the researchers knew which pill was real. They slept at home wearing a headband that recorded brain activity, a device that had closely matched lab sleep recordings in earlier testing, and they kept a sleep diary each morning.
On the placebo night, they slept 7.7 hours. With caffeine six hours before bed, they slept 6.5, a loss of about 70 minutes, and their deep sleep shrank too. Taking it three hours before bed, or at bedtime, did about as much damage. But in their diaries, the six-hour night looked only about 40 minutes shorter, a difference too small to be statistically significant. The authors' advice was to avoid substantial caffeine for at least six hours before bed.
They lost about 70 minutes of measured sleep. Their diaries recorded about 40.
Two details matter. The dose was large: 400 mg is the amount the US Food and Drug Administration cites as a whole day's intake not generally linked to negative effects in most adults, roughly two to three 12-ounce cups of coffee, taken here in a single pill. And the study was funded by Zeo, the company that made the headband.
What 24 studies add
A 2023 review pooled 24 studies of healthy adults. On average, caffeine cut total sleep by about 45 minutes, lowered sleep efficiency by about 7 per cent, added about 9 minutes to the time it took to fall asleep and trimmed about 11 minutes of deep sleep. Both dose and timing mattered: each extra hour between caffeine and bedtime saved about three minutes of sleep, and each extra 100 mg cost about 20.
From those patterns the authors estimated cut-off times. For a typical 250 ml coffee, which they put at about 107 mg, the effect stopped being statistically detectable when it was drunk at least 8.8 hours before bed. For a pre-workout supplement of about 218 mg, it was 13.2 hours. Black tea, at about 47 mg, needed no cut-off. With a 10pm bedtime, that puts the last coffee at about 1pm.
Read those cut-offs carefully. They mark where the effect becomes too small for the data to detect, not where it disappears, and they are averages across people whose sensitivity to caffeine varies widely.
The newest trial complicates the picture
In a 2025 trial, the same research group gave 23 young men 100 mg or 400 mg of caffeine 12, 8 or 4 hours before bed. The 100 mg dose, about one regular coffee, made no significant difference to their sleep at any of those times, even four hours before bed. The 400 mg dose cut about 51 minutes of sleep when taken four hours before bed, and smaller, statistically uncertain amounts at 8 and 12 hours, while still reducing deep sleep.
What these studies can't tell you
All three are small or pool small studies, and none measured months of daily coffee drinking, when tolerance may build. The 2013 study tested one large dose; the 2025 trial included only young men. How quickly your body clears caffeine depends partly on your genes, so your own cut-off could be hours earlier or later than any average.
What to do with it
If you sleep badly and drink caffeine, look at the dose before you look at the clock. Big afternoon doses, such as several coffees, large energy drinks or pre-workout supplements, are the strongest candidates to move to the morning. A single ordinary cup in the early afternoon is a much weaker suspect. And remember the 2013 study's warning: you may not notice the sleep you're losing.
Sources
- 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. 2013;9(11):1195–1200. doi.org/10.5664/jcsm.3170 · Free full text
- Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews. 2023;69:101764. doi.org/10.1016/j.smrv.2023.101764 · Free full text
- Gardiner CL, Weakley J, Burke LM, et al. Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep. 2025;48(4):zsae230. doi.org/10.1093/sleep/zsae230 · Free full text
- US Food and Drug Administration. Spilling the beans: how much caffeine is too much? fda.gov