---
topic: "Insomnia"
title: "Sleeping Pills Compared: Z-Drugs, Orexin Blockers, Trazodone and OTC Aids"
order: 2
description: "How much Z-drugs, benzodiazepines, orexin blockers, low-dose doxepin, trazodone and over-the-counter sleep aids help, what harms they carry, and why behavioral therapy comes first."
question: "Which sleep medicines work, and how risky are they?"
answer: "Sleep medicines likely help only modestly, with trade-offs that differ by drug, and guidelines put CBT-I first and the AASM suggests against trazodone and diphenhydramine."
actions:
  - "Ask first about CBT for insomnia: guidelines recommend it first, and 67 trials in people with chronic disease showed large gains in insomnia severity (Hedges g 0.98) [1][2]."
  - "If a drug is considered, ask about its specific trade-offs: zolpidem and zopiclone caused more dropouts due to side effects than placebo in a 154-trial network analysis [6]."
  - "Ask whether an over-the-counter sleep aid is wise at all: the AASM suggests against diphenhydramine, and a driving-simulator trial found it impaired one driving measure next morning [3][16]."
cautions:
  - "If you sleepwalk, sleep-drive or do things while not fully awake on eszopiclone, zaleplon or zolpidem, the FDA says to stop it and contact a clinician right away [5]."
  - "Do not stop a long-term benzodiazepine suddenly; withdrawal can include seizures [20]. The FDA warns that mixing them with opioids, alcohol or illicit drugs risks overdose or death [20]."
  - "In older adults, observational data link Z-drugs to falls and fractures, so discuss risks before long-term use [7][8]."
confidence: 3
confidenceNote: "A 154-trial meta-analysis and guidelines agree on modest benefit, but long-term data are scarce and harm findings are mostly observational; trazodone evidence is mixed and antihistamine driving data are limited."
evidenceSummary:
  rctCount: 4
  observationalCount: 2
  metaAnalysisCount: 9
  totalParticipants: "44,089 in the network meta-analysis"
  replicated: true
  newestStudyYear: 2026
