Prescription sleeping pills: What's right for you?

Sleeping pills may help when stress, travel or other disruptions keep you awake. For long-term insomnia, behavior changes learned in behavioral therapy are usually the best treatment.

By Mayo Clinic Staff

If you regularly have trouble either falling or staying asleep — a condition called insomnia — make an appointment with your health care provider. Treatment depends on what's causing your insomnia. Sometimes, an underlying cause, such as a medical condition or a sleep-related disorder, can be found and treated — a much more effective approach than just treating the symptom of insomnia itself.

Behavior changes learned through cognitive behavioral therapy are generally the best treatment for ongoing insomnia. Sleeping on a regular schedule, exercising regularly, avoiding caffeine later in the day, avoiding daytime naps and keeping stress in check also are likely to help. But there are times when the addition of prescription sleeping pills may help you get some much-needed rest.

All prescription sleeping pills have risks, especially for people with certain medical conditions, including liver or kidney disease, and for older adults. Always talk with your health care provider before trying a new treatment for insomnia.

Here's information on some of the most common types of prescription sleeping pills used today.

Types of prescription sleeping pills

Prescription sleeping pills may help you fall asleep easier or stay asleep longer — or both. The risks and benefits of various prescription sleeping pills can differ. To find the right prescription medicine to help you sleep, your health care provider generally should:

  • Ask questions to get a clear picture of your sleep patterns
  • Order tests to rule out any underlying conditions that may be causing difficulty sleeping
  • Discuss options for taking prescription sleeping medicine, including how often and when to take it and in what form, such as pills, oral spray or dissolving tablets
  • Prescribe a sleeping pill for a limited period of time to determine the benefits and side effects for you
  • Have you try a different prescription sleeping pill if the first medicine you take doesn't work after the full prescribed course
  • Help you determine whether there is a generic version, which is typically less expensive than brand-name medicine

Insurance companies may have restrictions on which sleeping pills are covered. And they may require that you try other approaches first to try to manage your insomnia.

Prescription sleep medicine options include the following.

Sleep medication Helps you fall asleep Helps you stay asleep Can lead to dependence
Daridorexant (Quviviq)
Doxepin (Silenor)
Eszopiclone (Lunesta)
Lemborexant (Dayvigo)
Ramelteon (Rozerem)
Suvorexant (Belsomra)
Temazepam (Restoril)
Triazolam (Halcion)
Zaleplon (Sonata)
Zolpidem (Ambien, Edluar, Zolpimist)
Zolpidem extended release (Ambien CR)

Side effects of prescription sleeping pills

Always ask your health care provider about potential side effects before deciding which sleeping pills to consider taking. Depending on the type, prescription sleeping pills may include side effects such as:

  • Dizziness or lightheadedness, which may lead to falls
  • Headache
  • Diarrhea or nausea
  • Prolonged drowsiness, more so with drugs that help you stay asleep
  • Severe allergic reaction
  • Sleep-related behaviors, such as driving or eating when not fully awake
  • Changes in thinking and behavior, such as hallucinations, agitation, trouble remembering events, suicidal thoughts and bizarre behavior
  • Daytime memory and performance problems

Antidepressants with a sedating effect

Sometimes prescription medicines used mainly to treat depression may ease insomnia when taken in lower doses. Although widely used, these are not approved by the U.S. Food and Drug Administration (FDA) for insomnia. When insomnia is related to depression or anxiety, these antidepressants may be added to treatment.

Examples include:

  • Amitriptyline
  • Mirtazapine (Remeron)
  • Trazodone

Side effects of antidepressants with a sedating effect

Antidepressants that have a sedating effect may include side effects such as:

  • Dizziness and lightheadedness
  • Headache
  • Prolonged drowsiness
  • Dry mouth
  • Nausea
  • Irregular heartbeat
  • Changes in weight
  • Daytime memory and performance problems
  • Constipation or diarrhea
  • Suicidal thoughts

Safety considerations

Prescription sleeping pills (and even some nonprescription sleeping aids), as well as certain antidepressants, may not be safe if you are pregnant, breastfeeding or an older adult. Sleeping pill use may increase the risk of nighttime falls and injury in older adults. If you're an older adult, your health care provider may prescribe a lower dose of medicine to reduce your risk of problems.

