The Complete Guide to Sleep Hygiene

The habits that support good sleep, ranked by the evidence, and the point where habits stop being enough.

Sleep hygiene is the set of everyday habits and conditions that make sleep easier: a regular schedule, a dark, cool, comfortable bedroom, a wind-down before bed, and sensible timing of caffeine, alcohol and exercise. The evidence is strongest for regular sleep timing, for keeping caffeine well away from bedtime, and for avoiding a hot bedroom.1,2,3 Sleep hygiene is not a treatment on its own: the American Academy of Sleep Medicine advises against using it by itself to treat chronic insomnia.4 Sleepiness that persists despite good habits and enough time in bed points to a cause worth finding.5

Sleep habits and the strength of the evidence for each
HabitWhat the evidence showsStrength
Keep a regular sleep scheduleMost regular sleepers had a lower risk of death than the least regular, in 61,000 adults1Large study, association only
Stop caffeine well before bedCuts total sleep by about 45 minutes2Meta-analysis of 24 studies
Keep the bedroom from getting hotHeat increases waking and cuts deep and REM sleep3Review
Warm bath or shower 1 to 2 hours before bedFaster sleep onset and better sleep quality6Meta-analysis
Exercise, evening includedEvening exercise does not generally harm sleep7Meta-analysis of 23 studies
Blue-light glassesUnclear whether they help8Very low certainty (Cochrane)
A nightcapFaster sleep onset, worse second half of the night9Review

Good habits work by clearing obstacles rather than adding anything. They remove the things that make sleep harder: light at the wrong time, a schedule that moves every day, a warm room, caffeine still circulating at midnight.

They do not fix a sleep disorder. In its 2021 guideline on insomnia, the American Academy of Sleep Medicine strongly recommended cognitive behavioral therapy for insomnia, a structured program that includes sleep education, and suggested that clinicians not use sleep hygiene as a stand-alone treatment.4 Habits are the foundation, not the whole building.

Regularity may matter as much as length. In a study that tracked about 61,000 adults with wrist monitors, the most regular sleepers had a 20% to 48% lower risk of death from any cause than the least regular, and regularity predicted that risk better than sleep duration did.1 The study shows an association, not proof that changing your schedule changes your risk, but the direction is consistent with how the body clock works.

Fix the wake time first. A wake time that holds steady, days off included, anchors the body clock, because morning light resets it each day.10

Allow enough time. Adults need seven or more hours of sleep on a regular basis, so time in bed has to be longer than that.11

Why timing matters is covered in circadian rhythms explained.

Temperature. A hot bedroom costs sleep. Heat exposure during the night increases wakefulness and reduces both deep sleep and REM sleep, and humid heat adds to the load. Cool rooms are easier to manage: cold air on its own does not change sleep stages when bedding and clothing are adequate.3

Light. Evening light pushes the body clock later; reading on a tablet before bed delayed sleep compared with a printed book.12 A dark bedroom and dimmer evenings work with the clock instead of against it. Screens, blue light and sleep covers what holds up.

Noise and comfort. A quiet room and a bed that does not wake you are common sense rather than findings from trials, and they belong on the list for that reason.

A warm shower or bath, earlier than you think. A meta-analysis found that bathing in water at 40 to 42.5 °C (104 to 108.5 °F) one to two hours before bed, for as little as ten minutes, shortened the time it took to fall asleep and improved sleep efficiency and self-rated sleep quality. The warmth draws blood to the hands and feet, which helps the body shed heat as sleep approaches.6

Bed is for sleep. Going to bed only when sleepy and getting up if sleep does not come are part of stimulus control, one of the single techniques the AASM guideline suggests for chronic insomnia.4

Something calm in the last hour. Reading a printed book, stretching or a familiar routine signals that the day is over. The point is the routine, not any particular activity.

Caffeine. It lingers for most of a working day and cuts into sleep even when you do not notice the loss.2,13 Caffeine and sleep gives the cutoffs.

Alcohol. It helps people fall asleep, then disturbs the second half of the night, and tolerance to its sedative effect develops within about three nights.9 See alcohol and sleep.

Exercise. Regular exercise improves sleep modestly, and evening exercise does not generally hurt it. The exception is hard exercise that ends within an hour of bedtime.7,14 See exercise timing and sleep.

“A nightcap helps.” Many people with insomnia have tried it, and most thought it worked.9 It speeds sleep onset at the cost of the night that follows.

“Never exercise in the evening.” A meta-analysis of 23 studies found no evidence that evening exercise generally harms sleep.7

“Blue-light glasses solve screen time.” A Cochrane review found the evidence on sleep inconclusive and of very low certainty.8

