longevitywatch

Does avoiding coffee in the afternoon really help my sleep?

Moderate evidence

Whether an afternoon cup disrupts your sleep depends strongly on how much you drink. One cup, approximately 100 mg of caffeine, is unlikely to be particularly problematic; three to four cups in quick succession can still disrupt falling asleep even 12 hours later.

One cup of coffee in the afternoon probably does not disrupt your sleep. In a placebo-controlled study, 23 men were given a low or high dose of caffeine at various points before bedtime. At 100 mg, roughly one cup, there was no measurable difference compared with the placebo, even when it was consumed 4 hours before bedtime.

Four cups at once is a different matter. At 400 mg, roughly four cups of filter coffee, falling asleep was already disrupted when that dose was taken 12 hours before bedtime. Four hours before bedtime, perceived sleep quality dropped by 34%. A broad analysis of studies confirms this pattern: caffeine lengthens the time it takes to fall asleep, shortens total sleep time, and worsens how rested you feel in the morning. Dose and timing are the key factors.

If you want to sleep well, the rule of thumb is: stick to a maximum of 100 mg of caffeine, around one cup of caffeinated coffee, if you want to drink close to your bedtime. If you drink three to four cups in quick succession, be aware that research showed this still disrupted falling asleep even 12 hours before bedtime. Whether it is filter coffee or espresso makes no difference: what matters is the total amount of caffeine.

How sensitive you are varies from person to person. This is partly determined by genetics: your body breaks down caffeine faster or more slowly, and your brain responds to it more or less strongly. Older people appear on average to be more sensitive than younger people. If you notice that one cup of coffee in the afternoon makes you sleep worse, that is not your imagination: it fits a recognisable and well-supported pattern. If you notice no effect at all, then one cup is genuinely not a problem for most people.

The evidence
3 studies · 1 randomised trial

Based on one controlled experiment with low and high doses (PMID 39377163), a systematic review of epidemiological studies and RCTs (PMID 26899133), and a sleep guideline review (PMID 36841492).

Last checked: September 2026 · how this was judged
Related answers

Does morning light help you fall asleep more easily in the evening?

A consistent morning routine with daylight helps sharpen your biological clock, allowing you to fall asleep earlier and more easily in the evening. The evidence is not perfect, but consistent enough to make it worthwhile: step outside briefly shortly after waking up.

Yes · Moderate evidence

Does a cool, dark bedroom really help you sleep better?

Studies show that a cool, dry bedroom improves sleep quality. Both temperature and humidity play a role in this.

Yes · Preliminary evidence

Does walking outside during the day help me sleep better at night?

A daily walk of around half an hour outside helps improve your sleep, as shown by a randomised study. The surroundings matter little, but air pollution can dampen the effect.

Yes · Moderate evidence

Does the menopause disrupt my sleep, and what can help?

The menopause genuinely disrupts your sleep, mainly through hot flushes and hormonal changes. A talking therapy designed specifically for sleep problems is the best first step; hormone therapy or melatonin may come into the picture after that.

Yes · Moderate evidence

Can cognitive behavioural therapy help me sleep better long-term without pills?

CBT-I demonstrably produces lasting sleep improvement, even after the sessions end, something that does not apply to sleep medication. Seek out a therapist who offers CBT-I, as that delivers the best and most durable results.

Yes · Strong evidence

Does magnesium really help you sleep better?

Magnesium may be worth trying for sleep problems, but the evidence is limited and the studies are partly contradictory. At normal doses it is safe; in any case, make sure you get enough through your diet.

Moderate evidence
All Coffee answers on “What works” →
Related research
03 Nov
Brain waste clearance improved in mice with electromagnetic therapy
20 Oct
Sleep after 50: what changes and what you can do about it
11 Oct
Winter sleepiness has a biological circuit in the brain
Don't see your question?
Ask it and we'll look it up for you.
Ask a question →
Newsletter

Stay in the loop

Every Thursday, the most important longevity research in your inbox, focused on what you follow.