What Are Good Sleep Habits and How to Build Them

Good sleep habits start with two fundamentals: getting 7 or more hours of sleep per night and waking up at the same time every day, including weekends. Beyond those basics, the timing of what you eat, drink, and do in the hours before bed matters more than most people realize. Here’s what actually works.

How Much Sleep You Need by Age

Adults between 18 and 60 need 7 or more hours per night. After 60, the range narrows slightly to 7 to 9 hours, and adults over 65 do well with 7 to 8. Teenagers need 8 to 10 hours, and school-age children need 9 to 12. These aren’t aspirational numbers. They’re the amounts your body requires to consolidate memory, regulate mood, and repair tissue.

If you’re consistently getting less than 7 hours and feel fine, you’re likely adapted to the feeling of sleep deprivation rather than genuinely unaffected by it. Chronic short sleep raises the risk of metabolic, cardiovascular, and cognitive problems over time.

Keep a Consistent Schedule

Your body runs on a roughly 24-hour internal clock that controls when you feel alert and when you feel drowsy. Waking up at the same time every day is the single strongest signal you can give that clock. Sleeping in on weekends feels restorative, but it shifts your rhythm in the same way jet lag does, making Monday mornings harder than they need to be.

Set a bedtime early enough to allow at least 7 to 8 hours of sleep, but only go to bed when you actually feel sleepy. If you’re lying awake for more than 20 minutes, get up and do something quiet in low light until drowsiness returns. Staying in bed while frustrated trains your brain to associate the bed with wakefulness, which makes the problem worse over time.

Build a Wind-Down Routine

A consistent pre-sleep routine signals your brain that the day is ending. This doesn’t need to be elaborate. Reading, stretching, or taking a warm shower all work. The key is repetition: doing the same sequence of low-stimulation activities in the 30 to 60 minutes before bed creates a reliable transition between your active day and sleep.

If racing thoughts keep you awake, one technique worth trying is cognitive shuffling. You pick a random word, then visualize unrelated objects that start with each letter of that word. The randomness prevents your mind from latching onto a worry spiral, and in a study of 154 university students who experienced racing thoughts at bedtime, this approach improved sleep over the course of a semester. Students found it easier to stick with than other structured techniques like journaling about their worries, and it worked just as well. Deep breathing is another option when you’re too tired for mental exercises.

Manage Light Exposure Carefully

Light is the most powerful regulator of your sleep-wake cycle. Bright light in the morning helps you feel alert and anchors your internal clock. Bright light in the evening does the opposite of what you want: it suppresses melatonin, the hormone that makes you feel sleepy.

Blue light from phones, tablets, and laptops is particularly disruptive. In a Harvard experiment comparing blue and green light of the same brightness over 6.5 hours, blue light suppressed melatonin for about twice as long and shifted circadian timing by 3 hours compared to 1.5 hours for green light. That’s a significant delay in when your body thinks it’s time to sleep. Dimming screens, using night mode, or simply putting devices away in the hour or two before bed makes a real difference.

Optimize Your Bedroom

Three things matter most in your sleep environment: temperature, darkness, and quiet. Your body temperature naturally drops as you fall asleep, and a cool room supports that process. The recommended range is 60 to 67°F (15 to 19°C) for adults. For babies and toddlers, aim slightly warmer at 65 to 70°F.

Use your bed only for sleep and sex. Working, scrolling, or watching TV in bed weakens the mental association between your bed and sleep. If your bedroom doubles as an office, at minimum close the laptop and clear work materials before you start winding down. Blackout curtains, a fan for white noise, or earplugs can handle light and sound problems that are outside your control.

Watch What You Drink and When

Caffeine has a half-life of about 5 to 6 hours, meaning half of what you consumed is still circulating in your bloodstream that much later. A standard recommendation is to cut off caffeine by 2 or 3 p.m. if you follow a typical evening bedtime. One study found that caffeine consumed even 6 hours before bed disrupted sleep, sometimes without the person noticing the effect. That afternoon coffee might feel harmless while quietly shaving time off your deep sleep.

Alcohol is trickier because it genuinely does help you fall asleep faster. The problem comes later. As your body metabolizes alcohol, it creates a withdrawal effect that can wake you at 2 or 3 a.m., a phenomenon called rebound insomnia. Alcohol also suppresses REM sleep, which is concentrated in the second half of the night. REM is the phase tied to dreaming, memory consolidation, and feeling rested the next day. Even a couple of drinks in the evening can leave you with more fragmented, lower-quality sleep than you’d get sober, even if you stayed asleep the same number of hours.

Reducing fluids in the hour or two before bed also helps. Waking up to use the bathroom disrupts your sleep cycles, and each awakening resets the process of moving into deeper sleep stages.

Exercise at the Right Time

Regular physical activity improves sleep quality, and for most people the timing is flexible. Morning and afternoon workouts are reliably helpful. Evening exercise is fine too, with one caveat: avoid vigorous, high-intensity activity within one to two hours of bedtime. A study published in Sports Medicine found that people who did high-intensity interval training less than an hour before bed took longer to fall asleep and slept worse. Moderate activity like walking or gentle yoga in the evening, on the other hand, didn’t cause problems.

The likely reason is body temperature. Intense exercise raises your core temperature significantly, and your body needs that temperature to come back down before sleep onset feels natural. Giving yourself at least two hours between a hard workout and lights-out is a safe buffer.

Nap Smart or Not at All

Naps can help if you keep them short. A 15- to 20-minute power nap boosts alertness without pulling you into deep sleep. The problem with longer naps is sleep inertia: that groggy, disoriented feeling that comes from waking out of a deep sleep stage. It can take 30 minutes or more to shake off, which defeats the purpose.

Long or late-afternoon naps can also steal from your nighttime sleep drive, making it harder to fall asleep at your regular bedtime. If you find yourself needing naps most days, that’s often a sign your nighttime sleep needs attention rather than a daytime supplement.