Caffeine and sleep: how late is too late?
Udgivet af Nuro, som selv udvikler og markedsfører kosttilskud. Nuro har en kommerciel interesse i emnet. Artiklen er ikke en uafhængig produkttest.

Kort svar
Some people say that coffee doesn't affect them because they can fall asleep right after an espresso. But falling asleep is not the same as sleeping soundly. Here is what research has measured about caffeine and sleep, and why it varies from person to person.
According to the ISSN's position paper on caffeine, caffeine's half-life is typically 4–6 hours, but it can range from 1.5 to 10 hours in adults. With a half-life of 4–6 hours, about half of the caffeine from a cup at 4 p.m. is still in the body at 8–10 p.m. Caffeine blocks adenosine, the substance that builds up sleep pressure, and a systematic review (Clark and Landolt) found that caffeine typically delayed sleep onset, shortened total sleep, and reduced deep sleep. Genetics affect how quickly caffeine is broken down.
The mechanism: caffeine reduces sleep pressure
From the moment you wake up, the brain accumulates adenosine, a signaling substance that gradually increases sleep pressure throughout the day. Caffeine binds to adenosine receptors and blocks the signal, so tiredness is less noticeable. Clark and Landolt found in their review that caffeine typically reduced deep sleep and increased the number of awakenings.
What the studies have measured
- Drake et al. (2013) gave 400 mg of caffeine at bedtime, 3 hours before or 6 hours before bedtime, and compared it with a placebo, measuring it in the participants' own homes with self-reporting and a wearable sleep monitor. All three time points resulted in significantly disrupted sleep compared to the placebo, and the authors assessed that caffeine 6 hours before bedtime also had a significant effect on total sleep time. Limitation: one study with a fixed dose of 400 mg.
- Clark and Landolt (2017) reviewed epidemiological studies and randomized controlled trials. Caffeine typically delayed sleep onset, shortened total sleep, impaired sleep efficiency and perceived sleep quality, and reduced deep sleep. Older people may be more sensitive than younger people, and there are large differences between individuals. Limitation: most of the studies were conducted on adult men in Western countries.
- EFSA assesses that single doses of 100 mg of caffeine can affect sleep duration and patterns in some adults, especially close to bedtime.
Caffeine is also found in tea, cola, energy drinks, dark chocolate, and in small amounts in decaffeinated coffee. According to the EU's labeling regulation, beverages containing more than 150 mg of caffeine per liter, except coffee and tea, must be labeled "High caffeine content" and state the content in mg per 100 ml.
Genetics: why some people tolerate it better
Caffeine is broken down in the liver, partly by the enzyme CYP1A2, and genetic differences affect how quickly this happens. Clark and Landolt describe that variants in genes for adenosine and caffeine metabolism contribute to how sensitive sleep is to caffeine. According to the ISSN, pregnancy and hormonal contraception can reduce caffeine metabolism. One simple way to test this is to move caffeine earlier in the day for a period and see if sleep changes.
Practical: coffee and sleep
- Timing: Drake et al. concluded that the results support the advice to avoid large amounts of caffeine at least 6 hours before bedtime, and in the study, 400 mg also affected sleep when taken 6 hours before. If you have difficulty sleeping or metabolize caffeine slowly, it may be worth trying to stop earlier.
- Total intake: EFSA assesses that up to 400 mg of caffeine per day spread throughout the day does not raise safety concerns for healthy adults, except for pregnant women, for whom the limit is 200 mg per day.
- Check the label on energy drinks and pre-workout products, where the content can be high.
- In the afternoon: decaffeinated coffee or herbal tea are alternatives.
About supplements marketed for sleep, you can read in Magnesium, glycine, theanine and melatonin: read the evidence.
In short
Caffeine and sleep are about timing and quantity: the same cup can affect sleep differently depending on the time and how quickly the body breaks down caffeine.
Frequently asked questions
How late can you drink coffee?
There is no fixed limit for everyone. In the Drake study, 400 mg of caffeine affected sleep even when taken 6 hours before bedtime, and the authors concluded that the results support the advice to avoid large amounts of caffeine at least 6 hours before bedtime. Metabolism varies greatly from person to person.
Why can some people sleep after coffee?
People break down caffeine at different speeds, partly due to genetics. But falling asleep is not the same as sleeping soundly: a systematic review found that caffeine typically reduced deep sleep and increased the number of awakenings.
Does caffeine affect sleep even if you fall asleep?
It can. Clark and Landolt found that caffeine typically shortened total sleep, reduced deep sleep, and increased the number of awakenings.
How long does caffeine stay in the body?
According to the ISSN, the half-life is typically 4–6 hours, but it can range from 1.5 to 10 hours in adults. Pregnancy and hormonal contraception can reduce metabolism.
How do you find the caffeine content in a drink?
The content varies between products. According to the EU's labeling regulation, beverages containing more than 150 mg of caffeine per liter, except coffee and tea, must be labeled "High caffeine content" and state the content in mg per 100 ml.
Sources
- Drake C et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. PMC
- EFSA (2015). Scientific Opinion on the safety of caffeine. EFSA Journal. efsa.europa.eu
- Clark I, Landolt HP (2017). Coffee, caffeine, and sleep: systematic review. Sleep Med Rev. PubMed
- Guest NS, et al. International Society of Sports Nutrition position stand: caffeine and exercise performance. J Int Soc Sports Nutr 2021;18(1):1. DOI
- Regulation (EU) No 1169/2011 of the European Parliament and of the Council, Annex III, point 4.1 (labeling of beverages with high caffeine content). EUR-Lex


