Skip to content
Breathe to Sleep

Wind-Down Routines

When to Stop Caffeine for Better Sleep: The 6-Hour Rule and an Evening Reset

Caffeine can disturb sleep even when taken six hours before bed. Here is what a home sleep study found, how to set your cut-off, and an evening breathing reset.

By , breath master and creator of the Breath Interval app.

20+ years teaching people to control their breath, and their state of mind.

· 4 min read

On this page
  1. How many hours before bed should you stop caffeine?
  2. Why caffeine lingers into the night
  3. How to set your caffeine cut-off and evening reset
  4. What about the afternoon slump?
  5. A two-week caffeine experiment
  6. Swapping the ritual, not just the drink
  7. What the research shows
  8. Common mistakes
  9. Who should be careful
A soft umber glow fading into a dark violet evening sky

Most people know not to drink coffee right before bed. Far fewer realize that the afternoon cup can still be working at midnight. Caffeine lingers in the body for hours, and the effect on sleep can be there even when you do not feel wired.

This article covers what a home sleep study found about caffeine timing, how to set your own cut-off, and a short breathing reset to replace the late cup.

How many hours before bed should you stop caffeine?

At least 6 hours. In a study run in people's own homes, participants took 400 mg of caffeine or a placebo at three different times: at bedtime, 3 hours before bedtime, and 6 hours before bedtime. Sleep was measured with both diaries and a portable sleep monitor. Caffeine at all three times significantly disturbed sleep compared with placebo, including the dose taken 6 hours before bed (Drake et al., 2013).

The authors concluded that this supports the common advice to avoid substantial caffeine for at least 6 hours before bed (Drake et al., 2013). For some sensitive people, the window may need to be even longer.

Why caffeine lingers into the night

Caffeine works by blocking adenosine, a chemical that builds up while you are awake and makes you feel sleepy. As long as caffeine is circulating, that sleepy signal is muffled. Your body clears caffeine slowly, and the speed varies from person to person, so a 3 p.m. coffee can still be partly active late in the evening.

The tricky part is that you may fall asleep anyway and not notice the difference. The effect often shows up as lighter or shorter sleep, which you only feel the next day, and then reach for more coffee.

How to set your caffeine cut-off and evening reset

  1. Find your bedtime. Say it is 10:30 p.m.
  2. Count back 6 hours. That gives a cut-off around 4:30 p.m. If you are sensitive, move it to early afternoon.
  3. Know your sources. Coffee, black and green tea, energy drinks, cola, and some chocolate and pain relievers all contain caffeine.
  4. Replace the late cup with a reset. When the afternoon dip hits, sit or stand comfortably.
  5. Breathe in for 4 seconds, out for 6 seconds. Keep the breaths soft and normal sized.
  6. Do it for 5 minutes. About 30 slow breaths. Finish with a glass of water or a short walk outside.
  7. Repeat in the evening. Ten minutes of the same breath before bed helps the wind-down. Slow breathing before bed is linked with better self-rated sleep (Eide et al., 2026).
  8. Beginner fallback. If you rely on caffeine heavily, move your cut-off earlier by an hour each week rather than all at once.

What about the afternoon slump?

The early-afternoon dip in alertness is a normal part of the daily rhythm, not a caffeine deficiency. Options that do not borrow from tonight's sleep:

  • Daylight and movement. A 10-minute walk outside.
  • A very short nap, early. In a lab study, a 10-minute afternoon nap improved alertness and performance right away, with some benefits lasting up to 155 minutes (Brooks & Lack, 2006). Keep it short and before mid-afternoon.
  • A breathing reset. Five minutes of slow breathing gives a calm, clear break.

A two-week caffeine experiment

If you are not sure caffeine affects you, test it. For one week, keep your usual habits and rate each morning from 1 to 5 for how rested you feel. For the second week, keep everything the same except a firm cut-off 6 hours before bed, and rate your mornings again. Compare the two weeks. Many people find their mornings are a little brighter, even though they did not feel the evening caffeine at the time.

