Before sleep

Caffeine and Sleep: The Full Picture

Most people know caffeine keeps them awake. Fewer know exactly why, or how long the effect actually sticks around after the alertness wears off.

What caffeine is doing in your brain

Throughout the day, a chemical called adenosine gradually builds up in your brain and binds to receptors that promote drowsiness — the longer you're awake, the stronger that pull toward sleep gets. Caffeine works by blocking those same receptors, so adenosine is still there, but its sleepy signal can't get through. That's why caffeine doesn't add energy so much as mask fatigue that's already accumulating.

Why the effect outlasts the "buzz"

Caffeine's half-life — the time it takes your body to clear half of it — is typically around 5 to 6 hours in a healthy adult, though it varies with liver function, genetics, pregnancy, smoking status, and certain medications. A cup of coffee at 4 PM might feel fully worn off by 8 PM, but a meaningful amount can still be active in your system at 10 PM, quietly interfering with how easily you fall asleep and how much time you spend in deep sleep — even without a noticeable jolt of alertness.

Working out your own cutoff

There's no single correct cutoff time for everyone, but a reasonable starting framework is:

  • Average sensitivity: stop roughly 8 hours before bedtime.
  • Low sensitivity: 6 hours may be enough margin if caffeine rarely affects your sleep.
  • High sensitivity: 10 hours or more gives your body more time to clear it if you notice lighter or more fragmented sleep on caffeine days.

Sensitivity isn't fixed — it can shift with age, medication changes, or how much caffeine you consume regularly, so it's worth revisiting occasionally rather than assuming today's tolerance is permanent.

Worth noting: caffeine can delay sleep onset even when someone insists it "doesn't affect" them. Self-reported tolerance and measured sleep quality don't always agree, so if sleep feels lighter on caffeine days, that's a more reliable signal than how alert you feel.

Enter your planned bedtime into the caffeine cutoff calculator to get a personalized last-call time, or read about how sleep cycles work to see why quality of sleep, not just duration, is what caffeine tends to disrupt first.