The hours before bed have an outsized effect on how quickly you fall asleep and how restorative that sleep actually is. Many common evening habits, from a late coffee to scrolling your phone in bed, actively work against your body’s ability to wind down. Here’s what to cut from your pre-sleep routine and why it matters.
Screen Time and Blue Light
Your phone, tablet, and laptop emit blue light in the 460 to 480 nanometer wavelength range, which is precisely the range that suppresses melatonin most aggressively. Your eyes contain specialized light-sensing cells that are maximally sensitive to light around 480 nanometers, and when those cells detect it in the evening, they signal your brain that it’s still daytime.
The effect is not subtle. In one study, two hours of reading on an LED tablet reduced melatonin levels by 55% and delayed the natural onset of melatonin by an average of 1.5 hours compared to reading a printed book under low light. That means even if you feel tired at 10 p.m., your brain may not be chemically ready for sleep until 11:30. If you want to use screens in the evening, keep them dimmed, use a blue-light filter, and try to put them away at least an hour before bed. Better yet, switch to a physical book or magazine for that last stretch of your night.
Caffeine After Mid-Afternoon
Caffeine has a notoriously long half-life, meaning half the caffeine from your cup of coffee is still circulating in your system many hours later. Because individual metabolism varies widely, the recommended cutoff ranges from 4 to 11 hours before bedtime depending on the person. But research published in the Journal of Clinical Sleep Medicine found that caffeine consumed even 6 hours before bed still caused meaningful reductions in total sleep time.
For most people, that translates to a simple rule: no substantial caffeine after about 5 p.m., and earlier if you’re sensitive. Keep in mind that “substantial” matters here. A small piece of dark chocolate is different from a large premium coffee or an energy drink, both of which can contain 200 milligrams or more. If you’re having trouble sleeping and drink caffeine in the afternoon, that’s the first habit to change.
Alcohol in the Evening
A glass of wine might make you feel drowsy, but alcohol creates a deceptive trade-off. It does reduce the time it takes to fall asleep initially, and the first half of the night can feel like deep sleep. The problem comes later. As your body processes the alcohol, the second half of the night becomes fragmented and restless.
Alcohol also suppresses REM sleep, the stage critical for memory consolidation, emotional processing, and feeling mentally refreshed the next day. REM sleep is reduced both in the first half of the night and, at higher doses, across the entire night. One study found that REM sleep in the first half of the night dropped to roughly 7% on drinking nights compared to about 17% at baseline. Even if you sleep a full eight hours after drinking, you’ll wake up less restored because the architecture of your sleep was disrupted from the inside.
Nicotine Before Bed
Nicotine is a stimulant, and using it close to bedtime creates a double problem. First, it increases alertness and delays the point at which you can fall asleep. Second, as nicotine levels drop overnight, the body’s craving for more can cause micro-awakenings that fragment your sleep without you fully realizing it. Smokers consistently experience shorter and lower-quality sleep compared to non-smokers, with symptoms that include difficulty falling asleep, trouble staying asleep, and later sleep onset times. If quitting isn’t on the table right now, at least try to avoid nicotine for the last two to three hours of your evening.
Heavy, Spicy, or High-Fat Meals
Your body needs to cool down slightly to initiate sleep, and certain foods work against that process. A study on the effects of spicy meals found that subjects who ate food with hot sauce and mustard at dinner experienced elevated body temperature during the first sleep cycle, reduced deep sleep, more time spent awake, and a tendency toward longer sleep onset. The culprit appears to be capsaicin, the compound that gives peppers their heat, which raises core temperature at exactly the wrong time.
Large, rich meals pose a similar issue. Your digestive system ramps up metabolic activity to process heavy food, generating heat and keeping your body in an active state. Acid reflux is also more likely when you lie down on a full stomach, which can jolt you awake repeatedly. Aim to finish your last big meal at least two to three hours before bed. If you’re hungry closer to bedtime, a small, bland snack is far less likely to interfere.
Intense Exercise Too Close to Bed
Exercise is one of the best things you can do for sleep quality overall, but timing matters. Vigorous workouts raise your core body temperature significantly, and your body needs time to cool back down before sleep becomes possible. Sleep researchers recommend finishing intense exercise at least 4 hours before bedtime to give your core temperature enough time to drop. Light stretching or gentle yoga in the evening is fine and can even be helpful, but a hard run, heavy lifting session, or high-intensity interval workout should land earlier in your day.
Drinking Too Many Fluids
Waking up to use the bathroom once or twice a night is one of the most common causes of fragmented sleep, and it’s largely preventable. The fix is straightforward: finish your last large glass of water or other beverage at least an hour before bed. You don’t need to dehydrate yourself. Just front-load your fluid intake earlier in the evening and take small sips if you’re thirsty closer to bedtime. If you’re waking up multiple times per night to urinate despite limiting fluids, that pattern is worth mentioning to a doctor, as it can signal other health issues beyond hydration timing.
Stressful Mental Activity
Checking work emails, reviewing finances, or diving into an emotionally charged text conversation right before bed keeps your brain in problem-solving mode. This kind of cognitive arousal is the opposite of what your nervous system needs to transition into sleep. Your mind continues processing the information after you close your eyes, extending the time it takes to fall asleep and reducing sleep quality even after you do.
The most effective countermeasure is a buffer zone: 30 to 60 minutes before bed where you deliberately avoid anything that requires focused thinking or triggers stress. This is the time for low-stakes activities like reading fiction, listening to calm music, or doing a brief relaxation routine. If anxious thoughts tend to spiral once you’re in bed, writing a short to-do list for the next day can help offload those concerns so your brain stops cycling through them.
A Warm or Bright Bedroom
Your sleep environment matters as much as your pre-sleep habits. The ideal bedroom temperature for sleep is between 60 and 68°F (15.6 to 20°C), with most sleep specialists pointing to around 65°F (18.3°C) as the sweet spot. Your core body temperature naturally drops as part of the sleep initiation process, and a cool room supports that drop. A room that’s too warm fights against your body’s own cooling mechanism, making it harder to fall asleep and easier to wake up during the night.
Light matters too. Even small amounts of ambient light from streetlamps, charging indicators, or hallway lights can suppress melatonin production and reduce sleep depth. Blackout curtains, a sleep mask, or simply turning electronics face-down can make a noticeable difference. The goal is to make your bedroom as dark and cool as comfortably possible, so your body gets every signal that it’s time to sleep.

