Short version: stop caffeine at least 6 hours before bed—research shows a dose taken 6 hours out still meaningfully disrupts sleep. Alcohol can help you fall asleep faster but fragments the second half of the night, so "a drink to relax" often trades a quicker start for a rougher 3am.
Why caffeine's cutoff is later than you think
Caffeine has an average half-life of around 5–6 hours in healthy adults, though this varies widely—anywhere from about 1.5 to 9.5 hours depending on genetics, liver function, pregnancy, smoking status and other medications. [1] That means a coffee at 3pm can still have roughly a quarter of its caffeine active in your system at 11pm.
A frequently cited randomized trial gave participants the caffeine equivalent of a strong cup of coffee at 0, 3, or 6 hours before bed. All three timings—including 6 hours before bed—produced a significant reduction in total sleep time compared to placebo, even though participants at the 6-hour mark often didn't report feeling less sleepy going to bed. [2] That last point matters: you can feel ready for bed while caffeine is still measurably disrupting your sleep.
Newer dose-and-timing research reinforces that both how much caffeine and when you take it shape the effect on subsequent sleep, rather than either factor alone. [3] Practically, that argues for a consistent afternoon cutoff rather than judging it cup by cup based on how alert you feel.
Why a nightcap backfires
Alcohol is a sedative, so it's genuinely true that it can shorten the time it takes to fall asleep. The problem is what happens after that. A 2024 systematic review and meta-analysis of alcohol's effect on subsequent sleep in healthy adults found it reduces REM sleep and overall sleep efficiency, with the disruption concentrated in the second half of the night as the alcohol is metabolized. [4]
In practice this shows up as more awakenings, lighter sleep, and less of the sleep stage most linked to feeling mentally refreshed—so a drink that helps you drift off at 11pm can be the reason you're wide awake at 3am. Alcohol also relaxes the muscles around the airway, which can worsen snoring and is a relevant consideration if you already snore or have been told you might have sleep apnea.
None of this means an occasional evening drink is a crisis. It means treating alcohol as a sleep aid specifically—using it because you think it will help you sleep—tends not to hold up against what it actually does to sleep architecture.
A practical evening timeline
Frequently asked questions
Does decaf still have caffeine?
Yes, in small amounts—typically a few milligrams per cup versus 80–100mg or more in regular coffee. It's rarely enough to matter for most people, but worth knowing if you're being strict about a cutoff.
Is one glass of wine really a problem?
The effect is dose-dependent, so a single drink well before bed is a smaller disruption than several drinks close to bedtime. The research doesn't support "any alcohol equals ruined sleep," just that using it specifically as a sleep aid tends to backfire.
What about caffeine in chocolate or medication?
Both count. Chocolate contains meaningful caffeine in larger amounts, and some over-the-counter pain relievers and cold medicines include added caffeine—check labels if you're troubleshooting a sleep issue.
Sources and research notes
This guide summarises pharmacology and sleep research. It is general education, not medical advice, and does not address alcohol dependence or substance-use concerns. Sources checked 20 September 2026.
- Institute of Medicine (US). Caffeine metabolism and half-life variability. Summarized in: PMC review of caffeine effects →
- 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. PubMed abstract →
- Dose and timing effects of caffeine on subsequent sleep: a randomized clinical crossover trial. SLEEP (Oxford Academic), 2025. Read the study →
- The effect of alcohol on subsequent sleep in healthy adults: A systematic review and meta-analysis. 2024. PubMed abstract →
Explore the Sleep Reset guide · Editorial standards · Affiliate disclosure