“A long weekend lie-in pays back the week.” A lie-in makes the schedule irregular, and irregular timing carries risks of its own.1

“Everyone needs eight hours.” The recommendation for adults is seven or more on a regular basis, and needs vary.11

Good habits make good sleep more likely; they do not guarantee it. If you keep a regular schedule, allow seven or more hours and still struggle to stay awake during the day, or if someone has noticed loud snoring or pauses in your breathing, the cause may be a sleep disorder rather than a habit.5,15 When tiredness needs a doctor covers the patterns worth acting on.

If sleepiness persists despite consistent habits and enough time in bed, an evaluation can identify treatable causes.

  1. Windred DP, Burns AC, Lane JM, et al. Sleep regularity is a stronger predictor of mortality risk than sleep duration: a prospective cohort study. Sleep. 2024;47(1):zsad253. doi:10.1093/sleep/zsad253 https://doi.org/10.1093/sleep/zsad253
  2. Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. doi:10.1016/j.smrv.2023.101764 https://doi.org/10.1016/j.smrv.2023.101764
  3. Okamoto-Mizuno K, Mizuno K. Effects of thermal environment on sleep and circadian rhythm. J Physiol Anthropol. 2012;31(1):14. doi:10.1186/1880-6805-31-14 https://doi.org/10.1186/1880-6805-31-14
  4. Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med. 2021;17(2):255-262. doi:10.5664/jcsm.8986 https://doi.org/10.5664/jcsm.8986
  5. Gandhi KD, Mansukhani MP, Silber MH, Kolla BP. Excessive daytime sleepiness: a clinical review. Mayo Clin Proc. 2021;96(5):1288-1301. doi:10.1016/j.mayocp.2020.08.033 https://doi.org/10.1016/j.mayocp.2020.08.033
  6. Haghayegh S, Khoshnevis S, Smolensky MH, Diller KR, Castriotta RJ. Before-bedtime passive body heating by warm shower or bath to improve sleep: a systematic review and meta-analysis. Sleep Med Rev. 2019;46:124-135. doi:10.1016/j.smrv.2019.04.008 https://doi.org/10.1016/j.smrv.2019.04.008
  7. Stutz J, Eiholzer R, Spengler CM. Effects of evening exercise on sleep in healthy participants: a systematic review and meta-analysis. Sports Med. 2019;49(2):269-287. doi:10.1007/s40279-018-1015-0 https://doi.org/10.1007/s40279-018-1015-0
  8. Singh S, Keller PR, Busija L, et al. Blue-light filtering spectacle lenses for visual performance, sleep, and macular health in adults. Cochrane Database Syst Rev. 2023;(8):CD013244. doi:10.1002/14651858.CD013244.pub2 https://doi.org/10.1002/14651858.CD013244.pub2
  9. Roehrs T, Roth T. Sleep, sleepiness, and alcohol use. Alcohol Res Health. 2001;25(2):101-109. https://pmc.ncbi.nlm.nih.gov/articles/PMC6707127/
  10. Morgenthaler TI, Lee-Chiong T, Alessi C, et al. Practice parameters for the clinical evaluation and treatment of circadian rhythm sleep disorders. Sleep. 2007;30(11):1445-1459. doi:10.1093/sleep/30.11.1445 https://doi.org/10.1093/sleep/30.11.1445
  11. Watson NF, Badr MS, Belenky G, et al. Recommended amount of sleep for a healthy adult: a joint consensus statement of the American Academy of Sleep Medicine and Sleep Research Society. J Clin Sleep Med. 2015;11(6):591-592. doi:10.5664/jcsm.4758 https://doi.org/10.5664/jcsm.4758
  12. Chang AM, Aeschbach D, Duffy JF, Czeisler CA. Evening use of light-emitting eReaders negatively affects sleep, circadian timing, and next-morning alertness. Proc Natl Acad Sci U S A. 2015;112(4):1232-1237. doi:10.1073/pnas.1418490112 https://doi.org/10.1073/pnas.1418490112
  13. Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-1200. doi:10.5664/jcsm.3170 https://doi.org/10.5664/jcsm.3170
  14. Kredlow MA, Capozzoli MC, Hearon BA, Calkins AW, Otto MW. The effects of physical activity on sleep: a meta-analytic review. J Behav Med. 2015;38(3):427-449. doi:10.1007/s10865-015-9617-6 https://doi.org/10.1007/s10865-015-9617-6
  15. Kapur VK, Auckley DH, Chowdhuri S, et al. Clinical practice guideline for diagnostic testing for adult obstructive sleep apnea: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med. 2017;13(3):479-504. doi:10.5664/jcsm.6506 https://doi.org/10.5664/jcsm.6506