Keep the experiment fair: same bedtime, same wake time, and no extra naps. If you also add the evening breathing reset, add it in the second week only, or run it as a third week, so you can tell which change helped.

Swapping the ritual, not just the drink

For many people the afternoon coffee is less about caffeine and more about the pause it brings: a few minutes away from the desk, a warm cup in the hands. Keep the pause. A herbal tea or warm water in your usual mug, five minutes of slow breathing by a window, and a short stretch can give you the same break without the cost to your night.

What the research shows

  • 400 mg caffeine at 0, 3 or 6 hours before bed vs placebo, measured at home: all three timings disturbed sleep significantly (Drake et al., 2013).
  • Authors' conclusion: avoid substantial caffeine for at least 6 hours before bed (Drake et al., 2013).
  • 24 young adults after restricted sleep: a 10-minute nap gave immediate benefits to alertness and performance (Brooks & Lack, 2006).
  • Sleep hygiene as a single treatment: the World Sleep Society did not endorse sleep hygiene education alone for chronic insomnia, because evidence for it on its own is weak (Morin et al., 2023).

The takeaway: a caffeine cut-off is a sensible part of good sleep habits, and an afternoon breathing reset is a gentle replacement. On its own, sleep hygiene is not a treatment for chronic insomnia.

Common mistakes

  • Forgetting hidden caffeine. Tea, cola, energy drinks and some medicines count.
  • Judging by how you feel. You can fall asleep and still sleep more lightly.
  • Swapping coffee for a long late nap. A long nap late in the day can make bedtime harder.
  • Cutting out caffeine abruptly. Headaches and grogginess can follow. Taper.

Who should be careful

  • People who are pregnant, have heart rhythm problems, or take medicines that interact with caffeine: ask your clinician about safe amounts and timing.
  • People with long-term insomnia: a caffeine cut-off helps, but cognitive behavioral therapy for insomnia is the recommended treatment.
  • People who snore loudly, wake gasping or are very sleepy in the day: daytime sleepiness can be a sign of sleep apnea. See a doctor rather than relying on more caffeine.
  • Anyone who feels dizzy during breathing: stop and breathe normally.

Frequently asked questions

How many hours before bed should I stop caffeine?

At least 6 hours. In a home sleep study, a 400 mg dose of caffeine disturbed sleep even when taken 6 hours before bedtime.

How much caffeine was used in the study?

400 mg, which is a moderate to large dose, roughly what you might get from several cups of brewed coffee depending on strength and size.

Does decaf coffee affect sleep?

Decaf contains much less caffeine than regular coffee, but usually not zero. If you are very sensitive, keep even decaf to earlier in the day.

What can I do instead of an afternoon coffee?

A short walk outside, a glass of water, or 5 minutes of slow breathing can help with the afternoon dip without affecting your night.

Is it safe to cut caffeine suddenly?

Stopping suddenly can cause headaches and tiredness for a few days. Cutting back gradually is usually easier. Ask a clinician if you have health concerns.

Sources

  1. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013;9(11):1195-1200.
  2. Brooks A, Lack L. A brief afternoon nap following nocturnal sleep restriction: which nap duration is most recuperative? Sleep, 2006;29(6):831-840.
  3. Eide EM, Hernes HM, Gronli J. Slow breathing techniques before bedtime and the effects on sleep: a systematic review. Sleep Medicine Reviews, 2026;87:102284.
  4. Morin CM, Bei B, Bjorvatn B, et al. World Sleep Society international sleep medicine guidelines position statement endorsement of behavioral and psychological treatments for chronic insomnia disorder in adults. Sleep Medicine, 2023;109:164-169.
Not medical advice. This article is for general wellness and education only. It is not a substitute for professional medical advice, diagnosis, or treatment. Talk to a qualified healthcare provider before starting a new breathing practice, especially if you have a medical condition or are pregnant. Stop and seek help if you feel dizzy, faint or unwell.