Sleep hygiene for mental health is about one idea: how you sleep and how you feel affect each other, so small changes to your evening and daytime habits can help both. This guide covers 12 NHS-backed habits, what to do when worry keeps you awake, and when it is time to speak to a GP. It is educational and cannot replace advice from a health professional.
What is sleep hygiene?
The NHS describes it simply: “Making small changes to habits and routines that help you sleep can make a real difference. This is sometimes called sleep hygiene.” In other words, small changes to habits and routines that make good sleep more likely. The NHS also points out that many people have problems with sleep at some point, so you are far from alone if your nights are not perfect.
Think of it like brushing your teeth. “Hygiene” here means everyday habits that look after something, not anything to do with being clean. Brushing does not cure an illness, and sleep hygiene is the same: a set of ordinary habits that give your body its best chance.
NHS Every Mind Matters groups its advice into six areas:
- keep a regular sleep routine
- relax before bed
- manage worries and stress
- make your bedroom comfortable for sleep
- try not to force sleep
- get active to help you sleep better
Later in this article these six areas are turned into a checklist of 12 specific habits you can tick off. Sleep hygiene is a first step, not a treatment for an illness. NICE, the body that advises the NHS in England, says the usual advice for people with sleep problems is sleep hygiene, and we look at what comes next if that is not enough in the section on insomnia below.
How sleep and mental health affect each other

The link between sleep and mental health runs in both directions, and that is why this topic matters. Stress, worry and low mood can wreck your sleep, and poor sleep can make stress, worry and low mood harder to manage.
Start with the first direction. The NHS lists “stress, anxiety or depression” among the most common causes of insomnia. Disturbed sleep is also a recognised symptom: the NHS says depression can bring “finding it difficult to fall asleep at night or waking up very early in the morning”, and difficulty sleeping is listed as a symptom of generalised anxiety disorder. When your mind is busy, sleep is often the first thing to suffer.
Now the second direction. Going without good sleep leaves you tired and irritable, and the NHS says people with insomnia often find it hard to concentrate during the day. A tired brain has less energy to cope with difficult feelings. The NHS anxiety self-help advice puts it this way: try to get enough sleep, because it can help you have the energy you need to cope with difficult feelings and experiences. Poor sleep and low mood can therefore feed each other in a loop, and breaking the loop at the sleep end is often the easiest place to start.
If you want to know what happens to the rest of your body when you miss sleep, see our guide to what missing sleep does to your body.
Can poor sleep cause depression or anxiety?
Researchers have studied this question for years, and the evidence comes in two kinds. The first kind is observational: follow people over time and see who develops problems later.
- A 2011 meta-analysis (Baglioni and colleagues) pooled 21 studies that followed people over time. People with insomnia who were not depressed at the start had about twofold the risk of developing depression later, compared with people with no sleep difficulties. The authors noted that the studies did not always take other influences into account.
- A 2016 meta-analysis (Li and colleagues) pooled 34 cohort studies with 172,077 participants, followed for 60.4 months on average. Insomnia was linked with a higher risk of depression, with a pooled risk ratio of 2.27. The results varied a lot between studies.
These studies show a link, but a link alone cannot show cause. Something else, such as stress, could drive both the bad sleep and the low mood. That is why the second kind of evidence is more powerful: randomised trials, where one group gets an intervention that improves sleep and another does not.
| Study | Who | What it found | Type of evidence |
|---|---|---|---|
| Baglioni et al., 2011 | 21 longitudinal studies | Insomnia linked with about twice the risk of later depression | Observational (follow-up) |
| Li et al., 2016 | 34 cohorts, 172,077 people | Insomnia linked with higher risk of depression (risk ratio 2.27) | Observational (follow-up) |
| Scott et al., 2021 | 65 randomised trials, 8,608 people | Improving sleep brought medium-sized improvements in mental health, depression and anxiety | Randomised controlled trials |
| Freeman et al., 2017 (OASIS) | 3,755 UK university students with insomnia | A digital sleep programme reduced insomnia, paranoia and hallucinations | Randomised controlled trial |
The 2021 analysis (Scott and colleagues) gathered 65 randomised controlled trials covering 8,608 participants, all testing something that improved sleep. On average, better sleep brought medium-sized improvements in overall mental health, depression, anxiety and rumination (going over the same worries again and again), and smaller improvements in stress. The bigger the improvement in sleep quality, the bigger the improvement in mental health. The authors concluded that the findings suggest sleep is causally related to the experience of mental health difficulties.
The OASIS trial (Freeman and colleagues, 2017) tested this in 3,755 students with insomnia at 26 UK universities. They were randomly given either a digital programme of cognitive behavioural therapy for insomnia or their usual care. After 10 weeks, the sleep programme had reduced insomnia and had also reduced paranoia and hallucinations. The authors described this as strong evidence that insomnia is a causal factor in psychotic experiences and other mental health problems, and said that whether the results apply beyond students needs testing.
What happens in your brain while you sleep
Sleep is not one long switch-off. According to Evelina London Children’s Hospital, part of Guy’s and St Thomas’ NHS Foundation Trust, there are four stages of sleep: stages N1 and N2 (the lightest), stage N3 (the deepest sleep), and rapid eye movement (REM) sleep. We cycle through these stages several times each night, with more deep sleep towards the beginning of the night and more REM sleep towards the end.