Some health conditions — for example, kidney disease, low blood pressure, heart rhythm problems or a history of seizures — may limit your options. Also, prescription sleeping pills and nonprescription sleep aids may interact with other medicines. And taking certain prescription sleeping pills can lead to drug misuse or drug dependence, so it's important to follow your health care provider's advice.

Taking sleeping pills

If your best attempts to get a good night's sleep have failed, prescription sleeping pills may be an option. Here's some advice on how to use them safely.

  • Get a medical evaluation. Before you take sleeping pills, see your health care provider for a thorough exam. Often your provider may be able to find specific causes for your insomnia. If you're taking sleeping pills for more than a few weeks, talk to your provider about an appropriate follow-up schedule to discuss your medicines.
  • Read the medication guide. Read the medication guide for patients so that you understand how and when to take your medicine and what the major potential side effects are. If you have any questions, ask your pharmacist or health care provider.
  • Never take a sleeping pill until you're going to bed. Sleeping pills can make you less aware of what you're doing, increasing the risk of dangerous situations. Wait to take your sleeping pill until you've completed all of your evening activities, immediately before you plan on sleeping.
  • Take your sleeping pill when you can get a full night's sleep. Only take a sleeping pill when you know you can get a full night's sleep of at least 7 to 8 hours. A few short-acting sleeping pills are intended for middle of the night awakenings, so you may take them when you can stay in bed for at least four hours.
  • Watch for side effects. If you feel sleepy or dizzy during the day or if you experience any other side effects that bother you, talk to your health care provider. Your provider may suggest trying a different medicine, changing your dose or weaning you off pills. Don't take a new sleeping pill the night before an important appointment or activity because you won't know how it affects you.
  • Avoid alcohol. Never mix alcohol and sleeping pills. Alcohol increases the sedative effects of the pills. Even a small amount of alcohol combined with sleeping pills can make you feel dizzy, confused or faint. Combining alcohol with certain sleeping pills can lead to dangerously slowed breathing or unresponsiveness. And alcohol can actually cause insomnia.
  • Don't take sleeping pills with opioids. Opioids are a wide class of pain-relieving drugs. They include prescription medicines, such as oxycodone, hydrocodone, morphine, methadone and the synthetic opioid fentanyl. This class also includes illegal drugs, such as heroin. Combining an opioid with sleeping pills can be dangerous. The combination increases the sedative effects of the pills and can lead to slowed breathing or unresponsiveness. It can even cause you to stop breathing.
  • Take sleeping pills strictly as prescribed by your health care provider. Some prescription sleeping pills are for short-term use only. Be sure to contact your provider for advice. Also, don't take a higher dose than prescribed. If the initial dose doesn't produce the intended effect on sleep, don't take more pills without first talking to your provider.
  • Quit carefully. When you're ready to stop taking sleeping pills, follow your health care provider's or pharmacist's instructions or the directions on the label. Some medicines must be stopped gradually. Also, be aware that you may have some short-term rebound insomnia for a few days after you stop taking sleeping pills.

If you continue to have trouble sleeping, ask your health care provider for more help.

From Mayo Clinic to your inbox

Sign up for free and stay up to date on research advancements, health tips, current health topics, and expertise on managing health. Click here for an email preview.

We use the data you provide to deliver you the content you requested. To provide you with the most relevant and helpful information, we may combine your email and website data with other information we have about you. If you are a Mayo Clinic patient, we will only use your protected health information as outlined in our Notice of Privacy Practices. You may opt out of email communications at any time by clicking on the unsubscribe link in the email.

Sept. 16, 2022 See more In-depth

