CaffeineTime

Caffeine & sleep

Coffee before bed doesn’t affect you? What sleep studies found

Updated 2026-10-03 · Checked against the sources below by Oleksii Y. · 8 min read

It may be affecting you more than you notice. Many people can fall asleep after coffee, but in sleep trials caffeine also shortened sleep and cut deep sleep, and sleep monitors picked up changes that people’s own reports often missed. The authors of a 2025 trial concluded that people may struggle to perceive caffeine’s effect on their sleep. Whether regular drinkers become tolerant to these sleep effects is still unclear.

Key takeaways

  • Falling asleep quickly is only one part of sleep; caffeine can also shorten it, lighten it and add wake time later in the night.
  • In a 2013 trial, 400 mg taken 6 hours before bed cut sleep by more than an hour on a sleep monitor, while people’s diaries showed a smaller drop that did not reach significance.
  • In a 2025 trial, 400 mg cut deep sleep at every timing tested, up to 12 hours before bed, while 100 mg taken 4 or more hours before bed made no significant difference.
  • Regular drinkers grow tolerant to some caffeine effects, but whether that protects sleep remains unclear.
  • Comparing two weeks of your own mornings is a better guide than how you feel after one night.

Falling asleep after coffee is not the same as sleeping well

When people say coffee before bed doesn’t affect them, they usually mean they can still fall asleep. That can be true. In a 2023 meta-analysis of 24 studies, caffeine made falling asleep take about 9 minutes longer on average, a delay that is easy to miss.

But falling asleep is only the start of the night. The same analysis found caffeine cut total sleep by about 45 minutes and lowered sleep efficiency (the share of time in bed actually spent asleep) by 7%. It shifted sleep toward lighter stages and reduced deep sleep by about 11 minutes. Those changes happen while you are unconscious, so you cannot watch them happen; caffeine and deep sleep covers that part in detail.

What sleep monitors caught that coffee drinkers didn’t report

In a 2013 trial, 12 healthy sleepers took 400 mg of caffeine at bedtime, 3 hours before bed or 6 hours before bed, or a placebo, while wearing a home sleep monitor and keeping a sleep diary. At every timing, the monitor recorded about 1.1 to 1.2 hours less sleep than with placebo.

The diaries told a softer story. At 6 hours before bed, people’s own records showed about 41 minutes less sleep, a difference that did not reach statistical significance, and only the monitor clearly detected a change at that timing. People did notice something, just less than the monitor measured.

A 2025 double-blind trial found the same pattern. In 23 healthy young men, 400 mg taken 4 or 8 hours before bed added about 26 to 29 minutes of time awake after first falling asleep on the recordings, yet the men’s own estimates of time awake did not change significantly. They did rate their sleep quality lower after 400 mg taken 4 hours before bed, but not at 8 or 12 hours. The authors concluded that people may not be able to tell accurately how much caffeine is affecting their sleep.

Daily life looks similar. In a 2023 randomized trial of 100 adults wearing wrist trackers, people slept about 36 fewer minutes on days they were assigned to drink coffee, with the amount and timing left up to them.

Does tolerance protect regular coffee drinkers’ sleep?

Tolerance is real for some effects. In a controlled study, people taking 300 mg three times a day for 18 days became fully tolerant to caffeine’s subjective effects, and another trial found frequent users develop substantial tolerance to its anxiety-raising effect. More on that in caffeine tolerance.

Sleep is a different question. The authors of the 2025 trial wrote that tolerance to caffeine-induced sleep disturbance remains unclear in habitual consumers. Their participants already used caffeine regularly (under 300 mg a day) and still lost deep sleep after a 400 mg dose.

One 10-day study of 20 men who were heavy regular caffeine users, taking 150 mg three times during the day, found no significant change in total sleep or sleep stages, but REM sleep started later, and the men found it harder to wake up and felt more tired on waking. Its unusual setup, with an evening nap and recordings that began about 5 hours after the men’s usual bedtime, means it cannot settle the question either. So "I’m used to it" may hold for the buzz while your sleep still pays a price, or it may not. Nobody has shown which.