references:
  - id: "1"
    pmid: "27136449"
    title: "Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline From the American College of Physicians"
    authors: "Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD, Clinical Guidelines Committee of the American College of Physicians"
    year: 2016
    journal: "Annals of Internal Medicine"
  - id: "2"
    pmid: "40982264"
    title: "Cognitive Behavioral Therapy for Insomnia in People With Chronic Disease: A Systematic Review and Meta-Analysis"
    authors: "Scott AJ, Correa AB, Bisby MA, Chandra SS, Rahimi M, Christina S, Heriseanu AI, Dear BF"
    year: 2025
    journal: "JAMA Internal Medicine"
  - id: "3"
    pmid: "27998379"
    title: "Clinical Practice Guideline for the Pharmacologic Treatment of Chronic Insomnia in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline"
    authors: "Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL"
    year: 2017
    journal: "Journal of Clinical Sleep Medicine"
  - id: "4"
    pmid: "23248080"
    title: "Effectiveness of non-benzodiazepine hypnotics in treatment of adult insomnia: meta-analysis of data submitted to the Food and Drug Administration"
    authors: "Huedo-Medina TB, Kirsch I, Middlemass J, Klonizakis M, Siriwardena AN"
    year: 2012
    journal: "BMJ"
  - id: "5"
    url: "https://www.fda.gov/safety/medical-product-safety-information/certain-prescription-insomnia-medicines-new-boxed-warning-due-risk-serious-injuries-caused"
    title: "Certain Prescription Insomnia Medicines: New Boxed Warning - Due to Risk of Serious Injuries Caused by Sleepwalking, Sleep Driving and Engaging in Other Activities While Not Fully Awake"
    authors: "U.S. Food and Drug Administration"
    year: 2019
    journal: "FDA Drug Safety Communication"
  - id: "6"
    pmid: "35843245"
    title: "Comparative effects of pharmacological interventions for the acute and long-term management of insomnia disorder in adults: a systematic review and network meta-analysis"
    authors: "De Crescenzo F, D'Alò GL, Ostinelli EG, Ciabattini M, Di Franco V, Watanabe N, Kurtulmus A, Tomlinson A, Mitrova Z, Foti F, Del Giovane C, Quested DJ, Cowen PJ, Barbui C, Amato L, Efthimiou O, Cipriani A"
    year: 2022
    journal: "Lancet"
  - id: "7"
    pmid: "35100976"
    title: "Efficacy and safety of Z-substances in the management of insomnia in older adults: a systematic review for the development of recommendations to reduce potentially inappropriate prescribing"
    authors: "Scharner V, Hasieber L, Sönnichsen A, Mann E"
    year: 2022
    journal: "BMC Geriatrics"
  - id: "8"
    pmid: "37926010"
    title: "Sedative-hypnotics and osteoporotic fractures: A systematic review of observational studies with over six million individuals"
    authors: "Xu C, Leung JCN, Shi J, Lum DH, Lai FTT"
    year: 2024
    journal: "Sleep Medicine Reviews"
  - id: "9"
    pmid: "38944018"
    title: "Association between the use of orexin receptor antagonists and falls or fractures: A meta-analysis"
    authors: "Pan G, Ni L, Yan H, Yao L"
    year: 2024
    journal: "Journal of Psychiatric Research"
  - id: "10"
    pmid: "42710466"
    title: "Dose-response meta-analysis of dual orexin receptor antagonists on sleep parameters and implications for orexin-mediated arousal"
    authors: "Caiazza C, Palagini L, Toni C, Maffucci A, Sampogna G, Riemann D, Fiorillo A"
    year: 2026
    journal: "Sleep Medicine"
  - id: "11"
    pmid: "21102997"
    title: "Efficacy and Safety of Doxepin 1 mg and 3 mg in a 12-week Sleep Laboratory and Outpatient Trial of Elderly Subjects with Chronic Primary Insomnia"
    authors: "Krystal AD, Durrence HH, Scharf M, Jochelson P, Rogowski R, Ludington E, Roth T"
    year: 2010
    journal: "Sleep"
  - id: "12"
    pmid: "22197474"
    title: "Efficacy and safety of doxepin 6 mg in a four-week outpatient trial of elderly adults with chronic primary insomnia"
    authors: "Lankford A, Rogowski R, Essink B, Ludington E, Heith Durrence H, Roth T"
    year: 2012
    journal: "Sleep Medicine"
  - id: "13"
    pmid: "21966075"
    title: "Efficacy and safety of doxepin 3 and 6 mg in a 35-day sleep laboratory trial in adults with chronic primary insomnia"
    authors: "Krystal AD, Lankford A, Durrence HH, Ludington E, Jochelson P, Rogowski R, Roth T"
    year: 2011
    journal: "Sleep"
  - id: "14"
    pmid: "29680424"
    title: "Trazodone for the treatment of insomnia: a meta-analysis of randomized placebo-controlled trials"
    authors: "Yi XY, Ni SF, Ghadami MR, Meng HQ, Chen MY, Kuang L, Zhang YQ, Zhang L, Zhou XY"
    year: 2018
    journal: "Sleep Medicine"
  - id: "15"
    pmid: "41679391"
    title: "Management of insomnia symptoms in depressed patients treated with agomelatine, mirtazapine and trazodone: A systematic review and meta-analysis"
    authors: "Zhang X, Chen Y, Deng R, Tao S, Zou M, Wang Q"
    year: 2026
    journal: "Journal of Affective Disorders"
  - id: "16"
    pmid: "27018419"
    title: "Next-day residual effects of gabapentin, diphenhydramine, and triazolam on simulated driving performance in healthy volunteers: a phase 3, randomized, double-blind, placebo-controlled, crossover trial"
    authors: "Kay GG, Schwartz HI, Wingertzahn MA, Jayawardena S, Rosenberg RP"
    year: 2016
    journal: "Human Psychopharmacology"
  - id: "17"
    pmid: "29695481"
    title: "Anticholinergic drugs and risk of dementia: case-control study"
    authors: "Richardson K, Fox C, Maidment I, Steel N, Loke YK, Arthur A, Myint PK, Grossi CM, Mattishent K, Bennett K, Campbell NL, Boustani M, Robinson L, Brayne C, Matthews FE, Savva GM"
    year: 2018
    journal: "BMJ"
  - id: "18"
    pmid: "31233095"
    title: "Anticholinergic Drug Exposure and the Risk of Dementia: A Nested Case-Control Study"
    authors: "Coupland CAC, Hill T, Dening T, Morriss R, Moore M, Hippisley-Cox J"
    year: 2019
    journal: "JAMA Internal Medicine"
  - id: "19"
    pmid: "37139824"
    title: "American Geriatrics Society 2023 updated AGS Beers Criteria® for potentially inappropriate medication use in older adults"
    authors: "By the 2023 American Geriatrics Society Beers Criteria® Update Expert Panel"
    year: 2023
    journal: "Journal of the American Geriatrics Society"
  - id: "20"
    url: "https://www.fda.gov/drugs/drug-safety-and-availability/fda-requiring-boxed-warning-updated-improve-safe-use-benzodiazepine-drug-class"
    title: "FDA requiring Boxed Warning updated to improve safe use of benzodiazepine drug class"
    authors: "U.S. Food and Drug Administration"
    year: 2020
    journal: "FDA Drug Safety Communication"
