Coffee and sleep: what time should you stop drinking coffee?

Coffee and sleep: what time should you stop drinking coffee?

By the Mush n Go editorial team - 18 October 2026

By the Mush n Go editorial teamPublished 18 October 202615 min read

Coffee and sleep

To protect your sleep, stop drinking regular coffee 8 to 9 hours before bed: around 2 pm if you go to bed at 11 pm. Caffeine has a half-life of about five hours, and a study published in 2013 showed that a high dose taken six hours before bed still shortened the night. Here is how to set your own cut-off.

~5 hthe average half-life of caffeine in adults
6 hbefore bed, caffeine still shortened the night (Drake, 2013)
100 mgclose to bedtime can disturb some adults' sleep (EFSA)
20 mgof caffeine per cup of Brainstoorm, compared with 80 mg in an espresso
The evening routine

Sleep+

Our sleep formula in capsules: reishi, valerian, magnesium bisglycinate, acacia fibre and melatonin. 1 to 2 capsules 30 minutes before bed.

Discover Sleep+ →
The afternoon coffee

Brainstoorm

Our mushroom coffee: a roasted chicory base, 6,040 mg of actives per cup and only 20 mg of NewCaff® caffeine, four times less than an espresso.

Discover Brainstoorm →

How caffeine works

Caffeine does not give you energy, it masks tiredness.

To understand the link between coffee and sleep, you have to talk about one molecule: adenosine. It builds up in the brain throughout the day, the longer you stay awake. The more there is, the higher your sleep pressure. It is what makes you yawn in the evening.

Caffeine has a shape similar to adenosine. It binds to the same receptors without activating them, and blocks them. The tiredness signal is still there, but it is no longer heard. You feel more alert, while your need for sleep has not changed.

Two things follow from this. First, as long as there is caffeine in your blood, falling asleep is harder, because the sleep signal is scrambled. Second, when the caffeine wears off, all the built-up adenosine hits you at once: the famous slump, which often prompts another coffee. Read also: Coffee before a workout: good idea or not?.

That is what the cut-off time is all about: giving your body time to clear the caffeine before lights out. It takes much longer than you might think.

Caffeine's half-life

Five hours to clear half of it.

After a coffee, caffeine reaches the blood within about thirty minutes to an hour. Then the liver clears it slowly. The time it takes to clear half of it is called the half-life: around five hours on average in adults, with big differences from one person to another, from about two to more than eight hours.

In practice, half of your 4 pm coffee is still in your blood at 9 pm. And a quarter is still there at around 2 am. Here is what remains, in theory, of an 80 mg espresso at 11 pm, depending on when you drank it.

Espresso drunk at Time elapsed by 11 pm Caffeine remaining, approx.
8 am 15 hours 10 mg
12 pm 11 hours 17 mg
2 pm 9 hours 23 mg
4 pm 7 hours 30 mg
6 pm 5 hours 40 mg
8 pm 3 hours 53 mg

A simplified calculation, for a five-hour half-life and a single espresso. If you drink several coffees, the leftovers add up. If your half-life is longer, the figures are higher.

This table explains why the morning coffee almost never causes problems, and why the 5 pm one so often does. It also shows the value of a lower-caffeine drink in the afternoon: a cup of Brainstoorm at 20 mg, drunk at 4 pm, leaves about 8 mg at 11 pm by the same calculation, compared with 30 mg for the espresso.

Why we are all different

The same coffee, not the same night.

You probably know someone who drinks an espresso after dinner and sleeps like a baby, and someone else who does not sleep a wink after a coffee at 3 pm. Neither is exaggerating. Sensitivity to caffeine varies enormously, for well-understood reasons.

Genetics

Caffeine is mainly cleared by a liver enzyme, CYP1A2. Depending on your genes, it works fast or slowly. Other genetic variations make the brain more or less sensitive to caffeine.

Pregnancy

Clearance slows down markedly during pregnancy, especially in the third trimester. The same cup stays in the blood much longer.

The pill

Oral contraceptives also lengthen caffeine's half-life. A mid-afternoon coffee can then weigh on the night.

Smoking

Conversely, smoking speeds up clearance. Smokers who quit often find that their usual coffee makes them jittery.

