Sleep Science · 4 min read

Caffeine and Sleep: How Long Before Bed Should You Stop?

How Caffeine Keeps You Awake

Caffeine works by blocking adenosine receptors in your brain. Adenosine is a chemical that accumulates throughout the day, creating 'sleep pressure' — the feeling of increasing tiredness. Caffeine doesn't reduce adenosine levels; it just prevents your brain from sensing them.

When caffeine wears off, all that accumulated adenosine hits your receptors at once, which is why you feel the 'crash.' The adenosine was building up all along — you just couldn't feel it.

The Half-Life Problem

Caffeine has an average half-life of 5-6 hours. That means if you drink a 200mg coffee at 2 PM, you still have 100mg in your system at 8 PM, and 50mg at 2 AM.

But this average hides enormous individual variation. Genetic differences in the CYP1A2 enzyme mean some people clear caffeine in 3 hours while others take 9+. Smoking speeds metabolism, oral contraceptives slow it. If you've always been a 'caffeine doesn't affect me' person, you may be a fast metabolizer — or you may have reduced sleep quality without realizing it.

Caffeine's Hidden Effects

Even when caffeine doesn't prevent you from falling asleep, it reduces sleep quality. Studies using sleep EEGs show that caffeine consumed up to 6 hours before bed reduces deep sleep (slow-wave sleep) by up to 20%.

Deep sleep is when your body does most of its physical repair and your brain consolidates memories. You can sleep 8 hours with caffeine in your system and wake up feeling less rested than after 7 hours without it.

Finding Your Cutoff

The conservative recommendation is noon. This gives even slow metabolizers enough time to clear most caffeine before bed.

If noon feels too restrictive, experiment. Push your cutoff forward in 30-minute increments and track how you feel in the morning. Many people find their sweet spot is between noon and 2 PM.

Remember that caffeine isn't just coffee. Tea, cola, chocolate, energy drinks, pre-workout supplements, and some medications all contain caffeine. A cup of green tea at 4 PM adds 30-50mg that many people don't account for.

Pacific Sleep App

Pacific Sleep

Master these techniques with guided sessions.

Download on the App Store