How it works and when it may help

How it works

Some sleep medicines quiet brain activity. Others turn down a wake-up signal or help your body respond to bedtime.

When might I notice a change?

Many can affect sleep the night you take them. For a few mornings, note how long it took to fall asleep, how often you woke up, and how alert you feel.

What to watch for

Avoid alcohol with these medicines. If you feel groggy the next morning, do not drive. If you walk, eat, or drive in your sleep after zolpidem or eszopiclone, stop taking it and call your prescriber right away.

Find your medicine by name

Sleep medications. Choose a name to read about it. Brand names are in parentheses.

Z-drugs

Zolpidem (Ambien, Ambien CR)
What it treats
Used for trouble falling asleep. Some forms also help you stay asleep.
How it works
Slows brain activity so sleep can begin.
When it may help
It may make you sleepy soon after a bedtime dose, even on the first night.
Eszopiclone (Lunesta)
What it treats
Used for trouble falling asleep or staying asleep.
How it works
Slows brain activity to help you sleep.
When it may help
It can make you sleepy the night you take it. You may still feel drowsy the next morning.

Antidepressants used for sleep

Low-dose doxepin (Silenor)
What it treats
Used when you wake during the night and struggle to stay asleep.
How it works
It may work by blocking histamine, one of the signals that keeps you awake.
When it may help
You may start staying asleep longer during the first few days.
Trazodone (Desyrel)
What it treats
Approved for depression. Some prescribers also use it for sleep. This use is called off-label.
How it works
It changes how the brain uses serotonin. It can also make you feel drowsy.
When it may help
You may feel drowsy after a dose. It is less clear how well it helps long-term insomnia. If you still wake often or feel groggy the next day, tell your prescriber.

Orexin blockers

Suvorexant (Belsomra)
What it treats
Used for trouble falling asleep or staying asleep.
How it works
Blocks orexin, a signal that helps keep you awake.
When it may help
It can make you sleepy soon after a bedtime dose. Tell your prescriber if sleep is no better in 7 to 10 days.

Melatonin receptor agonists

Ramelteon (Rozerem)
What it treats
Used when the main problem is falling asleep.
How it works
Acts like melatonin, your body's signal that it is time for sleep.
When it may help
You may feel sleepy the night you take it. Tell your prescriber if sleep is no better in 7 to 10 days.

About this medicine

“Sleep medication” includes several unrelated medicine types. A useful discussion begins with why sleep is difficult, your daytime symptoms, and other conditions such as sleep apnea.

For ongoing insomnia, cognitive behavioral therapy for insomnia (CBT-I) is usually a first treatment option. Medication may be part of a broader, individualized plan rather than the only tool.

YOUR CARE

What to know and ask

What it treats

Some medicines help with falling asleep, some with staying asleep, and some with both. Examples include Z-drugs, orexin receptor antagonists, ramelteon, and certain other prescription medicines. Sedating antidepressants may be prescribed off-label. The best match depends on your diagnosis and risks.

Common side effects

Possible effects include next-day drowsiness, dizziness, impaired coordination, memory problems, and falls. Some medicines can cause dependence or withdrawal. Risks may be greater in older adults, with breathing disorders, or when medicines are combined. Ask about driving and work safety.

What to expect

Follow the exact prescription and ask how much sleep time is needed after taking it. Do not combine sleep medicines with alcohol or other sedatives unless your prescriber has specifically reviewed the combination. Tell your team about snoring, pauses in breathing, opioid use, and all supplements. Agree on follow-up, duration, and any gradual discontinuation plan.

When to contact your provider

Contact your provider for daytime impairment, falls, worsening mood, unusual nighttime behavior, or poor benefit. For zolpidem, zaleplon, or eszopiclone, sleepwalking, sleep-driving, or other activities you do not remember requires stopping that medicine and contacting the prescriber immediately, as FDA advises. These behaviors can cause serious injury. Other sleep medicines also have specific warnings to review.

A QUESTION TO BRING

“Is this medicine for falling asleep or staying asleep, how long is the plan, and can I also receive CBT-I?”

PREPARE FOR YOUR NEXT VISIT

Your questions matter.

Write a few words, reflect quietly, or print this worksheet. Skip any prompt that does not feel helpful.

Your responses are not sent to your care team or saved by this site. Clear them before leaving a shared device. Keep printed or downloaded copies private.

Finish & return to main menu

Common questions

Can I take more if I am still awake?

Do not take extra medicine unless your prescription specifically directs it. Contact your pharmacist or prescriber for a plan. The right timing and required sleep time depend on the exact medicine and formulation.

Can I drive the next morning?

Some sleep medicines can impair driving the next day, even when you feel awake. Follow your product's driving warnings and ask your pharmacist how they apply to your schedule. Arrange another ride if safety is uncertain.

Are nonprescription sleep aids safe to add?

Check with your pharmacist before combining sleep medicines with antihistamines, supplements, or other products. Nonprescription does not mean risk-free. Do not combine sleep medicines with alcohol, and bring a complete medicine list to your review.

When to reach out

Slow or difficult breathing, inability to wake normally, an overdose, injury during sleep behavior, or immediate suicidal danger requires emergency care.

Find immediate support

Sources & further learning

Educational information prepared November 2026. These summaries support learning and do not replace care tailored to you. For medication questions, also read the leaflet supplied with your prescription.