Learn

Sleep Medications: What the Guidelines Actually Recommend

There is no single safest sleeping pill. But US guidelines do say which medicines have evidence behind them, and which ones to avoid.

The short answer

  • No guideline names a safest sleeping pill. The AASM's 2017 guideline made recommendations on fourteen drugs and supplements and graded every one weak, including the ones it suggests using.
  • The newer VA/DoD guideline (2025) suggests daridorexant, low-dose doxepin, eszopiclone, lemborexant, suvorexant, zaleplon and zolpidem when medication is needed.
  • Both guidelines suggest against trazodone, diphenhydramine, melatonin and valerian for chronic insomnia. The VA/DoD also suggests against benzodiazepines and antipsychotics.
  • The American Geriatrics Society's Beers Criteria strongly recommend avoiding benzodiazepines, Z-drugs and first-generation antihistamines in adults 65 and over.
  • Every major US guideline puts CBT-I ahead of medication for chronic insomnia.

CBT-I = cognitive behavioral therapy for insomnia · AASM = American Academy of Sleep Medicine · VA = US Department of Veterans Affairs

For education only, and not a substitute for advice from your own doctor or prescriber.

Quick check

Do your answers fit the pattern for insomnia?

Four yes/no questions, about thirty seconds. Your result shows straight away, and no email is needed.

Do you have difficulty falling asleep or staying asleep for 3 or more nights a week?
Question 1 of 4

"What is the safest sleeping pill?" is one of the most common questions about insomnia, and it does not have the answer most people are hoping for. No guideline singles out a safest drug. What the guidelines do is weigh each medicine's evidence and say whether they suggest using it, and for which problem.

Two guidelines cover most of the ground. The AASM's 2017 guideline is a review of insomnia drugs by sleep specialists.1 The VA/DoD guideline, updated in 2025, is newer and covers medicines approved since then.2 One thing to hold onto throughout: every medication recommendation in both is graded weak, meaning the evidence is limited and the right choice depends on the person.

What the guidelines suggest using

MedicationAASM 2017VA/DoD 2025
Eszopiclone (Lunesta)Falling and staying asleepSuggested
Zolpidem (Ambien)Falling and staying asleepSuggested
Zaleplon (Sonata)Falling asleepSuggested
Low-dose doxepin (Silenor)Staying asleepSuggested
Suvorexant (Belsomra)Staying asleepSuggested
Lemborexant (Dayvigo)Not approved at the timeSuggested
Daridorexant (Quviviq)Not approved at the timeSuggested
Ramelteon (Rozerem)Falling asleepNo recommendation
Temazepam (Restoril)Falling and staying asleepSuggested against
Triazolam (Halcion)Falling asleepSuggested against

Every one of these is a weak recommendation.12

Some are suggested for trouble falling asleep and others for staying asleep — the problem you have narrows the list. And the guidelines do not always agree: the VA/DoD now suggests against benzodiazepines such as temazepam and triazolam, which the AASM suggested in 2017.

Even the suggested medicines carry warnings. Eszopiclone, zolpidem and zaleplon have an FDA boxed warning about rare but serious injuries, including deaths, from sleepwalking, sleep-driving and other activities performed while not fully awake.4 Benzodiazepines carry a boxed warning about abuse, misuse, addiction, physical dependence and withdrawal.5

What the guidelines suggest against

Medication or supplementAASM 2017VA/DoD 2025
TrazodoneSuggested againstSuggested against
DiphenhydramineSuggested againstSuggested against
MelatoninSuggested againstSuggested against
ValerianSuggested againstSuggested against
BenzodiazepinesMixedSuggested against
Antipsychotics, e.g. quetiapineNot assessedSuggested against
Tiagabine, L-tryptophanSuggested againstNot addressed

Three of those are worth a closer look.

Trazodone at low doses is widely prescribed for sleep — dispensing of low-dose trazodone rose steadily through the 2010s.7 Both guidelines still suggest against it for chronic insomnia.

Melatonin is the supplement most people reach for first, and both guidelines suggest against it for chronic insomnia. NCCIH puts the same point plainly: under the ACP and AASM guidelines there is not enough strong evidence on melatonin's effectiveness or safety for chronic insomnia to recommend its use.8 It may still help with short-term, circadian problems such as jet lag.

Diphenhydramine is the active ingredient in most over-the-counter sleep aids. Those products are approved only for occasional sleeplessness, and their labels say sleeplessness lasting more than two weeks needs medical advice.6 Being sold without a prescription does not make a drug a good choice for nightly use.

Age changes the answer