Why coffee before bed can seem to help you sleep

Some people go further and say coffee before bed helps them sleep. None of the trials or reviews cited here found caffeine improving sleep. A systematic review of trials and population studies found that caffeine usually made people slower to fall asleep, cut their sleep time and efficiency, and left them rating their sleep as worse, with the size of the effect depending on dose and timing.

A few things can still make an evening coffee feel harmless. A small or early dose may be too little to matter by bedtime: in the 2025 trial, 100 mg taken 4 or more hours before bed made no measurable difference. The FDA notes wide variation in how sensitive people are to caffeine and how fast they clear it. And if you are very short on sleep, you may drop off despite caffeine, which says more about your tiredness than about how deep the rest of the night is.

If the ritual of a warm evening drink is what you value, decaf keeps it with far less caffeine: the FDA says an 8 oz cup typically has 2 to 15 mg. See caffeine in decaf coffee.

Who is more likely to sleep worse after evening coffee

Both trials above that tested timing were small, and a systematic review noted that most caffeine sleep studies involved male adults in Western countries. The evidence is weakest for some of the people who may be most affected.

  • Older and middle-aged adults: a systematic review found older adults’ sleep may be more sensitive to caffeine, and in a lab study 400 mg disrupted sleep more in middle-aged than in young adults.
  • People who clear caffeine slowly: half-life ranges from about 2 to 8 hours in healthy adults, and it was longer with estrogen-containing birth-control pills (about 7.9 vs 5.4 hours in one small study) and in pregnancy (8.3 hours on average in one study).
  • People on certain medicines: the antidepressant fluvoxamine raised caffeine’s half-life from about 5 to 31 hours in one study. Ask your doctor or pharmacist about yours.
  • Anyone having a bigger dose than they think: lab tests of coffee-shop drinks found 58 to 259 mg per serving, and one drink from the same shop ranged from 259 to 564 mg over six days.

A two-week test of whether evening coffee affects your sleep

Because feelings are an unreliable gauge, a simple comparison beats guessing. It will not measure deep sleep, but it can show changes you feel the next day.

  • Week one: drink as usual and note the time and amount of your last caffeine each day.
  • Week two: keep the same daily total but move all of it before a cutoff; the caffeine cutoff calculator suggests one for your bedtime.
  • Each morning, before checking any app, rate how rested you feel and how often you remember waking.
  • Compare the weeks. If mornings feel better in the early-cutoff week, the evening coffee was costing you something.
  • If sleep is poor either way, caffeine may not be the main issue; goodsleep.today has tools for working on sleep itself.

Common questions

Why can I fall asleep right after drinking coffee?

Being tired, having a modest dose or simply being less sensitive can all let you fall asleep with caffeine on board; the FDA notes wide variation between people. But falling asleep fast does not show the rest of the night was unaffected: trials found shorter, lighter sleep that people often did not report.

Does coffee before bed reduce deep sleep even if I sleep through the night?

It can. In a 2025 trial, 400 mg of caffeine reduced deep (N3) sleep by about 30 minutes when taken 4 hours before bed and about 21 minutes when taken 12 hours before. A 2023 meta-analysis found about 11 minutes less deep sleep on average. These changes happen while you sleep, so you do not feel them.

Do regular coffee drinkers become immune to caffeine’s effect on sleep?

Nobody has shown that. Daily users do become tolerant to some effects, such as caffeine’s buzz and its anxiety-raising effect. But researchers say tolerance to caffeine’s sleep disruption remains unclear, and in a 2025 trial regular caffeine users still lost deep sleep after a 400 mg dose.

Is decaf before bed fine if regular coffee doesn’t seem to bother me?

