Caffeine before bed: when to have your last cup. The cut-off, worked out

Caffeine Before Bed: When to Have Your Last Cup

"Coffee doesn't affect my sleep" is one of the most common things people say, often right before they describe lying awake at 1 am.

Caffeine before bed can disturb sleep even when you fall asleep easily.

It can make sleep lighter and shorter without you noticing, and its effects last far longer than the buzz. Here's what the research says about when to stop.

In short

A 2023 meta-analysis of 24 studies found caffeine cut total sleep by about 45 minutes and deep sleep by about 11 minutes. It suggested finishing a cup of coffee (about 107 mg) at least 8.8 hours before bed, and a pre-workout dose (about 217 mg) 13.2 hours before. For an 11 pm bedtime, that means coffee by about 2 pm.

How caffeine affects sleep

Caffeine blocks adenosine, the chemical that builds sleep pressure through the day. As long as caffeine is in your system, part of that pressure is masked.

A 2023 meta-analysis of 24 studies quantified the cost. Compared with no caffeine, people slept about 45 minutes less, took about 9 minutes longer to fall asleep, had 7% lower sleep efficiency and lost about 11 minutes of deep sleep.

Deep sleep is the restorative stage, and losing it is why you can wake after "a full night" still feeling unrefreshed.

How long before bed to stop

Bar chart of recommended minimum gap between caffeine and bedtime: 8.8 hours for a cup of coffee of about 107 mg, 13.2 hours for a pre-workout dose of about 217 mg

From the pooled data, the researchers estimated that a cup of coffee, about 107 mg, should be taken at least 8.8 hours before bedtime. A high-dose pre-workout supplement, about 217 mg, needed 13.2 hours.

An earlier sleep-lab study had already shown the scale of the problem: 400 mg taken six hours before bed still cut total sleep by more than an hour (Drake et al., 2013).

Even modest amounts matter for some people. European regulators note that about 100 mg close to bedtime can disturb sleep in sensitive adults (EFSA via EUFIC).

Your cut-off, by bedtime

Bedtime Last coffee (about 9 hours before) Last strong pre-workout (about 13 hours before)
10 pm 1 pm 9 am
11 pm 2 pm 10 am
Midnight 3 pm 11 am
1 am 4 pm Noon

These cut-offs are built for a full cup of coffee or more. A cup of tea, at about 50 mg, likely needs a shorter margin, but if your sleep is poor, treat the evening chai as suspect; see caffeine in chai and coffee. Late dinners with chai compound the problem; see late dinner and sleep.

What makes you more sensitive

People clear caffeine at very different speeds, the US FDA notes, and some medicines and conditions make people more sensitive to it. The simplest test is to move your cut-off earlier for two weeks and see whether your sleep changes.

For the afternoon dip, a moderate dose taken early works better than a large one taken late; see the 3 pm slump.

Our Energy strip gives a measured 50 mg of caffeine with L-theanine 30 mg, vitamin B6 1.5 mg and B12 2.4 mcg, so it's easy to keep track of how much you've had and when.

For adults only; not for children, during pregnancy or breastfeeding, or for people sensitive to caffeine. Count it with your tea and coffee. Explore the Energy strip.

Browse all products

Key takeaways
  • Caffeine reduced total sleep by about 45 minutes and deep sleep by about 11 minutes across 24 studies.
  • Finish a cup of coffee at least 8.8 hours before bed, and a strong pre-workout at least 13.2 hours before.
  • For an 11 pm bedtime, aim for your last coffee by about 2 pm.
  • People clear caffeine at different speeds; test an earlier cut-off for two weeks.

Frequently asked questions

How long before bed should I stop drinking coffee?

A 2023 meta-analysis suggested at least 8.8 hours for a typical cup of coffee of about 107 mg, so by about 2 pm for an 11 pm bedtime. Larger doses need more time: about 13 hours for a strong pre-workout supplement. Smaller amounts, such as a cup of tea, likely need less.

How long does caffeine stay in your system?

Caffeine's effects can last many hours. In one study, a dose taken six hours before bed still cut sleep by more than an hour. How fast you clear it varies widely from person to person, so some people feel it much longer than others.

Can I drink chai at night?

Regular chai contains caffeine, about 50 mg in a 220 ml cup, which can disturb sleep in sensitive people. If you sleep poorly, try stopping chai by mid-afternoon for two weeks. A caffeine-free alternative after dinner, such as warm milk or herbal tea, is a safer evening habit.

Why can I fall asleep after coffee but still feel tired?

Caffeine can make sleep lighter and shorter even if you fall asleep easily. In a meta-analysis, it reduced deep sleep by about 11 minutes and total sleep by about 45 minutes. You may not notice these changes, but you feel them the next morning as poor-quality rest.

Does decaf coffee affect sleep?

Decaf contains very little caffeine, about 1 to 2 mg per cup according to Mayo Clinic, so it's unlikely to affect sleep for most people. If you love an evening coffee, decaf is a reasonable swap. Watch the sugar and portion size if it's a large milky drink.

Sources
  1. Gardiner C et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev 2023;69:101764. Link
  2. Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med 2013;9(11):1195–1200. Link
  3. EFSA opinion on the safety of caffeine, 2015 (EUFIC summary). Link
  4. Mayo Clinic, Caffeine content for coffee, tea, soda and more. Link
  5. US FDA, Spilling the beans: how much caffeine is too much?. Link

This article is for general information and is not medical advice. Express Melts products are health supplements, not medicines, and are not intended to diagnose, treat, cure or prevent any disease. Talk to your doctor or paediatrician before starting any supplement, especially for children, during pregnancy or breastfeeding, or if you take regular medication.

Back to blog