Each stage has a job. Deep sleep is important for growth, physical healing and some hormone regulation. REM and light sleep play an important role in memory, learning and emotional regulation, which is why sleep matters for how we cope. To see how the brain handles all of this, read about the brain at work.
Most people fall asleep within about 30 minutes. Doctors call the time it takes to fall asleep “sleep latency”, and a slow start on some nights is normal.
How much sleep do you need?
The NHS says everyone needs different amounts of sleep. On average, adults need 7 to 9 hours, children need 9 to 13 hours, and toddlers and babies need 12 to 17 hours. The NHS also gives a simple warning sign: you probably do not get enough sleep if you are constantly tired during the day.
| Age group | Typical sleep need | Source |
|---|---|---|
| Toddlers and babies | 12 to 17 hours | NHS |
| Children | 9 to 13 hours | NHS |
| Teenagers | Most need 9 to 9.5 hours; the normal range is 7 to 11 hours | Evelina London Children’s Hospital (NHS trust) |
| Adults | 7 to 9 hours | NHS |
For teenagers, Evelina London says that if you are getting less than 7 hours most nights, you are probably not getting enough. Your own need sits somewhere in the range, and the hospital team suggests working it out from how much you sleep naturally on holiday. For example, falling asleep at 11 pm and waking at 8.30 am gives 9.5 hours. Your body clock, the topic of our guide to the circadian rhythm, is what makes the same times each day so helpful.
Pick the time you must wake up, the hours you aim to sleep and how long you usually take to drift off. The calculator below works out when to be in bed.
The sleep hygiene checklist: 12 NHS-backed habits
Here are 12 habits drawn from NHS Every Mind Matters, the NHS insomnia page and the Evelina London teenage sleep guide. Where two sources give different timings, each is named so you can see where the advice comes from.
- Get up at the same time every day, weekends too. It helps your body know when it is time to sleep.
- Go to bed only when you feel sleepy. The NHS insomnia page advises going to bed only when you are sleepy.
- Switch screens off an hour before bed. NHS: blue light can make it harder to fall asleep.
- Take a calm wind-down hour. A bath, a book, calming music or breathing exercises.
- Keep the bedroom quiet, dark and cool. Curtains, an eye mask or earplugs can help.
- Put clocks out of view and your phone face down. Better still, charge it outside the bedroom.
- No tea or coffee for at least 6 hours before bed. The NHS insomnia page gives this timing.
- Avoid alcohol and nicotine before bed. The NHS insomnia page says 6 hours; Every Mind Matters says at least 1 to 2 hours.
- Skip big meals late at night. They may make it harder to fall asleep.
- Be active in the day, but not in the 4 hours before bed. The NHS insomnia page says not to exercise at least 4 hours before bed; Every Mind Matters says to try being active earlier if evening exercise affects your sleep.
- Get outside in daylight, ideally soon after waking. Evelina London suggests at least 20 minutes.
- Skip daytime naps. The NHS advises against them; Evelina says if you must, no more than 20 minutes and not after 5 pm.
Tick the ones you already do. Your ticks are saved on this device, so you can come back and work on one new habit at a time. Evelina London’s advice is that there are no quick fixes, and making small, consistent changes can make a big difference. Aim for the same time every day first, because everything else builds on a steady wake-up time.


Screens and phones at night
The NHS advice is clear: try not to use phones, tablets or computers for an hour before bed, because the blue light from screens can make it harder to fall asleep. If you swap the screen for reading something you enjoy, meditation, breathing exercises, calming music or a podcast, you give your mind a gentler runway.
Two extra points from Evelina London are worth knowing. First, night-time filters and “yellow light” settings will not help on their own. Second, even a quick look at your phone in the night can affect the quality of the sleep that follows. Charging your phone anywhere but your bedroom removes the temptation. If screens tire your eyes during the day as well, our guide to protecting your eyes from digital devices has more.
Caffeine, alcohol and food