See also

  1. Ambien: Is dependence a concern?
  2. Anorexia nervosa
  3. Antidepressant withdrawal: Is there such a thing?
  4. Antidepressants and alcohol: What's the concern?
  5. Antidepressants and weight gain: What causes it?
  6. Antidepressants for children and teens
  7. Antidepressants: Can they stop working?
  8. Antidepressants: Get tips to cope with side effects
  9. Antidepressants: Selecting one that's right for you
  10. Antidepressants: Which cause the fewest sexual side effects?
  11. Antihistamines for insomnia
  12. Atypical antidepressants
  13. Biofeedback
  14. Central sleep apnea
  15. Cigar smoking
  16. CJD - Creutzfeldt-Jakob Disease
  17. Clinical depression: What does that mean?
  18. Cognitive behavioral therapy
  19. Coughing more after quitting smoking: What's the deal?
  20. CPAP machines: Tips for avoiding 10 common problems
  21. CPAP: How it works
  22. Creutzfeldt-Jakob disease
  23. Depression (major depressive disorder)
  24. Depression and anxiety: Can I have both?
  25. Depression and anxiety: Exercise eases symptoms
  26. Depression in women: Understanding the gender gap
  27. Depression: Supporting a family member or friend
  28. Drug addiction (substance use disorder)
  29. Headaches: Reduce stress to prevent the pain
  30. Hepatic encephalopathy
  31. Hidradenitis suppurativa and sleep: How to get more zzz's
  32. Hookah smoking
  33. How opioid use disorder occurs
  34. How to tell if a loved one is abusing opioids
  35. Huntington's disease
  36. Insomnia
  37. Insomnia treatment: Cognitive behavioral therapy instead of sleeping pills
  38. Insomnia: How do I stay asleep?
  39. Jet lag disorder
  40. Kratom for opioid withdrawal: Does it work?
  41. Kratom: Unsafe and ineffective
  42. Lack of sleep: Can it make you sick?
  43. Male depression: Understanding the issues
  44. MAOIs and diet: Is it necessary to restrict tyramine?
  45. Marijuana and depression
  46. Mayo Clinic Minute: Avoid opioids for chronic pain
  47. Mayo Clinic Minute: Be careful not to pop pain pills
  48. Mayo Clinic Minute: Do not share pain medication
  49. Mayo Clinic Minute: Restless legs syndrome in kids
  50. Mayo Clinic Minute: What you should know about bats and rabies
  51. Melatonin side effects
  52. Monoamine oxidase inhibitors (MAOIs)
  53. Napping: Do's and don'ts for healthy adults
  54. Natural remedies for depression: Are they effective?
  55. Nervous breakdown: What does it mean?
  56. Nicotine addiction
  57. Nicotine dependence
  58. Obstructive sleep apnea
  59. Obstructive Sleep Apnea
  60. Obstructive sleep apnea: What happens?
  61. Opioid stewardship: What is it?
  62. Pain and depression: Is there a link?
  63. Perimenopause
  64. Persistent post-concussive symptoms (Post-concussion syndrome)
  65. Pinworm infection
  66. Polysomnography (sleep study)
  67. Poppy seed tea: Beneficial or dangerous?
  68. Porphyria
  69. Postpartum depression
  70. Premenstrual dysphoric disorder
  71. Premenstrual syndrome (PMS)
  72. Prescription drug abuse
  73. Pulmonary edema
  74. Quit-smoking products: Boost your chance of success
  75. Quitting smoking: 10 ways to resist tobacco cravings
  76. Rabies
  77. Restless legs syndrome
  78. Seasonal affective disorder (SAD)
  79. Seasonal affective disorder treatment: Choosing a light box
  80. Selective serotonin reuptake inhibitors (SSRIs)
  81. Serotonin and norepinephrine reuptake inhibitors (SNRIs)
  82. Sleep aids: Understand options sold without a prescription
  83. Sleep and psoriatic arthritis
  84. Sleep apnea
  85. Sleep guidelines
  86. Sleep tips: 6 steps to better sleep
  87. Smokeless tobacco products
  88. Stress symptoms: Effects on your body and behavior
  89. Tapering off opioids: When and how
  90. Teen depression
  91. Tension headache
  92. Tension-type headaches: Self-care measures for relief
  93. Treatment-resistant depression
  94. Tricyclic antidepressants and tetracyclic antidepressants
  95. Valerian: A safe and effective herbal sleep aid?
  96. Vitamin B-12 and depression
  97. What are opioids and why are they dangerous?
  98. What is depression? A Mayo Clinic expert explains.
  99. What is thirdhand smoke, and why is it a concern?
  100. Which CPAP masks are best for you?
  101. Xylazine