Sleep, Anxiety, and Depression: Why Rest Matters for Mental Health

Written by Dr. Oswaldo Romero, PMHNP-BC

Most people know that a bad night of sleep makes everything harder. But what many do not realize is that the relationship between sleep and mental health is not just about feeling tired: it is biological, bidirectional, and deeply consequential. Sleep is not a luxury. It is a clinical variable that directly affects the course of anxiety, depression, and nearly every other psychiatric condition.

For patients already managing a mental health condition, poor sleep is not just a symptom to endure. It is a problem that, left unaddressed, can undermine every other treatment in the plan.

The Bidirectional Relationship: Sleep and Mental Health Feed Each Other

For decades, sleep problems were treated as a secondary symptom; something that would resolve once the "real" condition, like depression or anxiety, was treated. That thinking has fundamentally changed.

Research now shows that the relationship between sleep and mental health is bidirectional. Insomnia predicts the development of depression and anxiety, and depression and anxiety predict the development of insomnia. An 18-year longitudinal study found that poor sleep quality mediated 41% of the association between generalized anxiety disorder and future depression. In other words, sleep was not just a bystander, it was a driving force in the progression from anxiety to depression over time.

A systematic review assessing bidirectionality confirmed that insomnia is bidirectionally related to both anxiety and depression, and that childhood sleep problems significantly predicted higher levels of depression later in life. A large meta-analysis of genetic studies found substantial genetic overlap between insomnia symptoms and depression (genetic correlation of 0.72) and between insomnia symptoms and anxiety (genetic correlation of 0.75), suggesting that these conditions share deep biological roots.

The clinical implication is clear: treating sleep is not optional when managing anxiety or depression. It is essential.

What Happens in the Brain When Sleep Goes Wrong

Sleep is not passive downtime. It is an active neurobiological process during which the brain consolidates memories, processes emotions, clears metabolic waste, and restores the neural circuits responsible for emotional regulation.