---

Guidelines recommend cognitive behavioral therapy for insomnia (CBT-I) as the first treatment, with sleeping pills considered only after that falls short [1]. The pills themselves help modestly: Z-drugs shortened the time to fall asleep by about 22 minutes versus placebo, a gain the authors called of questionable clinical importance [4]. Z-drugs carry an FDA boxed warning for complex sleep behaviors [5], and the AASM suggests against trazodone and diphenhydramine, a common over-the-counter sleep aid [3].

<!-- more -->

## Start with the treatment that has no pill

The American College of Physicians recommends that all adults with chronic insomnia receive CBT-I as the initial treatment (a strong recommendation based on moderate-quality evidence), and that medicines be considered by shared decision-making, only for short-term use, when CBT-I alone has not worked (a weak recommendation based on low-quality evidence) [1]. A 2025 meta-analysis of 67 randomized trials in people with chronic disease found CBT-I improved insomnia severity by 0.98 standard deviations, with rare adverse effects [2]. Our page on [natural management of insomnia](/insomnia/natural-management) covers what CBT-I involves, and [sleep hygiene](/sleep/sleep-hygiene) covers the basics.

## The main medicine groups

The American Academy of Sleep Medicine (AASM) guideline reviewed individual drugs rather than classes [3]. It made weak suggestions in favor of using suvorexant, eszopiclone, zaleplon, zolpidem, triazolam, temazepam, ramelteon and doxepin for specific problems, and weak suggestions against trazodone, tiagabine, diphenhydramine, melatonin, tryptophan and valerian [3]. "Weak" reflects lower certainty, not a judgment that something is ineffective [3].

| Group | AASM 2017 | What stands out |
|---|---|---|
| Z-drugs (zolpidem, eszopiclone, zaleplon) | Weak for | Small gains; FDA boxed warning |
| Benzodiazepines (temazepam, triazolam) | Weak for | Effective short term; dependence |
| Orexin blockers (suvorexant) | Weak for | No excess falls in a meta-analysis |
| Low-dose doxepin | Weak for | Sleep staying power; short trials |
| Trazodone | Weak against | Little objective benefit |
| Diphenhydramine | Weak against | One driving measure impaired in a simulator |

### Z-drugs

Eszopiclone, zaleplon and zolpidem are "Z-drugs", sedative-hypnotics that work by slowing activity in the brain [5]. A meta-analysis of FDA-submitted trials found they cut polysomnographic sleep latency by 22 minutes (95% CI 11 to 33) compared with placebo [4]. In April 2019 the FDA required a boxed warning because rare but serious injuries and deaths had occurred with sleepwalking, sleep driving and other activities while not fully awake, which appeared more common with these three drugs than other prescription sleep medicines [5]. In older adults, short-term trials look favorable but longer observational studies link Z-drugs to falls and fractures [7].

### Benzodiazepines

In the network meta-analysis, benzodiazepines were more efficacious than placebo in acute treatment but caused more side effects and had poor tolerability [6]. They also carry dependence and withdrawal risks; see [Benzodiazepines: Uses, Dependence and Risks](/benzodiazepines/benzodiazepine-risks) and [Coming Off Benzodiazepines Safely](/benzodiazepines/coming-off-benzodiazepines).

### Orexin receptor antagonists (suvorexant, lemborexant, daridorexant)

These drugs reduce orexin-mediated arousal in the brain [10]. In the network meta-analysis, lemborexant was more efficacious than placebo in both acute and long-term treatment, while suvorexant and daridorexant were effective acutely but long-term data were missing or tolerability was poor [6]. A meta-analysis found no increase in falls or fractures with orexin antagonists, although data on lemborexant and daridorexant are limited [9].

### Low-dose doxepin

Doxepin, a histamine H1 receptor antagonist, has been tested in very small doses for sleep maintenance [11][12]. Trials in older adults and adults found improved time awake after sleep onset without significant next-day effects [11][13].

### Trazodone

