Insomnia and Anxiety: Which Comes First and What Helps
Anxiety and insomnia feed each other, but longitudinal research shows anxiety usually strikes first: in one large cohort study, anxiety disorders preceded insomnia in 73% of cases where both occurred. That direction matters, because it changes what to treat.
Key takeaways
- Among people with both conditions, anxiety disorders came first 73% of the time in a community cohort study, and prior anxiety raised insomnia risk more than threefold.
- Anxiety keeps the stress system activated, with elevated cortisol, hypervigilance, and rumination colliding head-on with the physiological calm that sleep onset requires.
- Treating insomnia still pays off: trials of CBT-I show insomnia improvements often reduce anxiety symptoms too, so sleep work is a legitimate entry point either way.
- Use the same first-line playbook of CBT-I, worry scheduling, and relaxation training while a clinician addresses the anxiety side, especially if daytime worry is constant.
- Persistent anxiety with physical symptoms, panic, or avoidance warrants professional care; sleep fixes alone cannot treat an anxiety disorder.
| Anxiety before insomnia | Insomnia before depression | |
|---|---|---|
| Share of comorbid cases | Anxiety came first ~73% of the time | Insomnia came first ~69% of the time |
| Risk multiplier | Anxiety raised insomnia risk ~3.5x (HR 3.5) | Insomnia raised depression risk ~3.8x (HR 3.8) |
| Directional lesson | Treat the anxiety to protect the sleep | Treat the insomnia to protect the mood |
What This Guide Covers
Anxiety and insomnia feed each other, but longitudinal research shows anxiety usually strikes first: in one large cohort study, anxiety disorders preceded insomnia in 73% of cases where both occurred. That direction matters, because it changes what to treat. This guide walks you through what matters most, why it happens, and the practical steps with the best support behind them.
First, the foundation: among people with both conditions, anxiety disorders came first 73% of the time in a community cohort study, and prior anxiety raised insomnia risk more than threefold.
Next, the details: anxiety keeps the stress system activated, with elevated cortisol, hypervigilance, and rumination colliding head-on with the physiological calm that sleep onset requires.
Then, the practical side: treating insomnia still pays off: trials of CBT-I show insomnia improvements often reduce anxiety symptoms too, so sleep work is a legitimate entry point either way.
Another angle worth knowing: use the same first-line playbook of CBT-I, worry scheduling, and relaxation training while a clinician addresses the anxiety side, especially if daytime worry is constant.
Finally, the big picture: persistent anxiety with physical symptoms, panic, or avoidance warrants professional care; sleep fixes alone cannot treat an anxiety disorder.
Frequently Asked Questions
What exactly is insomnia and anxiety?
Anxiety and insomnia feed each other, but longitudinal research shows anxiety usually strikes first: in one large cohort study, anxiety disorders preceded insomnia in 73% of cases where both occurred. That direction matters, because it changes what to treat.
How long until I see improvement?
Most of the strategies in this guide start showing effect within one to two weeks of consistent practice. Supplement- and device-based approaches vary more, so track your nights in a simple sleep diary and judge by weekly trends rather than single nights.
When should I see a doctor?
If the problem lasts more than a few weeks, disrupts your daytime functioning, or comes with warning signs such as breathing pauses, gasping during sleep, chest discomfort, or severe daytime sleepiness, it is time to consult a qualified healthcare professional rather than self-treating.
References
- Garbarino S, Bardwell WA, Guglielmi O, Chiorri C, Bonanni E, Magnavita N. Association of anxiety and depression in obstructive sleep apnea patients: a systematic review and meta-analysis. Behavioral Sleep Medicine. 2020;18(1):35–57.
- Bastien CH, Vallières A, Morin CM. Validation of the Insomnia Severity Index as an outcome measure for insomnia research. Sleep Med. 2001;2(4):297-307.
- Datta K, Tripathi M, Verma M, Masiwal D, Mallick HN. Yoga nidra practice shows improvement in sleep in patients with chronic insomnia: a randomized controlled trial. Natl Med J India. 2021 May-Jun. doi:10.25259/NMJI_63_19.
- Johnson EO, Roth T, Breslau N. The association of insomnia with anxiety disorders and depression: exploration of the direction of risk. Journal of Psychiatric Research. 2006;40(8):700–708.