Sleep medications: what’s commonly prescribed and what to know
From trazodone to melatonin, here’s a plain-language guide to common sleep medications, their trade-offs and when they make sense.

By Earl Johns, MSN, PMHNP-BC
Published
Based on evidence-based psychological research

Photos are illustrative and don’t show actual clients.
Want support with this?
Earl is a gay, neurodivergent psych NP who gets it. He offers affirming psychiatry and therapy by video across California, in network with Aetna, Anthem Blue Cross, Cigna, UnitedHealthcare / Optum and more. New clients are seen within about 3 business days.
Book a free 15-minute consult
Related care:
Medication management
→
Sleep medication can be a helpful bridge during a rough stretch. It works best as part of a bigger plan that includes better sleep habits and treatment for whatever is keeping you awake, like anxiety, depression or pain.
Common options
Trazodone: an older antidepressant often used at low doses for sleep. It isn’t habit-forming, but it can cause morning grogginess or dizziness when standing up.
Hydroxyzine: an antihistamine that can ease anxiety and help with sleep. It may cause dry mouth and next-day drowsiness.
Low-dose doxepin: FDA-approved for trouble staying asleep, at much lower doses than those used for depression.
Mirtazapine: an antidepressant that can help when depression, poor sleep and low appetite show up together.
“Z-drugs” like zolpidem: effective for short-term use, but they can cause next-day impairment and rarely complex sleep behaviors like sleepwalking or sleep-driving.
Melatonin: most useful for shifting your body clock, like with jet lag or a delayed sleep schedule. Small doses taken a few hours before bed often work better than large doses at bedtime.
Ones to be cautious with
Benzodiazepines, like lorazepam or clonazepam, can cause dependence and are risky with alcohol or opioids. They’re usually not a long-term sleep solution.
Over-the-counter sleep aids with diphenhydramine (Benadryl) can cause grogginess and confusion, especially as we age, and their effect fades quickly.
Alcohol and cannabis may help you fall asleep but tend to make sleep lighter and more broken. Our post on cannabis and sleep explains more.
Getting the most from a sleep medication
Pair it with a steady wake time and good sleep habits.
Take it only when you can stay in bed for a full night.
Don’t mix it with alcohol or other sedatives.
Check in with your prescriber about how long to use it and how to taper if needed.
For chronic insomnia, CBT-I is usually the first-choice treatment. Learn more in our post on how CBT-I works.
Other prescription options you may hear about
The NHLBI lists a few more prescription categories beyond the ones above:
Melatonin receptor agonists: such as ramelteon, which act on the same body-clock system as melatonin.
Orexin receptor antagonists: such as suvorexant, which work by quieting the brain’s wake signals. The NHLBI notes suvorexant isn’t recommended for people with narcolepsy.
Off-label options: certain antidepressants, antipsychotics and anticonvulsants are sometimes used for sleep.
Some sleep medications are meant for short-term use and others for longer-term use, so ask your prescriber how long yours is intended for.
What the guidelines and the FDA say
CBT-I comes first: the American College of Physicians (ACP) recommends CBT-I as the initial treatment for chronic insomnia, noting it’s likely to have fewer harms than medication. If medication is added, ACP recommends deciding together with your clinician.
Short courses, regular check-ins: ACP notes approved sleep medications are intended for about four to five weeks, and that people whose insomnia hasn’t improved within 7 to 10 days should be re-evaluated for things like depression, pain, sleep apnea or restless legs.
Z-drug warning: in 2019 the FDA added a boxed warning to eszopiclone, zaleplon and zolpidem about complex sleep behaviors such as sleepwalking and sleep driving, which have caused serious injuries and deaths. If this has ever happened to you, contact your prescriber right away.
Benzodiazepine warning: in 2020 the FDA updated the boxed warning for all benzodiazepines to cover abuse, addiction, physical dependence and withdrawal, and warned against stopping suddenly. Our post on coming off sleeping pills safely explains how a taper works.
Mixing with alcohol and party drugs
The FDA warns that combining benzodiazepines with opioids, alcohol or other sedating substances can lead to overdose and death. GHB is another sedating drug, and mixing it with sleep medication or alcohol adds to the risk. If you use, being honest with your prescriber helps keep you safe, with no judgment. Our post on GHB and how to stay safer goes deeper.
Know the emergency signs: slow or shallow breathing, or someone who can’t be woken. Call 911 right away. If you’re struggling with your mood or having thoughts of suicide, call or text 988 any time.
Common questions
What is the safest sleep medication?
There isn’t one safest option for everyone. It depends on what’s keeping you awake, your other health conditions and medications, and how long you’ll need it. For chronic insomnia, CBT-I is usually the first step. You can also read about trazodone and hydroxyzine.
How long can I take a sleep medication?
It varies. ACP notes approved sleep medications are intended for about four to five weeks, though some are used longer under a prescriber’s care. Ask your prescriber about the plan for yours.
Are sleeping pills addictive?
Some can be. Benzodiazepines carry an FDA boxed warning for abuse, addiction and physical dependence. Others, like trazodone, aren’t considered habit-forming. Your prescriber can walk you through the trade-offs.
Sources
Certain Prescription Insomnia Medicines: New Boxed Warning (FDA)
FDA requiring Boxed Warning updated to improve safe use of benzodiazepine drug class (FDA)
Struggling to sleep? Wellthy Psychiatry looks at the whole picture, from mood and anxiety to habits and medication. Learn about medication management or book a free 15-minute consult.
This post is for education only and isn’t a substitute for personal medical advice.
✓ Medically reviewed by Earl Johns, MSN, PMHNP-BC
Last reviewed

About the author
Earl Johns, MSN, PMHNP-BC
Board-certified psychiatric nurse practitioner · UCSF- and Stanford-trained · Founder of Wellthy Psychiatry & Wellness
Earl (he/him) is a gay, neurodivergent provider with ADHD himself and a mixed-ethnicity Filipinx, Pacific Islander and Latinx clinician. He offers LGBTQ+ and neuro-affirming psychiatric care, blending medication management, therapy and whole-person approaches. His background includes inpatient psychiatry and community mental health at a California county behavioral health program and a behavioral health federally qualified health center. He sees clients in San Francisco and by telehealth across California.
If sleep or appetite changes are wearing you down, Earl can look at medication, labs and daily habits together.
For California residents, by secure video.
Book a free 15-minute phone consult →
Keep reading
Related posts

White, pink and brown noise: what helps you sleep, and why earplugs may win
What white, pink and brown noise really are, what a 2026 sleep lab study found about pink noise and REM sleep, and why simple earplugs may protect your sleep better.

Why gay and bi men often sleep worse: minority stress and sleep
Research finds gay and bi men report more sleep trouble than straight men. How minority stress keeps your body on alert at night, and what helps you rest.

Tired but wired: why you can’t sleep even when you’re exhausted
Exhausted all day, wide awake at bedtime? That’s hyperarousal. Why being tired isn’t enough to sleep, how the insomnia loop builds, and what helps quiet it.

Is your sleep tracker making your sleep worse? Meet orthosomnia
Chasing a perfect sleep score can backfire. What orthosomnia is, how accurate sleep trackers really are, and a calmer way to use your data.