Trazodone is widely used off-label for sleep, but a meta-analysis of seven placebo-controlled trials found no significant improvement in sleep efficiency, and the AASM suggests against its use for insomnia [3][14].

### Over-the-counter sleep aids

The AASM suggests against diphenhydramine, a common ingredient in over-the-counter sleep aids [3]. In a simulated-driving trial of healthy volunteers, diphenhydramine impaired one driving measure, speed deviation, the next morning [16]. In the network meta-analysis the related antihistamine doxylamine was more efficacious than placebo in acute treatment, though that analysis does not settle safety [6]. Our [allergy medications compared](/seasonal-allergies/allergy-medications-compared) page covers antihistamines more broadly. Ramelteon, which the AASM weakly supports for trouble falling asleep, showed no overall material benefit in the network analysis [3][6]. Melatonin and valerian are also not supported by the AASM for chronic insomnia; see [melatonin safety](/melatonin/is-long-term-melatonin-safe), [valerian](/valerian/sleep-and-anxiety) and [magnesium](/magnesium/sleep-and-stress).

## Special concerns for older adults

Older adults are the group most studied for harms. The 2023 AGS Beers Criteria are an explicit list of medicines typically best avoided by people 65 and older, but the published abstract does not name individual drugs, so this page does not quote it [19]. What the studies show is in the Deep section: falls and fractures with Z-drugs and benzodiazepines, and an observational link between strongly anticholinergic drug classes and later dementia [7][8][18].

<!-- research -->

## The evidence in detail

### How big are the effects?

The FDA-data meta-analysis of Z-drugs pooled 13 randomized, double-blind, placebo-controlled studies with 4,378 participants [4]. Z-drugs produced small improvements in polysomnographic sleep latency (standardized mean difference with 95% CI from -0.57 to -0.16) and subjective sleep latency (-0.33, -0.62 to -0.04), amounting to 22 minutes (11 to 33 minutes) faster on polysomnography [4]. Secondary outcomes such as waking after sleep onset, total sleep time and sleep efficiency showed no significant effects, though few studies reported them [4]. The authors wrote that both the drug effect and the placebo response were small and of questionable clinical importance, but together they produced a reasonably large clinical response [4].

The 2022 network meta-analysis in the Lancet is the broadest comparison: 154 double-blind randomized trials of 30 interventions in 44,089 participants [6]. For acute treatment, benzodiazepines, doxylamine, eszopiclone, lemborexant, seltorexant, zolpidem and zopiclone were more efficacious than placebo, with standardized mean differences from 0.36 to 0.83 (certainty high to moderate) [6]. Zopiclone and zolpidem caused more dropouts due to adverse events than placebo (OR 2.00, 1.28 to 3.13 and OR 1.79, 1.25 to 2.50), and benzodiazepines, eszopiclone, zolpidem and zopiclone caused more people to experience side effects than placebo, doxepin, seltorexant or zaleplon (OR range 1.27 to 2.78) [6]. For long-term treatment, eszopiclone (SMD 0.63, 0.36 to 0.90) and lemborexant (0.41, 0.04 to 0.78) beat placebo, both with very low certainty [6]. Melatonin, ramelteon and non-licensed drugs showed no overall material benefits [6]. The authors judged eszopiclone and lemborexant to have a favorable profile, with the caveats that eszopiclone might cause substantial adverse events and lemborexant safety data were inconclusive; doxepin, seltorexant and zaleplon were well tolerated but with scarce data; and benzodiazepines, daridorexant, suvorexant and trazodone can be effective acutely but have poor tolerability or no long-term information [6]. The study was funded by the UK National Institute for Health Research Oxford Health Biomedical Research Centre [6].

### Z-drug safety

The FDA's 2019 communication states that complex sleep behaviors have led to serious injuries and deaths, and advises that eszopiclone, zaleplon or zolpidem not be prescribed to people who previously had such behaviors after taking any of them [5]. It lists Lunesta, Sonata, Ambien, Ambien CR, Edluar, Intermezzo and Zolpimist as the products involved [5].

A systematic review of 18 studies in adults 65 and older found Z-drugs similar to or better than placebo in short-term interventional studies, with good safety results, but in longer-term observational studies they significantly increased the risk of falls and fractures [7]. The authors recommended discontinuing Z-drugs in older adults mainly because of that risk, while acknowledging the evidence was low in quality and quantity [7]. A meta-analysis of 20 observational studies with 6,084,083 participants found a slight association between sedative-hypnotics and osteoporotic fractures: for Z-drugs and any fracture the case-crossover odds ratio was 1.41 (1.08 to 1.85), and for benzodiazepines and hip fractures 1.32 (1.05 to 1.66) in case-control studies [8].

