Does Drinking Coffee in the Afternoon Affect Sleep? When to Stop Caffeine
By WellnessVigor · Updated October 15, 2026 · 7 min read
This article contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. Learn more.
A 3 pm coffee feels like a harmless pick-me-up. But caffeine lasts much longer in your body than its buzz suggests, and an afternoon cup may be quietly shortening your sleep.
Here’s what research shows about caffeine timing and sleep, how late is too late, and better ways to beat the afternoon slump.
Quick answer
Yes, afternoon coffee can affect sleep. In a controlled study, 400 mg of caffeine taken 6 hours before bed still significantly disrupted sleep. A 2023 meta-analysis found caffeine reduced total sleep by about 45 minutes on average and suggested a cup of coffee should be finished at least about 8–9 hours before bed. For a 10:30 pm bedtime, that means no coffee after roughly 1–2 pm.
Table of Contents
ToggleHow caffeine affects sleep
Caffeine blocks adenosine, a chemical that builds up while you’re awake and makes you sleepy. Caffeine’s half-life is often around 5 hours, varying from person to person, so half of an afternoon dose can still be active at bedtime. Even if you fall asleep, caffeine can make sleep lighter and more broken.
What the research says
- Timing study: 400 mg of caffeine (about 4 cups of coffee) taken at bedtime, 3 hours before or 6 hours before all significantly disrupted sleep compared with placebo. The authors recommended avoiding substantial caffeine for at least 6 hours before bed.
- 2023 meta-analysis of 24 studies: caffeine reduced total sleep time by about 45 minutes and sleep efficiency by 7%, increased time to fall asleep by about 9 minutes and time awake at night by 12 minutes. The authors suggested coffee should be consumed at least 8.8 hours before bed and a typical pre-workout supplement at least 13.2 hours before bed.
Why some people seem unaffected
Genetics, age, pregnancy, some medications and liver function change how quickly caffeine is cleared. Regular users may feel less of the buzz but still show lighter sleep in lab measurements. Many people underestimate the effect.
Want a simple, step-by-step plan to sleep better? The 14-Day Sleep Reset guide walks you through fixing your schedule, evening routine and bedroom, one day at a time.
Wind down after a stressful day
Ashwagandha (KSM-66) is one of the most popular supplements for stress. In small studies it modestly lowered stress and improved sleep quality for some people.
Good to know: Not suitable in pregnancy or with thyroid or autoimmune conditions. Rare liver problems have been reported. Check with your doctor if you take medicines.
Hidden sources of caffeine
- Black and green tea
- Cola and energy drinks
- Pre-workout supplements
- Dark chocolate
- Some pain relievers
- Decaf coffee (small amounts)
Better ways to beat the afternoon slump
- A 10–20 minute walk outside.
- A short nap before 3 pm. See why naps can backfire.
- A glass of water and a protein-rich snack.
- A lighter, balanced lunch. See why you feel tired after lunch.
- Switch to decaf, herbal tea or sparkling water after noon.
Caffeine-free afternoon swaps
These are common, inexpensive options that some people find helpful. We have not personally tested these products. Links go to Amazon search results so you can compare current options and prices.
BEST COFFEE SWAP
Swiss Water Decaf Coffee
Keep the afternoon coffee ritual with very little caffeine.
Pros
- Familiar taste
- Very low caffeine
- Chemical-free decaf process
Cons
- Still a small amount of caffeine
- Taste varies by brand
BEST TEA SWAP
Rooibos Tea
A naturally caffeine-free tea with a rich flavor for afternoons.
Pros
- Caffeine-free
- Good hot or iced
- Cheap
Cons
- Different taste from black tea
- Quality varies
BEST FIZZY SWAP
Sparkling Water Maker
Replace afternoon colas with sparkling water.
Pros
- No caffeine or sugar
- Reduces bottles
- Refreshing
Cons
- CO2 refills
BEST FOR TRACKING
Caffeine-Free Herbal Tea Sampler
Try different caffeine-free teas to find an afternoon favorite.
Pros
- Variety
- Caffeine-free
- Good gift
Cons
- Some flavors won’t suit
- Check herbs if pregnant or on medication
Keep reading
Frequently asked questions
What time should I stop drinking coffee?
Aim for at least 8 hours before bed. For a 10:30 pm bedtime, that’s about 2:30 pm at the latest, and earlier if you’re sensitive.
Does decaf affect sleep?
Decaf contains only small amounts of caffeine, so it’s unlikely to affect most people’s sleep.
Can I build tolerance to caffeine’s sleep effects?
You may feel less stimulated, but studies still show lighter sleep in regular users.
Is green tea OK in the afternoon?
It has less caffeine than coffee, but still enough to affect sensitive people late in the day.
How long does caffeine stay in your system?
The half-life is often around 5 hours but ranges widely, so some caffeine can remain for 10 hours or more.
Sources
This article is for general information only and is not medical advice. See our Medical Disclaimer.