Does the afternoon coffee reach into your night?
A single cup at seven in the morning still showed in that night's sleep. Yet in people who take caffeine every day, a dose at three in the afternoon changed nothing measurable. What studies show about caffeine and sleep, and why the answer depends on more than the clock.
By Dr. Aaron Taudt ·
In short
- It can: a one-off dose of caffeine shortened sleep on average, and more so the larger it was and the closer to bedtime it came.
- With daily caffeine into the afternoon, a small trial found no clear difference. That doesn't prove the cup harmless.
- How fast you break caffeine down, how sensitive you are and how much is in the cup all vary.
- The time of the last cup belongs next to the night, both measured and rated. If you have slept badly for weeks, see a doctor first.
At ten past seven one morning in a sleep laboratory in Zurich, nine healthy men took 200 mg of caffeine, about as much as two large mugs of filter coffee. That night they went to bed at eleven, almost sixteen hours later, and slept less than after a placebo, a dummy without caffeine.
If a cup at breakfast reaches into the night, what about the cup at three in the afternoon? The answer the studies give is less simple than "the later, the worse". It depends on the clock, on the dose, and on something most trials leave out: whether the caffeine is a one-off or part of a daily habit.
One-off or daily: two kinds of caffeine
A trial that wants to know what caffeine does to sleep usually gives it once: on a test evening, a dose of caffeine; on another, a placebo; then it compares the two nights. That is the cleanest way to measure a one-off dose.
Most coffee is not drunk that way. Someone who has a cup every morning and another every afternoon has had caffeine in the body every day for years, and every night is a few hours without it. Whether the body responds to a daily cup as it does to a one-off cup is a separate question, and it needs a different trial. Both kinds appear below, and the difference between them turns out to matter.
What the research shows
One cup in the morning
In the Zurich study, the caffeine came at 7:10 and the lights went out at 23:00. The researchers measured caffeine in the men's saliva: an hour after the dose it stood at 17 micromoles per litre, at bedtime at 3, less than a fifth of its peak. Even so, compared with the placebo, the men slept less in total and spent a larger share of their time in bed awake (Landolt 1995; placebo-controlled trial, grade B). This was a one-off dose, in nine men.
On average: less sleep, and the later, the more
An Australian team pooled 24 studies that gave caffeine and then recorded the night's sleep (Gardiner 2023; meta-analysis, grade A). On average, caffeine shortened sleep by 45 minutes. Falling asleep took 9 minutes longer, and people lay awake 12 minutes more during the night. Deep sleep, the stage with slow, large brain waves, was 11 minutes shorter.
From the pooled studies the authors also estimated how far before bed caffeine has to come so that it no longer shortens sleep. For a 250 ml mug of coffee, which they count at 107 mg, it was at least 8.8 hours. Going to bed at eleven, that means before about two in the afternoon. For a typical serving of a pre-workout supplement, at 217.5 mg, it was 13.2 hours.
An earlier review of trials and population studies came to the same picture: the effect grew with the dose and the closer the caffeine came to bedtime, older adults seemed more sensitive than younger ones, and young people too differed widely from one another (Clark 2017; systematic review, grade A).
One of these trials appeared in the article on memory. Even 6 hours before bed, 400 mg of caffeine cost more than an hour of sleep as measured by a headband monitor. In their own notes, the participants rated their sleep after that dose 41 minutes shorter, a difference small enough to be chance (Drake 2013; randomised placebo-controlled trial, grade B). So there are two ways to describe a night, measured and rated, and they can disagree.
Every day until three in the afternoon
All of these trials measured one-off doses. A sleep research team in Basel set out to measure the daily kind (Weibel 2021; randomised double-blind crossover trial, grade B).
Twenty young men who usually took caffeine every day swallowed a capsule three times a day, for ten days at a time: 45 minutes, about four and a quarter hours and about eight hours after waking up. Someone who gets up at seven took the last one just before three in the afternoon. In one round every capsule held 150 mg of caffeine, in another a placebo, in a third caffeine that switched to placebo for the last two days. Neither the men nor the researchers knew which round was which. Coffee, tea, cola and chocolate were off the menu throughout, which the researchers checked in sweat samples.
On the ninth day each man slept in the laboratory at his usual bedtime, eight hours after the last capsule. That is less than the 8.8 hours from the pooled studies, and 150 mg is more than their mug of coffee.
In the authors' word, the result was "unexpected": nothing differed. After daily caffeine the men slept 7 hours 31 minutes, after placebo 7 hours 21 minutes, a difference that could easily be chance. Falling asleep took no longer, the night held as much deep sleep, and in the morning the men rated their sleep no differently. Measured and rated agreed this time, on no difference. Only one detail of the brain waves differed, which the authors think may be the first sign of the hours without caffeine during the night.
How does that fit with the morning cup in Zurich? The Basel authors cite that study and write that their result does not rule out that morning caffeine disturbs the night when several days without caffeine came before. Their explanation for the gap between the two kinds of trial: how long someone has already been taking caffeine. One author of the Basel study also led the Zurich study, so this is not a rival group contradicting it but the same research line taking the next step.
In everyday life
Two studies looked at ordinary days, with no capsules and no laboratory.
In Jackson, Mississippi, 785 adults with an average age of 64 wore a wrist sensor that estimates sleep from movement, for about a week. In a daily sleep diary they noted whether they had had caffeine, alcohol or nicotine in the last four hours before bed. Across 5,164 nights, evenings with alcohol or nicotine went with a more broken night. Evenings with caffeine went with nothing measurable: not with shorter sleep, not with more time awake (Spadola 2019; cohort compared night by night, grade C). Alcohol and sleep get an article of their own.
In a second US study, 377 adults aged 35 to 85 kept a sleep diary for a week, with the same kind of wrist sensor. On days with more caffeine than usual, the following night was not shorter (Hu 2020; diary study with sensor, grade C).
What this does not show
That the afternoon cup is harmless. The daily trial had 20 young men who slept well, and 10 of its 60 recorded nights were lost to technical problems. A study that small can show that there was no large difference, not that there was none. The authors name their own limits: middle-aged people are more sensitive to caffeine at night, and they left women out, partly because the contraceptive pill changes how quickly caffeine is broken down.
Who drinks coffee in the evening. Someone who knows that coffee keeps them awake probably does not drink it after dinner, and so does not appear among the evening coffee drinkers in the everyday studies. The Basel authors name the same problem for their own trial: people who are sensitive to caffeine are more likely to cut back, so a study of daily coffee drinkers leaves them out.
How much, and when. The study in Jackson recorded only whether there was caffeine in the last four hours, not how much. The second study recorded the amount per day, not the time. Neither asked when the last cup was.
Cups. In Basel and in the trial with 400 mg, the caffeine came in capsules with an exact dose. A cup of coffee is not an exact dose (see below).
Women, and people outside Europe and North America. The review found that most studies were done with men in Western countries.
Why the average says little about you
Two people can drink the same cup at three and carry it into the night differently, for two separate reasons.
The first is breakdown: how long the caffeine stays in the body. Almost all of it, 95%, is broken down by one enzyme in the liver, and how fast that enzyme works varies with genes, age, sex and hormones, smoking, liver disease and some medicines (Nehlig 2018; review). For one person, a good part of the afternoon cup may still be there at bedtime, while another has broken most of it down.
The second is sensitivity: how strongly the same amount acts. In a Zurich study, people who described themselves as sensitive to caffeine slept worse the more caffeine they usually had. In people who called themselves insensitive, there was no such link. The two groups also differed in a variant of the gene for a receptor in the brain that caffeine blocks (Rétey 2007; genetic study with sleep measurement, grade C). Their own impression went with something that could be measured.
And the cup itself is not a fixed amount. When researchers in the US bought the same coffee at the same shop on six days in a row, it held between 259 and 564 mg of caffeine (McCusker 2003; laboratory analysis). The same order can carry twice as much caffeine on one day as on another.
So the average from the pooled studies tells you what caffeine does to a group of people on a test night. It does not tell you how quickly you break it down, how sensitive you are, or what was in your cup.
What this means for your afternoon cup
Whether the cup at three costs you sleep is a question the average cannot answer. The trials that found a loss gave caffeine as a one-off dose. The trial that gave it daily, until three in the afternoon, found none, and neither did the studies of ordinary days. Between these results lie the things that differ from person to person: how quickly you break caffeine down, how sensitive you are, and what was in the cup.
For a diary this means: the time of the last caffeine belongs next to the night that follows, and the night both measured and rated, because the trial with 400 mg showed that the two can disagree. How a ring or watch gets its sleep data next to a food diary has a page of its own. And a bad night after the first cup following a break says more about a one-off dose than about your daily cup: the Basel authors say expressly that their result does not cover caffeine after days without it.
If you have slept badly for weeks, see a doctor first. Breathing pauses during sleep and some other conditions break up the night as well, and no food diary shows them.