Age matters too: older people are generally more sensitive to caffeine's effects on sleep. Finally, some medicines slow its clearance. Talk to your doctor or pharmacist if needed.

What the studies say

Coffee and sleep: four studies worth knowing.

Here are four often-cited studies, with their exact conditions. The full references are at the bottom of the page.

Drake et al., 2013 · United States

12 good sleepers were given 400 mg of caffeine, the equivalent of several coffees, at bedtime, three hours or six hours before, and a placebo the rest of the time. Their sleep was recorded at home. Even taken six hours before bed, caffeine cut total sleep time by more than an hour. And participants did not always notice.

Burke et al., 2015 · United States

A dose of caffeine equivalent to a double espresso, taken three hours before bed, delayed participants' body clock by about 40 minutes, as measured by their melatonin rhythm. So caffeine does not just block tiredness: it also shifts the time your body gets ready for sleep.

Clark and Landolt, 2017 · Switzerland

This review brought together epidemiological studies and controlled trials on the subject. Conclusion: caffeine lengthens the time it takes to fall asleep, reduces sleep duration and efficiency, decreases deep sleep and worsens perceived quality. Older people appear to be more sensitive.

Gardiner et al., 2023 · Australia

This meta-analysis pooled trials on caffeine and the sleep that followed. According to its authors, to avoid shortening the night, a cup of coffee should be drunk at least 8.8 hours before bed, and a larger dose, such as a pre-workout supplement, even earlier.

These studies do not all say the same thing about dose, but they agree on the essentials: late-afternoon coffee matters, and it matters even when you do not feel it is bothering you.

Your cut-off time

Coffee and sleep: what time should you stop caffeine?

Combining caffeine's half-life with the studies gives a simple rule to remember: no regular coffee in the 8 to 9 hours before bed. For most people, that means having their last coffee in the early afternoon.

You go to bed around Last regular coffee After that
10 pm Around 1 pm Decaf, chicory or a low-caffeine drink
11 pm Around 2 pm Decaf, chicory or a low-caffeine drink
Midnight Around 3 pm Decaf, chicory or a low-caffeine drink
1 am Around 4 pm Decaf, chicory or a low-caffeine drink

A benchmark for one cup of regular coffee. If you are sensitive, pregnant, on the pill or sleeping badly, bring the cut-off forward. A stronger drink, such as an energy drink, needs more margin.

Some people can drink a coffee at 4 pm with no visible effect; others will need to stop at midday. The most reliable approach is to test: bring your last coffee forward by two hours for a week, and watch how you fall asleep and whether you wake in the night.

If you work nights or irregular shifts, work back from when you actually go to bed, not from the time of day. The principle is the same: no caffeine in the hours before you need to sleep.

What changes during the night

You sleep, but less well.

Many people say: "Coffee doesn't stop me sleeping." Sometimes that is true for falling asleep. But caffeine also affects the quality of the night, and that is where the studies are most telling.

  • Falling asleep takes longer, even when you do not notice.
  • The night is shorter, because you fall asleep later or wake earlier.
  • Deep sleep, the most restorative kind, decreases.
  • Micro-awakenings are more frequent, and sleep is lighter.
  • On waking, the night feels less restorative, which prompts more coffee.

The most interesting finding of the Drake study is this: with caffeine taken six hours before bed, the recordings showed a markedly shorter night, while the participants did not rate it as much worse. So you can sleep badly because of coffee without realising it.

Habit does not fully protect you. Heavy coffee drinkers build tolerance to some effects, such as feeling wired, but studies still see effects on sleep in regular drinkers.

Hidden sources

Caffeine does not only come from coffee.

Stopping coffee at 2 pm does not help much if you have a fizzy drink at 6 pm or black tea after dinner. Here are EFSA's benchmarks for the main sources of caffeine.

Drink or food Serving Caffeine, approx.
Filter coffee 200 ml 90 mg
Espresso 60 ml 80 mg
Energy drink 250 ml 80 mg
Black tea 220 ml 50 mg
Cola 355 ml 40 mg
Dark chocolate 50 g 25 mg
Brainstoorm Coffee or Chocolate-Hazelnut 1 cup 20 mg

