Condition guide
Insomnia
Insomnia means trouble falling asleep, staying asleep, or waking too early, along with feeling unrested during the day. The most effective long-term treatment isn't a pill — it's cognitive behavioral therapy for insomnia (CBT-I). Sleep medicines can help for short stretches, but many are habit-forming and can leave you groggy the next day.
Medicines covered on KnowYourPills
This isn't a complete list of treatments — your doctor may recommend others, and the right choice depends on you.
Prescription sleep medicines
Zolpidem
SleepAlso known as Ambien
Works fast. Can cause sleepwalking or sleep-driving; take it only when you can sleep a full night.
Eszopiclone
SleepAlso known as Lunesta
Similar to zolpidem; a bitter taste is common.
Temazepam
SleepAlso known as Restoril
A benzodiazepine; habit-forming.
Doxepin
SleepAlso known as Silenor
At sleep doses it isn't habit-forming, and it helps with waking in the night.
Often prescribed off-label
Over the counter
Newer sleep medicines like suvorexant (Belsomra) aren't covered here yet.
Besides medicine
- Going to bed and waking at the same times every day, even on weekends
- Getting out of bed if you can't fall asleep after about 20 minutes
- Limiting caffeine after noon and alcohol in the evening
- Keeping the bedroom cool and dark, and screens out of bed
When to get help
- Doing things while not fully awake on a sleep medicine — driving, cooking, walking — stop it and call your doctor
- Loud snoring, gasping, or pauses in breathing during sleep — ask about sleep apnea
- Insomnia lasting more than a few weeks, or with low mood — see your doctor
Sources
Last updated October 20, 2026. Not yet reviewed by a pharmacist or physician — how our guides are made.