How to Build a Sleep Routine That Actually Works
TL;DR
- A sleep routine does two jobs: it prepares your body for sleep and it trains your brain to expect it.
- The useful window opens about 90 minutes before your target sleep time.
- The first hour lowers cortisol and light. The final stretch is a fixed sequence your brain learns.
- A consistent wake time and morning daylight anchor the whole thing.
- Keep it short and repeatable, or it won't stick.
Sleep routines get talked about so much that the advice starts to sound like wallpaper: same bedtime, phone away, chamomile tea. What's rarely explained is why any of it works, so people copy the shape of a routine without the substance. Here's how to build one that actually shifts your sleep.
What a routine is really doing
A sleep routine serves two separate purposes.
The first is preparation. Sleep needs certain physical conditions in place before you get into bed: cortisol low, core body temperature starting to fall, light dropping, and the nervous system moving to its calm side. None of that happens in an instant. The routine gives it time.
The second is conditioning. Do the same sequence every night and the brain starts to link it with sleep, the way any repeated cue gets tied to what follows. Over a few weeks, starting the routine begins to bring on sleepiness by itself, before you've even finished it.
Both matter. A routine with no real wind-down won't lower cortisol or temperature enough. A routine that's different every night never builds the learned response.
The 90-minute window
Sleep onset waits on three slow shifts: cortisol falling, core temperature dropping, and melatonin rising. None of them is quick.
Cortisol takes time to clear. A stressful call or hard workout at 9pm still leaves cortisol raised well into the evening. Core temperature only falls as the body sheds heat through the skin, which is gradual. And melatonin rises properly once bright light has been gone for half an hour to an hour.
That's why the window that matters is roughly 90 minutes before your target sleep time. Starting to wind down at 10pm for a 10:30 sleep doesn't give the biology room to work. For people who struggle to drop off, stretching the wind-down to 90 minutes is often the single most useful change.
What the first hour looks like
The first hour is about removing the things that keep cortisol and alertness up.
Dim the light. Overhead bulbs, full-brightness screens, and blue-heavy LEDs all hold melatonin back. This is the hour to switch to lamps, put screens on night mode, and drop the overall brightness. It doesn't have to be dramatic. A moderate drop makes a real difference.
Ease off demanding input. Work email, hard conversations, the news, and money admin all keep the thinking brain and cortisol switched on. Save the low-demand stuff for now: a novel, easy conversation, light tidying.
Skip alcohol and heavy meals. Alcohol's sedative effect comes with a rebound later that fragments sleep, and a big meal raises body temperature through digestion, working against the cooling you're trying to bring on.
Take a warm bath. It sounds backwards, but a warm bath 60 to 90 minutes before bed speeds sleep up. The warm water sends blood to the skin, and once you get out the heat sheds fast, dropping core temperature quicker than it would on its own. A meta-analysis of the research found this shortened the time people took to fall asleep (Haghayegh et al., 2019). For the temperature and cortisol side, see cortisol and sleep.
What the final stretch looks like
The last 45 minutes is the conditioning phase, and the sequence should be the same every night.
A fixed run of small steps, washing your face, brushing your teeth, any skincare, changing into what you sleep in, done in the same order, works as a set of cues that tell the brain sleep is coming. It's the same idea as a pre-match routine in sport: the brain uses predictable sequences to get ready in advance.
Finish with a few minutes of slow breathing or muscle relaxation, done in bed. Breathing out for longer than you breathe in, for five to ten minutes, brings on the calm state sleep needs, and doing it in bed strengthens the link between that state and the place you sleep.
Keep screens out of the bed. Bed should mean sleep, so using screens there teaches the brain that bed is a place to stay awake. That's the stimulus-control idea from cognitive behavioural therapy for insomnia.
The morning anchor
A routine isn't finished without a fixed wake time. Your wake time sets the timing of the next day's sleep pressure and cortisol rhythm, so without it the evening routine is aiming at a target that moves every night.
A consistent wake time, weekends included, is the best-supported sleep habit there is. For the full explanation, see sleep schedule consistency. Morning daylight within half an hour of waking is the other anchor: it confirms the timing signal and sets the evening melatonin rise about fourteen to sixteen hours later.
Building the habit
A routine that takes more than 20 minutes or needs a lot of setup won't survive. The aim is a sequence that feels automatic within a few weeks and needs no thought. Start with the biggest levers: a consistent wake time, morning light, the 90-minute light drop, and ten minutes of breathing in bed. Add pieces gradually over the first few weeks, and don't try to do everything at once.
Frequently asked questions
How long before bed should a routine start?
About 90 minutes. Cortisol, temperature, and melatonin all shift slowly, so the last five or ten minutes isn't enough time for the biology to catch up.
What's the most important part of a sleep routine?
The morning anchor. A consistent wake time and morning daylight set the timing that the whole evening routine builds toward.
Does a warm bath before bed actually help?
Yes. A warm bath an hour or two before bed speeds heat loss afterward, which drops core temperature and shortens the time to fall asleep in the research.
How long until a routine works?
Usually a few weeks. The preparation part helps straight away, and the learned association builds with repetition.
Disclaimer
This article is for general information and education only. It is not medical advice, and it does not diagnose, treat, or prevent any condition. If sleep problems are affecting your daily life, speak with a GP or a qualified healthcare professional.
Sources
- Haghayegh S, Khoshnevis S, Smolensky MH, Diller KR, Castriotta RJ. (2019). Before-bedtime passive body heating by warm shower or bath to improve sleep: a systematic review and meta-analysis. Sleep Medicine Reviews. https://pubmed.ncbi.nlm.nih.gov/31102877/
- Gooley JJ, Chamberlain K, Smith KA, et al. (2011). Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans. Journal of Clinical Endocrinology and Metabolism. https://pubmed.ncbi.nlm.nih.gov/21193540/
Related reading: Sleep Schedule Consistency: Why Your Wake Time Matters Most | Cortisol and Sleep: What Stress Does to Your Sleep at Night
About the Author

Nima Koucheki
Founder, Sleep Improvers
Nima Koucheki is the founder of Sleep Improvers. He hosts a podcast and YouTube channel dedicated to sleep science, translating peer-reviewed research into protocols anyone can apply tonight.