provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeHealth ConditionsInsomnia

Sleeping Pills for Insomnia: What You Should Know About Lunesta, Ambien, and Sonata

Mandeep Sohal, PharmDAmy B. Gragnolati, PharmD, BCPS
Updated on January 10, 2025

Key takeaways:

  • Lunesta (eszopiclone), Ambien (zolpidem), and Sonata (zaleplon) are non-benzodiazepine medications (“z drugs”) used to treat difficulty sleeping, or insomnia.

  • These z-drugs are similar in how they work and their expected side effects. They’re also considered controlled substances, which means they have a potential risk for dependence and misuse.

  • All three medications have a generic form available, which helps with accessibility. Talk with a healthcare professional if you’re considering these medications, or have questions about them.

03:03
Reviewed by Alexandra Schwarz, MD | September 27, 2023

Every evening, millions of U.S. adults take a prescription medication to help them get to sleep and stay asleep. These are often a generic version of Lunesta (eszopiclone), Ambien (zolpidem), or Sonata (zaleplon). These three medications are non-benzodiazepine sedative hypnotics, or “z-drugs,” that help with sleep by causing a hypnotic, calming effect.

These prescription sleep medications are also controlled substances, meaning they can be habit-forming (cause dependence) and lead to misuse. But they were developed with the intention to have fewer side effects and less potential for dependence than benzodiazepines.

So, exactly how safe are these sleep medications? Keep reading to learn what studies say about Lunesta, Ambien, and Sonata, including common doses and side effects to consider.

Lunesta

Lunesta is taken orally just before bedtime. The usual dosage is 1 mg, 2 mg, or 3 mg once daily. The FDA recommends starting at the lowest dose (1 mg) and only going up if needed. This is because of the risk of being drowsy the next day with higher doses.

While Lunesta seems to last longer than Ambien or Sonata, experts recommend that you should be able to get at least 7 to 8 hours of sleep before taking any of these medications.

Lunesta side effects

Common Lunesta side effects include:

  • Unpleasant taste

  • Headache

  • Dizziness

  • Dry mouth

  • Rash

Search and compare options

Search is powered by a third party. By clicking a topic in the advertisement above, you agree that you will visit a landing page with search results generated by a third party, and that your personal identifiers and engagement on this page and the landing page may be shared with such third party. GoodRx may receive compensation in relation to your search.

Other side effects of Lunesta can include:

  • Abnormal thinking, including hallucinations

  • Behavioral changes

  • Feeling tired or sleepy the next day

  • Anxiety or depression

  • Respiratory infection

Ambien

Ambien is usually taken orally as a 5 mg to 10 mg dose once a day, just before you go to bed. Ambien CR (zolpidem ER), the extended-release version of zolpidem, is taken at a dose of 6.25 mg or 12.5 mg daily just before bedtime.

However, the FDA recommends taking a 5 mg dose (6.25 mg dose for Ambien CR) as the starting dose because of the risk of drowsiness the next day after taking a dose.

Ambien side effects

Common Ambien side effects include:

  • Nausea

  • Dizziness

  • Diarrhea

  • Headache

Other side effects of Ambien can include:

  • Abnormal thinking, including hallucinations

  • Behavioral changes

  • Feeling tired or sleepy the next day

  • Depression

Sonata

Sonata is typically taken orally as a 5 mg, 10 mg, or 20 mg dose. Again, it’s best to take it right before bedtime.

Sonata side effects

Common Sonata side effects include:

  • Headache

  • Dizziness

  • Nausea

  • Abdominal pain

Other side effects of Sonata can include:

  • Abnormal thinking, including hallucinations

  • Behavioral changes

  • Feeling tired or sleepy the next day

  • Depression

Risks of taking sleeping pills

Although rare, Lunesta, Ambien, and Sonata come with a higher risk of sleep behaviors than other sleep medications. Behaviors like sleepwalking and driving while asleep are more common in people who take these medications. These can be dangerous — and even lead to death. 

That’s why these medications come with a boxed warning for these behaviors, which is the FDA’s most serious medication warning.

Talk to a healthcare professional about sleeping pills 

Studies on sleep medications are often performed in sleep laboratories. They may not be an accurate representation of how these sleeping pills work in real life. They may only include a small number of people, tested over one or two nights as part of the study design.

Your best bet is to discuss treatment options for insomnia with a healthcare professional and to keep them in the loop as you try any new medication.

Frequently asked questions

Which prescription sleep medication is the strongest? 

There isn’t one strongest or best prescription sleep medication. However, some research suggests that orexin receptor antagonist (ORA) medications, such as Dayvigo (lemborexant) and Belsomra (suvorexant), may be more effective than z-drugs. ORAs may help you get to sleep faster and stay asleep longer compared to other sleep medications. 

What should you avoid while taking sleeping pills? 

You should avoid certain things while taking sleeping pills. Namely, don’t drink alcohol and take sleep medications on the same day. This combination can be dangerous, habit-forming, and increase your risk of unintended sleep behaviors. These include sleep driving and performing other dangerous tasks without being fully conscious. Don’t take your sleep medication several hours before you plan to go to sleep, either; take it shortly before bedtime.

The bottom line

Lunesta (eszopiclone), Ambien (zolpidem), and Sonata (zaleplon) are three non-benzodiazepine medications (“z drugs”) that are used to help with sleep. These three medications are similar in terms of side effects and how they work. The right choice for you will likely come down to your symptoms, medical history, and which one is most affordable.

If you think you might need medication to help you sleep, talk with a healthcare professional. They can help you weigh the benefits and risks of each and help you find what may work best for you.

why trust our exports reliability shield

Why trust our experts?

Mandeep Sohal, PharmD
Mandeep Sohal, PharmD, has more than 7 years of experience in the pharmaceutical industry and is licensed in California. In his career, he’s had experience with specialty pharmacy, community pharmacy, pharmacy benefit management, and pharmaceutical manufacturers.
Joshua Murdock, PharmD, BCBBS
Joshua Murdock, PharmD, BCBBS, is a licensed pharmacist in Arizona, Colorado, and Rhode Island. He has worked in the pharmacy industry for more than 10 years and currently serves as a pharmacy editor for GoodRx.
Amy B. Gragnolati, PharmD, BCPS
Amy Gragnolati, PharmD, BCPS, is a pharmacy editor for GoodRx. Amy currently holds her pharmacist license in Georgia and California.

References

A-S Medication Solutions. (2024). Zolpidem tartrate - zolpidem tartrate tablet, film coated [package insert].

Lie, J. D., et al. (2015). Pharmacological treatment of insomnia. P & T.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Habits for a Healthier Mind

Sign up for our GoodRx Mental Well-being Newsletter to receive up-to-date information on the latest medications, tips, and savings that are most relevant to you.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Related Articles