Caffeine and Sleep: How Late Is Too Late?
Caffeine can affect sleep many hours after your last cup, and people vary widely in how strongly and how long it affects them. There's no single cutoff time that works for everyone, but moving caffeine earlier in the day is one of the simplest sleep experiments you can run.

- In a controlled study, a large dose of caffeine taken even six hours before bed measurably reduced sleep.[1]
- A 2023 meta-analysis found caffeine reduced total sleep time and increased time to fall asleep, with later and larger doses generally having more effect.[2]
- Sensitivity varies a lot from person to person. Some people sleep fine after an afternoon coffee; others notice effects from a late-morning cup.
- Rather than following one universal rule, move your last caffeine earlier for two weeks and see whether your sleep changes.
The short answer
Caffeine blocks a sleep-promoting signal in the brain and can stay active in your body for many hours. That's why an afternoon coffee can still matter at bedtime, even if you don't feel wired.
How late is too late depends on you: how much you have, how quickly your body clears caffeine, your age, medications, pregnancy and other factors. The practical answer is to find your own cutoff by experiment.
What the evidence says
In a frequently cited study, adults took 400 mg of caffeine—roughly the amount in several cups of brewed coffee—at bedtime, three hours before, or six hours before bed. All three timings disrupted sleep compared with placebo, and even the six-hour dose reduced sleep by about an hour on objective measures. Participants didn't always notice the disruption themselves.
A 2023 systematic review and meta-analysis pooled controlled studies and found that caffeine reduced total sleep time and sleep efficiency and increased the time it took to fall asleep. The authors suggested timing guidance based on the dose, but these estimates are averages, not personal rules.
The U.S. Food and Drug Administration notes that up to about 400 mg a day is generally not associated with negative effects in healthy adults, while sensitivity varies and some people—including those who are pregnant or taking certain medications—should talk with a clinician.[1][2][3]
What you can try
- 01
Find your last dose
Note when you usually have your last caffeinated drink. Include tea, energy drinks, soda, pre-workout supplements and chocolate.
- 02
Move it earlier
For two weeks, move your last caffeine a few hours earlier than usual. If you drink caffeine in the afternoon, try finishing by late morning or midday.
- 03
Keep the rest the same
Keep your wake time and routine steady so you can see whether the caffeine change is what made a difference.
- 04
Taper if needed
Cutting back suddenly can cause headaches and fatigue for a few days. Reducing gradually can make the change easier.
- 05
Watch for the afternoon dip
If you rely on caffeine to get through the afternoon, a short walk, daylight or a brief rest may help—and persistent daytime sleepiness is worth noticing in its own right.
What this may mean for you
If your Sleep Plan suggested moving caffeine earlier, it's because your answers showed caffeine later in the day alongside trouble falling asleep or unrefreshing sleep. It's a free, low-risk experiment. If nothing changes after two weeks, caffeine may not be your main issue, and other parts of your plan become more important.
How this relates to the SleepWell360 Sleep Drivers
Caffeine timing belongs to Recovery. It also interacts with the rest of your plan: caffeine can make it harder to feel sleepy during a wind-down routine and can make night waking more likely.
When to seek professional evaluation
If you need a lot of caffeine just to stay awake during the day, that sleepiness itself is worth discussing with a healthcare professional—especially if you also snore loudly or someone has noticed pauses in your breathing. Talk with a clinician before changing caffeine if you're pregnant, have a heart condition or take medications affected by caffeine.
Continue Improving Your Sleep

Alcohol and Sleep: Why a Nightcap Can Backfire
Why alcohol helps you fall asleep but disrupts sleep later, what the research shows, and practical ways to reduce its effect on your nights.
Read Guide
How to Build a Better Wind-Down Routine
What a wind-down routine is, what the evidence says about light, warm showers and screens, and how to build a simple evening routine you can actually keep.
Read Guide
How Long Should It Take to Fall Asleep?
What's typical for falling asleep, why regularly taking a long time can matter, factors that may be involved, and when to talk with a healthcare professional.
Read GuideSources & Research
SleepWell360 articles provide general sleep education and are not medical advice.
- 1.Journal of Clinical Sleep Medicine: Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (Drake et al., 2013)
- 2.Sleep Medicine Reviews: The effect of caffeine on subsequent sleep: a systematic review and meta-analysis (Gardiner et al., 2023)
- 3.U.S. Food and Drug Administration: Spilling the Beans: How Much Caffeine Is Too Much?