Quick Summary
Caffeine reduces sleep duration. A systematic review of 24 studies found that caffeine reduced total sleep time by about 45 minutes, increased the time taken to fall asleep by 9 minutes, and increased wakefulness during the night by 12 minutes.
Caffeine makes sleep lighter and less efficient. Caffeine reduced sleep efficiency by 7%, increased light Stage 1 sleep, and reduced deep sleep.
Both the amount and timing of caffeine matter. Larger doses and caffeine consumed closer to bedtime were associated with greater reductions in total sleep time.
A typical coffee may affect sleep for many hours. For a coffee containing about 107 mg of caffeine, researchers estimated that stopping at least 8.8 hours before bedtime would avoid a reduction in total sleep time. app.
Caffeine And Sleep
Most of us know that drinking coffee late at night probably isn’t a great idea if we want to sleep well. But the more interesting question is what happens when you consume caffeine earlier in the day. Could the coffee you had after lunch still be affecting your sleep that night? And if you fall asleep without much trouble, does that mean caffeine hasn’t affected your sleep at all?
It has been known for a long time that caffeine can interfere with sleep, and an earlier systematic review, a study that gathers and assesses all the research on a question, confirmed the link (Clark & Landolt, 2017). What has been less clear is how much caffeine changes sleep, and whether the amount you consume and when you consume it change the answer.
Gardiner and colleagues (2023) tried to clarify this by combining the results of 24 controlled studies in healthy adults. They looked at how caffeine affected sleep duration, how long people took to fall asleep, nighttime wakefulness, and sleep stages, as well as whether dose and timing made a difference.
So, what did they find?
What Affect Does Caffeine Have On Sleep?
Caffeine reduces total sleep time and makes it harder to fall asleep and stay asleep. Across the 24 studies, caffeine reduced total sleep time by an average of 45.3 minutes compared with nights without caffeine (Gardiner et al., 2023). Caffeine also:
increased the time taken to fall asleep by 9.1 minutes
increased time awake during the night by 11.8 minutes
reduced sleep efficiency by 7%
Sleep efficiency is simply the proportion of time in bed that you actually spend asleep. A lower sleep efficiency means more of your time in bed is spent awake.
Taken together, these changes suggest that caffeine can affect both how much you sleep and how unbroken that sleep is, not just how quickly you fall asleep.
But does caffeine also change how deeply you sleep?
Does Caffeine Reduce Deep Sleep?
Caffeine reduces deep sleep and increases the amount of lighter Stage 1 sleep. Gardiner et al. (2023) found that caffeine increased Stage 1 sleep by about 6.1 minutes and reduced deep sleep by about 11.4 minutes.
Stage 1, or N1, is the lightest stage of sleep, while N3 is deep sleep, when brain waves are at their slowest. The review did not find a clear overall effect on Stage 2 sleep or REM sleep, the stage when most vivid dreaming happens.
The reduction in deep sleep was relatively modest. Together with the increase in light sleep, however, the drop in deep sleep shows that caffeine can alter sleep architecture, the pattern of sleep stages across the night, not just the total amount of sleep you get.
So, why does caffeine have this effect in the first place?
Why Does Caffeine Keep You Awake?
Caffeine keeps you awake by blocking adenosine receptors and muting the brain’s normal sleep-pressure signal. Adenosine is one of the chemicals involved in building sleep pressure across the day. You can think of adenosine like a sleep-pressure gauge: the longer you’re awake, the more the pressure builds and the stronger your drive for sleep becomes.
Caffeine blocks adenosine receptors, the docking sites adenosine uses to pass on its message, reducing some of the signals that normally tell the brain it is becoming sleepy (Fredholm, 1995). Caffeine does not remove your need for sleep; it temporarily makes that need less noticeable (Landolt, 2008).
This blocking action helps explain why caffeine can delay falling asleep, and it may also be part of why sleep becomes lighter.
But how long can this effect last?
How Long Does Caffeine Affect Your Sleep?
Caffeine can affect sleep for many hours because the body removes it relatively slowly. The half-life of caffeine, meaning the time it takes for the body to clear half of a dose, varies considerably between people. In healthy adults, it can range from about two to ten hours (Blanchard & Sawers, 1983).
For example, if someone consumed 200 mg of caffeine and had a five-hour half-life, about 100 mg would still remain after five hours and about 50 mg after ten hours.
How quickly the body breaks down caffeine varies with factors such as genetics, age, medications and smoking (Nehlig, 2018). This variation helps explain why the same afternoon coffee may affect two people differently.
So, if caffeine can remain active for that long, when should you stop consuming it?
How Many Hours Before Bed Should You Stop Caffeine?
For a typical coffee containing about 107 mg of caffeine, stopping around nine hours before bedtime is a reasonable starting point if you want to minimize its effect on sleep duration (Gardiner et al., 2023).
| Caffeine source | Approximate caffeine | Estimated cut-off before a 10 p.m. bedtime |
|---|---|---|
| Black tea | 47 mg | No clear cut-off identified |
| Coffee | 107 mg | 1:12 p.m. |
| Pre-workout supplement | 217.5 mg | 8:50 a.m. |
These cut-offs are averages across groups of people, so they aren’t fixed rules for everyone. The practical message is that higher caffeine doses generally need an earlier cut-off, and people who are more sensitive to caffeine may need to stop earlier still.
The black tea result also needs some context. At a dose of 47 mg, the researchers could not identify a clear cut-off at which tea significantly reduced total sleep time. This result does not mean tea cannot affect sleep in someone who is particularly sensitive to caffeine.
If sleep is a problem, moving caffeine earlier in the day is a simple way to test whether it is contributing.
But what if you can drink coffee at night and still fall asleep?
Can You Drink Coffee at Night and Still Sleep?
Some people can drink coffee late in the day and still fall asleep, but falling asleep does not necessarily mean caffeine has had no effect on their sleep. Caffeine may still shorten total sleep time, increase wakefulness during the night, or reduce sleep efficiency (Gardiner et al., 2023). In other words, there is a difference between being able to fall asleep and sleeping exactly as you would without caffeine.
Your own sense of how you slept may not pick up these changes either. In one study, healthy adults took 400 mg of caffeine, roughly four cups of coffee, at bedtime, three hours before bed or six hours before bed (Drake et al., 2013). When the caffeine was taken six hours before bed, participants didn’t report any disturbance to their sleep. Overnight sleep recordings told a different story: the participants still lost more than an hour of sleep.
Brief awakenings during the night seem to go unnoticed as well. In the studies that asked people about it, caffeine increased measured wakefulness during the night, yet participants didn’t report waking more than usual (Gardiner et al., 2023). So waking up feeling as though you slept fine isn’t necessarily proof that the afternoon coffee had no effect.
Overall, if you’re unsure whether caffeine is affecting your sleep, the most useful test is often to reduce the dose or move your last caffeine earlier and see whether your sleep changes.
And if it doesn’t?
A Clinical Perspective: Is Orthosomnia Really Something New?
From our perspective one of the most surprising findings was the exclusion of sleep tracking from the final orthosomnia scale. Tracking sleep featured prominently in the original case descriptions (Baron et al., 2017), and Kelly Baron is also a coauthor of this new study. However, the decision makes sense. Sleep tracking may simply be one expression of an excessive preoccupation with sleep, rather than a defining feature. Someone can become just as fixated on achieving perfect sleep without using a tracking device.
The bigger question from our clinical perspective is whether orthosomnia represents a distinct phenomenon or an earlier expression of psychological characteristics we already recognize in chronic insomnia, such as perfectionism, rigidity and excessive sleep effort. These tendencies can exist without insomnia, but for some people, they may contribute to its eventual development or persistence.
In clinical practice, these characteristics can make cognitive behavioral therapy for insomnia (CBT-I) considerably more complex than its structured treatment protocols might suggest. The challenge isn’t simply teaching someone what to do, but understanding how their personality, beliefs and need for control affect the way they approach treatment. Many of these processes are already captured by established concepts such as sleep effort, measured by the Glasgow Sleep Effort Scale (Broomfield & Espie, 2005).
This is also why, at The Better Sleep Clinic, we generally avoid routine sleep-hygiene advice unless a particular behavior is clearly interfering with someone’s sleep. People often begin treatment believing that trying harder will improve their insomnia. Additional advice can easily be absorbed into that mindset, reinforcing the monitoring, rigidity and attempts at control that may be maintaining their difficulties.
For someone developing clinically significant insomnia, we’d also be cautious about relying on general sleep advice from popular commentators such as Matthew Walker or Andrew Huberman. Their recommendations may be helpful for people without a sleep disorder, but they lack the individualized clinical nuance needed when someone is struggling with insomnia. Advice that seems perfectly sensible can become counterproductive when applied through an existing pattern of perfectionism and excessive sleep effort.
In fact, sometimes treating insomnia means helping someone do less to control their sleep, rather than giving them more things to do. Perhaps the real value of orthosomnia is in helping us recognize these patterns before they develop into more significant sleeping difficulties. So what should someone do if these patterns sound familiar?
Where To From Here?
If changing your caffeine intake improves your sleep, that tells you caffeine was probably one piece of the puzzle. But if you’re still struggling to fall asleep, stay asleep, or get enough sleep, there are likely other factors involved.
A Behavioral Sleep Medicine assessment looks at the biological, behavioral and psychological processes affecting your sleep and helps identify what is maintaining the problem. Treatment can then target those specific factors rather than relying on general sleep advice.
Frequently Asked Questions About Caffeine And Sleep
Q1: How long before bed should I stop drinking coffee?
A1: Stopping coffee at least nine hours before bed is a reasonable starting point. A 2023 review of 24 studies estimated that a typical cup of coffee, containing about 107 mg of caffeine, needs to be finished at least 8.8 hours before bedtime to avoid reducing total sleep time (Gardiner et al., 2023). For a 10 p.m. bedtime, that means having your last coffee by about 1 p.m
Q2: How much does caffeine reduce sleep?
A2: Caffeine reduces total sleep time by about 45 minutes on average. A review of 24 controlled studies in healthy adults also found that caffeine added about 9 minutes to the time taken to fall asleep and about 12 minutes of wakefulness during the night (Gardiner et al., 2023).
Q3: Does caffeine affect deep sleep?
A3: Caffeine reduces deep sleep, though only modestly. Across the studies in a 2023 review, caffeine cut deep sleep by about 11 minutes and added about 6 minutes of light Stage 1 sleep (Gardiner et al., 2023). The overall result is lighter sleep.
Q4: Can caffeine affect your sleep even if you fall asleep easily?
A4: Caffeine can disrupt sleep even when you fall asleep without trouble. In one study, adults who took 400 mg of caffeine six hours before bed noticed no change in their sleep, yet overnight recordings showed the participants lost more than an hour of sleep (Drake et al., 2013). Caffeine also increases brief awakenings during the night that people tend not to notice (Gardiner et al., 2023).
Q5: How long does caffeine stay in your system?
A5: Caffeine stays in your system for many hours, because its half-life, the time the body takes to clear half a dose, ranges from about two to ten hours in healthy adults (Blanchard & Sawers, 1983). How quickly someone clears caffeine depends on factors such as genetics, age, medications and smoking (Nehlig, 2018).
Q6: Is tea better than coffee for sleep?
A6: A cup of black tea appears less likely than coffee to shorten sleep. Black tea contains about 47 mg of caffeine, less than half the amount in a typical coffee. The researchers found no clear cut-off time before bed at which one cup of black tea significantly reduced total sleep time (Gardiner et al., 2023). People who are particularly sensitive to caffeine may still notice an effect.
Q7: Why does caffeine keep you awake?
A7: Caffeine keeps you awake by blocking the receptors for adenosine, a brain chemical that builds sleep pressure across the day (Fredholm, 1995). Caffeine doesn’t remove the need for sleep; it makes that need less noticeable for a while (Landolt, 2008).
References
Blanchard, J., & Sawers, S. J. A. (1983). The absolute bioavailability of caffeine in man. European Journal of Clinical Pharmacology, 24(1), 93-98.
Clark, I., & Landolt, H. P. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31, 70-78.
Drake, C., Roehrs, T., Shambroom, J., & Roth, T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195-1200.
Fredholm, B. B. (1995). Adenosine, adenosine receptors and the actions of caffeine. Pharmacology & Toxicology, 76(2), 93-101.
Gardiner, C., Weakley, J., Burke, L. M., Roach, G. D., Sargent, C., Maniar, N., Townshend, A., & Halson, S. L. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764.
Landolt, H.-P. (2008). Sleep homeostasis: A role for adenosine in humans? Biochemical Pharmacology, 75(11), 2070-2079.
Nehlig, A. (2018). Interindividual differences in caffeine metabolism and factors driving caffeine consumption. Pharmacological Reviews, 70(2), 384-411.
Written By Dan Ford, DBSM, Sleep Psychologist
Published By The Better Sleep Clinic

