In a crisis? Call or text 988  ·  Opening soon  ·  Join Our Waiting List  ·  Refer a patient

Resources / Medication education

Treating insomnia without controlled substances

Most prescription sleeping pills, the Z-drugs and benzodiazepines, are controlled substances that build tolerance and complicate the very sleep they promise. shrinkMD doesn't prescribe them. Here is the honest menu of what we use instead, and why the strongest treatment for chronic insomnia isn't a pill at all.

Medically reviewed by Shariq Refai, MD, MBA, FAPA, board certified psychiatrist · Published June 7, 2026 · Last reviewed June 8, 2026 · Editorial policy

Two friends sharing herbal tea in a dim calm kitchen, phones face down
Important. This page is general education, not a prescription or medical advice. Medication decisions, including starting, changing, or stopping, belong in a conversation with your own clinician. Never stop a psychiatric medication abruptly without medical guidance.

First, the truth

CBT-I outperforms every medication

Cognitive behavioral therapy for insomnia, a structured program of sleep scheduling, stimulus control, and cognitive work, beats medications for chronic insomnia in head-to-head research, and its benefits persist after treatment ends, which no pill can claim. Every medication below is either a bridge while CBT-I takes hold, or a tool for the subset who need more. If a clinician offers you a sleeping pill without mentioning CBT-I, ask why.

The menu

Non controlled options we actually use

Each with its honest profile:

  • Trazodone, low dose: reliable sedation, no dependence; grogginess possible; the usual first conversation
  • Ramelteon: a melatonin-receptor agonist, FDA approved for sleep-onset insomnia; gentle, zero abuse potential, underwhelming for severe cases
  • Doxepin, very low dose: FDA approved for sleep-maintenance insomnia; an old antidepressant reborn as a precise antihistamine at tiny doses
  • Mirtazapine: when insomnia travels with depression, one medication can address both
  • Hydroxyzine: as-needed sedation for anxiety-driven sleeplessness
  • Melatonin (OTC): modest evidence, best for circadian timing problems like shift work and jet lag; quality varies by brand since it's a supplement

What we avoid

And what we'd rather you knew

Z-drugs (zolpidem, eszopiclone) and benzodiazepines are controlled substances with tolerance, dependence, and next-day impairment risks, and in older adults, fall and memory concerns. Over-the-counter diphenhydramine (most 'PM' products) earns a special mention: tolerance builds as soon as availability allows and the anticholinergic load is a poor long-term bet. Treating the insomnia driver, the anxiety, the depression, the schedule, the alcohol, is the move that actually ends the problem.

Want to go deeper? For full, drug-by-drug reference guides sourced from FDA labeling and clinical guidelines, see PsychiatryRx.org, and for plain-language definitions of any term on this page, see Shrinkopedia. Both are independent, ad-free publications in The Shrink Network, medically reviewed by our founder.

Frequently asked questions

Good questions, clear answers

Why won't shrinkMD prescribe Ambien?

Zolpidem is a controlled substance, and we don't prescribe controlled substances, anywhere, for anyone. The non controlled menu plus CBT-I covers the great majority of insomnia well.

What actually works long term for insomnia?

CBT-I, with the strongest evidence in the field and durable results. Medications manage nights; CBT-I retrains the system that produces them.

Is melatonin worth taking?

For circadian problems, jet lag, shift work, delayed sleep phase, yes, modestly. For garden-variety chronic insomnia its effect is small. Timing and dose matter more than strength.

What's the safest option for older adults?

Usually the behavioral route first, full stop; among medications, low-dose doxepin and ramelteon have the friendlier profiles, while anticholinergic sedatives and Z-drugs carry fall and cognition risks we'd rather avoid.

Can my insomnia just be anxiety in disguise?

Very often, yes, and that's good news: treating the anxiety treats the nights. The evaluation sorts which problem is the driver, which is exactly why we start there.

Is low-dose doxepin really different from over-the-counter antihistamines?

Yes, meaningfully: at very low doses doxepin becomes a highly selective antihistamine with FDA approval specifically for staying asleep, without the tolerance treadmill and anticholinergic burden of diphenhydramine.

How long can I stay on a sleep medication?

As short as possible, as long as necessary, reviewed at every visit. The exit plan is usually CBT-I doing the structural work while medication covers the transition; an open-ended prescription without a plan is how sleep problems calcify.

Do magnesium or other supplements help sleep?

Evidence is modest and mixed; magnesium may help some people with deficiency or restless legs, and it is generally low risk. Tell us everything you take, supplements interact too, and we will give you an honest read rather than a sales pitch.

Medical Disclaimer: This content is provided for general educational and informational purposes only. It is not medical advice, diagnosis, or treatment. Reading this content does not create a doctor-patient relationship with shrinkMD, Dr. Shariq Refai, or any affiliated clinician. Always seek the advice of a qualified healthcare professional regarding questions about a medical or mental health condition. Never disregard professional medical advice or delay seeking care because of something you have read on this website. If you are experiencing a medical or mental health emergency, call 911 or go to the nearest emergency room.

Questions about medication? That's what evaluations are for

Meet a board certified clinician by video, as clinician availability allows, and get answers specific to you. We prescribe responsibly and never prescribe controlled substances.

Join Our Waiting List
Part of The Shrink Network

Independent, ad-free mental health education and wellness properties, founded and medically reviewed by our founder. Care happens here. Learning happens across the network.

If you are in crisis or need urgent assistance: Crisis Text Line: Text HOME to 741741 • National Suicide Prevention Hotline: 9-8-8