The short answer

Poor sleep and mental health problems feed each other. Insomnia roughly doubles the risk of later depression, and in a UK trial of 3,755 students, treating insomnia with online CBT also reduced paranoia, hallucinatory experiences, depression and anxiety. That suggests better sleep can improve mental health, not just the other way round.

Moderate evidence

Trials point the same way but are small or few, or large long-term studies agree but cannot prove cause and effect. How we grade

On this page
  1. Which comes first, poor sleep or poor mental health?
  2. What did the OASIS trial show?
  3. What can help?
  4. Common questions
  5. References

Which comes first, poor sleep or poor mental health?

Both. Almost every mental health condition disturbs sleep, and insomnia is one of the core symptoms of depression. But the link also runs the other way.

A review of 21 long-term studies found that people with insomnia but no depression at the start were roughly twice as likely to develop depression later (odds ratio about 2.1 to 2.6, depending on the method) as people who slept well. A UK study in North Staffordshire found a similar pattern: among people who slept well at the start, new insomnia a year later was linked with anxiety, depression and pain.

Lab studies show the short-term effect directly. When healthy young adults were limited to about 5 hours a night for a week, their ratings of tension, confusion, fatigue and overall mood disturbance rose day by day.

What did the OASIS trial show?

The strongest evidence that better sleep improves mental health comes from the OASIS trial, run by the University of Oxford at 26 UK universities. It randomly assigned 3,755 students with insomnia to an online CBT for insomnia course (Sleepio) or usual care.

After 10 weeks, compared with usual care, the CBT group had:

  • much less insomnia (a large effect),
  • fewer paranoid thoughts and hallucinatory experiences (small effects, the main targets of the study),
  • less depression and anxiety, and better wellbeing.

Analysis suggested that the improvement in sleep explained a large part of the improvement in mental health. Because people were randomly assigned, this is good evidence that treating insomnia can improve mental health. The trial was in students, and the effects on mental health were small to moderate, which is why we grade the overall claim moderate rather than strong.

NICE now recommends Sleepio for people with insomnia in the NHS. See CBT for insomnia.

What can help?

  • Treat insomnia directly if it has lasted months, rather than waiting for it to resolve with mood. CBT for insomnia works for people with depression and anxiety too.
  • Keep a regular wake time, even after bad nights. Lying in to catch up can make both sleep and low mood worse.
  • Go easy on alcohol, which many people use to wind down but which fragments sleep and worsens low mood.
  • Talk to your GP if low mood, anxiety or poor sleep is affecting your daily life. Some antidepressants affect sleep, for better or worse, so mention your sleep when discussing treatment.

If you are in crisis or having thoughts of harming yourself, call NHS 111, contact your GP, or call Samaritans free on 116 123, any time.

Keep reading

Common questions

Can lack of sleep cause anxiety?

It can make it worse. Even a few nights of short sleep raise irritability, tension and low mood in lab studies, and long-term insomnia is linked with a higher risk of anxiety disorders. Anxiety in turn keeps people awake, so the two often need treating together.

Does treating insomnia help depression?

Evidence suggests it does. Trials of CBT for insomnia in people with depression have found improvements in mood as well as sleep, and the large OASIS trial found that improving sleep reduced symptoms of depression and anxiety.

Should I see my GP about poor sleep and low mood?

Yes, especially if either has lasted more than a couple of weeks or is affecting your daily life. If you are having thoughts of harming yourself, get help straight away: call NHS 111, your GP, or Samaritans on 116 123.

References

  1. Freeman D et al. The effects of improving sleep on mental health (OASIS): a randomised controlled trial with mediation analysis. Lancet Psychiatry, 2017.pubmed.ncbi.nlm.nih.gov
  2. Baglioni C et al. Insomnia as a predictor of depression: a meta-analytic evaluation of longitudinal epidemiological studies. Journal of Affective Disorders, 2011.pubmed.ncbi.nlm.nih.gov
  3. Dinges DF et al. Cumulative sleepiness, mood disturbance, and psychomotor vigilance performance decrements during a week of sleep restricted to 4-5 hours per night. Sleep, 1997.pubmed.ncbi.nlm.nih.gov
  4. Morphy H et al. Epidemiology of insomnia: a longitudinal study in a UK population. Sleep, 2007.pubmed.ncbi.nlm.nih.gov
  5. NICE. Sleepio to treat insomnia and insomnia symptoms (MTG70), 2022.nice.org.uk

First published 4 November 2026. Spotted an error? Tell us and we'll correct it. Read our editorial policy.