When sleep is disrupted, these processes break down. Sleep deprivation heightens emotional reactivity, weakens the ability to regulate emotions adaptively, and increases the persistence of negative emotions over time. Neuroimaging research has identified the prefrontal-limbic circuitry (the brain's system for top-down emotional control) as particularly vulnerable to sleep loss. When this system is impaired, the amygdala becomes hyperactive, leading to exaggerated fear and anxiety responses, while the prefrontal cortex loses its ability to apply the brakes.

Chronic insomnia also activates the hypothalamic-pituitary-adrenal (HPA) axis, leading to elevated cortisol levels that dysregulate inflammatory pathways and metabolic processes. This creates a neurobiological cascade: disrupted neurotransmitter function (particularly in serotonin, GABA, and dopamine systems) further compromises emotional regulation, while elevated inflammatory markers like C-reactive protein become linked to fatigue, appetite changes, and worsening mood symptoms.

Neuroimaging studies have identified overlapping brain regions, particularly the insula and anterior cingulate cortex, that are consistently associated with both insomnia severity and the severity of depressive and anxiety symptoms. These shared neural correlates help explain why sleep disturbance and mood disorders so frequently co-occur and why treating one can improve the other.

The Numbers Tell the Story

The epidemiological data is striking. A population-based study of over 318,000 U.S. adults found that short sleep duration (five hours or less) was associated with a 14.1 percentage point increase in depression incidence compared to those sleeping six to eight hours. Short sleepers also reported an average of 5.3 additional poor mental health days per month. Even long sleep duration (nine hours or more) was associated with worse outcomes (a 12.9 percentage point increase in depression incidence) suggesting that both too little and too much sleep carry risk.

Nearly 70% of patients with mental disorders report sleep difficulties, and 30% meet full criteria for insomnia disorder. Among patients being treated for depression, residual insomnia is one of the most common persistent symptoms — and it is a strong predictor of relapse. Patients whose insomnia persists after depression treatment are significantly more likely to experience a return of depressive episodes.

Why Treating Sleep Improves Everything Else

One of the most important developments in psychiatric research over the past decade is the growing evidence that treating insomnia directly, rather than waiting for it to resolve with treatment of the underlying mood disorder, produces meaningful improvements in both sleep and mental health.

Cognitive behavioral therapy for insomnia (CBT-I) is the gold standard. It is recommended as first-line treatment for chronic insomnia by every major professional organization, including the American Academy of Sleep Medicine, the VA/DoD, and the European Sleep Research Society. CBT-I is a structured, typically four-to-eight-session intervention that combines sleep restriction, stimulus control, cognitive restructuring, and sleep hygiene education.

The evidence for CBT-I in patients with co-occurring mental health conditions is particularly compelling:

- A meta-analysis of 19 randomized controlled trials found that CBT-I more than doubled the odds of depression response in patients with major depressive disorder and comorbid insomnia (OR 2.28), with a depression response rate of 32% compared to 17% in control conditions. Importantly, the improvement in depression extended beyond the sleep domain.

- In patients with comorbid depression, CBT-I produced moderate effect sizes for both insomnia severity reduction (d = 0.5) and depression symptom reduction (d = 0.5). Even larger effects were seen in patients with PTSD (d = 1.5 for insomnia, d = 1.3 for PTSD symptoms) and alcohol dependency (d = 1.4 for insomnia).

- A study of women veterans found that reduction in insomnia severity accounted for 88% to 97% of the improvement in depression and anxiety symptoms following behavioral insomnia treatment — suggesting that sleep improvement was the primary mechanism through which mood improved.

- A large analysis of over 2,100 individuals with insomnia and clinically significant anxiety found that digital CBT-I reduced anxiety symptoms with a moderate effect size (Hedges' g = 0.39–0.44), and that 84% of the anxiety improvement was mediated by improvements in sleep.

These findings represent a paradigm shift: sleep is not just a symptom to monitor — it is a treatment target that, when addressed, can accelerate recovery from depression and anxiety.

What CBT-I Actually Involves

CBT-I is not simply "sleep hygiene advice." It is a structured clinical intervention with specific components, each targeting a different mechanism of insomnia:

- Sleep restriction limits time in bed to match actual sleep time, strengthening the homeostatic sleep drive. It is the single most effective component of CBT-I.

- Stimulus control reestablishes the association between the bed and sleep by instructing patients to go to bed only when sleepy, get out of bed when unable to sleep, and use the bedroom only for sleep and sex.

- Cognitive restructuring addresses maladaptive beliefs about sleep — such as "I need eight hours or I cannot function" — that fuel anxiety about sleeplessness and perpetuate the cycle.

- Relaxation training reduces autonomic arousal and muscle tension before bed, though recent evidence suggests it may be less critical than the other components.

- Sleep hygiene education provides general guidance about lifestyle and environmental factors that affect sleep, though it is not effective as a standalone treatment.

A large component network meta-analysis of 241 trials found that the most effective CBT-I combination included cognitive restructuring, third-wave components (such as mindfulness and acceptance-based strategies), sleep restriction, and stimulus control delivered in person — with a number needed to treat of just 3 for insomnia remission.

When Medication Enters the Picture

CBT-I is first-line, but it is not always sufficient or immediately available. When pharmacotherapy is needed, the approach should be thoughtful and time-limited.

For patients with depression and co-occurring insomnia, the choice of antidepressant itself can be part of the sleep strategy. Medications like trazodone and mirtazapine have sleep-promoting properties and are sometimes used specifically for this purpose. Conversely, selective serotonin reuptake inhibitors (SSRIs) and venlafaxine can worsen insomnia and reduce sleep quality — an important consideration when selecting an antidepressant for a patient who is already struggling with sleep.

For insomnia specifically, practice guidelines note that when CBT-I is not effective or available, the best pharmacological options include benzodiazepine receptor agonists (such as zolpidem and eszopiclone), low-dose doxepin, and dual orexin receptor antagonists (such as suvorexant). Benzodiazepines and related medications can be effective sedatives in the short term (less than four weeks), but should be prescribed with caution and for a limited duration due to the risk of dependence and rebound insomnia.

Importantly, sedating antipsychotics like quetiapine are sometimes prescribed for sleep, but their adverse effect profile (including metabolic syndrome and weight gain) limits their long-term benefit and should be weighed carefully.

Sleep Hygiene: Necessary but Not Sufficient

Sleep hygiene is the foundation of healthy sleep, but it is important to be honest about its limitations. Every major guideline emphasizes that sleep hygiene alone is not an effective treatment for chronic insomnia. It should be part of the initial approach for all patients with sleep difficulties, but it should not delay referral for evidence-based treatments like CBT-I, especially when quality of life is impacted or insomnia is severe.

That said, sleep hygiene practices are worth reviewing with every patient because they establish the behavioral baseline on which other treatments build:

- Maintain a consistent bedtime and wake time every day, including weekends

- Avoid caffeine after lunch and alcohol within four to six hours of bedtime

- Avoid heavy meals and limit fluid intake within two to three hours of bedtime

- Engage in regular physical activity during the day, but avoid vigorous exercise within three hours of bedtime

- Keep the bedroom dark, quiet, cool (60–67°F), and free from electronics

- Avoid screens and bright light exposure in the hours before bed

- If unable to fall asleep within approximately 20 minutes, get out of bed and engage in a quiet, non-stimulating activity in dim light until feeling sleepy again

- Avoid clock-watching during the night

These are not cures for insomnia. They are habits that support the biological conditions for sleep, and they matter most when combined with structured treatment.

How This Fits Into Psychiatric Care

In a psychiatric practice, sleep is not a side topic. It is woven into every aspect of treatment. During medication management follow-ups, sleep quality is assessed at every visit; not just as a checkbox, but as a clinical data point that informs medication selection, dose adjustments, and treatment planning.

A patient whose depression is improving but whose insomnia persists is not "almost better." That patient is at elevated risk for relapse and deserves targeted intervention for sleep. A patient whose anxiety is well-controlled during the day but who lies awake ruminating at night has an unaddressed treatment target that, if managed, could improve their overall trajectory.

The Bottom Line

Sleep is not separate from mental health. It is mental health. The same brain circuits that regulate mood, anxiety, and emotional resilience are the circuits that depend on quality sleep to function. When sleep breaks down, everything downstream — from medication response to therapy engagement to daily functioning — is compromised.

The good news is that sleep is treatable. CBT-I is one of the most effective interventions in all of psychiatry, with benefits that extend far beyond sleep itself. And when sleep improves, depression lifts, anxiety quiets, and the foundation for lasting recovery becomes stronger.

Rest is not a reward for getting better. It is one of the ways people get better.

References

  1. Why Sleep Is Key: Poor Sleep Quality Is a Mechanism for the Bidirectional Relationship Between Major Depressive Disorder and Generalized Anxiety Disorder Across 18 Years. Nguyen VV, Zainal NH, Newman MG. Journal of Anxiety Disorders. 2022;90:102601. doi:10.1016/j.janxdis.2022.102601.

  2. A Systematic Review Assessing Bidirectionality Between Sleep Disturbances, Anxiety, and Depression. Alvaro PK, Roberts RM, Harris JK. Sleep. 2013;36(7):1059-1068. doi:10.5665/sleep.2810.

  3. Genetic Association Between Sleep Quality, Insomnia, and Psychological Distress: A Systematic Review and Meta-Analysis. Blanco-García FJ, López-López JA, Ordoñana JR, Madrid-Valero JJ. Sleep Medicine Reviews. 2025;83:102149. doi:10.1016/j.smrv.2025.102149.

  4. Associations Between Sleep Duration and Depression, Mental Health, Physical Health, and General Health in U.S. Adults: A Population-Based Study. Fasokun M, Akinyemi O, Ogunyankin F, et al. PloS One. 2026;21(1):e0321347. doi:10.1371/journal.pone.0321347.

  5. Cognitive Behavioral Therapy for Insomnia in Patients With Mental Disorders and Comorbid Insomnia: A Systematic Review and Meta-Analysis. Hertenstein E, Trinca E, Wunderlin M, et al. Sleep Medicine Reviews. 2022;62:101597. doi:10.1016/j.smrv.2022.101597.

  6. Sleep Disturbance and Psychiatric Disorders. Freeman D, Sheaves B, Waite F, Harvey AG, Harrison PJ. The Lancet. Psychiatry. 2020;7(7):628-637. doi:10.1016/S2215-0366(20)30136-X.

  7. Neural Correlates of Insomnia With Depression and Anxiety From a Neuroimaging Perspective: A Systematic Review. Peng C, Wang K, Wang J, et al. Sleep Medicine Reviews. 2025;81:102093. doi:10.1016/j.smrv.2025.102093.

  8. Disentangling Sleep's Role in Emotion Processing. Sullivan EC, McCall C, Henderson LM, Cairney SA. Neuropsychologia. 2025;219:109269. doi:10.1016/j.neuropsychologia.2025.109269.

  9. Management of Insomnia. Morin CM, Buysse DJ. The New England Journal of Medicine. 2024;391(3):247-258. doi:10.1056/NEJMcp2305655.

  10. Cognitive Behavioral Therapy for Insomnia to Treat Major Depressive Disorder With Comorbid Insomnia: A Systematic Review and Meta-Analysis. Furukawa Y, Nagaoka D, Sato S, et al. Journal of Affective Disorders. 2024;367:359-366. doi:10.1016/j.jad.2024.09.017.

  11. Insomnia Symptom Improvement as a Mediator for Mental Health Symptom Reduction Following Behavioral Insomnia Treatment Among Women Veterans. Erickson AJ, Carlson GC, Kelly MR, et al. Behavior Therapy. 2025;56(5):907-916. doi:10.1016/j.beth.2025.02.003.

  12. Does Treating Insomnia With Digital Cognitive Behavioural Therapy (Sleepio) Mediate Improvements in Anxiety for Those With Insomnia and Comorbid Anxiety? An Analysis Using Individual Participant Data From Two Large Randomised Controlled Trials. Henry AL, Miller CB, Emsley R, et al. Journal of Affective Disorders. 2023;339:58-63. doi:10.1016/j.jad.2023.06.053.

  13. Components and Delivery Formats of Cognitive Behavioral Therapy for Chronic Insomnia in Adults: A Systematic Review and Component Network Meta-Analysis. Furukawa Y, Sakata M, Yamamoto R, et al. JAMA Psychiatry. 2024;81(4):357-365. doi:10.1001/jamapsychiatry.2023.5060.

  14. Insomnia. Perlis ML, Posner D, Riemann D, et al. Lancet (London, England). 2022;400(10357):1047-1060. doi:10.1016/S0140-6736(22)00879-0.

  15. Depression. Malhi GS, Bell E, Stavdal A, et al. Lancet (London, England). 2026;407(10540):1738-1756. doi:10.1016/S0140-6736(26)00201-1.

  16. Survivorship. National Comprehensive Cancer Network. Updated 2026-04-08.

  17. The Management of Chronic Insomnia Disorder and Obstructive Sleep Apnea: Synopsis of the 2019 U.S. Department of Veterans Affairs and U.S. Department of Defense Clinical Practice Guidelines. Mysliwiec V, Martin JL, Ulmer CS, et al. Annals of Internal Medicine. 2020;172(5):325-336. doi:10.7326/M19-3575.

  18. Associations of Changes in Sleep and Emotional and Behavioral Problems From Late Childhood to Early Adolescence. Cooper R, Di Biase MA, Bei B, Quach J, Cropley V. JAMA Psychiatry. 2023;80(6):585-596. doi:10.1001/jamapsychiatry.2023.0379.

  19. Unravelling the link between sleep and mental health during the COVID‐19 pandemic. González-Hijón J, Kähler AK, Frans EM, et al. Stress and Health : Journal of the International Society for the Investigation of Stress. 2023;39(4):828-840. doi:10.1002/smi.3223.

  20. Cognitive Behavioral Therapy for Insomnia Comorbid With Psychiatric and Medical Conditions: A Meta-analysis. Wu JQ, Appleman ER, Salazar RD, Ong JC. JAMA Internal Medicine. 2015;175(9):1461-72. doi:10.1001/jamainternmed.2015.3006.

  21. Digital cognitive behavioural therapy for patients with insomnia and depression: A systematic review and meta‐analysis. Bai N, Cao J, Zhang H, Liu X, Yin M. Journal of Psychiatric and Mental Health Nursing. 2024;31(4):654-667. doi:10.1111/jpm.13024.

  22. Emotional Processing Following Digital Cognitive Behavioral Therapy for Insomnia in People With Depressive Symptoms: A Randomized Clinical Trial. Tamm S, Tse KYK, Hellier J, et al. JAMA Network Open. 2025;8(2):e2461502. doi:10.1001/jamanetworkopen.2024.61502.

  23. Functional connectome mediates the association between sleep disturbance and mental health in preadolescence: A longitudinal mediation study. Yang FN, Liu TT, Wang Z. Human Brain Mapping. 2022;43(6):2041-2050. doi:10.1002/hbm.25772.

  24. Distinct Convergent Brain Alterations in Sleep Disorders and Sleep Deprivation. Reimann GM, Hoseini A, Koçak M, et al. JAMA Psychiatry. 2025;82(7):681-691. doi:10.1001/jamapsychiatry.2025.0488.

  25. Common Sleep Disorders in Adults: Diagnosis and Management. Holder S, Narula NS. American Family Physician. 2022;105(4):397-405.

  26. Sleep Health. Robbins R, Quan S. NEJM Evidence. 2024;3(8):EVIDra2300269. doi:10.1056/EVIDra2300269.

Next
Next

Substance Use Support: When Medication-Assisted Treatment May Help