TL;DR — The short version
  • The relationship between sleep and mental health goes both ways — poor sleep worsens anxiety and depression, and anxiety and depression worsen sleep
  • 75% of people with depression have significant sleep problems, and insomnia increases the risk of developing depression by 2–3 times
  • Sleep deprivation activates the brain's threat detection system (amygdala) and disconnects it from rational control — making emotional regulation much harder
  • Treating sleep often improves mental health directly — sometimes as effectively as treating the mental health condition itself
  • CBT-I (sleep therapy) has been shown to reduce depression and anxiety symptoms alongside improving sleep

Which comes first?

For a long time, sleep problems were seen as a symptom of depression and anxiety — something that would resolve once the mental health condition was treated. The research now tells a more complicated story. Poor sleep and poor mental health are genuinely bidirectional: each makes the other worse, and each can cause the other to develop in the first place.

People with insomnia are 2 to 3 times more likely to develop depression than people who sleep well. But people with depression are also far more likely to have insomnia. This creates a reinforcing cycle that can be hard to break without addressing both problems simultaneously — and it means treating sleep is often one of the most effective ways to improve mental health outcomes.

What happens in your brain when you don't sleep

The emotional effects of sleep deprivation are not subtle. A landmark study by Matthew Walker's lab at UC Berkeley used fMRI scanning to look at brain activity after sleep deprivation. The amygdala — the brain's threat detection and emotional alarm system — showed 60% more reactivity to negative stimuli in sleep-deprived participants compared to those who slept normally. Crucially, the connection between the amygdala and the prefrontal cortex (which provides rational context and emotional braking) was significantly weakened.

In plain terms: without sleep, your brain's threat alarm fires more easily and your rational brain has less control over it. This is the neurological basis for why everything feels more overwhelming, more threatening, and harder to cope with when you're tired. It's not a character weakness — it's predictable brain chemistry.

REM sleep in particular plays a critical role in emotional processing. During REM, the brain replays emotionally significant experiences but in a neurochemical environment stripped of the stress hormone noradrenaline. This appears to be how we process difficult experiences — literally taking the emotional charge out of them overnight. People deprived of REM sleep retain the raw emotional intensity of negative experiences without the overnight processing that normally softens them.

Anxiety and the 3am awakening

Anxiety and sleep have a particularly vicious relationship. Anxiety raises cortisol and activates the sympathetic nervous system — the "fight or flight" state — which is physiologically incompatible with sleep. People with anxiety tend to have higher baseline arousal at night, more difficulty falling asleep, more frequent awakenings, and lighter overall sleep architecture.

The specific pattern of waking between 2am and 4am — lying awake with a racing mind — is extremely common in people with anxiety and depression. It's driven by the body's natural cortisol rise in the early morning hours, which is exaggerated in people with anxiety disorders. The mind fills the awakening with worry, which keeps cortisol elevated and prevents return to sleep.

A 2024 systematic review and meta-analysis confirmed that CBT-I — the structured sleep therapy programme — significantly reduces depressive symptoms in people with comorbid insomnia and depression, independent of the sleep improvements. The effects persisted at follow-up, suggesting durable benefit beyond the treatment period. Fixing the sleep didn't just fix the sleep; it directly improved mental health outcomes.

What the research shows
  • Insomnia increases the risk of developing depression by 2–3 times — it is a genuine causal risk factor, not just a symptom
  • 75% of people with depression have clinically significant sleep disturbances (Riemann et al., 2020)
  • Sleep-deprived brains show 60% higher amygdala reactivity to negative stimuli (Walker et al., UC Berkeley)
  • REM sleep deprivation prevents the overnight emotional processing of difficult experiences
  • CBT-I reduces depression and anxiety scores alongside improving sleep — treating sleep treats the mood disorder too

What this means practically

If you have anxiety or depression and sleep badly: the sleep problem is not just a side effect — it's likely making your mental health condition harder to treat. Raising it explicitly with your doctor or therapist as a treatment target alongside the mood disorder is worthwhile. CBT-I, in particular, has evidence for improving both simultaneously.

If you sleep badly and are starting to feel low or anxious: addressing the sleep may be the highest-leverage intervention available. The evidence for sleep deprivation causing emotional dysregulation is strong enough that improving sleep is a reasonable first step before assuming a mood disorder needs treatment.

The practical basics still matter most: consistent wake time, limiting alcohol (which suppresses REM sleep), morning light exposure, and reducing evening screen use all support both sleep quality and emotional regulation. These aren't just sleep hygiene tips — they're mental health interventions with evidence behind them.

Bottom line

Sleep and mental health are not separate problems. They are part of the same system. Poor sleep makes anxiety and depression worse — and anxiety and depression make sleep worse. The most important clinical implication is that treating sleep is treating mental health, and vice versa. If you're struggling with your mood and also sleeping badly, they deserve equal attention — not the assumption that one will fix the other.

References
  1. Riemann D., Krone L.B., Wulff K., Nissen C. (2020). Sleep, insomnia, and depression. Neuropsychopharmacology, 45(1), 74–89. DOI: 10.1038/s41386-019-0411-y. PMID: 31071719. View on PubMed →
  2. Ben Simon E. & Walker M.P. (2018). Sleep loss causes social withdrawal and loneliness. Nature Communications, 9, 3146. DOI: 10.1038/s41467-018-05377-0. View on PMC →
  3. Cunningham J.E.A. et al. (2024). Cognitive behavioral therapy for insomnia to treat major depressive disorder with comorbid insomnia: A systematic review and meta-analysis. Journal of Affective Disorders, 367, 359–366. PMID: 39242039. View on PubMed →