The American Geriatrics Society's Beers Criteria identify medications that are potentially inappropriate in adults 65 and over. Three groups relevant to sleep appear, all as strong recommendations on moderate-quality evidence:3

  • First-generation antihistamines — avoid. Highly anticholinergic, cleared more slowly with age, and tolerance develops when used as a hypnotic.
  • Benzodiazepines — avoid. Increased risk of cognitive impairment, delirium and falls in older adults, alongside misuse and dependence.
  • Z-drugs (zolpidem, eszopiclone, zaleplon) — avoid. Adverse events similar to those of benzodiazepines in older adults, with minimal improvement in sleep latency and duration.

Low-dose doxepin at 6 mg or less is not on the avoid list; higher doses are.

Read that against the table above and the tension is obvious: several medicines the AASM suggests for insomnia are ones the Beers Criteria say to avoid after 65.

The bottom line

People searching for the safest sleeping pill are usually not researching pharmacology. They want to sleep without harming themselves.

The guidelines do name medicines worth considering when medication is needed — but all of them put something else first. The AASM strongly recommends CBT-I for chronic insomnia,10 the VA/DoD recommends it and suggests it over medication,2 and the AASM's 2026 combination guideline puts CBT-I alone first, CBT-I plus medication second, and medication alone last.11

None of this is a reason to stop a medicine you have been prescribed. Some sleep medicines cause withdrawal symptoms or rebound insomnia if stopped suddenly, and some are treating something other than insomnia. But if you have not tried CBT-I, it is the thing the guidelines agree on — and you can add it without stopping anything.

Common questions

What is the safest sleeping pill?
No guideline names one. Every medication recommendation in the AASM's 2017 guideline is graded weak, which means the balance of benefits and harms is close enough that the right answer depends on the person. Age matters too — the Beers Criteria advise adults 65 and over to avoid benzodiazepines, Z-drugs and older antihistamines.
Is melatonin recommended for insomnia?
Not for chronic insomnia. Both the AASM's 2017 guideline and the 2025 VA/DoD guideline suggest against it. It may be more useful for body-clock problems such as jet lag.
Why do the guidelines suggest against trazodone when it is prescribed so often?
Both the AASM and the VA/DoD suggest against trazodone for chronic insomnia, yet low-dose prescribing of it has risen. Guidelines inform prescribing rather than dictate it, and clinicians weigh their own experience and the individual patient alongside them.
Are over-the-counter sleep aids safer because they do not need a prescription?
No. Most contain an older antihistamine such as diphenhydramine or doxylamine. Both guidelines suggest against diphenhydramine for chronic insomnia, and the product labels themselves say they are for occasional sleeplessness only.
Should I stop my sleeping pills if the guidelines are this lukewarm?
Not on your own. Some sleep medicines cause withdrawal symptoms or rebound insomnia if stopped abruptly, and some are treating something other than insomnia. Any change should go through your prescriber — though adding CBT-I alongside medication is always an option.

References

  1. Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2017;13(2):307-349. doi:10.5664/jcsm.6470
  2. VA/DoD Clinical Practice Guideline for the Management of Chronic Insomnia Disorder and Obstructive Sleep Apnea. Version 3.0. US Department of Veterans Affairs and Department of Defense; 2025.
  3. American Geriatrics Society 2023 Beers Criteria Update Expert Panel. American Geriatrics Society 2023 updated AGS Beers Criteria for potentially inappropriate medication use in older adults. Journal of the American Geriatrics Society. 2023;71(7):2052-2081. doi:10.1111/jgs.18372
  4. 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. US Food and Drug Administration MedWatch safety alert, 30 April 2019.
  5. FDA requiring boxed warning updated to improve safe use of benzodiazepine drug class. US Food and Drug Administration drug safety communication, 23 September 2020.
  6. Nighttime sleep-aid drug products for over-the-counter human use. 21 CFR Part 338 (OTC Monograph M010). US Food and Drug Administration.
  7. Wong J, Murray Horwitz M, Bertisch SM, Herzig SJ, Buysse DJ, Toh S. Trends in dispensing of zolpidem and low-dose trazodone among commercially insured adults in the United States, 2011-2018. JAMA. 2020;324(21):2211-2213. doi:10.1001/jama.2020.19224
  8. Melatonin: What You Need To Know. National Center for Complementary and Integrative Health, National Institutes of Health. Last updated May 2024.
  9. Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD. Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline From the American College of Physicians. Annals of Internal Medicine. 2016;165(2):125-133.
  10. Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2021;17(2):255-262. doi:10.5664/jcsm.8986
  11. Buysse DJ, Arnedt JT, Buenaver L, et al. Combination treatment for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2026;22(1):56. doi:10.1007/s44470-025-00038-8

Next in this path

Do I have insomnia?A few quick questions
Take it