For most people, caffeine within about 6 to 8 hours of bedtime can reduce sleep quality, even if you fall asleep fine. In one study, 400 mg taken six hours before bed cut total sleep by more than an hour. A sensible default is to stop caffeine by early-to-mid afternoon for an 11 p.m. bedtime, earlier if you're sensitive or a slow metaboliser.
Key takeaways
- Caffeine blocks adenosine, the chemical that builds sleep pressure.
- It can reduce total sleep, deep sleep and sleep quality without you noticing.
- A 6 to 8 hour cutoff before bed works for most people.
- Sensitivity varies with genetics, pregnancy, medications and age.
- Poor sleep drives more caffeine use, which drives poorer sleep. Break the loop early in the day.
You had a coffee at 4 p.m., fell asleep at 11 without trouble, and woke up feeling like you'd slept on a job site. It's tempting to blame the mattress. It might be the coffee.
Caffeine affects sleep in ways most people don't notice in the moment. Here's how it works, what the research says, and how to set a cutoff that fits your life.
How caffeine interferes with sleep
Adenosine is a chemical that builds up in your brain the longer you're awake. It binds to receptors and creates sleep pressure, the growing drive to sleep. By bedtime, high adenosine helps you fall asleep and supports deep, restorative sleep.
Caffeine blocks adenosine receptors. That's why it makes you alert. If caffeine is still in your system at bedtime, it's still partly blocking that signal. The effects can include:
- Taking longer to fall asleep
- Less total sleep
- Less deep sleep (slow-wave sleep), the most physically restorative stage
- More awakenings and lighter sleep overall
The tricky part is that you may not notice. You might fall asleep normally and still get less deep sleep.
What the research says
Six hours isn't always enough
A widely cited 2013 study gave participants 400 mg of caffeine either at bedtime, three hours before, or six hours before, and compared their sleep with placebo. Even the dose taken six hours before bed reduced total sleep time by more than an hour as measured at home. The researchers recommended avoiding substantial caffeine for at least six hours before bed.
Four hundred milligrams is a large dose, but it's not unusual over an afternoon: one large café coffee can come close on its own.
Caffeine's long half-life
Caffeine's half-life averages about five hours in healthy adults, with a wide range of roughly two to ten hours. With an average half-life:
- A 180 mg dose at 2 p.m. leaves about 90 mg at 7 p.m. and about 45 mg at midnight.
- The same dose at 5 p.m. leaves about 70 mg at 11 p.m.
For a slow metaboliser, those numbers can be roughly double.
Habitual users aren't immune
People who drink caffeine daily develop some tolerance to its alerting effects, but research suggests sleep effects persist. Feeling "used to it" doesn't mean your deep sleep is untouched.
Setting your personal cutoff
Start with 6 to 8 hours
| Bedtime | Default cutoff |
|---|---|
| 9:30 p.m. | 1:30 to 3:30 p.m. |
| 10:30 p.m. | 2:30 to 4:30 p.m. |
| 11:30 p.m. | 3:30 to 5:30 p.m. |
Go earlier if any of these apply
- You're sensitive to caffeine or get jittery easily
- You're pregnant (caffeine clears much more slowly in later pregnancy)
- You take hormonal contraceptives or medications that slow caffeine metabolism
- You're older, or you already have trouble sleeping
- You've recently quit smoking (smoking speeds caffeine clearance)
Mind the dose
A small cup of green tea at 3 p.m. isn't the same as a 400 mg coffee. If you need something later, smaller is better. Work Water's Lemon Iced Tea has 140 mg in a 355 mL can, a lighter option than a full 473 mL can at 180 mg, but it still counts. Late doses of any size add up.
Watch hidden caffeine
Chocolate, cola, some teas, pre-workout supplements and some pain relievers contain caffeine. An evening workout with a pre-workout scoop can easily put 200 mg into your system at 7 p.m.
The caffeine-sleep loop
This is the pattern many people get stuck in:
- Short or poor sleep
- More caffeine the next day, often later
- Late caffeine reduces sleep quality
- Back to step one, slightly worse
Breaking the loop usually means moving caffeine earlier, not just cutting it. Keep the morning dose; drop or shift the afternoon one. Use non-caffeine tools for the afternoon dip: a walk, daylight, water, a short nap.
Filed under: relatedLemon Iced Tea. Smaller can. Same job.140 mg natural caffeine · non-carbonated · 24 x 355 mL · $71.76How to tell if caffeine is hurting your sleep
Try a two-week experiment:
- Week one: your usual routine. Note bedtime, how long it took to fall asleep, night wakings and how rested you feel each morning on a 1 to 5 scale.
- Week two: same total caffeine, but none after 1 p.m.
Compare. Many people see better mornings in week two even if they didn't think caffeine affected them.
If you can't sleep after caffeine
- Don't fight it in bed for hours. If you're awake for more than about 20 minutes, get up, keep lights dim, do something calm and return when sleepy.
- Avoid screens and bright light, which push your body clock later.
- Don't drink alcohol to counteract it. Alcohol may make you drowsy but fragments sleep later in the night.
- Keep your wake time the same the next morning to avoid shifting your clock.
- Have your caffeine earlier tomorrow.
Sleep habits that make a cutoff easier
A caffeine cutoff is easier to stick to when the rest of your sleep routine supports it:
- Keep a consistent wake time, even on weekends. It anchors your body clock more than a consistent bedtime does.
- Get morning daylight. Ten to twenty minutes outside early in the day strengthens your circadian rhythm and helps you feel sleepy at night.
- Move during the day. Regular physical activity is associated with better sleep quality, though intense exercise right before bed can be stimulating for some people.
- Keep the bedroom dark, cool and quiet. Blackout curtains, a slightly cool temperature and white noise if needed.
- Wind down. A consistent 30-minute routine before bed with dimmer lights and fewer screens signals that the day is over.
- Limit alcohol. It can make you drowsy but tends to fragment sleep in the second half of the night.
- Don't nap late. A long nap after mid-afternoon reduces sleep pressure at bedtime, much as caffeine does.
Shift workers
If you work nights, "bedtime" might be 8 a.m. The same rule applies: stop caffeine about six hours before you plan to sleep. See our night shift guide.
Caffeine, sleep and the next day: the real trade
It helps to frame late caffeine as a trade between two days. Today, a 4 p.m. can might buy you an extra hour of focus. Tomorrow, the lost deep sleep costs you alertness, mood and patience, often more than an hour's worth. Most people only notice the first half of that trade, because the cost arrives the next morning and feels like "just a bad night."
Once you see it as a trade, the decision gets easier. If the 4 p.m. task genuinely matters more than tomorrow, take the trade knowingly and keep the dose small. Most days, it doesn't.
Decaf and caffeine-free options
For afternoon and evening, consider decaf coffee (usually a few milligrams per cup), herbal tea, sparkling or flat water, or an electrolyte drink without caffeine. Work Water's Daily Hydration sticks are caffeine-free.
When to see someone
If you have trouble sleeping three or more nights a week for months, snore loudly, stop breathing during sleep (often noticed by a partner) or feel exhausted despite enough time in bed, talk to your doctor. Insomnia and sleep apnea are common and treatable, and caffeine is often a symptom of the problem rather than the cause.
The bottom line
Caffeine lingers much longer than its buzz. Even when you fall asleep fine, late caffeine can quietly cut sleep length and depth. Start with a 6 to 8 hour cutoff before bed, go earlier if you're sensitive, keep late doses small, and fix the afternoon dip with light, movement and water instead of another can. Better nights make for better days, and fewer cans needed to get through them.
Frequently asked questions
How many hours before bed should I stop caffeine?
For most people, 6 to 8 hours. Sensitive people and slow metabolisers may need longer.
Can caffeine affect sleep even if I fall asleep easily?
Yes. It can reduce total sleep and deep sleep and increase night wakings without obviously delaying sleep onset.
Is a 3 p.m. coffee too late?
For an 11 p.m. bedtime, a 3 p.m. coffee is right at the edge. A small dose might be fine for some people; a large one may affect sleep.
Does decaf affect sleep?
Decaf contains a small amount of caffeine, usually a few milligrams per cup. Most people can have it in the evening without issue.
Why do I get sleepy after coffee?
Usually because caffeine is wearing off and accumulated sleep pressure is returning, often on top of sleep debt. Sugar in the drink can contribute.
Sources
- Drake C, et al. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. PubMed.
- Health Canada. Caffeine in foods.
- European Food Safety Authority (2015). Scientific opinion on the safety of caffeine.
- Institute of Medicine (2001). Caffeine for the Sustainment of Mental Task Performance.
This article is general information, not medical advice. If you have a health condition, are pregnant or breastfeeding, take medication, or are under 18, talk to a healthcare provider about caffeine. Work Water is not recommended for those under 14, pregnant or breastfeeding women, or individuals sensitive to caffeine.