Getting a good night’s sleep comes down to a handful of habits that work with your body’s natural biology, not against it. Adults need at least seven hours per night, with people over 65 doing well on seven to eight hours. Consistently falling short of that carries real consequences: sleeping less than five to six hours per night is associated with a 48% higher risk of developing coronary heart disease or dying from it.
How Your Body Cycles Through Sleep
Sleep isn’t a single uniform state. Your brain cycles through distinct stages roughly every 80 to 100 minutes, moving from light sleep into deep sleep and then into REM sleep, where most dreaming occurs. Deep sleep handles physical repair and immune function. REM sleep consolidates memory and emotional processing. You need to cycle through these stages multiple times per night to wake up feeling restored, which is why both the quantity and continuity of your sleep matter.
Keep Your Bedroom Cool and Dark
Your body temperature drops naturally as you fall asleep, and a warm room fights that process. Research shows that sleeping at 35°C (95°F) significantly cuts total sleep time and increases wakefulness compared to a neutral 20°C (68°F). In one study comparing several temperatures, sleepers at 26°C (about 79°F) fell asleep faster and spent more time in deep sleep than those at either 23°C or 30°C. For most people, somewhere between 18°C and 22°C (65–72°F) is comfortable, but experimentation matters. If you’re waking up sweating or shivering, adjust.
Darkness is equally important. Even small amounts of light can interfere with your brain’s production of the sleep hormone melatonin. Blackout curtains or a sleep mask are simple fixes, especially in summer months or urban environments with streetlight exposure.
Manage Light and Screens Before Bed
The blue light emitted by phones, tablets, and laptops suppresses melatonin for about twice as long as other types of light and shifts your internal clock by roughly three hours. That means scrolling in bed at 11 p.m. can trick your brain into thinking it’s closer to 8 p.m., making it much harder to fall asleep on time.
The practical recommendation is to avoid bright screens for two to three hours before bed. If that feels unrealistic, even one hour makes a difference. Night mode filters help slightly, but they don’t eliminate the problem. Reading a physical book, listening to a podcast, or dimming your household lights in the evening all send stronger “wind down” signals to your brain.
Watch Your Caffeine Cutoff
Caffeine has a half-life of four to six hours, meaning half the caffeine from your 3 p.m. coffee is still circulating in your bloodstream at 9 p.m. One study found that caffeine consumed even six hours before bed disrupted sleep quality, sometimes without the sleeper noticing. You might fall asleep fine but spend less time in deep sleep, waking up tired without knowing why.
A good rule of thumb for anyone with a standard evening bedtime: cut off caffeine by 2 or 3 p.m. This includes tea, energy drinks, and chocolate, not just coffee. If you’re particularly sensitive, you may need to push that cutoff earlier.
Time Your Exercise Right
Regular exercise is one of the strongest sleep aids available, but timing matters. High-intensity workouts like interval training done less than one hour before bed delay sleep onset and reduce sleep quality. The core body temperature spike from intense exercise takes time to come back down, and your body needs that cooldown to transition into sleep.
Harvard Health recommends finishing strenuous activity at least two hours before bed. Light stretching, yoga, or a casual walk in the evening are generally fine and can even help you relax. Morning or afternoon exercise tends to produce the best sleep benefits overall.
Build a Consistent Schedule
Your internal clock thrives on regularity. One of the most effective strategies from clinical sleep therapy is deceptively simple: wake up at the same time every morning, including weekends. This anchors your circadian rhythm so that sleepiness arrives predictably each night. Sleeping in on Saturday might feel restorative, but it creates a kind of social jet lag that makes Sunday and Monday nights harder.
Beyond a fixed wake time, go to bed only when you actually feel sleepy, not just because the clock says you should. Lying in bed wide awake trains your brain to associate bed with frustration rather than sleep.
What to Do When You Can’t Fall Asleep
If you’ve been lying in bed for roughly 20 minutes without falling asleep, get up. This applies whether it happens at the start of the night or after waking at 3 a.m. Move to another room, do something quiet and unstimulating in dim light (reading, light stretching, a boring task), and return to bed only when you feel sleepy again. This technique, called stimulus control, is a core component of the most effective non-drug treatment for insomnia.
The logic is counterintuitive but well supported: by leaving bed when you’re awake, you rebuild the mental association between your bed and sleep. Over time, this makes falling asleep faster and more automatic. Tossing and turning for hours does the opposite.
Nap Smart or Not at All
Naps aren’t inherently bad, but the wrong nap can sabotage your night. The ideal nap length is 15 to 30 minutes. Anything longer risks dipping into deep sleep, which leaves you groggy (a phenomenon called sleep inertia) and also reduces the sleep pressure that helps you fall asleep later that night.
Timing also matters. Napping around 2 or 3 p.m. aligns with a natural dip in alertness and is least likely to interfere with bedtime. A nap after 4 p.m. can push your sleep window later, creating a cycle of late nights and tired mornings.
Food, Alcohol, and Late Meals
Eating a large meal within two to three hours of bed forces your digestive system to work when it should be winding down, which can cause discomfort and lighter sleep. A small snack is fine if you’re genuinely hungry, but avoid anything heavy, spicy, or high in fat close to bedtime.
Alcohol is a common sleep trap. It makes you feel drowsy and helps you fall asleep faster, but it fragments sleep in the second half of the night by disrupting REM cycles. You’re more likely to wake up at 3 or 4 a.m. and struggle to fall back asleep. Even moderate drinking in the evening measurably reduces sleep quality.
Supplements: What the Evidence Says
Magnesium is widely marketed as a sleep aid, and it does play a role in producing serotonin, a brain chemical that influences mood and relaxation. However, its direct effect on sleep hasn’t been proven in human studies, according to Mayo Clinic. That doesn’t mean it’s useless for everyone, but it’s far from a guaranteed fix. If you want to try it, the glycinate form is gentler on the stomach than other types.
Melatonin supplements can help with jet lag or shift work by resetting your internal clock, but they aren’t strong sedatives. They work best when your issue is timing (falling asleep too late) rather than an inability to sleep altogether. For most people, the behavioral strategies above will produce more reliable, lasting improvements than any supplement.

