Coffee and Sleep: Does Your Evening Cup Really Keep You Up?

A delicate cup of coffee on a saucer, styled with flowers, for a cozy evening coffee moment

You know the feeling. It's gone 9pm, you've had a lovely dinner, and somehow you're still staring at the ceiling at midnight wondering why you can't switch off. If a coffee habit is part of your day, there's a decent chance that 3pm flat white is still quietly doing its thing hours later.

We get asked about this a lot, so let's dig into what caffeine actually does to your sleep, how long it really sticks around in your system, and what your options are if you love coffee but don't love lying awake because of it.

Why caffeine keeps you wired long after you've drunk it

Caffeine works by blocking adenosine, a chemical that naturally builds up in your brain throughout the day and makes you feel sleepy by the evening. When caffeine gets in the way, your brain simply doesn't register that tiredness the way it should, even though the fatigue is still there underneath.

The tricky part is how long caffeine sticks around. Its half life, the time it takes your body to clear half of it, ranges from about 1.5 to 9.5 hours depending on your genetics, age, liver function, and even whether you're on certain medications or pregnant. That's a huge range. For some people, a cup at lunchtime is completely out of their system by dinner. For others, it's still knocking about well into the evening.

So when should you actually stop drinking coffee?

Recent sleep research points to roughly nine hours before bedtime as a sensible cut off for most people, which, if you're in bed by 11pm, puts your last "real" coffee somewhere around 2pm. That might sound early, but the research backs it up: caffeine taken too close to bedtime can cut total sleep time by up to 45 minutes, and it doesn't just stop you falling asleep. Even when people do drift off fine, caffeine in their system can quietly reduce the amount of deep sleep they get, which is the stage your body relies on most for proper physical recovery.

That's the sneaky bit. You might feel like you slept fine, wake up groggy anyway, reach for another coffee to get through the day, and end up stuck in a loop that's genuinely hard to break.

Where decaf actually fits in

This is usually where people's faces drop a little, because "just switch to decaf" sounds like a sad consolation prize. It really doesn't have to be. Modern decaf, done properly, tastes like proper coffee, because it's made from proper speciality beans that just happen to have had the caffeine removed.

Our Drift is a great example. It's 100% Brazilian Arabica, decaffeinated using the Swiss Water Process, which uses nothing but water and time to strip out around 99.9% of the caffeine with no chemical solvents involved. A typical cup ends up with somewhere around 3 to 15mg of caffeine, compared to roughly 95mg in a regular cup, so it's a genuinely sensible choice for an evening coffee ritual without the 2am wide-awake surprise.

If you brew it the same careful way you'd brew any of our other roasts (our guide on how to brew the perfect cup of coffee at home covers all the basics), you genuinely wouldn't know the difference by taste alone. We've written more about how Drift is made if you want the full story on the Swiss Water Process and why we think it's worth doing properly.

A few practical swaps worth trying

You don't have to go cold turkey on caffeine to sleep better. A few small, realistic changes tend to make the biggest difference: push your last caffeinated coffee earlier in the day, swap your evening cup for Drift instead of cutting coffee out completely, and pay attention to how you personally respond, since some people are simply more sensitive to caffeine than others.

If you're someone who struggles to sleep even after an afternoon coffee, that's a pretty good sign you're on the slower end of the metabolising spectrum, and it's worth being a bit stricter with your own cut off time rather than following a one size fits all rule.

Frequently asked questions

How long does caffeine actually stay in your system before bed?

Caffeine's half life ranges from roughly 1.5 to 9.5 hours depending on your genetics, age and liver function, so a coffee drunk in the afternoon can still be partly active in your system come bedtime. Most sleep research suggests stopping caffeine around nine hours before you plan to sleep.

Does decaf coffee have any caffeine in it at all?

Yes, but very little. Swiss Water Process decaf, like our Drift, removes around 99.9% of the caffeine, leaving roughly 3 to 15mg per cup compared to about 95mg in a regular coffee. For most people, that's low enough to enjoy in the evening without it affecting sleep.

Can coffee affect my sleep even if I still fall asleep okay?

It can. Even when caffeine doesn't stop you falling asleep, it can reduce the amount of deep sleep you get, the stage most important for physical recovery, which can leave you feeling groggy the next day without an obvious cause.

Fancy an evening coffee that won't keep you up?

Shop Drift