← Joe Blogs

Chronobiology

When to stop drinking coffee if you want to sleep

Caffeine has a half-life of five to six hours, so a 3pm coffee is still working at midnight. Here's the cutoff that protects your sleep, and why the morning cup matters less than you think.

October 9, 2026 · 4 min read

Caffeine works by blocking adenosine, the molecule that builds up while you're awake and makes you feel tired. Block it and you feel alert. The problem is timing. Caffeine clears slowly, and most people drink it on a schedule that guarantees some is still in their system when they try to sleep.

It's why you can be exhausted all day and then lie there at 11pm, wide awake. Wired but tired.

How long does caffeine actually last?

Its half-life is roughly five to six hours in a healthy adult. So half of a 2pm coffee is still in you at 8pm, and a quarter of it at around 1am.

In a controlled trial, 400 mg of caffeine (about two to three cups) taken six hours before bed cut total sleep by more than an hour and reduced slow-wave sleep, the deepest and most restorative stage, by about a third (Drake et al., 2013). The people in the study didn't always notice. Their sleep was measurably worse. Their own reports of it weren't.

The cutoff

Work back from when you want to be asleep, not from the clock. If you want to be asleep by 11pm, your last caffeine should be around 1pm to 3pm, eight to ten hours earlier. Earlier still if you know you're sensitive or already sleep badly.

This is the single biggest change most people can make, because it breaks a loop. Bad sleep makes you groggy in the morning. Groggy mornings pull you toward more caffeine, later in the day. Later caffeine makes the next night worse. Move the cutoff and the loop starts to unwind within a week.

What about the first cup?

You'll read that you should wait 90 minutes before your morning coffee to "let cortisol do its job." The evidence for that specific claim is thin. The morning cup isn't the problem. The afternoon one is.

If you want a morning rule that actually holds up, it's this: get outside light in the first hour after you wake. Daylight is the strongest signal your body clock has for setting the day's rhythm (Wright et al., 2013), and it does more for your afternoons than the timing of your first coffee.

If your schedule is the real problem

A caffeine cutoff helps, but it can't fix a sleep schedule that's fighting your biology: bed at 1am on weeknights and 3am at weekends, then up at 7 regardless. That gap between your body clock and your social clock is called social jet lag, and it tracks with worse metabolic health regardless of how many hours you sleep (Roenneberg et al., 2012).

Fix your wake time first. Hold it every day, weekends included, and let your bedtime follow. The cutoff makes that easier.


This describes patterns in how caffeine and sleep interact. It is not medical advice. If you have a persistent sleep problem, or you're cutting caffeine and getting headaches or heart-rate changes, talk to a clinician.

References

  1. 1. 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.
  2. 2. Wright, K. P. Jr., et al. (2013). Entrainment of the human circadian clock to the natural light–dark cycle. Current Biology, 23(16), 1554–1558.
  3. 3. Roenneberg, T., et al. (2012). Social jetlag and obesity. Current Biology, 22(10), 939–943.

Get the next one

One short, evidence-based email a week. No fluff, no “journeys.”

More in this pillar

We’d like to use Google Analytics and Microsoft Clarity to understand site traffic and behavior, and our own cookie that remembers how you first found the site (a LinkedIn post, a search, a newsletter). They only run if you accept — see the privacy policy.