
When to Stop Drinking Coffee Before Bed
To protect your sleep, stop drinking coffee about 8–10 hours before bed — research shows caffeine 6 hours before bedtime still disrupts sleep. Here is how to find your personal cutoff.
Try these calculators
Frequently asked questions
How many hours before bed should you stop drinking coffee?
Aim to stop 8–10 hours before bed, and treat 6 hours as the minimum. Research shows caffeine even 6 hours before bedtime measurably reduces sleep.
Does an afternoon coffee affect sleep?
It can. With a ~5-hour half-life, a 3 p.m. coffee still leaves a meaningful amount of caffeine active at bedtime, which can reduce deep sleep even if you fall asleep fine.
What time should I have my last coffee?
For an 11 p.m. bedtime, aim for your last coffee by 1–3 p.m. Adjust earlier if you are caffeine-sensitive, pregnant, or a slow metabolizer.
Is decaf okay before bed?
Generally yes — decaf has only about 2–5 mg of caffeine per cup, far too little to disrupt most people's sleep.
Keep reading
About the author
Daniel holds an MS in Food Science and covers the chemistry side of coffee for BrewMetrics — caffeine metabolism, extraction, water chemistry, and roast development. He translates peer-reviewed research and USDA/FDA data into practical guidance, and every claim in his articles is cited to a verifiable source.
Sources
- 1.Drake C. et al., Journal of Clinical Sleep Medicine — "Caffeine Effects on Sleep Taken 0, 3, and 6 Hours before Going to Bed."
- 2.U.S. Food & Drug Administration (FDA) — Caffeine and sleep guidance.
- 3.National Sleep Foundation — Caffeine and sleep hygiene recommendations.
Brew it by the numbers
Dial in your ratio, caffeine, and cost with our free coffee calculators.
Open the calculators