### Orexin antagonists: efficacy and safety

A 2026 dose-response meta-analysis of 21 randomized placebo-controlled studies of daridorexant, lemborexant and suvorexant found dose-related improvements in total sleep time, waking after sleep onset, sleep efficiency and sleep-onset measures [10]. Curves plateaued near approved doses, effects were somewhat larger at the first assessment than after repeated use (though endpoint effects persisted), and sleep architecture was broadly preserved [10]. The authors did not support doses above the approved range [10].

On safety, a meta-analysis of eight papers (46,636 subjects; three randomized trials and five case-control studies) found no increase in falls (OR 0.68, 0.31 to 1.50 in trials; adjusted OR 0.75, 0.00 to 1.50 in case-control studies) or fractures (1.01, 0.82 to 1.20) [9]. Note the wide intervals: they are compatible with both small benefit and meaningful harm, and the data on lemborexant and daridorexant are limited [9].

### Low-dose doxepin

Three placebo-controlled trials tested very low doses [11][12][13]. In a 12-week trial of 240 older adults with chronic primary insomnia (1 mg n=77, 3 mg n=82, placebo n=81), 3 mg improved waking after sleep onset (primary endpoint), total sleep time and sleep efficiency on night 1 (P<0.0001), and improvements were sustained at night 85 [11]. There were no significant next-day residual effects and no reports of memory impairment, complex sleep behaviors, anticholinergic effects or weight gain [11]. A 4-week trial of 254 older adults found 6 mg improved subjective total sleep time and waking after sleep onset from week 1 through week 4, with no significant difference in time to fall asleep and no reports of anticholinergic effects or memory impairment [12]. A 35-day trial of 221 adults found 3 mg and 6 mg improved waking after sleep onset and total sleep time, with no rebound insomnia after stopping [13]. The AASM's weak suggestion applies to sleep maintenance rather than falling asleep, which fits these results [3][12].

### Trazodone

A meta-analysis of seven placebo-controlled trials (429 patients) found no significant improvement in sleep efficiency (SMD 0.09, -0.19 to 0.38) but only borderline better perceived sleep quality (SMD -0.41, -0.82 to -0.00; P = 0.05, I-squared 65%) and fewer awakenings (-0.51, -0.97 to -0.05), with no significant effect on sleep latency, total sleep time or waking after sleep onset, and good short-term tolerability [14]. A 2026 meta-analysis in people with depression (30 studies) found trazodone improved total sleep time and sleep efficiency, with dizziness, sedation, headache, nausea and somnolence reported; that population differs from people with insomnia alone [15].

### Over-the-counter antihistamines and anticholinergic burden

A randomized, double-blind, four-period crossover trial of 59 healthy volunteers dosed at about 11:30 pm and tested 6.5 hours later in a 100-km driving simulator [16]. Triazolam (the benchmark) significantly impaired all driving endpoints; diphenhydramine citrate 76 mg significantly impaired speed deviation compared with placebo and gabapentin (p<0.05) [16]. The trial involved healthy volunteers in a simulator, not people with insomnia on the road [16].

Long-term anticholinergic exposure is a separate question. A UK case-control study of 40,770 people with dementia and 283,933 controls found an adjusted odds ratio of 1.11 (1.08 to 1.14) for any strongly anticholinergic drug, with risk rising for antidepressant, urological and antiparkinson classes but not distinctively for gastrointestinal drugs [17]. A second study (58,769 cases, 225,574 controls) found the odds ratio rose from 1.06 for the lowest exposure to 1.49 for more than 1,095 total standardized daily doses, with class-specific increases for anticholinergic antidepressants (1.29), antipsychotics (1.70), bladder antimuscarinics (1.65) and antiepileptics (1.39) [18]. Neither abstract singles out antihistamine sleep aids, both are observational, and the first study's authors note the drugs may have been used for very early symptoms of dementia [17][18]. These studies do not show that diphenhydramine or doxylamine cause dementia.

### How sure are we?

Moderately sure that sleeping pills help modestly in the short term and that CBT-I should come first, because a network meta-analysis, a large FDA-data meta-analysis and two guidelines agree [1][3][4][6]. Less sure about long-term effects and about harms such as falls and dementia, which come from observational data, and least sure about trazodone and over-the-counter antihistamines, where evidence is limited and mixed [14][16][17][18].
