Why treating insomnia changes anxiety and depression
Insomnia and mood problems are tightly linked: people with chronic insomnia often have anxiety or depression at the same time, and poor sleep can worsen both. CBT-I targets the thoughts and behaviors that keep insomnia going—things like worrying about sleep, spending too long in bed awake, and irregular sleep schedules—rather than using medication to sedate. By fixing the sleep problem at its behavioral roots, CBT-I may indirectly relieve mood symptoms that were being fueled by poor sleep.
A meta-analysis of 22 randomized trials found that digital CBT-I produced small-to-moderate improvements in depression and anxiety, alongside a large improvement in sleep itself [4]. The mood benefits were smaller than the sleep benefits, which fits the idea that mood gains partly ride on sleep gains. The same analysis found that people who adhered well to the program got stronger mood benefits than those who did not, suggesting the effect depends on actually doing the therapy [4].
How CBT-I stacks up against sleeping medication
The clearest comparison comes from a large retrospective study of over 4,000 patients treated with digital CBT-I, medication, or both. At six months, both CBT-I and combination therapy reduced insomnia severity significantly more than medication alone, and the mood outcomes—anxiety, depression, and somatic symptoms—also showed statistically significant benefits favoring CBT-I and combination therapy over medication [2]. Combination therapy was judged optimal, but CBT-I alone was more effective than medication alone, and this held across different subgroups of patients [2].
One caveat from that study: CBT-I's benefits improved steadily for the first three months and then fluctuated, which the authors described as unstable durability, whereas the comparison with medication was still favorable overall [2]. So the advantage over medication is real in this dataset, but the long-term steadiness of CBT-I's effect was not perfect.
Who tends to benefit most, and what the evidence covers
In a single-arm study of a prescription digital CBT-I program, anxiety and depression scores dropped significantly from baseline to end of treatment and were largely maintained at six months [1]. The largest improvements showed up in people who started with more severe mood symptoms: those with severe anxiety had very large effect sizes, and those with moderate-to-severe depression also improved substantially [1]. That pattern suggests CBT-I may be especially valuable for insomnia patients whose anxiety or depression is already pronounced.
For children and adolescents, the picture is much less settled. A systematic review of seven randomized trials found most studies showed a strong effect of CBT-I on depression, and a positive effect on anxiety was noted, but only a small number of studies looked at anxiety—so the authors called these findings preliminary and urged larger studies [3]. Separately, a study of older adults with insomnia found that CBT-I roughly halved the risk of developing major depression over three years compared with sleep education, though that comparison was against education, not medication [5].
Sources used in this answer
Digital CBT-I Treatment Improves Sleep and Reduces Anxiety and Depression Symptoms in Adults With Chronic Insomnia: Interim Analysis of DREAM Study
In a single-arm study of adults with chronic insomnia, digital CBT-I was associated with significant reductions in insomnia severity, anxiety, and depression at post-treatment and six months, with the largest mood improvements in those with more severe baseline symptoms.
Comparative Effectiveness of Digital Cognitive Behavioral Therapy vs Medication Therapy Among Patients With Insomnia
In a retrospective cohort of over 4,000 patients, digital CBT-I and combination therapy were more effective than medication alone for insomnia and showed statistically significant benefits on anxiety and depression outcomes, with combination therapy judged optimal.
Efficacy of Cognitive Behavioral Therapy for Insomnia for the Treatment of Child and Adolescent Anxiety and Depression
A systematic review of seven randomized trials in children and adolescents found most studies showed a strong effect of CBT-I on depression and a positive but less-studied effect on anxiety, with the authors calling the findings preliminary.
Digital cognitive behavioral therapy for insomnia on depression and anxiety: a systematic review and meta-analysis
A meta-analysis of 22 randomized trials found digital CBT-I produced small-to-moderate improvements in depression and anxiety and large improvements in sleep, with stronger effects among high-adherence participants.
Brief CBT Interventions May Stop Depression Before It Starts
A study of older adults with insomnia found CBT-I roughly halved the risk of developing new or recurring major depression over three years compared with sleep education therapy.
