Article

Caffeine and sleep: when to have your last coffee before bed

Caffeine and sleep don't mix — a study by Drake et al. shows that caffeine 6 hours before bedtime reduces sleep by more than an hour. Find out when to have your last coffee.

Kofeiin ja uni — Fitness.ee

In short:

  • Caffeine has a half-life of 5–6 hours, so half of the caffeine from a coffee drunk at 15 is still in your body at 21.
  • Drake et al. (2013) showed that caffeine taken even 6 hours before bedtime objectively reduces sleep duration by more than an hour.
  • For most people, the last coffee should be no later than 14–15 if you plan to go to bed at 22–23.
  • Caffeine does not replace sleep — it masks the fatigue signal, but the deep recovery your brain needs still doesn’t happen.

Caffeine and sleep are two opposing biological forces, and both affect how well every athlete and active person recovers. Many people know that a late coffee ruins sleep, but few know exactly how early they should stop consuming caffeine. Research gives a surprisingly clear answer to this question.

How do caffeine and sleep interact?

In the brain, caffeine acts as an adenosine antagonist — it binds the same receptors through which the natural fatigue signal builds up. The longer you stay awake, the more adenosine accumulates, creating an ever stronger need for sleep. Caffeine blocks this signal, which is why you feel more alert (Roehrs & Roth, 2008).

The problem is that caffeine doesn’t remove tiredness — it postpones it. When the effect of caffeine wears off, adenosine returns at full strength. Sleep is essential for the brain: during deep sleep, memories are consolidated, growth hormone is released and muscle tissue recovers. For a more detailed overview of how caffeine works, see our main article on caffeine.

How long does caffeine stay in the body?

Caffeine’s half-life averages 5–6 hours, but it can vary between 3 and 9 hours depending on genetics (the CYP1A2 gene), age and certain medications (Clark & Landolt, 2017). In practice, this means the following:

  • A coffee at 12 — half of the caffeine is still active until 17–18.
  • A coffee at 15 — half of the caffeine is still active until 20–21.
  • A coffee at 18 — half of the caffeine is still active until 23, by which time most people are already asleep.

A standard cup of brewed coffee (200–250 ml) typically contains 80–120 mg of caffeine; energy drinks and concentrated pre-workout drinks can contain significantly more. If you use caffeine together with other supplements, read more in the article CREATINE, CAFFEINE, which covers how they interact.

When should you have your last coffee?

Drake et al. (2013) conducted a controlled study in which 12 participants took 400 mg of caffeine 0, 3 or 6 hours before bedtime. The result was clear: caffeine taken even 6 hours before bedtime reduced sleep duration, as measured by actigraphy, by more than an hour on average and noticeably reduced sleep quality — although the participants themselves did not perceive the full extent of the lost sleep (Drake et al., 2013).

Practical recommendation: if you go to bed at 22–23, your last coffee should be no later than 14–15. If you are more sensitive to caffeine (a slow metabolizer — CYP1A2 *1F allele), the recommended cut-off may be even earlier, around 12–13.

The World Health Organization (WHO) recommends 7–9 hours of quality sleep per day for adults and stresses the importance of sleep hygiene for maintaining both mental and physical health. Caffeine is one of the most important modifiable factors that worsen sleep quality.

Does caffeine also affect sleep depth?

Yes — even if caffeine doesn’t noticeably delay falling asleep, it changes the structure of sleep. Landolt et al. (1995) showed in an EEG study that caffeine reduces delta activity during sleep, i.e. slow-wave sleep (N3 stage), which is considered the most important sleep stage for physical recovery. Less deep sleep means lower growth hormone release and slower muscle recovery (Landolt et al., 1995).

This is especially important for athletes, for whom every recovery detail counts.

How can you reduce caffeine’s effect on sleep in practice?

  1. Stop caffeine at least 6 hours before bedtime — a conservative but evidence-based limit for most people.
  2. Set a daily limit — up to 400 mg a day is generally safe for healthy adults (EFSA, 2015); more caffeine doesn’t give a better effect, only more side effects.
  3. Watch for hidden caffeine — energy drinks, some teas and pre-workout drinks often contain more caffeine than you think.
  4. Time your caffeine for daytime training — caffeine before a workout works better as a performance booster in the morning and afternoon than in the evening.
  5. Allow for individual variation — your CYP1A2 genotype determines how quickly caffeine is broken down, and this difference can be up to threefold.

Examine.com compiles over 300 caffeine studies and confirms that a 6-hour safety margin suits most adults, but for slow metabolizers the necessary break can be considerably longer.

References

  • 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–200. PMID: 24235903
  • Roehrs T, Roth T. (2008). Caffeine: sleep and daytime sleepiness. Sleep Medicine Reviews. 12(2):153–162. PMID: 18160113
  • Clark I, Landolt HP. (2017). Coffee, caffeine, and sleep: A systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews. 31:70–78. PMID: 26899133
  • Landolt HP, Dijk DJ, Gaus SE, Borbély AA. (1995). Caffeine reduces low-frequency delta activity in the human sleep EEG. Neuropsychopharmacology. 12(3):229–238. PMID: 7617668
  • EFSA Panel on Dietetic Products, Nutrition and Allergies. (2015). Scientific Opinion on the safety of caffeine. EFSA Journal. 13(5):4102. DOI: 10.2903/j.efsa.2015.4102

Frequently asked questions

How long before bedtime should you stop drinking coffee?

The evidence-based recommendation is to stop consuming caffeine at least 6 hours before bedtime. The study by Drake et al. (2013) showed that even a 6-hour gap does not completely eliminate caffeine’s effect on sleep, but it reduces it significantly.

How many hours does caffeine stay in the body?

Caffeine’s half-life averages 5–6 hours, but it can vary between 3 and 9 hours depending on genetics (the CYP1A2 gene) and other factors. Half of the caffeine from a coffee drunk at 15 is still in your body at 21.

Does caffeine affect only falling asleep, or sleep quality too?

Both. Caffeine can make it harder to fall asleep, but even when falling asleep goes normally, it reduces the amount of deep sleep (N3 stage), the sleep stage that matters most for physical recovery (Landolt et al., 1995).

Can some people tolerate caffeine better than others?

Yes — variants of the CYP1A2 gene determine whether you are a fast or slow caffeine metabolizer. Slow metabolizers feel the effects of caffeine for longer and should have their last coffee earlier, for example around 12–13.

Does caffeine tolerance protect against its effects on sleep?

Partially. Regular caffeine consumers become accustomed to some of the wake-promoting effects, but studies show that the structural damage to sleep — the reduction in deep sleep — persists even with tolerance (Clark & Landolt, 2017).

Let’s train! ArtGym

Reklaam
Ei tea, kust alustada? AI paneb kokku treeningkava ja toidukava. Alusta →
Treeningkava · Toidukava AI teeb 30 sekundiga