Prescriptions
Sleep medication cost: zolpidem, trazodone and cheaper options
Common prescription sleep medicines such as zolpidem and trazodone are sold as generics, so the cheapest way to fill them is to ask for the generic and compare pharmacy cash prices with your copay. For long-term insomnia, a non-drug treatment may be the best value of all. Here’s how the options compare and the safety rules to know.
Free to use. MegaSavings may earn a small fee when you use the RxGo card, at no cost to you. Payments don’t change the tips on this page. How we make money.
Three ways to pay less
Ask for the generic
Zolpidem, the generic for Ambien, has its own FDA-approved generic label. FDA says generics usually cost less.
Try CBT-I
NHLBI says cognitive behavioral therapy for insomnia is usually the first treatment recommended for long-term insomnia.
Source: NHLBI
Check your plan
Look up the drug on your plan’s list, then compare the copay with a discount card price.
Source: HealthCare.gov
Check your sleep medicine price
Look up zolpidem, trazodone or another prescription with the free RxGo card, and compare that price with what your pharmacy charges and your insurance copay.
MegaSavings may earn a small fee when you use the RxGo card, at no cost to you. Discount cards aren’t insurance, and prices vary by pharmacy.
Common prescription sleep medicines
- Zolpidem. Used for insomnia. It comes as regular tablets (Ambien), extended-release tablets (Ambien CR), tablets that dissolve under the tongue (Edluar, Intermezzo) and an oral spray (Zolpimist) (MedlinePlus). Ask which form you really need, and price the regular generic tablet as well as any extended-release or under-the-tongue version you’re offered.
- Trazodone. An antidepressant that doctors sometimes prescribe for insomnia, an off-label use. Its brand versions are no longer sold, but generic alternatives may be available (MedlinePlus). See our antidepressant cost guide.
- Other classes. NHLBI lists eszopiclone and zaleplon, ramelteon, suvorexant and some benzodiazepines among insomnia medicines. Benzodiazepines are generally used for only a few weeks because they can be habit-forming (NHLBI).
The safety warning on Z-drugs
In 2019, FDA added a boxed warning, its most prominent kind, to eszopiclone (Lunesta), zaleplon (Sonata) and zolpidem. Rare but serious injuries, including deaths, have followed sleepwalking, sleep driving and other activities done while not fully awake (FDA). These behaviors can happen after the first dose or later, even at lower doses, and people may not remember them (FDA).
- Stop the medicine and call your doctor right away if you do anything while not fully awake (FDA).
- Don’t combine it with other sleep medicines, including over-the-counter ones, or with alcohol (FDA).
- You may still be drowsy the next morning, so be careful driving (FDA).
- Take zolpidem only when you can stay in bed for 7 to 8 hours, and don’t stop suddenly after long use. It may be habit-forming (MedlinePlus).
Trazodone has its own warnings. MedlinePlus notes a risk of suicidal thoughts in people under 25 who take antidepressants, and says an erection lasting more than 6 hours needs emergency care (MedlinePlus). If you or someone you know is in crisis, call or text 988.
Options that may cost less than pills
NHLBI says CBT-I is a 6 to 8 week program, offered in person, by phone or online, and is usually the first treatment recommended for long-term insomnia. Healthy sleep habits help too (NHLBI). Ask your plan whether it covers CBT-I, and whether online or phone sessions cost less than office visits. A few weeks of treatment may save you years of refills.
Over-the-counter sleep aids usually contain antihistamines, which can be unsafe for some people. NHLBI says research hasn’t proven melatonin works for insomnia, and it can cause side effects. Tell your doctor about any OTC products or supplements you take, and talk to them before trying either (NHLBI).
How to pay less
- Choose the generic. FDA says generic prices tend to drop as more companies make the same drug (FDA).
- Compare cash prices. Prices for the same prescription can differ from one pharmacy to the next. Check a free discount card such as RxGo before you fill.
- On Medicare? If your income is limited, apply for Extra Help. Drugs bought with a discount card instead of your plan don’t count toward your plan’s out-of-pocket limit (Medicare.gov).
- Ask about a 90-day supply. If you take a medicine every night, ask your plan or pharmacy whether a 90-day fill costs less per dose.
- No insurance? HRSA-funded health centers charge on a sliding scale. Find one near you.
Compare sleep medicine prices near you
The RxGo card is free. Show it at the counter or print a coupon, and compare the price with your insurance copay.
MegaSavings may earn a small fee when you use the RxGo card, at no cost to you. Discount cards aren’t insurance, and prices vary by pharmacy.
Common questions
Is there a generic for Ambien?
Yes. Zolpidem is the generic name for Ambien, and generic zolpidem tartrate tablets carry the same FDA boxed warning as the brand.
Is trazodone used for sleep?
Sometimes. MedlinePlus lists trazodone as an antidepressant that doctors may also prescribe for insomnia. Ask your doctor whether it fits you.
What is the first treatment for long-term insomnia?
NHLBI says cognitive behavioral therapy for insomnia, a 6 to 8 week program, is usually recommended first.
Does MegaSavings get paid?
MegaSavings may earn a small fee when you use the RxGo card, at no cost to you.
Sources
- NHLBI (NIH): Insomnia, Treatment
- MedlinePlus (NIH): Zolpidem
- DailyMed (NLM): Zolpidem Tartrate tablet, generic label
- MedlinePlus (NIH): Trazodone
- FDA: Certain Prescription Insomnia Medicines, New Boxed Warning (April 30, 2019)
- FDA: Taking Z-drugs for Insomnia? Know the Risks
- FDA: Generic Drug Facts
- HealthCare.gov: Getting prescription medications
- Social Security: Apply for Extra Help with Medicare Part D
- Medicare.gov: Help with drug costs
- HRSA: Find a Health Center
More guides: Prescription savings · Prescription discount cards · Antidepressant cost · Medicare open enrollment · How we make money
Last reviewed: October 28, 2026