Tea, coffee and some soft drinks contain caffeine, which can make you feel more awake. The NHS insomnia page says not to smoke or drink alcohol, tea or coffee at least 6 hours before going to bed. Evelina London adds that chocolate contains caffeine and green tea has as much caffeine as regular tea, and it suggests avoiding caffeinated or sugary drinks especially after lunch.
Caffeine also matters if you feel anxious. The NHS self-help advice for generalised anxiety disorder says not to drink lots of coffee, tea, cola or energy drinks, because the caffeine can disrupt your sleep and make it harder to control your anxiety. A warm milky drink or herbal tea is the NHS suggestion instead.
Alcohol and nicotine need care too. NHS Every Mind Matters says they can have disruptive effects on sleep and advises avoiding them 1 to 2 hours before bed, while the NHS insomnia page gives a longer 6 hours. Large meals close to bedtime may also make it harder to fall asleep.
If you work nights or rotating shifts, the clock rules above need adjusting, so see our separate guide to sleep hygiene tips for shift workers.
Sleep and anxiety: calming a racing mind at night

The NHS says worry, stress and anxiety can make it harder to sleep, and lying in the dark is when worries tend to get loud. Two ideas from the NHS help. Talking to someone you trust, or writing down your worries, can ease them. And if you often worry in bed, try making a list of things you need to do the next day before you go to sleep.
Evelina London suggests a similar trick for teenagers: write your thoughts down on paper, put them in a box away from your bed, and look at them again the next day. Difficult feelings are easier to talk through earlier in the day with someone you trust, rather than too close to bedtime. If stress is a regular visitor, our guide to a stress-free life has practical ideas for the daytime.
The wind-down itself can help too. The NHS suggests breathing exercises, meditation, calming music or a podcast, and it offers “Beditation” relaxation audio for the hour before bed.
Why does writing a to-do list before bed help some people sleep? (2 marks)
Getting tomorrow’s tasks and worries down on paper can help clear your mind, so you are not trying to remember them while lying in bed. The NHS suggests making a list of things you need to do the next day before you go to sleep.
Why might talking about a big worry at 11 pm backfire? (2 marks)
Evelina London advises talking feelings through with someone you trust during the day, not too close to bedtime, because difficult feelings late at night can raise anxiety just when you are trying to settle. Earlier in the day is better.
Can’t sleep? What to do in the middle of the night
The first rule from NHS Every Mind Matters is to try not to force sleep. Trying harder usually makes you more alert. If you are still awake after around 20 minutes, get up and sit somewhere comfortable. Try a relaxing activity like gentle yoga, reading a book or listening to quiet music, and go back to bed when you feel sleepy. Evelina London gives a slightly wider window for teenagers: if you cannot fall asleep within about 20 to 30 minutes, get up, do something calming and try again.
A few details make this work better. Keep the room dark and quiet, and keep clocks out of view, because watching the minutes tick by feeds the worry. And do not make up for a bad night by sleeping in: the NHS says to stick to your regular sleeping hours. Using your bed only for sleep also helps. Evelina London advises against playing games or using your phone on your bed in the daytime, so that your brain links bed with sleep.
Here are six habits and the reason each one works, drawn from the NHS and Evelina London advice. Tap a card to flip it.



Sleep hygiene for teenagers and students
Teenagers face a particular problem. Evelina London explains that when you are a teenager, your body clock shifts later, and teenage brains get sleepier later than those of younger children and adults. Most teenagers need 9 to 9.5 hours of sleep each night, although the normal range is 7 to 11 hours. That collides with early school starts.
The hospital gives a worked example. If you fall asleep at 11 pm and need to wake at 8.30 am, you get 9.5 hours. A school alarm at 7 am leaves you with only 8. Going to bed 15 minutes earlier and waking 15 minutes later gains 30 minutes a day, which over a five-day school week adds up to 2.5 hours. That is simple arithmetic, and it shows why small changes matter.
More tips from Evelina London for teenagers and students:
- Get at least 20 minutes of natural light when you first wake up. Outdoor light, even on a grey and cloudy day, beats most indoor light.
- Stop using your phone or tablet at least an hour before bed, and charge your phone anywhere but your bedroom.
- Keep the same sleep and wake times, even at the weekends. If you want a lie-in, try to get up by around 9 to 10 am on most weekend days.
- Avoid caffeinated or sugary drinks, especially after lunch.
- If you really need a nap, keep it to no more than 20 minutes and not after 5 pm.
Exam season is the hardest time to protect sleep, because late-night revision feels productive. But Evelina London says REM and light sleep play an important role in memory and learning, so cutting your sleep short may affect how well you learn and remember. Our guide on how to improve memory for exams covers the study side, and stopping an hour before bed gives your mind time to settle.


