Can't Sleep? When Insomnia Needs Medication, Not Just Better Habits
Sleep hygiene advice only goes so far. Here's when insomnia actually needs medication and what options are worth considering.
Dr. Tae Y. Kim, DO
May 8, 2026 ยท 5 min read
You've heard it all. No screens before bed. Keep the room cool. No caffeine after 2pm. Consistent sleep schedule. Melatonin. Chamomile tea. A weighted blanket. Meditation apps.
And you're still staring at the ceiling at 2am.
Sleep hygiene is real. It matters. But the internet โ and frankly, a lot of doctors โ treat it like it's the only answer. For some people, sleep hygiene adjustments are enough. For others, they're doing everything right and still can't sleep. At some point, the problem isn't behavioral. It's neurochemical.
The Limits of Sleep Hygiene
Cognitive behavioral therapy for insomnia (CBT-I) is the gold standard first-line treatment for chronic insomnia. It works for many people. The evidence is strong. If you haven't tried structured CBT-I with a trained therapist, that genuinely should come first.
But here's the part that gets left out of the wellness articles: CBT-I has about a 60-70% response rate. That means roughly a third of people who complete it still have significant insomnia afterward. And access to trained CBT-I therapists is limited โ many patients can't find one, can't afford one, or are dealing with comorbid conditions that complicate a purely behavioral approach.
When you've done the behavioral work and you're still not sleeping, that's not a personal failure. That's a signal that something else is going on โ often anxiety, depression, pain, or a primary sleep disorder โ and medication may be a legitimate and necessary part of treatment.
When Medication Makes Sense
Not every bad night warrants a prescription. But chronic insomnia โ difficulty falling asleep, staying asleep, or waking too early, at least three nights per week for three months or more โ is a medical condition. Chronic sleep deprivation affects everything: immune function, cardiovascular risk, metabolic health, mental health, cognitive performance, pain perception.
Medication is reasonable when:
- CBT-I has been tried (or is inaccessible) and insomnia persists
- Insomnia is significantly impairing daytime functioning
- An underlying condition (anxiety, depression, chronic pain) is driving the insomnia and needs pharmacologic treatment anyway
- Short-term medication is needed to break a cycle of sleep deprivation that's making everything worse
Medication Options: An Honest Rundown
Trazodone
The most commonly prescribed medication for insomnia in the US, and it's technically an antidepressant. At low doses (25-100mg), trazodone is sedating without the dependence risk of traditional sleep aids. It's generic, cheap, and well-tolerated by most people. Side effects include morning grogginess (especially at higher doses), dry mouth, and rarely priapism in men.
Trazodone is a good option for patients who also have underlying depression or anxiety, and for those who want to avoid controlled substances entirely.
Hydroxyzine
An antihistamine that's also anxiolytic. Hydroxyzine (Vistaril) at 25-50mg can help with sleep onset, particularly when anxiety is the driver. No dependence potential. The main side effect is morning sedation, which usually improves after a few days of consistent use.
Gabapentin
Off-label but increasingly used for insomnia, especially when pain or anxiety is a contributing factor. Gabapentin enhances slow-wave sleep โ the deep, restorative phase โ which is something most sleep medications don't do. Doses for sleep typically range from 100-600mg at bedtime.
Melatonin and Ramelteon
Melatonin is available over the counter, and ramelteon (Rozerem) is its prescription cousin. Both work on melatonin receptors to promote sleep onset. They're most effective for circadian rhythm issues โ people whose internal clock is shifted โ and less effective for general insomnia. No dependence potential. Generally well tolerated but modestly effective for most people.
Suvorexant (Belsomra) and Lemborexant (Dayvigo)
Orexin receptor antagonists โ a newer class that blocks the wake-promoting orexin system rather than sedating the brain. These are less likely to cause the cognitive impairment and next-day grogginess associated with traditional hypnotics. They're also less likely to produce dependence. The downside is cost โ they're brand-name medications with significant copays.
Benzodiazepines and Z-Drugs
Temazepam, zolpidem (Ambien), eszopiclone (Lunesta). These work. They're also the medications most likely to produce dependence, tolerance, rebound insomnia, and concerning behaviors (sleepwalking, sleep-eating, sleep-driving โ yes, that's real). They have a role in short-term or intermittent use but are generally poor long-term strategies.
What About Over-the-Counter Options?
Diphenhydramine (Benadryl) and doxylamine (Unisom) are sedating antihistamines available without a prescription. They work initially, but tolerance develops within 1-2 weeks. They also have anticholinergic effects โ dry mouth, constipation, urinary retention, and in older adults, cognitive impairment and increased delirium risk. They're not a good long-term solution.
The Conversation Nobody Has
Here's what actually happens in most primary care offices: the patient says "I can't sleep." The doctor says "try melatonin and good sleep hygiene." The patient comes back still not sleeping. The doctor writes for zolpidem or trazodone without much further evaluation. Maybe it works. Maybe it doesn't. Either way, nobody digs into what's actually causing the insomnia.
Insomnia is usually a symptom, not a standalone diagnosis. The most common drivers are:
- Anxiety and depression โ either can profoundly disrupt sleep architecture
- Chronic pain โ pain fragments sleep and reduces deep sleep stages
- Sleep apnea โ wildly underdiagnosed, especially in women and people who aren't overweight
- Restless legs syndrome โ underrecognized and undertreated
- Medications โ stimulants, certain antidepressants, corticosteroids, decongestants
- Substance use โ alcohol disrupts sleep even though it initially sedates; cannabis can impair REM sleep
Treating the insomnia without addressing the underlying cause is like putting a bandaid on a wound that needs stitches. It might cover the problem temporarily, but it's not a fix.
Building a Real Sleep Plan
The best approach to chronic insomnia usually involves multiple components:
- Identify and treat underlying causes โ screen for depression, anxiety, sleep apnea, pain conditions
- Implement CBT-I principles โ even if formal CBT-I isn't accessible, the core techniques (stimulus control, sleep restriction, cognitive restructuring) can be guided by a knowledgeable prescriber
- Use medication strategically โ not as a permanent crutch, but as a tool to break the cycle while other interventions take hold
- Set expectations โ the goal is consistent, adequate sleep most nights, not pharmaceutical unconsciousness every night
When to Seek Help
If you've been fighting insomnia for more than a few weeks, and lifestyle changes aren't cutting it, talk to a prescriber who's willing to actually investigate what's going on โ not just hand you a prescription or tell you to try harder with the sleep hygiene.
At CORAL, we approach insomnia as a medical problem that deserves a real workup and a thoughtful treatment plan. If you're in Florida and you're tired of being tired, [schedule a telehealth visit](/start) and let's figure out what's actually going on.
Ready to take the next step?
Talk to a real doctor. On your schedule.
Dr. Kim reviews every intake personally. Florida residents can get started online in minutes โ no waiting room, no long drives.
Start Mental Health Intake โFlorida residents only ยท HIPAA-secure ยท Dr. Kim reviews every case
What do you think?
Be the first to share your thoughts.
Health tips from Dr. Kim
No spam, just real advice โ straight from a physician you can trust.