Explainer · Sleep
Caffeine and sleep: how much sleep coffee costs, how long the effect lasts and why people differ
A meta-analysis of 24 studies found caffeine cut total sleep by 45 minutes and reduced deep sleep. Its modeling suggests a cup of coffee can still affect sleep nearly nine hours later, though sensitivity varies widely from person to person.
- Across 24 studies, caffeine cut total sleep by about 45 minutes and trimmed deep sleep.
- People took about 9 minutes longer to fall asleep and spent 12 more minutes awake in the night.
- Modeling suggests a cup of coffee can affect sleep when drunk less than about 9 hours before bed.
- A double espresso in the evening also pushed the body clock later by about 40 minutes.
- Most studies were small and in young Western men, and people clear caffeine at very different speeds.
Most people who drink coffee have a private rule about it. None after lunch, none after four, or a confident claim that an espresso after dinner makes no difference at all. The rules are rarely based on anything except habit, and few of the people who hold them have ever measured their own sleep.
Researchers have measured it for them. In a 2017 review, Ian Clark and Hans-Peter Landolt of the University of Zurich opened with the reminder that caffeine is the most widely consumed psychoactive substance in the world, and concluded that it reliably makes sleep shorter and shallower. A 2023 meta-analysis from Australian Catholic University then tried to say by how much, and how many hours of distance from bedtime it takes to avoid the effect. The answers are larger than most private rules allow for.
How does caffeine keep people awake?
Through the day the brain accumulates a chemical called adenosine, and the more of it there is, the sleepier a person feels. Sleep researchers call this build-up sleep pressure. Caffeine works by sitting in the docking sites that adenosine would normally occupy, so the signal goes unread. A review of caffeine’s pharmacology identifies the main brain target of caffeine, the adenosine A2A receptor, as the site of that blockade.
The sleepiness has not gone away. It has been hidden, and the adenosine is still there when the caffeine eventually clears. That is why the drug is good at postponing sleep and poor at replacing it.
How much sleep does caffeine cost?
Carissa Gardiner and colleagues pooled every controlled experiment they could find in which people were given caffeine and their night was then recorded, with 24 studies included in the analysis.
The combined result was clear. Caffeine consumption reduced total sleep time by 45 min. People given caffeine took about nine minutes longer to fall asleep and spent an extra 12 minutes awake after first dropping off. The share of time in bed actually spent asleep fell by seven percentage points.
The structure of sleep changed too. Light sleep grew by about six minutes while deep sleep, the slow-wave stage linked to physical recovery, shrank by about 11. Someone who sleeps a normal number of hours after late caffeine may still be getting a thinner version of the night.
The Zurich review, which also covered population studies, found the same pattern. It reported that caffeine typically prolonged the time needed to fall asleep, reduced total sleep and worsened how people rated their own sleep, with stronger effects at higher doses.
How many hours before bed does caffeine still matter?
Here the 2023 analysis broke new ground, because it modeled sleep loss against both dose and timing. For an ordinary cup of coffee, the estimate was that it should be consumed at least 8.8 h prior to bedtime to avoid cutting total sleep. For someone who goes to bed at 11pm, that puts the last harmless cup at about a quarter past two in the afternoon.
Bigger doses reached further. The authors calculated that a standard serve of pre-workout supplement, which carries about twice the caffeine of a cup of coffee, would need a gap of more than 13 hours. A scoop taken before an evening gym session falls well inside that window.
These figures are outputs of a statistical model built on other people’s experiments, and nobody has tested them head to head. A direct experiment does exist, though. At Henry Ford Hospital in Detroit, Christopher Drake’s team gave volunteers 400 milligrams of caffeine, roughly four cups of coffee, at bedtime, three hours before or six hours before, and monitored them at home. Every timing disturbed sleep. The team concluded that caffeine taken 6 hours before bedtime has important disruptive effects on sleep, and noted in its paper that few systematic studies have investigated the empirical bases of sleep hygiene recommendations.
Caffeine also does something subtler than keeping people up. Kenneth Wright’s laboratory at the University of Colorado Boulder showed that evening caffeine consumption delays the human circadian melatonin rhythm, the daily hormonal signal that tells the body night has arrived. In their experiment, a caffeine dose equivalent to that in a double espresso 3 hours before habitual bedtime moved that signal about 40 minutes later. The body clock itself was running late.
Does regular caffeine use blunt the effect?
Daily drinkers often feel they have become immune. A Swiss trial suggests the truth is mixed. Researchers at the University of Basel gave 20 men who were already heavy caffeine users either caffeine capsules three times a day or a placebo for ten days, then recorded their sleep.
Total sleep did not differ, which fits the idea that the body adapts. But the dreaming stage known as REM sleep arrived late: REM sleep latency was longer after daily caffeine intake. The mornings were worse too. On caffeine, volunteers reported more difficulties with awakening after sleep and feeling more tired on waking. The authors suggest this groggy start may be part of what sends people back to the kettle.
Why caffeine hits some people harder
The friend who sleeps soundly after an evening espresso may be telling the truth. Caffeine is cleared almost entirely by a single liver enzyme, which metabolizes 95% of the caffeine ingested, and how fast that enzyme works is partly inherited.
It is also changeable. The pharmacology review lists how caffeine handling is affected by many factors such as age, sex and hormones, liver disease, obesity, smoking, and diet. The same review notes that caffeine also interacts with many medications. Age matters at the receiving end as well, and the Zurich reviewers noted that the sleep of older adults may be more sensitive to caffeine.
What food safety bodies say about caffeine
Official limits on caffeine are about general safety and say little about sleep. The European Food Safety Authority reviewed the evidence in 2015 and concluded that habitual caffeine consumption up to 400 mg per day does not give rise to safety concerns for non-pregnant adults. For a single sitting, it found that single doses of caffeine up to 200 mg raise no safety concern. For pregnant women the daily figure it gives is 200 milligrams.
Those numbers describe what a healthy body tolerates without harm. An intake well inside them can still cost sleep if it comes late in the day. How much caffeine suits someone who is pregnant or who has a heart rhythm or anxiety condition depends on their circumstances, which their doctor assesses.
Gaps in the caffeine and sleep research
The experiments mostly used caffeine capsules in sleep laboratories, on small groups, for a night or two. That isolates the drug cleanly and loses a good deal of real life, where caffeine arrives in coffee, tea, cola and chocolate across a whole day. It also leaves out the evening’s other common drug: alcohol before bed changes sleep in its own way.
The volunteers were not a cross-section of coffee drinkers either. As the Zurich reviewers put it, most studies were conducted in male adults of Western countries. Women, older adults and people with insomnia are thin on the ground.
And nobody has shown what years of slightly shorter, shallower sleep from caffeine do to health. The research measures nights. It has not followed lives.
Caffeine’s cost to sleep is real, measurable and longer-lasting than most drinkers assume, and its size differs a great deal from one person to the next.
People also ask
How much sleep does caffeine take away?
In a meta-analysis of 24 studies, caffeine reduced total sleep time by 45 minutes and sleep efficiency, meaning the share of time in bed spent asleep, by 7%. Time to fall asleep rose by 9 minutes and time awake after first falling asleep by 12 minutes. Deep sleep fell by 11.4 minutes.
How long before bed does caffeine still affect sleep?
The same analysis estimated that a 250 mL cup of coffee containing 107 mg of caffeine would need to be drunk at least 8.8 hours before bedtime to avoid a reduction in total sleep time, and a pre-workout supplement containing 217.5 mg at least 13.2 hours before. A separate trial found 400 mg taken 6 hours before bed still disrupted sleep.
Does caffeine shift the body clock?
In a controlled study, a dose equivalent to a double espresso taken 3 hours before habitual bedtime delayed the evening rise in melatonin, the hormone that signals night to the body, by about 40 minutes.
Why does caffeine affect some people more than others?
Caffeine is broken down mainly by one liver enzyme, which handles about 95% of the caffeine ingested and whose activity varies with genes, age, sex and hormones, liver disease, obesity, smoking and diet. Genetic differences in the brain receptor caffeine acts on also contribute.
How much caffeine do food safety bodies consider safe?
The European Food Safety Authority concluded that habitual intake of up to 400 mg a day does not raise safety concerns for non-pregnant adults, and up to 200 mg a day for pregnant women. Those figures concern general safety, not sleep. This is general information rather than medical advice.
References
- Gardiner, C., Weakley, J., Burke, L. M., et al. The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 2023.
- 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.
- Clark, I., Landolt, H. P. Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 2017.
- Weibel, J., Lin, Y.-S., Landolt, H.-P., et al. Regular Caffeine Intake Delays REM Sleep Promotion and Attenuates Sleep Quality in Healthy Men. Journal of Biological Rhythms, 2021.
- EFSA Panel on Dietetic Products, Nutrition and Allergies. Scientific Opinion on the safety of caffeine. EFSA Journal, 2015.
- Nehlig, A. Interindividual Differences in Caffeine Metabolism and Factors Driving Caffeine Consumption. Pharmacological Reviews, 2018.
- Burke, T. M., Markwald, R. R., McHill, A. W., et al. Effects of caffeine on the human circadian clock in vivo and in vitro. Science Translational Medicine, 2015.