Library · Sleep

Stop drinking coffee 9 hours before bed

Studies show mistimed caffeine use reduces total sleep by about 45 minutes and deep sleep by 11.4 minutes.

An espresso after dinner, asleep by eleven: plenty of people take that as proof that caffeine doesn't affect them. In a lab study, people given caffeine six hours before bed slept more than an hour less on a sleep monitor, yet reported only a small difference themselves. Stopping coffee 9 hours before bed gives your body time to clear much of that caffeine, and the only change is moving your last cup a few hours earlier.

What it helps with

  • Poor sleep quality

    Studies show mistimed caffeine use reduces total sleep by about 45 minutes and deep sleep by 11.4 minutes.

  • Trouble falling asleep

    Late caffeine adds about 9 minutes to the time it takes to fall asleep, and 12 more minutes awake during the night.

Key facts

  1. 1A 2023 review of 24 studies found caffeine cut total sleep time by about 45 minutes on average.
  2. 2In the same review, caffeine reduced deep sleep by about 11 minutes and added about 12 minutes awake during the night.
  3. 3The review's authors estimated that a typical coffee, about 107 mg of caffeine, should be finished at least 8.8 hours before bed.
  4. 4In a small lab study, 400 mg of caffeine taken six hours before bed reduced sleep by more than an hour on a sleep monitor.
  5. 5How fast the body clears caffeine varies widely between people, and older adults tend to be more sensitive to its effects on sleep.

Why late coffee still matters

Falling asleep easily is a poor test of whether caffeine is still at work. In that study, healthy adults took a large dose of about 400 mg, roughly four regular cups, at bedtime, three hours before or six hours before. Even the six-hour dose cut their measured sleep by more than an hour compared with a placebo pill. The habit fits in a few words: last coffee nine hours before bed.

Shorter, lighter nights can leave you groggy the next morning. Many people then reach for an extra cup to get going, and a later one to get through the afternoon. Moving the last cup earlier is one of the simplest ways to step out of that loop.

How caffeine keeps you awake

While you are awake, your brain slowly builds up a chemical called adenosine, which creates the feeling of sleep pressure. Caffeine has a similar shape and sits in the same spots on your brain cells, so the tired signal is muted for a while. Your liver breaks caffeine down at its own steady pace. On average, about half is still in your body around five hours after you drink it, though this ranges widely between people.

That explains why the size of the drink matters as much as the clock. A small filter coffee clears sooner than a large café brew or a double espresso, so bigger drinks belong earlier in the day. Decaf still has a little caffeine, but far too little to matter for most people. Total intake counts too: mainstream guidance puts up to about 400 mg a day as generally safe for healthy adults, and timing works on top of that.

What the research found

A 2023 review pooled 24 studies that measured sleep with lab equipment after people had caffeine. Compared with nights without it, caffeine cut total sleep by about 45 minutes and lowered sleep efficiency, the share of time in bed spent asleep, by about 7%. People took about 9 minutes longer to fall asleep and spent about 12 more minutes awake during the night. They also had about 11 fewer minutes of deep sleep, the stage linked to physical recovery.

From these results, the authors estimated that a standard coffee of about 107 mg should be finished at least 8.8 hours before bed. For a high-caffeine pre-workout drink of about 217 mg, they suggested at least 13.2 hours. One limit is worth knowing: most studies were short lab experiments in fairly young, healthy adults. An earlier review found that sensitivity differs with age and genes, with older adults tending to be more affected, so your best cutoff may sit a little earlier or later.

Fitting the cutoff into your day

Start with your usual bedtime and count back nine hours. If you go to bed at 11 p.m., your last coffee is at 2 p.m., which is just after lunch for many people. Make that cup your final one, then switch to water, herbal tea or decaf. Black and green tea, cola and energy drinks count too, which is easy to forget when the vending machine is right there.

BedtimeLast coffee (9 hours)Easier version (6 hours)
10 p.m.1 p.m.4 p.m.
11 p.m.2 p.m.5 p.m.
Midnight3 p.m.6 p.m.

The afternoon slump is the hardest moment. A short walk, a glass of cold water or a few minutes of daylight can carry you through it without a cup. On a bad day, aim for at least six hours, which still keeps caffeine well away from dinner. When bedtime shifts later on weekends, your last coffee nine hours before bed shifts with it. Within a couple of weeks, you become someone whose coffee belongs to the morning and early afternoon. If you still sleep poorly for several weeks after cutting late caffeine, talk to a doctor, since ongoing sleep trouble can have other causes.

What time would your last coffee land tomorrow?

Action steps

  1. 1Find your cutoff time. Subtract 9 hours from your usual bedtime and set that as your daily last call for coffee, tea, cola and energy drinks.
  2. 2Have your last coffee with lunch. If your cutoff falls in the early afternoon, make the cup after lunch your final one, and choose a smaller size if it is close to the cutoff.
  3. 3Plan an afternoon swap. Keep water, herbal tea or decaf within reach for the hours after your cutoff, and take a five-minute walk when your energy dips.

Suggested routines

References

  • Gardiner, C., et al. (2023). The effect of caffeine on subsequent sleep: A systematic review and meta-analysis. Sleep Medicine Reviews, 69, 101764. doi.org/10.1016/j.smrv.2023.101764
  • Drake, C., et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195-1200. doi.org/10.5664/jcsm.3170
  • 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. doi.org/10.1016/j.smrv.2016.01.006

Get Zenith Now

Get it on Google Play

Start building a better you every day.