Few relationships are as intimate and as confusing as that between coffee and sleep. One person drinks a double espresso at 9 PM and sleeps like a log; another lies awake all night staring at the ceiling after a cappuccino at lunch. Both are right about themselves, and both understand nothing about the other. Time to explain why this is, and especially: how to find your own limit.
The short answer
Coffee and sleep primarily interfere with each other through timing: caffeine blocks the feeling of sleepiness and remains active for hours afterwards, longer than most people think. A common rule of thumb is therefore: no caffeine after 2 PM if you want to sleep around 11 PM. How sensitive you are varies greatly per person, so test your own limit by moving it forward a week and feeling the difference.
Why does coffee keep you awake?
Coffee works because caffeine suppresses the signal your body uses to build up sleepiness. As long as the caffeine is active, that signal simply comes through less strongly: you feel more alert than you actually are. Handy at 9 AM, inconvenient at 11 PM.
The confusion arises because caffeine remains active much longer than the energizing feeling lasts. The kick from a cup of coffee wears off after an hour or two, but a significant portion of the caffeine continues to circulate in your body for hours afterwards. You no longer feel the coffee, but your sleep does: less deep, more restless, waking up more often.

How late can you drink coffee?
There's no strict limit that applies to everyone, but the widely used rule of thumb is generous: stop consuming caffeine about 8 to 9 hours before bedtime. So, if you want to sleep at 11 PM, your last coffee should be around 2 PM. That might sound strict until you consider that cola, energy drinks, black and green tea, and even chocolate also count.
Sensitivity also varies greatly from person to person: some people metabolize caffeine slowly and still feel a lunchtime coffee at night, while others notice little effect. Test it simply: move your last coffee forward to 2 PM for a week and see what happens to your nights. If you sleep noticeably more peacefully, you have your answer.

If coffee isn't the culprit
If you're still sleeping restlessly even though your last coffee was long before 2 PM, look beyond your cup. A warm bedroom, an irregular rhythm, or simply an uncomfortable sleeping position can affect your night's rest just as much as caffeine. Someone who tosses and turns all night to find a good position will wake up just as much as from an espresso.
For side sleepers, comfortable sleep starts with the right pillow height; for this, SidePillow offers three standard sizes and a short height check. And how to get the rest of your sleeping area in order is explained in the guide to adjusting your bed and the guide on sleeping cool.

Conclusion
Coffee and sleep can go together just fine, as long as you respect the timing: caffeine works longer than you feel it, so give it plenty of time to get out of your system. The rule of thumb of no caffeine after 2 PM is a safe starting point for most people.
And if the espresso turns out to be innocent, then look at the rest of your night: rhythm, temperature, and how you lie. After all, the best cup of coffee is the one you didn't need after a good night's sleep.
Nights that no coffee can beat?
Use the height check to see which SidePillow height will make your nights more peaceful than decaf ever could.
Frequently asked questions
How late can you drink coffee if you want to sleep well?
The common rule of thumb is: stop about 8 to 9 hours before bedtime, so around 2 PM if you go to bed at 11 PM. Sensitive people would do well to stop even earlier.
Why can some people drink coffee in the evening and others cannot?
The rate at which your body breaks down caffeine varies greatly from person to person. Slow metabolizers will still feel an afternoon coffee affecting their sleep at night, while fast metabolizers notice little of it.
Does tea also count for caffeine?
Yes. Black and green tea contain caffeine, as do cola, energy drinks, and chocolate. If you want something warm in the evening, choose herbal tea or decaffeinated coffee.
I don't drink coffee after noon and still sleep poorly. What now?
Then look at the other major factors: a consistent routine, a cool dark bedroom, and comfortable lying posture. The latter, in particular, is often underestimated: someone who tosses and turns all night to find a good position will sleep just as restlessly as after a late espresso.
Photography: min o, Gül Işık, Justyna Grochowska via Pexels.
Do you sleep on your side?
Honest sleep advice for side sleepers, no more than one email a week. Your 5% welcome code appears as soon as you sign up.
