Compass Guide
Medically reviewed by Varun Halani, MD · August 14, 2026
Sleep Hygiene
An evidence-based guide to sleep hygiene: the daily habits that genuinely influence sleep quality, and how to tell when better habits aren't enough and a sleep disorder needs to be evaluated.
In short
Sleep hygiene is the set of daily habits, including a consistent wake time, morning light exposure, and careful timing of caffeine, alcohol, and nicotine, that support good sleep. These habits are a genuine foundation for better sleep, but they are not a substitute for treating a real sleep disorder like obstructive sleep apnea, restless legs syndrome, or clinical insomnia when one is present.
At a Glance
What it is
Daily habits and environmental factors, such as schedule consistency, light exposure, and substance timing, that influence sleep quality.
Strongest evidence
A stable wake time, morning light exposure, and avoiding caffeine and alcohol close to bedtime.
Common misconception
That better habits alone can resolve sleep apnea, restless legs syndrome, or a clinical insomnia disorder.
When to see a doctor
Persistent poor sleep, loud snoring, witnessed breathing pauses, or ongoing daytime sleepiness despite consistently good habits.
Key Takeaways
- Sleep hygiene refers to daily habits and environmental factors that support consistent, high-quality sleep, not a cure for a diagnosed sleep disorder.
- A stable wake time, morning light exposure, and limiting caffeine, alcohol, and nicotine in the hours before bed have the strongest evidence behind them.
- Caffeine has a half-life of roughly five to six hours, so an afternoon cup can still be affecting sleep at bedtime.
- Alcohol can help people fall asleep faster but fragments sleep and suppresses REM sleep later in the night.
- If sleep problems persist despite consistently good habits, especially with loud snoring, witnessed pauses in breathing, or long-standing insomnia, a clinical evaluation is the next step rather than trying harder at sleep hygiene alone.
Sleep hygiene refers to the daily habits and surroundings that shape how easily you fall asleep, how well you stay asleep, and how rested you feel the next day. Some of the advice attached to this term is genuinely supported by sleep research; some of it is repeated so often that it has become background noise without much evidence behind it. This guide focuses on the habits that actually make a measurable difference, explains the physiology behind them, and is honest about the limits of what habits alone can fix.
Schedule consistency and light exposure
Your body clock, or circadian rhythm, is the single strongest driver of when you feel sleepy and when you feel alert. A consistent wake-up time, seven days a week, is one of the most effective and most underrated sleep habits, because it anchors your circadian rhythm more reliably than a fixed bedtime does. Going to bed at the same time is harder to control since sleepiness varies night to night, but waking at a consistent time and getting light exposure shortly afterward helps stabilize the whole system.
Morning light, ideally natural outdoor light within the first hour or so of waking, helps synchronize your internal clock to the 24-hour day. This is especially useful for people whose schedules drift, such as shift workers or people with a naturally delayed sleep phase. The deeper biology of how light and melatonin regulate circadian timing, and what to do when your internal clock is genuinely out of sync with your desired schedule, is covered in more detail in our guide to melatonin and circadian rhythm.
Caffeine, alcohol, and nicotine
These three substances are probably the most consequential and most misunderstood variables in sleep hygiene.
How common substances affect sleep
Caffeine
Blocks adenosine, the chemical that builds sleep pressure through the day. Its half-life is roughly five to six hours, so a mid-afternoon coffee can still be partially active at bedtime. Effects vary by individual metabolism and tolerance.
Alcohol
Can shorten the time it takes to fall asleep, but it suppresses REM sleep early in the night and fragments sleep later as it is metabolized. It also relaxes upper airway muscles, which can worsen snoring and breathing pauses.
Nicotine
A stimulant that increases time to fall asleep and is associated with lighter, more fragmented sleep. Withdrawal overnight in regular users can also cause early-morning awakenings.
The practical takeaway is timing. Many sleep specialists suggest avoiding caffeine for at least six to eight hours before bedtime, though people who metabolize caffeine slowly may need a wider margin. Alcohol is often best avoided within a few hours of bedtime, and people who already snore or have risk factors for obstructive sleep apnea should be aware that evening alcohol can meaningfully worsen breathing during sleep, not just sleep quality in general.
The bedroom environment
A handful of environmental factors have consistent evidence behind them:
- Temperature. Core body temperature naturally drops as part of falling asleep and staying asleep, so a cool room, commonly cited in a range of roughly 65 to 68 degrees Fahrenheit, supports this process for most people. The ideal is individual, and worth adjusting rather than following a fixed number.
- Light. Darkness supports melatonin release. Blackout curtains, dimming lights in the evening, and covering small LED indicators can help, particularly for people sensitive to light or with irregular schedules.
- Noise. Consistent, low-level background sound (a fan or white noise) can mask disruptive sudden noises for some people, though preferences vary widely.
- Bed and reserving the space for sleep. Using the bed primarily for sleep, rather than for prolonged wakeful activities like working or scrolling, helps strengthen the mental association between bed and sleep, which is a core principle behind behavioral treatments like CBT-I for insomnia.
Screens and light exposure at night
The idea that screens ruin sleep has become something of a cultural shorthand, and the reality is more nuanced. Bright light in the evening, including light from screens, can suppress melatonin and delay the body’s internal signal for sleep, and this effect is generally stronger the closer to bedtime and the brighter the light source. That said, for most people using a phone or tablet at typical brightness and arm’s length, the measured effect on melatonin and sleep timing is often smaller than commonly assumed.
What tends to matter more in practice is what the screen is doing to you mentally: stressful news, work email, or emotionally engaging content can be alerting independent of the light itself, and screen time frequently displaces the time that would otherwise go to winding down or to sleep. A reasonable, non-alarmist approach is to dim screens in the evening when practical, avoid emotionally stimulating content close to bedtime, and be honest about how much time on a screen is actually cutting into your sleep window.
Exercise and physical activity
Regular physical activity is consistently associated with better sleep quality over time, and this is one of the more evidence-supported general habits in sleep medicine. The timing question is more individual. Vigorous exercise very close to bedtime raises core body temperature, heart rate, and alertness for some people, which can delay sleep onset, while others find it has little effect or even helps them wind down. For most people, exercising earlier in the day or finishing vigorous workouts a few hours before bed is a reasonable default, but this is worth adjusting based on your own response rather than following a rigid rule.
Naps: helpful or counterproductive
Naps are not universally good or bad for sleep. A short nap, generally in the 20 to 30 minute range and taken earlier in the day, can restore alertness and performance without meaningfully reducing the drive to fall asleep at night. Longer naps, or naps taken late in the afternoon or evening, reduce accumulated sleep pressure and can make it harder to fall asleep at your normal bedtime, particularly for people who already struggle with insomnia. For someone with significant untreated daytime sleepiness, frequent or irresistible napping can also be a symptom worth mentioning to a physician rather than only a habit to manage, since it can point toward an underlying condition such as obstructive sleep apnea or a hypersomnia disorder.
When sleep hygiene alone is not enough
This is the section most sleep hygiene guides skip, and it matters. Good sleep habits are a genuine foundation, but they are not a treatment for an underlying sleep disorder. A few situations where habits alone are unlikely to be the answer:
- Loud, habitual snoring or witnessed pauses in breathing. These are signs that should prompt evaluation for obstructive sleep apnea, a condition that improved sleep hygiene does not resolve on its own.
- Persistent difficulty falling or staying asleep for weeks or months, despite consistent habits. This pattern is more consistent with a clinical insomnia disorder, which often responds best to structured treatment such as CBT-I rather than habit changes alone. Our guide to sleep medications and sleep aids reviews when medication may also play a role.
- Uncomfortable urges to move the legs at night, or symptoms that worsen in the evening and improve with movement. This pattern raises the possibility of restless legs syndrome, which has specific medical evaluation and treatment separate from general sleep hygiene.
- Ongoing daytime sleepiness despite what seems like adequate sleep time and good habits. This deserves medical attention rather than simply “trying harder” at sleep hygiene, since it can reflect an underlying sleep disorder rather than a habit problem.
If any of these describe your experience, the most useful next step is usually a conversation with a sleep physician rather than continuing to refine habits that are already reasonable. Sleep hygiene and clinical treatment are not competing approaches. Good habits make treatment work better, but they are not a substitute for it when a real sleep disorder is present.
Sleep hygiene is worth taking seriously precisely because the habits that matter most, a consistent wake time, mindful caffeine and alcohol timing, a supportive bedroom environment, and thoughtful use of light and activity, are within your control and genuinely supported by evidence. At the same time, persistent sleep problems that do not improve with consistently good habits are a signal to look further, not a sign to try harder. A sleep evaluation can clarify whether something more than habits is at play, and what to do about it.
Patient Questions
What exactly counts as sleep hygiene?
Sleep hygiene is the set of daily habits and environmental conditions that influence how easily you fall asleep and how well you stay asleep. It includes your sleep-wake schedule, light exposure, caffeine and alcohol timing, physical activity, and the bedroom environment. It does not include medical treatments for a diagnosed sleep disorder.
How long before bed should I stop drinking caffeine?
Caffeine has a half-life of roughly five to six hours in most adults, meaning half of it is still in your system that long after you drink it. Many sleep specialists suggest avoiding caffeine for at least six to eight hours before bedtime, and some people who are especially sensitive need an even wider margin.
Does alcohol actually help me sleep?
Alcohol can make you feel drowsy and fall asleep faster, but it changes the structure of your sleep as your body metabolizes it overnight. It tends to suppress REM sleep in the first half of the night and can cause fragmented, lighter sleep and more awakenings in the second half, along with worsening snoring and breathing pauses in people prone to sleep apnea.
Is looking at my phone before bed really that bad for sleep?
The evidence is more nuanced than commonly portrayed. Bright light late at night can suppress melatonin and shift your circadian clock, but the effect size from typical phone use at arm's length is often modest for most people. The bigger issue for many is often the mentally stimulating or emotionally arousing content itself, plus time displaced from sleep, rather than the blue light wavelength specifically.
Are naps bad for nighttime sleep?
It depends on timing and length. A short nap earlier in the day, generally 20 to 30 minutes, can restore alertness without much effect on nighttime sleep. Long naps or naps late in the afternoon can reduce your drive to fall asleep at your normal bedtime and are more likely to disrupt nighttime sleep, especially in people who already have trouble sleeping at night.
I've tried every sleep hygiene tip and I still sleep badly. What now?
That is a meaningful signal, not a personal failure. Good sleep hygiene is a foundation, but it does not treat obstructive sleep apnea, restless legs syndrome, or clinical insomnia. If good habits alone have not resolved a persistent sleep problem, especially with loud snoring, witnessed breathing pauses, unrefreshing sleep, or ongoing daytime sleepiness, it is reasonable to be evaluated by a sleep physician.
Can exercise timing affect my sleep?
Regular physical activity is generally associated with better sleep quality over time. Vigorous exercise very close to bedtime can be stimulating for some people and temporarily raise core body temperature and heart rate, which may delay sleep onset, though the effect varies by individual. Exercising earlier in the day, or finishing vigorous workouts a few hours before bed, works well for most people.
What temperature should my bedroom be for good sleep?
Most people sleep best in a cool bedroom, often cited in the range of roughly 65 to 68 degrees Fahrenheit, because core body temperature naturally drops as part of the process of falling asleep and staying asleep. The ideal temperature varies by individual, so it is worth adjusting within a comfortable range and noticing what helps.
Sources
Guidelines and Professional Societies
- American Academy of Sleep Medicine. Healthy Sleep Habits. Sleep Education.
Government and Regulatory Sources
- National Heart, Lung, and Blood Institute, National Institutes of Health. Sleep quality unaffected by bedtime consumption of caffeine (research summary).
- National Institutes of Health, National Heart, Lung, and Blood Institute. Your Guide to Healthy Sleep.