Decaf is a much smaller dose, not zero: the FDA says an 8 oz cup typically has 2 to 15 mg, compared with 113 to 247 mg in 12 oz of regular brewed coffee. That makes decaf an easy way to keep an evening coffee habit while giving your sleep far less caffeine to deal with.

How much coffee before bed is too much if it doesn’t keep me awake?

EFSA says even 100 mg may affect sleep in some adults when taken close to bedtime. In a trial of young men, 100 mg taken 4 or more hours before bed showed no measurable effect, while the authors advise keeping 400 mg at least 12 hours from bedtime. Your own limit depends on dose, timing and how fast you clear caffeine.

General information, not medical advice

If you feel unwell after caffeine — for example chest pain, a fast or irregular heartbeat that does not settle, fainting, confusion or trouble breathing — get urgent medical help. If you are pregnant, take medication or have a heart, liver or anxiety condition, ask a doctor or pharmacist what amount is right for you.

Sources

  1. Gardiner C, Weakley J, Burke LM, et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi:10.1016/j.smrv.2023.101764 ↗
  2. Gardiner CL, Weakley J, Burke LM, et al. (2025). Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. Sleep, 48(4), zsae230. doi:10.1093/sleep/zsae230 ↗
  3. 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. PMID 24235903 ↗
  4. Marcus GM, Rosenthal DG, Nah G, et al. (2023). Acute Effects of Coffee Consumption on Health among Ambulatory Adults. New England Journal of Medicine, 388(12), 1092–1100. PMID 36947466 ↗
  5. 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 ↗
  6. Evans SM, Griffiths RR. (1992). Caffeine tolerance and choice in humans. Psychopharmacology, 108(1–2), 51–59. PMID 1410146 ↗
  7. Rogers PJ, Hohoff C, Heatherley SV, et al. (2010). Association of the anxiogenic and alerting effects of caffeine with ADORA2A and ADORA1 polymorphisms and habitual level of caffeine consumption. Neuropsychopharmacology, 35(9), 1973–1983. PMID 20520601 ↗
  8. Weibel J, Lin YS, Landolt HP, et al. (2021). Regular Caffeine Intake Delays REM Sleep Promotion and Attenuates Sleep Quality in Healthy Men. Journal of Biological Rhythms, 36(4), 384–394. PMID 34024173 ↗
  9. Robillard R, Bouchard M, Cartier A, et al. (2015). Sleep is more sensitive to high doses of caffeine in the middle years of life. Journal of Psychopharmacology, 29(6), 688–697. PMID 25759402 ↗
  10. European Food Safety Authority (2015). EFSA explains risk assessment: Caffeine. European Food Safety Authority (doi:10.2805/618813). efsa.europa.eu (PDF) ↗
  11. Abernethy DR, Todd EL. (1985). Impairment of caffeine clearance by chronic use of low-dose oestrogen-containing oral contraceptives. European Journal of Clinical Pharmacology, 28(4), 425–428. PMID 4029248 ↗
  12. Knutti R, Rothweiler H, Schlatter C. (1981). Effect of pregnancy on the pharmacokinetics of caffeine. European Journal of Clinical Pharmacology, 21(2), 121–126. PMID 7341280 ↗
  13. Jeppesen U, Loft S, Poulsen HE, et al. (1996). A fluvoxamine-caffeine interaction study. Pharmacogenetics, 6(3), 213–222. PMID 8807660 ↗
  14. McCusker RR, Goldberger BA, Cone EJ. (2003). Caffeine content of specialty coffees. Journal of Analytical Toxicology, 27(7), 520–522. PMID 14607010 ↗
  15. U.S. Food and Drug Administration (2024). Spilling the Beans: How Much Caffeine is Too Much? FDA Consumer Updates. fda.gov ↗

An app for better sleep is on the way

We’re working on a mobile app to help you sleep better. It isn’t out yet. Leave your email and we’ll let you know when it launches.