EFSA benchmarks (2015), except Brainstoorm, whose dose is set by the recipe. Actual content varies by product and preparation.

Think about green tea and maté too, which contain caffeine, and some pain or cold medicines, which sometimes include it. The leaflet will say. As for evening herbal teas, chamomile, verbena and lime blossom contain none.

Decaf in the evening

Decaf coffee and sleep: the right compromise?

Decaf is the most obvious way to keep the taste of coffee in the evening. It contains very little caffeine: decaffeinated roasted coffee must not contain more than 0.1%, a small amount, but not zero. Analyses have found a few milligrams per cup in most of the decaf coffees tested. To find out more, discover our mushroom coffee.

For the vast majority of people, a cup of decaf after dinner makes no difference to the night. Things can be different if you drink several large cups, or if you are particularly sensitive. In that case, chicory, roasted and naturally caffeine-free, can take over.

Decaf

The taste of coffee, a few milligrams of caffeine at most. The right choice after dinner for most people.

Chicory

Roasted, bitter, caffeine-free. A different taste, ideal for very sensitive people.

Mushroom coffee

20 mg of caffeine per cup of Brainstoorm: perfect in the afternoon instead of a third espresso, not just before bed.

Herbal tea

Chamomile, verbena, lime blossom: zero caffeine, and a warm ritual that tells your body the day is ending.

For more ideas for caffeine-free or low-caffeine drinks, our guide what to drink instead of coffee runs through the alternatives.

The vicious circle

Bad night, more coffee, another bad night.

This is the most common trap, and it sets in quietly. A slightly short night, an extra coffee in the morning to get through. The afternoon slump arrives, another coffee to get past it. In the evening, the caffeine is still there, falling asleep drags on, the night is short. And the next day, it starts all over again.

Stress often keeps the loop going. A racing mind in the evening, on top of afternoon caffeine, makes falling asleep even harder. Our article on how to lower cortisol offers some ideas for that side of things.

To break the circle, there is no need to give everything up. Often it is enough to change the afternoon coffee, the one that does the most damage to the night. That is exactly what several of our customers describe after switching to Brainstoorm, with 20 mg of caffeine per cup instead of about 80 mg.

"I particularly like the steadier energy it gives: no jitters and no energy crash."

★★★★★ Nawel F. · 7 January 2026

"More mental clarity, more energy, and the famous 4 pm slump... gone!"

★★★★★ Virginie L. · 29 August 2026

Trustpilot reviews of Brainstoorm, quoted as written and translated from French. Mush n Go is rated 4.8/5 on Trustpilot, with more than 50,000 customers.

The routine

A day designed for good sleep.

Here is a sample day for someone who goes to bed around 11 pm. It keeps coffee where it is most useful, and replaces it where it harms the night.

On waking

Natural light, a big glass of water, then your morning coffee, regular or Brainstoorm. This is the best time of day for caffeine.

Mid-morning

If you have a second coffee, keep it before midday. After that, the countdown begins.

Around 2 pm

Your last regular coffee, if you want one. After that, switch to a low-caffeine drink.

Around 4 pm

Slump time. A cup of Brainstoorm at 20 mg, a short walk outside or a glass of water rather than a third espresso.

After dinner

Decaf, chicory or herbal tea. The screens go off, and the lights go down.

30 minutes before bed

1 to 2 capsules of Sleep+ for those who follow a sleep routine, with reishi, valerian, magnesium bisglycinate and melatonin.

To find out more about evening ingredients, see our pages on reishi, valerian, melatonin and magnesium bisglycinate. And if you are wondering which mushroom to choose for your nights, our comparison of the best mushroom for sleep sets it out.

Cutting down without suffering

Bring your last coffee forward in three steps.

Going from a coffee at 5 pm to a last coffee at 2 pm overnight can be tough, especially if you drink a lot. The headaches and fatigue of stopping too abruptly make many people give up. It is better to go gradually.

1

Observe

For one week, note the time of each coffee and how you sleep. You will soon see which cup weighs on the night.

2

Replace

First replace the last cup of the day with a low-caffeine or decaf drink, keeping the same routine.

3

Bring it forward

Each week, bring your last regular coffee forward by an hour, until you reach your cut-off time.

