The safest treatment for ongoing insomnia isn’t a pill. It’s a structured therapy called CBT-I, which you can do in person or through an app, and its benefits outlast those of medication.1PubMed Central. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review Sleep medicines themselves differ sharply in risk, from options that barely differ from a dummy pill to ones that can cause dependence, falls, or dangerous night-time behavior.2PubMed. Efficacy and tolerability of pharmacological treatments for insomnia in adults: A systematic review and network meta-analysis
The most familiar choices, drugstore “PM” pills and older prescription sleeping pills, sit near the risky end. Some lesser-known options, including melatonin, orexin blockers, low-dose doxepin, and ramelteon, sit near the safe end. Your age, the other things you take, and whether you drink alcohol all shift where you land.
The Safest Option Is a Therapy, Not a Pill
Cognitive behavioral therapy for insomnia, or CBT-I, is a structured program, usually 4 to 8 sessions, that changes the habits and thoughts that keep you awake. Clinical guidelines recommend it as the first treatment for chronic insomnia because it is safe and effective.3PubMed. Network meta-analysis comparing the effectiveness of a prescription digital therapeutic for chronic insomnia to medications and face-to-face cognitive behavioral therapy in adults Right after treatment, people who did CBT-I fell asleep and stayed asleep better than people taking sleeping pills.4PubMed. Comparative efficacy and acceptability of psychotherapies, pharmacotherapies, and their combination for the treatment of adult insomnia: A systematic review and network meta-analysis Pills can work faster in the first weeks.1PubMed Central. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review But six months to two years later, CBT-I still comes out ahead, because its effect lasts while a pill’s fades.1PubMed Central. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review
The program asks for real participation. You keep a sleep diary of bedtimes, wake times, and time spent awake. You limit your time in bed to roughly the hours you actually sleep, then widen it as your sleep improves. If you can’t sleep, you get up and return only when sleepy, so the bed comes to mean sleep. You keep the same wake time every day, weekends included, and you work on racing thoughts and worry about not sleeping.
The first weeks can be rough. Sleep can feel worse briefly when your time in bed is cut back, and daytime tiredness during this phase is common and usually passes. Real gains usually show up after a few weeks.
You don’t need a therapist down the street. An FDA-cleared prescription app delivers CBT-I digitally.5PubMed. Profile of Somryst Prescription Digital Therapeutic for Chronic Insomnia: Overview of Safety and Efficacy Digital CBT-I reduced insomnia symptoms more than any sleep medication it was compared with.3PubMed. Network meta-analysis comparing the effectiveness of a prescription digital therapeutic for chronic insomnia to medications and face-to-face cognitive behavioral therapy in adults
To get started, ask your doctor for a referral to a behavioral sleep medicine provider, and ask about a prescription digital CBT-I program. If your doctor agrees, you can combine it with a short course of medication.
Melatonin and Drugstore Sleep Aids
Melatonin helps people fall asleep, but the effect is modest for most.6PubMed Central. Chronic Administration of Melatonin: Physiological and Clinical Considerations Nobody knows the best dose, and the amounts people take vary widely.6PubMed Central. Chronic Administration of Melatonin: Physiological and Clinical Considerations Its short-term side effects are minor and stop when you stop taking it, and long-term use has generally shown no more harm than a dummy pill.6PubMed Central. Chronic Administration of Melatonin: Physiological and Clinical Considerations
If you try it, start with a low dose taken shortly before bedtime. Supplement strength can differ from what the label says, so choose a reputable brand. Melatonin works best for trouble falling asleep, not for waking in the night.
Antihistamine sleep aids are riskier than their spot on the shelf suggests. Most drugstore sleep aids contain diphenhydramine or doxylamine, the sedating antihistamines in products sold as “PM” or “nighttime” formulas.7PubMed Central. Sleep Health and Appropriate Use of OTC Sleep Aids in Older Adults-Recommendations of a Gerontological Society of America Workgroup They are meant only for occasional sleeplessness, not chronic use, and their safety and benefit haven’t been well established.7PubMed Central. Sleep Health and Appropriate Use of OTC Sleep Aids in Older Adults-Recommendations of a Gerontological Society of America Workgroup
Diphenhydramine has been linked to memory and thinking problems in older adults without dementia.8PubMed. Sedative-hypnotic use of diphenhydramine in a rural, older adult, community-based cohort: effects on cognition Older hospital patients given it had about 1.7 times the risk of delirium, with more problems at higher doses.9Pediatrics. Cognitive and Other Adverse Effects of Diphenhydramine Use in Hospitalized Older Patients Taken at bedtime, it can still impair driving control the next day.10PubMed. Next-day residual effects of gabapentin, diphenhydramine, and triazolam on simulated driving performance in healthy volunteers: a phase 3, randomized, double-blind, placebo-controlled, crossover trial
Check the active ingredients box for diphenhydramine or doxylamine. Many “PM” pain relievers and cold medicines contain the same drug, and taking two such products together doubles the dose without you realizing.
Herbal supplements like valerian and kava are not well studied as sleep aids. Both can add to the drowsiness from sedating prescription drugs,11PubMed Central. Herbal and Natural Supplements for Improving Sleep: A Literature Review so tell your doctor or pharmacist before combining them with any sleep medicine.
The Lower-Risk Prescription Options
Orexin blockers (suvorexant/Belsomra, lemborexant/Dayvigo, daridorexant/Quviviq) work by switching off a brain signal that keeps you awake, rather than sedating the whole brain. They help people fall asleep and stay asleep and are generally well tolerated.2PubMed. Efficacy and tolerability of pharmacological treatments for insomnia in adults: A systematic review and network meta-analysis People quit them because of side effects no more often than they quit a dummy pill, and serious side effects weren’t more common.12NeurologyLive. Meta-Analysis Reveals Safety Concerns With FDA-Approved Dual Orexin Receptor Antagonists for Insomnia
They do bring more daytime sleepiness, unusual dreams, tiredness, and dry mouth.13PubMed. The efficacy and safety of dual orexin receptor antagonists in primary insomnia: A systematic review and network meta-analysis Some people report a brief inability to move while falling asleep or waking.14PubMed. Safety of dual orexin receptor antagonists: a real-world pharmacovigilance study Lemborexant didn’t worsen breathing at night in people with mild sleep apnea.15PubMed Central. Respiratory safety of lemborexant in healthy adult and elderly subjects with mild obstructive sleep apnea: A randomized, double‐blind, placebo‐controlled, crossover study
Low-dose doxepin and ramelteon round out the group. Doxepin, an old antidepressant prescribed at a low dose for sleep, caused fewer side effects than many other sleep drugs, including less headache and drowsiness.16PubMed Central. Adverse events of pharmacological interventions for insomnia disorder in adults: a systematic review and network meta-analysis Ramelteon (Rozerem) acts like melatonin and showed no potential for misuse, even at high doses.17PubMed. Ramelteon: a novel hypnotic lacking abuse liability and sedative adverse effects Six months of nightly use caused no morning grogginess, no withdrawal, and no rebound sleeplessness after stopping.18PubMed Central. Efficacy and Safety of 6-Month Nightly Ramelteon Administration in Adults with Chronic Primary Insomnia The trade-off is that ramelteon was less effective over the long term than eszopiclone.19PubMed. Comparative effects of pharmacological interventions for the acute and long-term management of insomnia disorder in adults: a systematic review and network meta-analysis
The right drug depends on your pattern. Ramelteon mainly helps with falling asleep, while orexin blockers and low-dose doxepin help more with staying asleep. Tell your doctor which part of the night is the problem.
Trazodone is an antidepressant widely prescribed for sleep though not approved for it. If your doctor suggests it, ask why it was chosen and what side effects to watch for.
Before starting any of these, ask a few questions: How long should I take this? Is it safe with my other medicines? What should I do if I feel groggy in the morning? Are there cost or insurance limits for newer drugs?
Z-Drugs Like Ambien Carry Unusual Risks
Z-drugs (zolpidem/Ambien, zopiclone, eszopiclone/Lunesta, zaleplon) help people fall asleep and stay asleep, but with higher safety risk than the newer drugs.2PubMed. Efficacy and tolerability of pharmacological treatments for insomnia in adults: A systematic review and network meta-analysis Zolpidem led to about twice as many people stopping because of side effects as a dummy pill did.19PubMed. Comparative effects of pharmacological interventions for the acute and long-term management of insomnia disorder in adults: a systematic review and network meta-analysis
The most unusual risk is complex sleep behavior. About 3 in 100 people taking zolpidem or zopiclone reported sleepwalking or doing things they didn’t remember.20PubMed Central. A comparison of complex sleep behaviors with two short-acting Z-hypnosedative drugs in nonpsychotic patients Such episodes have led to falls, burns, car crashes, and deaths.21PubMed. Association of eszopiclone, zaleplon, or zolpidem with complex sleep behaviors resulting in serious injuries, including death
Warning signs include finding food eaten or objects moved overnight, texts or calls you don’t remember making, or reports from others that you were up and talking. If you discover you did anything while not fully awake, stop the drug and call your doctor.
Older adults face another problem. In that group, Z-drugs raised the odds of fractures by about 60%.22PubMed. Z-drugs and risk for falls and fractures in older adults-a systematic review and meta-analysis Zolpidem roughly doubled the odds of injury.22PubMed. Z-drugs and risk for falls and fractures in older adults-a systematic review and meta-analysis
If you do take one, take it right before bed with a full night ahead. Never take more than prescribed, and don’t combine it with alcohol or other sedatives.
Benzodiazepines Rank Last
Benzodiazepines include drugs like temazepam, triazolam, and lorazepam. They can cause both physical and psychological dependence.23PubMed Central. Benzodiazepines: Uses, Dangers, and Clinical Considerations An estimated 20 to 50% of people experience some withdrawal when trying to stop.24PubMed Central. Long-term use of benzodiazepines in chronic insomnia: a European perspective Some withdrawal symptoms resemble alcohol withdrawal and can be life-threatening.23PubMed Central. Benzodiazepines: Uses, Dangers, and Clinical Considerations
Long-term users also show moderate to large declines across memory and thinking.24PubMed Central. Long-term use of benzodiazepines in chronic insomnia: a European perspective They have a higher risk of car crashes too.24PubMed Central. Long-term use of benzodiazepines in chronic insomnia: a European perspective Doctors still prescribe them because they work quickly in the short term, and brief use may be reasonable in some situations.
If you already take one nightly, don’t stop suddenly. Ask your doctor about a gradual taper plan, and consider CBT-I during the taper to ease the transition.
Can You Drive the Next Morning
Benzodiazepines impair driving the morning after bedtime use, sometimes into the afternoon.25PubMed. Residual effects of sleep medication on driving ability Zopiclone impairs driving similarly.25PubMed. Residual effects of sleep medication on driving ability Zolpidem at bedtime doesn’t usually impair morning driving, but taking it in the middle of the night does.25PubMed. Residual effects of sleep medication on driving ability
Lower doses of lemborexant and suvorexant caused less impairment than zopiclone.26PubMed. Residual effects of medications for sleep disorders on driving performance: A systematic review and network meta-analysis of randomized controlled trials: NMA driving and hypnotics Ramelteon 8 mg and high-dose daridorexant still impaired driving after a single dose.26PubMed. Residual effects of medications for sleep disorders on driving performance: A systematic review and network meta-analysis of randomized controlled trials: NMA driving and hypnotics Effects tend to lessen after several nights of use.26PubMed. Residual effects of medications for sleep disorders on driving performance: A systematic review and network meta-analysis of randomized controlled trials: NMA driving and hypnotics
Don’t drive the first morning on a new drug. Feeling alert doesn’t guarantee you are unimpaired, so allow a full night between your dose and driving.
Avoid extra doses after waking at night unless the drug is prescribed for that. If you wake often, ask about drugs designed for middle-of-the-night use, and follow the label on how many hours must pass before you drive.
Never Mix Sleep Aids With Alcohol
Most prescription sleep aids shouldn’t be used with alcohol because the combination can cause extreme sedation and slowed breathing.27PubMed Central. Use of Alcohol as a Sleep Aid, Unhealthy Drinking Behaviors and Sleeping Pill Use Among Women Veterans Combining alcohol with benzodiazepines can lead to fatal overdose.27PubMed Central. Use of Alcohol as a Sleep Aid, Unhealthy Drinking Behaviors and Sleeping Pill Use Among Women Veterans People who use alcohol to sleep are also more likely to use sleep medicine.27PubMed Central. Use of Alcohol as a Sleep Aid, Unhealthy Drinking Behaviors and Sleeping Pill Use Among Women Veterans
In practice, skip the sleep aid on nights you drink, and read warning labels for alcohol warnings. Tell your doctor about your typical drinking so they can choose accordingly.
How to Stop a Sleep Aid
After stopping a sleep aid, sleep can get worse than it was before treatment for a night or two.28PubMed. Rebound insomnia: its determinants and significance After suddenly stopping triazolam, people took nearly an hour longer to fall asleep and slept 1.4 hours less.29PubMed. Effect of gradual withdrawal on the rebound sleep disorder after discontinuation of triazolam Tapering the dose reduced or eliminated these effects.29PubMed. Effect of gradual withdrawal on the rebound sleep disorder after discontinuation of triazolam
Work with your doctor on a schedule. Expect a few rough nights and don’t restart the drug because of them. CBT-I techniques help during the taper.
Safety for Older Adults, Pregnancy, and Children
The Beers Criteria, a widely used list of medicines best avoided in older adults, helps doctors spot risky prescriptions.30PubMed Central. American Geriatrics Society 2023 updated AGS Beers Criteria® for potentially inappropriate medication use in older adults Older adults face higher risks of daytime sedation, confusion, and falls from drugstore sleep aids.7PubMed Central. Sleep Health and Appropriate Use of OTC Sleep Aids in Older Adults-Recommendations of a Gerontological Society of America Workgroup
If you help care for an older parent, look for diphenhydramine or doxylamine in their cabinet. Bring all their pills to a doctor review, and ask whether the Beers list applies to any of them.
In pregnancy, non-drug approaches are likely safest, though data on medicine risks are limited.31PubMed Central. Sleep Pharmacotherapy for Common Sleep Disorders in Pregnancy and Lactation No sleep medicines are FDA-approved for children.32Current Psychopharmacology. Management of Adverse Effects of Sleep Medications in Pediatrics Discuss any sleep aid for a child with a pediatrician first.
Routine and schedule changes come first for children. Never give adult sleep medicines to a child.

