How to Sleep Better: Light, Caffeine, Alcohol and Timing

    Same wake time, morning light, caffeine cut-off 8 to 10 hours before bed, alcohol done 6 hours out, a cool room. The simple sleep levers that work.

    By Hanna Horner · · 7 min read

    To sleep better, wake at the same time every day, get outdoor light within an hour of waking, stop caffeine 8 to 10 hours before bed, finish any alcohol at least 6 hours before bed, keep your room cool and dark, and finish eating about 3 hours before bed. Those levers set your body clock, and everything else gets easier once the clock is set.

    Not sexy. Not a gadget. Not a supplement stack. Just the basics, done properly, every day.

    And here's my tough-love line before we start: if you're cutting sleep to train, stop. Skip a session before you skip sleep. I'll show you why below.

    What's the single best thing I can do for my sleep?

    Same wake time every day, and outdoor light early. That sets the clock.

    • Get outside within 30 to 60 minutes of waking, and again in the late afternoon. About 10 minutes on a clear day, 20 when it's cloudy, 30 to 60 when it's very overcast. Don't look straight at the sun (Huberman, Toolkit for Sleep).
    • A brisk outdoor walk gives you light and movement together (Panda, 2021). My dogs have no opinion on the weather, so this one takes care of itself in my house.
    • Wake at the same time every day, weekends too, and go to bed when you first feel sleepy. I'd add: keep the same bedtime every night as well.
    • Dim the night. Avoid bright overhead light between about 10 pm and 4 am.

    "I'll catch up at the weekend" is not a plan. A consistent wake time is one of the core sleep levers.

    How late can I drink coffee and still sleep?

    Stop caffeine 8 to 10 hours before bed (Huberman, Toolkit for Sleep). Yes, really.

    In one study, 400 mg of caffeine, about 2 to 3 cups of coffee, taken 6 hours before bed cut measured sleep by more than an hour. And the sleepers didn't even notice the loss (Drake et al., 2013).

    So when you say "caffeine doesn't affect me".... you might just not be noticing. Love your coffee. Move the last cup earlier.

    Does alcohol help you sleep?

    No. It helps you drop off, then breaks up the second half of the night.

    In one study, alcohol given 6 hours before bed, with none left on the breath at bedtime, still disrupted the second half of the night and roughly doubled time awake (Landolt et al., 1996). In 4,098 working adults, alcohol lowered overnight recovery, higher sleeping heart rate and lower HRV, already at low intake, and the more people drank the bigger the hit (Pietilä et al., 2018).

    I don't drink, and my sleep is better for it. Your choice, always. If you do drink: one glass at most, with food, finished at least 6 hours before bed, and never the evening after a heavy session. Think late lunch, not nightcap. If you're in perimenopause, [here's what alcohol does to your body right now](/blog/alcohol-and-perimenopause).

    How cool should my bedroom be?

    Cool enough for your core temperature to drop 1 to 3 degrees, which it needs to do for you to fall and stay asleep (Huberman, Toolkit for Sleep). Keep the room cool and dark, and use layers of blankets you can kick off.

    Under real-life bedding, heat increases waking and reduces deep and REM sleep, and humid heat is worse (Okamoto-Mizuno and Mizuno, 2012).

    Why do I wake up at 3 am?

    The 2 to 4 am wake-up has a few common drivers, and most of them are changeable:

    • Alcohol rebound in the second half of the night.
    • Night sweats.
    • Blood sugar swings. In my clinical work I see a late, starchy evening meal raise and then drop blood sugar overnight. Direct trials in women without diabetes are limited, so treat that as experience, not proven fact.

    For women, perimenopause is a big one. In 12,603 women aged 40 to 55, 38% reported trouble sleeping, peaking at 45% in late perimenopause. Menopausal stage and hot flashes were linked to poor sleep. Age on its own was not (Kravitz et al., 2003). So "it's just age" is not the answer.

    Clinical hypnosis is a recommended non-hormonal treatment for hot flashes (The North American Menopause Society, 2023). Cooling and avoiding triggers aren't proven treatments for hot flashes, but they can make you more comfortable.

    Snoring matters more after menopause too. Postmenopausal women had 2.6 times the odds of mild and 3.5 times the odds of moderate sleep-disordered breathing compared with premenopausal women, even after accounting for age and body size (Young et al., 2003). Snoring plus daytime tiredness? Get it checked.

    When should I stop eating before bed?

    Finish eating about 3 hours before bed, with a 12 to 14 hour overnight break. That's the normal overnight break, not a fast.

    Timing matters even when the food is good. In 20 healthy adults, a 10 pm dinner with bed at 11 gave a blood sugar peak about 18% higher and about 10% less overnight fat burning than the same dinner at 6 pm (Gu et al., 2020). Satchin Panda advises avoiding food and bright light for 2 to 3 hours before bed.

    And sleep and blood sugar go both ways. After 6 nights of 4 hours' sleep, healthy young men took about 40% longer to clear blood sugar after a carb meal (Spiegel et al., 1999). Even a few short nights worsen how your body handles carbs.

    Taking melatonin? Take it apart from food and talk to your doctor, since it can worsen how your body handles a meal.

    Should I train or sleep in after a bad night?

    Sleep in. Across 69 studies, sleep loss cut exercise performance by about 7.6% on average, and waking early hurt MORE than going to bed late (Craven et al., 2022).

    So my rule is simple: skip a session before you skip sleep. Never set an early alarm to squeeze in a workout after a short night. Your program stays the same. You just check your readiness on the day and go easier if it says so.

    Naps? After a short night, a 10-minute afternoon nap gave immediate gains that lasted up to about 2.5 hours, while a 30-minute nap caused grogginess first (Brooks and Lack, 2006). Keep naps under 90 minutes or skip them. If you're lying awake at night, use a deep-rest track instead of your phone. More on that in [NSDR](/blog/what-is-nsdr-non-sleep-deep-rest) and [yoga nidra for sleep](/blog/yoga-nidra-for-sleep).

    When you've run these levers for three weeks, you'll wonder why you ever tried to out-supplement a 10 pm espresso.

    This isn't medical advice. See your doctor if you have insomnia most nights for weeks, loud snoring, gasping or pauses in breathing, heavy daytime sleepiness, or you've fallen asleep driving. For chronic insomnia, cognitive behavioural therapy for insomnia (CBT-I) is the first-line treatment, ahead of medication (Qaseem et al., 2016). Sleep medication, melatonin and HRT are always your doctor's call.

    Quick answers

    How many hours before bed should I stop caffeine? 8 to 10 hours. Caffeine 6 hours before bed cut measured sleep by more than an hour in one study, and people didn't notice.

    Is it fine to drink if the alcohol is gone by bedtime? No. Alcohol 6 hours before bed still roughly doubled time awake in the second half of the night.

    Does a late dinner matter if it's healthy? Yes. The same meal at 10 pm raised blood sugar about 18% more than at 6 pm. Finish eating about 3 hours before bed.

    Should I train after a 5-hour night? Check your readiness and ease off if it's low. Skip a session before you skip sleep.

    How long should a nap be? About 10 minutes after a short night. Keep naps under 90 minutes or skip them.

    Sources. Huberman A. Toolkit for Sleep. Huberman Lab. Panda S. A circadian plan anyone can follow. FoundMyFitness. 2021. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. 2013. Landolt HP, et al. Late-afternoon ethanol intake affects nocturnal sleep and the sleep EEG in middle-aged men. Journal of Clinical Psychopharmacology. 1996. Pietilä J, et al. Acute effect of alcohol intake on cardiovascular autonomic regulation during the first hours of sleep. JMIR Mental Health. 2018. Okamoto-Mizuno K, Mizuno K. Effects of thermal environment on sleep and circadian rhythm. Journal of Physiological Anthropology. 2012. Kravitz HM, et al. Sleep difficulty in women at midlife. Menopause. 2003. The North American Menopause Society. The 2023 nonhormone therapy position statement. Menopause. 2023. Young T, et al. Menopausal status and sleep-disordered breathing in the Wisconsin Sleep Cohort Study. American Journal of Respiratory and Critical Care Medicine. 2003. Gu C, et al. Metabolic effects of late dinner in healthy volunteers. Journal of Clinical Endocrinology & Metabolism. 2020. Spiegel K, Leproult R, Van Cauter E. Impact of sleep debt on metabolic and endocrine function. The Lancet. 1999. Craven J, et al. Effects of acute sleep loss on physical performance. Sports Medicine. 2022. Brooks A, Lack L. A brief afternoon nap following nocturnal sleep restriction. Sleep. 2006. Qaseem A, et al. Management of chronic insomnia disorder in adults. Annals of Internal Medicine. 2016.

    Keep reading