What medications can help with anxiety and sleep disturbances?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: August 15, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Medications for Anxiety and Sleep Disturbances

For anxiety and sleep disturbances, first-line treatment should be melatonin for sleep issues and SSRIs such as sertraline or fluoxetine for anxiety, with trazodone as an excellent option when both conditions coexist. 1, 2, 3, 4

First-Line Pharmacological Options

For Sleep Disturbances:

  • Melatonin (including extended-release formulations)
    • Safe, non-habit forming option for initiating sleep 1
    • Effective first-line treatment for insomnia, particularly in patients with comorbid conditions 1
    • Can be used in regular or extended-release formulations depending on whether the primary issue is sleep initiation or maintenance 1

For Anxiety:

  • SSRIs (Selective Serotonin Reuptake Inhibitors)
    • Sertraline or fluoxetine are first-line treatments for anxiety disorders 1, 3, 4
    • Effective for various anxiety disorders including generalized anxiety, panic disorder, and social anxiety 3, 4
    • May take 2-4 weeks for full anxiolytic effect, but can improve sleep disturbances sooner

For Combined Anxiety and Sleep Issues:

  • Trazodone (25-100 mg)
    • Non-habit forming and addresses both sleep initiation and maintenance 2
    • Particularly beneficial when anxiety and depression coexist with sleep disturbances 2
    • Often used as a second-choice treatment after melatonin for sleep disturbances 1

Second-Line Options

  • Mirtazapine (7.5-30 mg at bedtime)

    • Beneficial for patients with depression and anxiety with sleep disturbances 2
    • Has the added benefit of potentially augmenting antidepressant effects 2
    • Lower doses (7.5-15 mg) tend to be more sedating than higher doses
  • Antihistamines (e.g., hydroxyzine)

    • Can be used for short-term management of insomnia 1
    • May help with anxiety symptoms as well
    • Not recommended for long-term use due to tolerance and anticholinergic effects

Medications to Use with Caution

  • Benzodiazepines (lorazepam, alprazolam)

    • While effective for anxiety, they carry risks of:
      • Respiratory depression
      • Ataxia
      • Excessive sedation
      • Memory impairment
      • Paradoxical disinhibition
      • Physical and psychological dependence 1, 2
    • Should be avoided during pregnancy 2
    • Not recommended for long-term use
  • Second-generation antipsychotics (quetiapine)

    • Often prescribed for insomnia but have significant side effects including metabolic syndrome 1
    • Low-dose quetiapine (2.5-5 mg) should be reserved for treatment-resistant cases 2
    • Should not be prescribed for sleep disturbances alone 1

Non-Pharmacological Approaches

  • Cognitive Behavioral Therapy for Insomnia (CBT-I)

    • First-line approach for chronic insomnia 1, 2
    • Components include stimulus control, sleep restriction, and cognitive restructuring 2
    • Particularly beneficial for patients with psychiatric disorders 2, 5
  • Structured Sleep Hygiene

    • Regular sleep-wake schedule
    • Morning or afternoon exercise
    • Daytime exposure to bright light
    • Keeping bedroom dark, quiet, and comfortable 2
  • Mindfulness Training

    • Targets habitual worry processes that interfere with sleep 5
    • Has shown efficacy in reducing worry-related sleep disturbances by increasing emotional non-reactivity 5

Monitoring and Follow-up

  • Reassess sleep symptoms after 2 weeks of any intervention 2
  • Monitor for daytime sedation, especially with medications like trazodone 2
  • Consider checking serum ferritin levels in individuals with restless sleep, as iron supplementation may improve symptoms even when blood levels are not low 1

Important Considerations

  • The bidirectional relationship between sleep disturbances and anxiety means that treating one often improves the other 6, 7, 8
  • Sleep disturbances may predict the development of anxiety disorders and can exacerbate existing symptoms 9
  • Untreated severe insomnia may pose risks to overall health 2
  • SSRIs may initially worsen insomnia in some patients before improvement occurs

Remember that sleep disturbances and anxiety frequently co-occur, and addressing both conditions simultaneously often yields the best outcomes for morbidity, mortality, and quality of life.

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

Sleep Disturbances During Pregnancy

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Sleep and anxiety disorders.

The Psychiatric clinics of North America, 2006

Research

Sleep and anxiety: From mechanisms to interventions.

Sleep medicine reviews, 2022

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.