A few precautions to bear in mind.

  • If you are pregnant or breastfeeding, EFSA recommends not exceeding 200 mg of caffeine a day, from all sources.
  • If your sleep problems last more than a few weeks, see your doctor: caffeine is not always the cause.
  • Melatonin or plant-based supplements do not replace medical advice. Ask for advice if you are on medication, pregnant or breastfeeding.
  • Stick to the dose on the label, and do not take a sleep supplement before driving.

Who it is for

Rethinking your cut-off time is worthwhile if…

  • You take more than half an hour to fall asleep, for no obvious reason.
  • You still drink a regular coffee after 3 pm.
  • You wake in the night, or very early in the morning, and cannot get back to sleep.
  • You need a coffee to feel awake, then another to get through the afternoon.
  • You are pregnant, on the pill, or have recently stopped smoking.

If you want a complete routine for the evening, the Relaxation Pack brings together Anti-Stress and Sleep+. And to understand the role of mushrooms in rest, read our guide mushrooms, adaptogenic plants and sleep.

Your questions

Coffee and sleep: your questions.

What time should you stop drinking coffee to sleep well?

As a general rule, 8 to 9 hours before bed: around 2 pm if you go to bed at 11 pm. People who are sensitive, pregnant or on the pill should stop earlier.

What is the half-life of caffeine?

About five hours on average in adults, with big variations from one person to another, from about two to more than eight hours. It gets longer during pregnancy and with the pill, and shorter in smokers.

How long does caffeine stay in the body?

Several hours. With a five-hour half-life, half of a coffee is still present five hours later, and a quarter ten hours later. It often takes a whole day to clear it almost completely.

Does a coffee at 4 pm stop you sleeping?

Not necessarily from falling asleep, but it can reduce the quality and length of the night. In Drake's study, a high dose of caffeine taken six hours before bed still shortened sleep by more than an hour. To find out more, discover our valerian or melatonin comparison.

Does decaf coffee stop you sleeping?

Rarely. It contains very little caffeine, a few milligrams per cup at most. A cup after dinner does not bother most people. Very sensitive people may prefer caffeine-free chicory. To find out more, discover the benefits and side effects of mushroom coffee.

Why doesn't coffee stop me sleeping?

Because sensitivity to caffeine varies a lot, depending on genetics, age and habits. But even without trouble falling asleep, caffeine can reduce deep sleep. Studies show that people do not always notice.

Can coffee cause night waking?

Yes. Caffeine makes sleep lighter and encourages waking during the night. If you wake often, bringing your last coffee forward is one of the first things to try.

Is tea better than coffee in the evening?

It contains less caffeine than coffee, about 50 mg for a cup of black tea according to EFSA, but not zero. In the evening, choose a caffeine-free herbal tea, such as chamomile, verbena or lime blossom.

Can you drink mushroom coffee in the afternoon?

Yes, that is actually its best slot. A cup of Brainstoorm contains 20 mg of caffeine, about four times less than an espresso. It is a good replacement for the afternoon coffee, but not for the evening herbal tea.

What can I take in the evening to sleep better?

First, a routine: no late caffeine, less screen time, a regular bedtime. Some people add a supplement, such as Sleep+, at 1 to 2 capsules 30 minutes before bed.

Sources

  1. Drake C., Roehrs T., Shambroom J., Roth T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11).
  2. Burke T. M. et al. (2015). Effects of caffeine on the human circadian clock in vivo and in vitro. Science Translational Medicine, 7(305).
  3. Clark I., Landolt H. P. (2017). Coffee, caffeine, and sleep: a systematic review of epidemiological studies and randomized controlled trials. Sleep Medicine Reviews, 31.
  4. Gardiner C. et al. (2023). The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews, 69.
  5. EFSA NDA Panel (2015). Scientific opinion on the safety of caffeine. EFSA Journal, 13(5):4102.

Keep reading

Go further.

Coffee is only one piece of sleep. Discover our other guides, or our formula Sleep+.

Discover our mushroom and adaptogenic plant supplements

Our vegan formulas, made in Toulouse by a French manufacturer.

FocusEnergyAnti-StressSleepRecoveryImmunity

See all our supplements