Is sleep hygiene enough? Insomnia and CBT‑I
For many people, better habits are all they need. For others, sleep problems stick around. The NHS says insomnia means you regularly have problems sleeping, and that it usually gets better by changing your sleeping habits. You may have insomnia if, regularly, you:
- find it hard to go to sleep
- wake up several times during the night
- lie awake at night
- wake up early and cannot go back to sleep
- still feel tired after waking up
- find it hard to nap during the day even though you are tired
- feel tired and irritable during the day
- find it difficult to concentrate during the day because you are tired
Insomnia lasting less than 3 months is called short-term insomnia. Insomnia that lasts 3 months or longer is called long-term insomnia. This article cannot tell you whether you have it, so if the list sounds familiar, speak to a GP.
NICE says the usual treatment for people with sleep problems is advice about sleep hygiene. If insomnia symptoms are not likely to resolve soon, NICE says best practice is to refer for face-to-face cognitive behavioural therapy for insomnia, or CBT‑I, although its availability in the UK is limited. NICE also recommends a digital self-help programme that includes CBT‑I, called Sleepio, in primary care for people who would otherwise be offered sleep hygiene or sleeping pills. In other words, sleep hygiene is the first step, and CBT‑I is the next step when habits alone do not settle things.
The NHS says a GP will try to find out what is causing your insomnia. Sometimes you will be offered cognitive behavioural therapy (CBT), either face-to-face with a therapist or through an online self-help programme, which can help you change the thoughts and behaviours that keep you from sleeping. GPs now rarely prescribe sleeping pills to treat insomnia, because they can have serious side effects and you can become dependent on them. Melatonin is a hormone your body makes to regulate your sleep and wake cycle, but as a medicine it is only available in the UK with a prescription. The NHS says pharmacy sleep aids cannot cure insomnia, may help you sleep better for 1 to 2 weeks and should not be taken for any longer, so check with your doctor before taking anything for your sleep problems.
Some sleep problems have a different cause, such as sleep apnoea or nightmares, and a GP may refer you to a sleep clinic if you have symptoms of another sleep disorder. Our guide to sleep disorders and fears explains them. Good sleep also sits alongside other daily habits that look after your brain, which we cover in lifestyle choices that improve brain function.
When to speak to your GP about sleep

This article is for education and cannot diagnose a sleep or mental health problem.
Test yourself: sleep hygiene quiz
Frequently asked questions about sleep hygiene and mental health
What is sleep hygiene?
Sleep hygiene means making small changes to the habits and routines that help you sleep. The NHS uses the term for things like a regular sleep routine, relaxing before bed, a comfortable bedroom, managing worries and being active in the day. It is a first step, not a treatment for an illness.
How does sleep affect mental health?
The link works both ways. Stress, anxiety and depression are among the most common causes of insomnia, and the NHS lists disturbed sleep as a symptom of depression. Studies also link poor sleep with a higher risk of later mental health problems, and trials where sleep improves show better mental health.
Can poor sleep cause anxiety or depression?
Follow-up studies link insomnia with about twice the risk of later depression, but those studies cannot prove cause. Randomised trials that improved sleep found medium-sized improvements in depression and anxiety, and the authors suggest sleep is causally related to mental health difficulties. Poor sleep is one factor among many.
How many hours of sleep do adults and teenagers need?
The NHS says adults need 7 to 9 hours on average, and children 9 to 13 hours. Evelina London Children’s Hospital says most teenagers need 9 to 9.5 hours, with a normal range of 7 to 11. Needs vary, and constant tiredness during the day suggests you may not be getting enough.
How can I fall asleep when my mind is racing?
The NHS suggests writing down your worries, or making a list of things to do the next day before bed, and talking to someone you trust. Relaxing in the hour before bed with breathing exercises, meditation, calming music or reading can help. Try not to force sleep.
Should I get out of bed if I can’t sleep?
Yes. NHS Every Mind Matters says if you are still awake after around 20 minutes, get up and sit somewhere comfortable. Try gentle yoga, reading a book or quiet music, and go back to bed when you feel sleepy. Evelina London gives about 20 to 30 minutes for teenagers.
How long before bed should I stop drinking coffee?
The NHS insomnia page says not to drink tea or coffee, or to smoke or drink alcohol, at least 6 hours before going to bed. If your bedtime is 22:30, that means your last cup by about 16:30. Caffeine is also in cola, energy drinks, chocolate and green tea.
Are naps bad for sleep hygiene?
The NHS insomnia advice is not to nap during the day. Evelina London says that if you really need a nap, make it no longer than 20 minutes and not after 5 pm. A steady routine comes first.
Is sleep hygiene enough to treat insomnia?
Often it is the first step. NICE says sleep hygiene is the usual advice for sleep problems, and the NHS says insomnia usually gets better by changing your sleeping habits. If it does not, a GP may offer cognitive behavioural therapy for insomnia, face to face or online. GPs rarely prescribe sleeping pills.
When should I see a GP about sleep problems?
The NHS says see a GP if changing your sleeping habits has not helped, if you have had trouble sleeping for months, or if your sleep problems make it hard to cope with daily life. Mention low mood or anxiety too. For urgent mental health help, call 111 and select the mental health option.



