Better sleep comes down to a handful of specific habits, most of which cost nothing and take effect within days. Adults need at least 7 hours per night, but quantity alone isn’t the goal. The depth and continuity of your sleep matter just as much, and both are surprisingly easy to influence once you know which levers to pull.
Keep Your Bedroom Cool and Dark
Your body needs to drop its core temperature slightly to fall asleep and stay asleep. A warm room fights that process. The ideal bedroom temperature for adults is 60 to 67°F (15 to 19°C). If that sounds cold, it is. Most people keep their homes warmer than this, which is one reason they wake up in the middle of the night or never reach the deeper stages of sleep. A fan, lighter bedding, or simply turning down the thermostat can make a noticeable difference in just one night.
Darkness matters too. Any light in your bedroom, even the glow of a charging indicator or a streetlight through thin curtains, can interfere with your body’s production of melatonin, the hormone that signals it’s time to sleep. Blackout curtains or a sleep mask are simple fixes. If you use your phone as an alarm, place it face down or across the room.
Get Sunlight Early in the Day
Your internal clock relies on light cues to know when to promote wakefulness and when to trigger sleepiness. The single most effective way to set that clock is to get outside within the first hour after waking, even for just a few minutes. It doesn’t need to be a long walk or a sunny day. Overcast outdoor light is still far brighter than indoor lighting and enough to anchor your circadian rhythm. This morning light exposure helps your body release melatonin at the right time later that evening, making it easier to feel genuinely sleepy at bedtime rather than wired.
Consistency reinforces the effect. Waking and going to bed at roughly the same times each day, including weekends, trains your body to anticipate sleep. Shifting your schedule by two or three hours on Saturday night and then trying to snap back on Monday is essentially giving yourself jet lag every week.
Time Your Caffeine Carefully
Caffeine works by blocking a chemical in your brain that builds up pressure to sleep. That blocking effect lasts much longer than most people realize. A 2024 clinical trial published in the journal SLEEP found that a standard cup of coffee (around 100 mg of caffeine) can be consumed up to 4 hours before bed without much disruption. But a larger dose, around 400 mg (roughly two to three large coffees or four espressos), can negatively affect sleep when consumed within 12 hours of bedtime. The closer to bedtime you drink it, the worse the effect.
If you’re a one-cup-in-the-morning person, you’re probably fine. If you drink coffee throughout the afternoon or have a large iced coffee after lunch, that habit alone could be the reason you lie awake at night or wake up feeling unrefreshed. A practical cutoff: finish your last full-strength coffee by noon if you go to bed around midnight, earlier if you’re sensitive to it.
How Alcohol Disrupts Sleep Cycles
A drink before bed might help you fall asleep faster, but it reliably wrecks the quality of what follows. Alcohol acts as a sedative during the first half of the night, suppressing REM sleep in a dose-dependent way. REM is the stage most closely tied to memory consolidation, emotional processing, and feeling mentally sharp the next day. Once your body metabolizes the alcohol (typically in the second half of the night), REM sleep rebounds erratically, often fragmenting your sleep with brief awakenings you may not even remember.
The result is a night that looks long enough on paper but leaves you groggy and mentally foggy in the morning. Even moderate drinking, two or three drinks in an evening, produces this pattern. If you’re troubleshooting poor sleep quality, cutting alcohol for two weeks is one of the fastest ways to see whether it’s a factor.
Wind Down Your Screens
Screens emit short-wavelength blue light that suppresses melatonin production more than other types of light. Scrolling through your phone in bed is essentially sending a daytime signal to your brain at the exact moment you want it to wind down. Most phones now have night mode filters that shift the screen toward warmer tones, and these help, but they don’t fully eliminate the problem. The content itself, news, social media, work emails, tends to be mentally stimulating in ways that keep your brain alert.
Try setting a cutoff 30 to 60 minutes before your target bedtime. Replace screen time with something low-stimulation: reading a physical book, stretching, or listening to music or a podcast. The goal isn’t rigid discipline. It’s giving your brain a transition period between the alertness of your day and the relaxation you need for sleep.
Exercise Helps, and Timing Is Flexible
Regular physical activity is one of the most well-supported ways to improve sleep quality. It increases the amount of time you spend in deep sleep and helps you fall asleep faster. The old advice to avoid evening exercise turns out to be mostly a myth. Research published in the European Journal of Sport Science found that moderate-intensity exercise performed in the evening, whether aerobic or resistance training, did not impair sleep in healthy adults. Core body temperature rose during the workout but returned to pre-exercise levels within about 90 minutes.
So if evening is the only time you can exercise, go for it. Just leave roughly 90 minutes between finishing your workout and getting into bed. The one exception is very high-intensity training right before sleep, which can leave some people too activated to settle down quickly.
Manage Racing Thoughts Before Bed
For many people, the biggest barrier to sleep isn’t physical. It’s a mind that won’t quiet down. One technique that therapists use is called “worry postponement.” The idea is simple: during the day, you designate a specific 15- to 20-minute window as your worry time. When anxious thoughts pop up at other times, especially at night, you acknowledge them and deliberately defer them to that scheduled window. Over time, this trains your brain to stop treating bedtime as the default processing period for unresolved concerns.
Another approach that works for many people is writing a short to-do list for the next day before bed. The act of externalizing tasks onto paper seems to reduce the mental load that otherwise keeps your brain cycling through reminders and plans.
Consider Magnesium
If you’ve cleaned up your sleep habits and still struggle, magnesium is one of the few supplements with a plausible mechanism behind it. Magnesium helps regulate the balance between excitatory and calming chemical messengers in your nervous system. When anxiety or racing thoughts are part of your sleep problem, magnesium may shift that balance toward the calming side. A recommended dose, according to Mayo Clinic, is 250 to 500 milligrams taken as a single dose at bedtime. Magnesium glycinate and magnesium citrate are the forms most commonly used for sleep, as they’re better absorbed and less likely to cause digestive issues than other forms.
Magnesium isn’t a sedative and won’t knock you out. Think of it more as removing one barrier to sleep, particularly if your diet is low in magnesium-rich foods like leafy greens, nuts, and seeds.
Build a Routine Your Body Recognizes
The single thread connecting all of these strategies is consistency. Your body’s sleep system runs on prediction. When you wake at the same time, get light at the same time, stop caffeine at the same time, and begin winding down at the same time, your brain starts preparing for sleep before you even get into bed. Melatonin rises on schedule. Core temperature drops on cue. You feel sleepy at the right moment instead of fighting to manufacture drowsiness.
You don’t need to implement every change at once. Pick the two or three habits that seem most relevant to your situation, keep them consistent for a week or two, and build from there. Most people notice a real difference within the first few nights of keeping their room cooler, cutting late caffeine, or establishing a consistent wake time.

