Learn

Sleep Medication and Insomnia

Sleep medication can help in the short term, but it isn't the long-term answer — the guidelines put it behind CBT-I (cognitive behavioral therapy for insomnia) and frame it as short-term use.

8articles
6 minper article
Oct 2026last reviewed article

What to know first

  • The AASM's 2017 guideline made recommendations on fourteen medications and supplements for chronic insomnia. It rated every recommendation weak, including the ones it suggests using. "Weak" is the guideline's own grade, and it means the benefits and the harms sit close enough together that the right answer depends on the person, not on the drug.
  • It suggests clinicians may recommend eszopiclone, zolpidem, temazepam, zaleplon, triazolam, ramelteon, low-dose doxepin, or suvorexant. Different ones are suggested for trouble falling asleep than for trouble staying asleep. The newer VA/DoD guideline (2025) suggests daridorexant, doxepin, eszopiclone, lemborexant, suvorexant, zaleplon, or zolpidem.
  • It suggests clinicians not recommend trazodone, tiagabine, diphenhydramine, melatonin, L-tryptophan, or valerian for insomnia. The 2025 VA/DoD guideline goes further. It suggests against benzodiazepines (a class of sedatives), including the temazepam and triazolam the AASM suggested in 2017. It also suggests against using antipsychotics.
  • Several drugs commonly taken for sleep, such as mirtazapine and quetiapine, are not approved for insomnia. They received no recommendation in the AASM's 2017 guideline.
  • The Beers Criteria advise avoiding benzodiazepines, Z-drugs (zolpidem and similar sleep drugs) and first-generation antihistamines in adults over 65. All three are strong recommendations.

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.

Start here

  1. Sleep Medications: What the Guidelines Actually RecommendStart here

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

    7 min

Prescription drugs used for sleep

  1. Quviviq (Daridorexant) for Insomnia: What to Know

    Many medications people take for sleep are approved for something else. Quviviq is not one of them — insomnia is what it is approved for.

    6 min
  2. Mirtazapine for Sleep: What the Evidence Shows

    Mirtazapine is often prescribed off-label for sleep. To understand why, start with what it is actually approved to treat.

    5 min
  3. Seroquel for Sleep: Why It Is Rarely the Right Choice

    Quetiapine is sedating, which is why it sometimes gets prescribed for sleep. It is also an antipsychotic, not a sleep medicine, and it comes with real risks.

    6 min
  4. Does Zoloft Cause Insomnia? What the Evidence Shows

    Sertraline is one of the most prescribed antidepressants in the US, and trouble sleeping is one of its most reported side effects. The label puts a number on it.

    5 min

Over the counter

  1. Is It Bad to Take Melatonin Every Night?

    Melatonin is the supplement most people try first for insomnia. Sleep guidelines from the AASM and the VA/DoD suggest not using it for that.

    7 min
  2. Over-the-Counter Sleep Aids: Do They Work?

    Not needing a prescription tells you how a product is regulated, not how safe it is. Here is what the guidelines say about what is in the box.

    5 min
  3. Do Natural Sleep Supplements Work?

    An earlier version of this page ranked seven supplements. The evidence does not support a ranking, so here is what it does support.

    6 min

Do I have insomnia?

Four questions, about thirty seconds, and your result appears straight away.

Is it insomnia?

Many people who've had insomnia for a while have likely already taken a sleep medication or supplement. Very often they've tried different ones, and in different combinations. The sleep clinicians we partner with say this is the most common question their patients ask: Is this medication safe, and is it working?

The American Academy of Sleep Medicine guidelines give a less clear answer than people expect.

Everything is a weak recommendation

The AASM's 2017 guideline on drug treatment for chronic insomnia made recommendations on fourteen medications and supplements. Every single recommendation it made is graded weak, including the drugs it suggests using.

A weak recommendation means the evidence is limited enough, or the balance of benefit and harm is close enough, that different reasonable people would choose differently. It's not a condemnation. It's a signal that no drug here is the obvious answer.

Suggested for use

Eszopiclone, zolpidem and temazepam for both sleep onset (falling asleep) and sleep maintenance (staying asleep). Zaleplon, triazolam, and ramelteon for sleep onset. Doxepin and suvorexant for sleep maintenance.

Notice that the guideline splits by problem. Trouble falling asleep and trouble staying asleep are treated as different concerns. If your prescription was written without that difference coming up, it's fair to ask about it.

Suggested against

Trazodone. Tiagabine. Diphenhydramine. Melatonin. L-tryptophan. Valerian.

Two of those are worth pausing on. Melatonin is the first thing most people try, and the guideline suggests against it for chronic insomnia. Diphenhydramine is the active ingredient in most over-the-counter sleep aids. Being sold without a prescription reflects regulatory history. It isn't evidence that it's safe to take every night.

The drugs that appear on neither list

Mirtazapine. Quetiapine. Both are prescribed for sleep, and neither got a recommendation in the guideline. Both are approved for something else entirely.

People may read that absence as neutral. It isn't. It means the guideline graded neither of them. That's a weaker position than a weak recommendation, not a stronger one.

Age changes the answer

The American Geriatrics Society's Beers Criteria list medicines that are potentially inappropriate for adults 65 and over. Three classes used for sleep are on it: first-generation antihistamines, benzodiazepines, and the Z-drugs. The advice for all three is to avoid them. All three are strong recommendations based on moderate-quality evidence.

Therefore, several drugs the AASM suggests for insomnia are on the Beers list to avoid at 65 and older. That isn't a contradiction. The two guidelines are answering questions about two different groups of people.

Where medication sits overall

The AASM's 2026 combination guideline suggests CBT-I plus medication over medication alone. It also suggests against the combination over CBT-I alone. The order of the recommendations is CBT-I first, CBT-I combined with medication second, and medication alone last.

None of this is a reason to stop something you've been prescribed without checking first with your healthcare provider. Several of these cause rebound insomnia (sleeplessness that comes back worse) or withdrawal if stopped abruptly. And some are treating a condition other than insomnia.

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.
Which sleep medications does the AASM recommend?
It suggests clinicians may use eszopiclone, zolpidem, and temazepam for both sleep onset and sleep maintenance insomnia. It suggests zaleplon, triazolam, and ramelteon for sleep onset, and low-dose doxepin and suvorexant for sleep maintenance. All are weak recommendations.
Which does it recommend against?
Trazodone, tiagabine, diphenhydramine, melatonin, L-tryptophan, and valerian. For each one, it recommends that clinicians not use it for sleep onset or sleep maintenance insomnia.
Why aren't drugs like mirtazapine and quetiapine on either list?
Because the guideline didn't make a recommendation on either one. Quetiapine is not among the fourteen agents it graded, though a trial of quetiapine for insomnia is cited in its references. Mirtazapine is not cited in the guideline at all. Both are approved for something else: mirtazapine for major depressive disorder, and quetiapine for schizophrenia and bipolar disorder. Both are used off-label (outside of their approved uses) for sleep.
Should I stop taking my sleep medication?
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. Journal of Clinical Sleep Medicine. 2017;13(2):307-349.
  2. American Geriatrics Society. 2023 AGS Beers Criteria for Potentially Inappropriate Medication Use in Older Adults. J Am Geriatr Soc. 2023;71:2052-2081. doi:10.1111/jgs.18372
  3. Buysse DJ, 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.
  4. Melatonin: What You Need To Know. National Center for Complementary and Integrative Health.
  5. 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.