The most effective treatment for chronic insomnia is cognitive behavioral therapy for insomnia (CBT-I), a structured, short-term program that retrains sleep habits and the thoughts that keep you awake. Medication can help in the short term or in specific situations, but sleep medicine guidelines recommend CBT-I first because its benefits last after treatment ends and it carries no risk of dependence. Treating the conditions that drive insomnia, such as depression, anxiety, pain, sleep apnea or alcohol use, is part of any good plan.

Article at a Glance

  • CBT-I is the first-line treatment for chronic insomnia and helps most people within four to eight sessions, in person or online.
  • Sleep medications are intended for short-term or occasional use; benzodiazepines and “Z-drugs” can cause tolerance, dependence and rebound insomnia.
  • Alcohol, cannabis and over-the-counter sleep aids make sleep worse over time.
  • Insomnia that lasts three months or more, or that comes with low mood, anxiety or heavy drinking, deserves a clinical evaluation.

What Insomnia Treatment Involves

Insomnia is a learned pattern as much as a medical condition. A stressful trigger starts the sleepless nights; then worry about sleep, extra time in bed, naps, caffeine and late-night screens keep them going long after the trigger has passed. Effective treatment breaks that cycle. Before treatment, a clinician confirms the diagnosis, looks for other sleep disorders such as sleep apnea or restless legs, reviews medications and substances that disrupt sleep, and screens for depression, anxiety and PTSD. Not sure whether what you have is insomnia? Take our 10-question insomnia self-assessment.

Cognitive Behavioral Therapy for Insomnia (CBT-I)

CBT-I is recommended as the initial treatment for chronic insomnia by the American Academy of Sleep Medicine and the American College of Physicians. It is typically delivered in four to eight weekly sessions by a therapist, a sleep specialist, or through a structured digital program, and it combines several components:

  • Sleep restriction: temporarily limiting time in bed to the hours you actually sleep, then expanding it as sleep becomes more solid. This is the most powerful and least intuitive part of CBT-I.
  • Stimulus control: using the bed only for sleep and sex, getting up if you are awake for more than about 20 minutes, and keeping a fixed wake time seven days a week so the bed becomes a cue for sleep rather than frustration.
  • Cognitive work: identifying and testing the thoughts that fuel sleep anxiety (“I will not function tomorrow,” “I need eight hours or I am ruined”).
  • Relaxation training such as progressive muscle relaxation or breathing exercises to lower arousal at bedtime.
  • Sleep hygiene education: caffeine and alcohol timing, light exposure, exercise and the bedroom environment. On its own, sleep hygiene is not an effective treatment for chronic insomnia; it supports the other components.

About 70 to 80 percent of people who complete CBT-I improve, and gains are maintained at follow-up. It works for insomnia that occurs alongside depression, chronic pain, PTSD and substance use disorders, and it can be combined with treatment for those conditions.

Free, Confidential Helpline

Ready to take the next step toward recovery?

Our Recovery Advocates are available around the clock to answer your questions, verify your insurance, and help you find the right level of care — at no cost to you.

Call Us Now

Available 24 hours a day, 7 days a week

Medications Used to Treat Insomnia

Medication can help while CBT-I takes effect, during a short crisis, or when behavioral treatment is not available or has not worked. Guidelines recommend the lowest effective dose for the shortest time, with a plan to taper. Options include:

  • Non-benzodiazepine hypnotics (“Z-drugs”) such as zolpidem, eszopiclone and zaleplon. Effective for falling and staying asleep in the short term; risks include next-day impairment, complex sleep behaviors and dependence with prolonged use.
  • Orexin receptor antagonists such as suvorexant, lemborexant and daridorexant, which reduce wake signaling with a lower risk of dependence than older sedatives.
  • Melatonin receptor agonists such as ramelteon, mainly for trouble falling asleep.
  • Low-dose doxepin, an antidepressant approved for staying asleep.
  • Benzodiazepines such as temazepam. They work quickly but cause tolerance, dependence, withdrawal insomnia and, especially when combined with alcohol or opioids, dangerous sedation. They are not recommended for long-term use.
  • Over-the-counter antihistamines (diphenhydramine, doxylamine) and melatonin supplements have limited evidence, and antihistamines are not recommended for older adults.

If you have a history of substance use, tell your prescriber. Sedative dependence is common and treatable; see our guides to sleeping pill addiction and benzodiazepine addiction.

Treating the Causes of Insomnia

  • Depression and anxiety: insomnia is a core symptom of both and often persists after mood improves, so CBT-I is added to therapy or medication. See depression and anxiety.
  • Alcohol: a drink may bring sleep on faster but fragments the second half of the night and suppresses deep sleep. Insomnia is also one of the longest-lasting alcohol withdrawal symptoms, and untreated insomnia is a leading relapse trigger in early recovery.
  • Cannabis, stimulants and opioids: each disrupts sleep architecture, and stopping them can cause rebound insomnia that needs support.
  • Sleep apnea and restless legs: these mimic insomnia and need their own treatment.
  • Pain, menopause, thyroid disease and medications such as steroids, some antidepressants and decongestants.

Insomnia Treatment in Addiction and Mental Health Programs

At The Recovery Village, sleep is addressed from the first night of medical detox, when withdrawal-related insomnia peaks, through residential and outpatient care. Treatment plans include CBT-I skills, careful medication management that avoids habit-forming sedatives where possible, and treatment of the depression, anxiety or trauma that so often sits underneath sleeplessness. Outpatient and online counseling options are available for people whose insomnia is tied to a mental health condition without substance use.

When to Seek Treatment

See a clinician if you have had trouble sleeping three or more nights a week for three months, if poor sleep is affecting your work, mood or safety, if you are using alcohol, cannabis or sleeping pills most nights to get to sleep, or if insomnia comes with hopelessness or thoughts of not wanting to live. In that last case, call or text 988 or call 911.

Ready to talk? Our admissions team can arrange a confidential assessment with a licensed clinician and explain treatment options for insomnia and any related mental health or substance use condition. Verify your insurance or call any time.

Frequently Asked Questions

What is the best treatment for insomnia?

For chronic insomnia, cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line treatment. Medication is used short term or when CBT-I is unavailable or insufficient.

How long does insomnia treatment take?

CBT-I usually runs four to eight sessions over one to two months, with noticeable improvement by the third or fourth week. Medication works the first night but does not fix the underlying pattern.

Does insomnia go away for good?

Most people who complete CBT-I return to normal sleep and keep the skills to handle future flare-ups. Insomnia tied to another condition improves as that condition is treated.

Is it safe to take sleeping pills every night?

Long-term nightly use of benzodiazepines or Z-drugs is not recommended because of tolerance, dependence and safety risks. Some newer medications are approved for longer use; discuss the plan and an exit strategy with your prescriber.

Does insurance cover insomnia treatment?

CBT-I delivered by a licensed therapist and psychiatric care are generally covered as mental health benefits under federal parity law. Verify your coverage in minutes.