Caffeine, Alcohol, Nicotine, and Sleep: What the Timing Means

What you drink, smoke, and eat in the hours before bed can shape your night — often in ways you don't notice.

Sleep Better 4 min read Updated October 17, 2026

Few things affect sleep as directly — or as quietly — as what we consume in the hours before bed. Caffeine, alcohol, and nicotine all act on the brain, and their effects often outlast the moment you finish the cup, glass, or cigarette. The key word is timing.

Caffeine lingers longer than it feels

Caffeine is a stimulant. It blocks a natural chemical signal in your brain that builds sleepiness through the day. That's why it feels so helpful at 8 a.m. — and why it can be a problem at bedtime.

The catch is how long it stays active. The National Heart, Lung, and Blood Institute (NHLBI) notes that caffeine's effects can last up to 8 hours. So an afternoon coffee may still be working when you turn out the light.

Caffeine isn't just in coffee. Common sources include:

  • Coffee and espresso drinks
  • Black and green tea
  • Many sodas and energy drinks
  • Chocolate (in smaller amounts)
  • Some over-the-counter pain relievers — check the label

What the "six hours before bed" study found

In a 2013 study published in the Journal of Clinical Sleep Medicine, researchers led by Christopher Drake gave healthy adults a sizable dose of caffeine either at bedtime, three hours before bed, or six hours before bed, and compared their sleep with nights on a placebo.

Caffeine at all three times disrupted sleep. Even when taken six hours before bed, it reduced total sleep by more than an hour. The researchers also noted that people didn't always perceive how much their sleep had been affected.

That last point matters. You may feel like coffee "doesn't bother me," yet still be sleeping less or more lightly than you would otherwise. The American Academy of Sleep Medicine recommends avoiding caffeine in the afternoon and evening.

Try this week

Pick a caffeine cutoff time — for many people, late morning or noon works well — and keep it for seven days. Note your last caffeine each day in your sleep diary. If you've been drinking caffeine late, cut back gradually to avoid headaches.

Alcohol: drowsy at first, restless later

Many people reach for a nightcap because alcohol can make them feel sleepy. But that early drowsiness comes at a price.

As your body processes alcohol during the night, sleep tends to become lighter and more broken. Common effects include waking more often in the second half of the night, less restful sleep, and more trips to the bathroom. Alcohol can also reduce REM sleep, the stage associated with dreaming, and can relax throat muscles in a way that may worsen snoring.

The NHLBI and the American Academy of Sleep Medicine advise against drinking alcohol close to bedtime. The National Institute on Aging goes further for older adults, suggesting they avoid alcohol for better sleep, since even small amounts can make sleep harder.

If you drink, giving your body several hours before bed and keeping amounts modest is gentler on your sleep than a drink right before lights out.

Nicotine is a stimulant, too

Nicotine — from cigarettes, vapes, or chewing tobacco — is a stimulant that can interfere with sleep, according to the NHLBI. MedlinePlus recommends avoiding nicotine for better sleep.

People who use nicotine may also wake during the night as levels drop. If you're trying to quit, sleep can feel unsettled for a while; that's common and usually temporary. Your healthcare provider can help with a quit plan that fits your health.

Late, heavy meals and evening drinks

A large meal right before bed can leave you uncomfortable, and spicy or fatty foods may trigger heartburn when you lie down. Drinking a lot of fluid in the evening can mean more nighttime trips to the bathroom.

  • Aim to finish your main evening meal a few hours before bed.
  • If you're hungry later, choose a light snack.
  • Front-load fluids earlier in the day and taper off in the evening.

A simple timing plan

HabitGentler timing
CaffeineMorning only, or a fixed cutoff well before mid-afternoon
AlcoholNot close to bedtime; modest amounts or none
NicotineAvoid, especially in the evening; ask about quitting support
Main evening mealA few hours before bed
Large drinksEarlier in the day; taper in the evening

A word about medicines and supplements

Some prescription and over-the-counter medicines can affect sleep, either by making you alert or by causing drowsiness. Don't stop or change a medication on your own. Instead, write down what you take and when, along with your sleep notes, and bring it to your doctor or pharmacist. The "Bring this page to an appointment" summary in our free 7-Day Sleep Journal is designed for exactly that conversation.

Changing caffeine, alcohol, and evening habits can help many people sleep better. But if you have trouble sleeping most nights for weeks, these changes alone may not be enough. Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first treatment for chronic insomnia — learn more in our guide to insomnia.

When to talk to a doctor

Self-help can go a long way, but some sleep problems need a professional. Make an appointment if you notice:

  • Trouble sleeping three or more nights a week for three months or longer
  • Loud snoring with gasping, choking, or pauses in breathing that someone else notices
  • Falling asleep during the day when you don't mean to, especially while driving
  • Unusual movements or behaviors during sleep, or an urge to move your legs at night

Bring a week or two of notes from our free Sleep Diary. Drowsy? Don't drive. In an emergency, call 911. More on when to seek care →

Common questions

How late can I drink coffee without hurting my sleep?

It varies from person to person. The NHLBI notes caffeine's effects can last up to 8 hours, and research found caffeine six hours before bed still reduced sleep. Many people do best keeping caffeine to the morning.

Does a glass of wine help me sleep?

Alcohol may make you drowsy at first, but it tends to disrupt sleep later in the night. Health organizations recommend avoiding alcohol close to bedtime.

Is decaf okay in the evening?

Decaf contains much less caffeine than regular coffee, though not none. If you're sensitive, track evening decaf in your sleep diary and see whether it makes a difference.

Should I stop my medication if I think it affects my sleep?

No. Don't stop or change a prescribed medication on your own. Bring your concerns and your sleep notes to your doctor or pharmacist.

Sources

  1. Healthy Sleep Habits — National Heart, Lung, and Blood Institute (NIH). www.nhlbi.nih.gov/health/sleep-deprivation/healthy-sleep-habits
  2. Late afternoon and early evening caffeine can disrupt sleep at night (Drake et al., 2013) — American Academy of Sleep Medicine. aasm.org/late-afternoon-and-early-evening-caffeine-can-disrupt-sleep-at-night
  3. Healthy Sleep Habits — American Academy of Sleep Medicine (Sleep Education). sleepeducation.org/healthy-sleep/healthy-sleep-habits
  4. Healthy Sleep — MedlinePlus. medlineplus.gov/healthysleep.html
  5. Sleep and Older Adults — National Institute on Aging. www.nia.nih.gov/health/sleep/sleep-and-older-adults

Last reviewed and updated October 17, 2026. This article is for general education and isn't a substitute for advice from your own clinician. Read our medical disclaimer and editorial standards.