How to Fix Sleep: Simple Habits for Better Rest

Fixing broken sleep comes down to a handful of changes that work with your body’s biology rather than against it. Your brain runs on two overlapping systems: a internal clock that responds to light and darkness, and a pressure system where a compound called adenosine builds up the longer you stay awake, making you progressively sleepier. When either system gets disrupted by irregular schedules, poorly timed light, stimulants, or habits that confuse your brain about what the bed is for, sleep falls apart. The good news is that most of these disruptions are fixable without medication.

Lock In a Consistent Wake Time

The single most powerful change you can make is waking up at the same time every day, including weekends. Your internal clock anchors itself to when you wake up more than when you go to bed, and shifting that anchor back and forth creates a mini version of jet lag every week. Research on this “social jet lag” suggests the tolerable limit for variation is about 20 minutes. If you’re sleeping until 7 a.m. on weekdays and 10 a.m. on Saturday, you’re essentially flying across time zones without leaving your house.

Pick a wake time you can sustain seven days a week. Yes, even after a bad night. This feels brutal for the first week or two, but it builds sleep pressure (that adenosine buildup) consistently and trains your clock to release the right hormones at the right time. Within two to three weeks, you’ll find yourself getting sleepy at a predictable hour each night.

Use Morning Light as a Reset Button

Your internal clock recalibrates every morning based on light hitting your eyes. Getting outside before 10 a.m. is one of the most effective ways to sharpen that signal. A study published in BMC Public Health found that every 30-minute block of morning sun exposure shifted people’s sleep timing earlier by about 23 minutes. That means a simple morning walk can gradually pull your sleep schedule forward if you’ve been drifting later and later.

Overcast days still work. Outdoor light on a cloudy morning is dramatically brighter than indoor lighting. Aim for at least 20 to 30 minutes outside in the first couple of hours after waking. If that’s not realistic, sit near a bright window while you eat breakfast.

Dim Your Screens at Night

Your body starts producing melatonin in the evening to prepare for sleep, but bright light shuts that process down. In one study, two hours of reading on an LED tablet suppressed melatonin by 55% and delayed its onset by an hour and a half compared to reading a printed book. That’s a significant shift from something most people do every night without thinking about it.

You don’t need to eliminate screens entirely. Use your phone’s built-in night mode or a blue-light filter app starting two to three hours before bed, and lower your screen brightness. Better yet, switch to a dim lamp and a physical book for the last hour of your evening.

Cut Caffeine Earlier Than You Think

Caffeine works by blocking adenosine receptors, which is exactly why it makes you feel alert. The problem is that it has a half-life ranging from 2 to 10 hours depending on your genetics and liver metabolism. That means half the caffeine from your 3 p.m. coffee could still be circulating at 11 p.m. A controlled study found that 400 mg of caffeine (roughly two large coffees) taken six hours before bedtime still significantly disrupted sleep compared to a placebo.

A safe rule for most people: stop all caffeine by early afternoon, ideally before 1 or 2 p.m. If you’re a slow metabolizer, and you’ll know because even morning coffee sometimes seems to affect your sleep, you may need to cut it off even earlier or reduce your total intake.

Rethink Your Nightcap

Alcohol feels like it helps you fall asleep, and technically it does. It increases deep sleep during the first half of the night. But as your body metabolizes the alcohol, the second half of the night becomes fragmented. Your nervous system shifts into a more activated state, you wake up more frequently, and REM sleep, the stage critical for emotional regulation and memory, gets suppressed early and then rebounds in disrupted bursts later.

The net effect is that even moderate drinking leaves you with sleep that looks adequate on the clock but doesn’t restore you. If you’re troubleshooting poor sleep, try eliminating alcohol entirely for two to three weeks and see what changes. If you do drink, finishing at least three to four hours before bed gives your body time to clear most of the alcohol before sleep begins.

Cool Your Bedroom Down

Your core body temperature needs to drop by about one degree for sleep to initiate properly. A warm room fights that process. Sleep researchers have identified 19 to 21°C (about 66 to 70°F) as the optimal bedroom temperature range. At those temperatures, your body can maintain the skin microclimate of 31 to 35°C that supports uninterrupted sleep. Deviating in either direction, too hot or too cold, measurably reduces sleep quality.

If you tend to overheat, consider lighter bedding, a fan for air circulation, or sleeping with one foot outside the covers (your feet are efficient radiators of body heat). Taking a warm shower 60 to 90 minutes before bed can also help, because the rapid cooling afterward accelerates your core temperature drop.

Retrain Your Brain to Associate Bed With Sleep

If you’ve spent months lying in bed scrolling your phone, watching TV, working on a laptop, or staring at the ceiling anxiously, your brain has learned that the bed is a place for wakefulness. Cognitive Behavioral Therapy for Insomnia, or CBT-I, is considered the first-line treatment for chronic sleep problems, and one of its core techniques is called stimulus control. The rules are simple:

  • Only get into bed when you feel sleepy, not just tired
  • Use the bed only for sleep (sex is the one exception)
  • If you’re awake for 15 to 20 minutes, get up, go to another room, and do something calm until sleepiness returns
  • Repeat that pattern as many times as needed throughout the night
  • No napping during the day while you’re resetting

This process is uncomfortable for the first week or so, and you may temporarily sleep less. But it works because it rebuilds the association between your bed and falling asleep. Most people notice a significant improvement within two to four weeks.

Consider Magnesium

If you’ve addressed habits and environment and still feel wired at night, magnesium is one supplement with reasonable evidence behind it. It works on your brain’s calming pathways, enhancing inhibitory signaling that reduces neuronal excitability. The glycine component in magnesium bisglycinate (the most commonly recommended form for sleep) also acts as a calming neurotransmitter and may help lower core body temperature, which supports sleep onset.

A randomized, placebo-controlled trial in healthy adults with poor sleep used a daily dose of 250 mg of elemental magnesium taken as bisglycinate. This is a reasonable starting point. Many people are mildly deficient in magnesium without knowing it, particularly if their diet is low in leafy greens, nuts, and seeds.

Rule Out Sleep Apnea

If you’re doing everything right and still waking up exhausted, the problem might be mechanical. Obstructive sleep apnea causes your airway to collapse repeatedly during sleep, fragmenting your rest without you being fully aware of it. The screening tool doctors use looks at eight risk factors: loud snoring, daytime tiredness, observed pauses in breathing, high blood pressure, a BMI over 35, age over 50, a neck circumference over 40 cm (about 16 inches), and male sex. The more of these that apply, the higher the likelihood.

But sleep apnea can affect people outside those categories too, including younger women and people at a healthy weight. If your partner reports loud snoring or gasping, if you wake with headaches, or if no amount of sleep makes you feel rested, a sleep study is worth pursuing. Treatment for apnea often transforms sleep quality in ways that no behavioral change can match, because the underlying obstruction was preventing deep and REM sleep from ever completing their cycles.