SLEEP 3 min25 August 2026

Afternoon coffee – what it really does to your sleep

Caffeine stays in your body longer than most people think. Here's what the research says about that afternoon cup – and one simple rule for better sleep.

Bedroom in warm evening light with a small lamp on the nightstand

You have a cup at three to get through the rest of the day. You still fall asleep at night. So the coffee isn't affecting your sleep, right?

That's the most common misunderstanding about caffeine: if you can fall asleep, everything is fine. The problem is that caffeine rarely stops you from falling asleep. It makes the sleep worse once you're in it.

What caffeine does in your body

Throughout the day, a substance called adenosine builds up in your brain. The more adenosine, the sleepier you feel. It's your body's own way of measuring how long you've been awake.

Caffeine works by blocking the receptors adenosine binds to. The "you're tired" signal never arrives. The tiredness doesn't go away – it's hidden. When the caffeine wears off, the adenosine is still there, often in greater amounts than before.

Breaking down caffeine takes time, and how long varies a lot from person to person. Genetics, age, medication and pregnancy all play a part. Some people can drink espresso after dinner and sleep fine. Others are affected by a cup at lunch.

What the research shows

A study from Wayne State University (Drake et al., Journal of Clinical Sleep Medicine, 2013) had participants take caffeine either right at bedtime, three hours before, or six hours before. Sleep was measured objectively with sleep monitoring.

The result: even caffeine taken six hours before bed cut total sleep time by more than an hour. The interesting part was that the participants barely noticed. They thought they'd slept roughly as usual.

That's why you can't trust the feeling. You fall asleep, you sleep "all night", but the sleep is lighter and shorter than it would have been without the caffeine. Several studies also show that caffeine reduces the share of deep sleep – the part of the night that restores your body the most.

One simple rule

Since six hours still produced a measurable effect, a good rule of thumb is to count backwards from your bedtime: no caffeine in the last eight hours before you plan to sleep.

If you go to bed at 11 pm, the cut-off is 3 pm. Bed at 10 pm means 2 pm.

This doesn't mean giving up coffee. It means the morning and late morning are coffee time, and the afternoon is caffeine-free.

Watch out for hidden caffeine

Coffee isn't the only source:

  • Tea – black and green tea contain caffeine, though less than coffee.
  • Energy drinks and cola – often more than you'd expect, and easy to drink late.
  • Dark chocolate – small amounts, but they count.
  • Decaf – still contains a little caffeine. It's "less", not "zero".

Try it yourself

Follow the rule for two weeks. Change nothing else. Track your sleep – in the app, or just with a quick note in the morning: how rested do you feel, from 1 to 5?

After two weeks, compare. Many people notice the difference most clearly in how they feel in the morning, not in how quickly they fell asleep.

If you notice no difference at all, you may be someone who breaks down caffeine quickly. Then move the cut-off closer to bedtime and test again. The point is to find your limit – not to follow someone else's.

Markus Kask

Markus Kask

Health coach & founder of GoMotion

Want to follow this up in everyday life?

The GoMotion app helps you build habits around sleep, movement, nutrition and focus – one step at a time.

Get the app

Read more: How GoMotion builds better sleep

Wish you had this at work?

Companies run GoMotion for their whole team — health checks, plans and challenges together. Tell us where you work and we'll take it from there.

Suggest it to your employer