Home › Insomnia › Insomnia and Anxiety
Insomnia

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 insomniaInsomnia before depression
Share of comorbid casesAnxiety came first ~73% of the timeInsomnia came first ~69% of the time
Risk multiplierAnxiety raised insomnia risk ~3.5x (HR 3.5)Insomnia raised depression risk ~3.8x (HR 3.8)
Directional lessonTreat the anxiety to protect the sleepTreat the insomnia to protect the mood
Which comes first? What one community study foundData: Johnson EO, Roth T, Breslau N. J Psychiatr Res 2006 (n=1,014, ages 13-16).

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.

🎯 Next steps

Start by applying one or two changes from the takeaways above, keep a simple sleep diary for two weeks, and watch for patterns. If the problem persists beyond a few weeks — or you notice red flags like breathing pauses, gasping, or severe daytime sleepiness — bring your notes to a healthcare professional.

References

  1. 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.
  2. 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.
  3. 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.
  4. 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.
⚠️ Disclaimer: This article is for general educational purposes and does not constitute medical advice. Consult a qualified healthcare professional before making changes to your sleep routine, supplements, or medications.
EH
Written by Emily Hartwell · Sleep Science Writer

Emily has spent eight years writing about sleep science and behavioral health. More from Emily →