Cognitive behavioral therapy for insomnia, known as CBT-I, is the recommended first-line treatment for chronic insomnia in adults, outperforming sleep medications in most head-to-head comparisons and maintaining its benefits long after treatment ends. Medications still play a role, especially for short-term relief or when therapy alone falls short, but the landscape of available drugs has shifted considerably in recent years. Lifestyle changes like exercise and consistent sleep schedules support both approaches, though their effects on their own are more modest than most people expect.
Why Therapy Comes Before Pills
The idea that a behavioral treatment beats medication for a sleep problem surprises many people, but the evidence behind it is strong and consistent. In a randomized controlled trial directly comparing CBT-I to pharmacotherapy, CBT-I produced the greatest improvements in how quickly people fell asleep and how efficiently they slept. It also created the most “normal sleepers” after treatment. Combining the two approaches offered no additional benefit over CBT-I alone, while the medication group saw only moderate improvements that faded once the drugs were discontinued.1JAMA Internal Medicine. Cognitive Behavior Therapy and Pharmacotherapy for Insomnia: A Randomized Controlled Trial and Direct Comparison
A separate trial in older adults with chronic insomnia found a similar pattern. People receiving CBT-I improved their sleep efficiency from about 81% to 90% over six months, while those taking zopiclone (a common prescription sleep aid) stayed essentially flat. The CBT-I group also spent more time in deep sleep stages and less time lying awake during the night. On most measures, zopiclone performed no better than a placebo.2PubMed. Cognitive behavioral therapy vs zopiclone for treatment of chronic primary insomnia in older adults: a randomized controlled trial
The reason therapy works so well has to do with what insomnia actually is at a biological level. Researchers now understand chronic insomnia less as a failure to sleep and more as a state of persistent hyperarousal. People with insomnia show increased high-frequency brain activity, elevated heart rate, higher sympathetic nervous system activation, and abnormal hormone secretion, and these patterns persist around the clock, not just at night.3PubMed. Hyperarousal and insomnia: state of the science A sleeping pill can override that arousal temporarily, but it does not address the underlying wiring. CBT-I does, by retraining the habits, thought patterns, and physiological reflexes that keep the arousal going.4Sleep Medicine Clinics. Chronic Insomnia and the Stress System
What CBT-I Actually Involves
CBT-I is not a single technique but a structured program typically delivered over four to eight sessions. The two most powerful components are sleep restriction and stimulus control. Sleep restriction sounds counterintuitive: you temporarily limit the time you spend in bed to match the amount of sleep you are actually getting, which builds up sleep pressure and consolidates fragmented sleep into a solid block. Preliminary research on the physiology behind this found that sleep restriction quickly decreased the time people spent awake in bed, improved sleep efficiency, and appeared to lower cortisol levels and reduce markers of the hyperarousal that characterizes insomnia.5PubMed Central. A preliminary evaluation of the physiological mechanisms of action for sleep restriction therapy
Stimulus control is the other behavioral anchor. The idea is to break the association between lying in bed and being awake. You go to bed only when sleepy, get up if you have not fallen asleep within roughly 15 to 20 minutes, and reserve the bed exclusively for sleep and sex. Over time, the bed becomes a cue for drowsiness rather than frustration. The cognitive component addresses the racing thoughts and catastrophic beliefs about sleep that keep the arousal cycle spinning (“If I don’t sleep tonight, tomorrow will be a disaster”). Together, these strategies dismantle the self-reinforcing loop of poor sleep, anxiety about poor sleep, and worsening poor sleep.
Getting CBT-I When You Cannot See a Specialist
One of the biggest practical barriers to CBT-I is access. There are far fewer trained behavioral sleep medicine providers than there are people with insomnia. This has driven a wave of research into alternative delivery formats, and the results are encouraging. A large network meta-analysis compared multiple delivery settings for CBT-I and found that in-person individual therapy, telehealth, and group-delivered CBT-I all produced large effect sizes. Digital formats also performed well: smartphone apps and unguided internet-based programs showed large effects, while guided internet-based and unguided bibliotherapy (workbooks) showed medium effects.6Scientific Reports. Comparative efficacy of onsite, digital, and other settings for cognitive behavioral therapy for insomnia: a systematic review and network meta-analysis
In practical terms, this means that if you cannot get an appointment with a sleep psychologist, a well-designed app or a structured workbook can still deliver meaningful improvement. The researchers did note that synchronous formats, where you interact with a therapist in real time, had the strongest evidence base and should be the first choice when available. But digital self-help is a genuine alternative, not a consolation prize. One study of a fully automated digital CBT-I program found that people who used it had roughly $2,000 lower total healthcare costs per year compared to matched controls, a 42% relative reduction, suggesting that effective insomnia treatment has ripple effects on overall health spending.7PubMed Central. Cost Savings Associated With Fully Automated Digital Cognitive Behavioral Therapy for Insomnia Disorder (SleepioRx): A Matched Control Study of US Patients
When Medications Make Sense
None of this means sleep medications are useless. For acute insomnia triggered by a stressful event, jet lag, or a short-term medical situation, a brief course of medication can provide relief while the underlying cause resolves. Medications also play a role when CBT-I is not available, when someone cannot adhere to behavioral strategies because of another condition, or when insomnia is severe enough that the person needs sleep tonight before therapy can take hold over weeks.
The older classes of sleep drugs include benzodiazepines (like temazepam and triazolam) and the so-called Z-drugs (zolpidem, zaleplon, eszopiclone). Both work by enhancing the activity of GABA, the brain’s main inhibitory neurotransmitter, which broadly dampens neural activity. They are effective at knocking you out, but they come with well-documented downsides. Tolerance builds quickly, and dependence rates are high: a study of chronic users found dependence in about 77% of benzodiazepine users and about 69% of Z-drug users, with no statistically significant difference between the two classes.8PubMed Central. Dependence on hypnotics: a comparative study between chronic users of benzodiazepines and Z-drugs For older adults, the concerns are even more pointed: a systematic review of Z-drug use in elderly patients recommended discontinuing them altogether, primarily because of the high risk of falls and fractures.9PubMed Central. Efficacy and safety of Z-substances in the management of insomnia in older adults: a systematic review for the development of recommendations to reduce potentially inappropriate prescribing
Getting off these drugs after long-term use is possible but often rough. A structured approach combining CBT-I with a supervised tapering schedule has shown promise. In one study, four of five long-term hypnotic users successfully discontinued their medication within six to eight weeks. Sleep quality dipped during the withdrawal phase, with sleep efficiency dropping by about 9 percentage points, but by the three-month follow-up it had returned to or exceeded baseline levels.10Behavior Therapy. Cognitive behavior therapy to facilitate benzodiazepine discontinuation among hypnotic-dependent patients with insomnia
Newer Drug Classes With Fewer Risks
The past decade has brought several medications that work through different brain pathways and carry lower dependency risks. The most notable new class is the dual orexin receptor antagonists, or DORAs, which include suvorexant, lemborexant, and daridorexant. Rather than broadly sedating the brain the way GABA drugs do, DORAs block orexin, a neurotransmitter that promotes wakefulness. The result is something closer to allowing sleep to happen naturally rather than forcing it. These drugs are not classified the same way as benzodiazepines in terms of abuse potential, though they are still controlled substances.
Trazodone, an older antidepressant, has become one of the most widely prescribed drugs for insomnia despite never having been formally approved for that purpose. A systematic review found adequate evidence supporting its efficacy and general safety at low doses for both primary insomnia and insomnia occurring alongside other conditions like depression and dementia. Side effects are dose-dependent, with drowsiness being the most common.11PubMed Central. Trazodone for Insomnia: A Systematic Review
Low-dose doxepin takes a more targeted approach. At very low doses, doxepin acts almost exclusively as a histamine-receptor blocker, promoting sleep by quieting the histamine signaling that helps keep you awake during the day. It is the only tricyclic antidepressant that has been evaluated in well-designed placebo-controlled trials specifically for insomnia in both younger and older adults, and it is not classified as a controlled substance, which can be an advantage for people with a history of substance use.12PubMed Central. Therapeutic rationale for low dose doxepin in insomnia patients
Ramelteon works through yet another pathway. It is a selective melatonin receptor agonist, meaning it mimics the hormone your brain uses to signal that nighttime has arrived. It targets sleep-onset difficulty specifically and has no abuse liability, so it is the only FDA-approved sleep medication that is not a controlled substance at all. It works best for people whose main problem is falling asleep, rather than staying asleep.13PubMed Central. A review of ramelteon in the treatment of sleep disorders
Light Therapy and Circadian Timing
Some insomnia patterns are driven less by anxiety or hyperarousal and more by a circadian clock that has drifted out of alignment with the desired sleep schedule. If you consistently wake up too early and cannot fall back asleep, your internal clock may be running ahead of schedule. If you cannot fall asleep until very late, it may be running behind. Bright light exposure, timed correctly, can shift that clock.
In older adults with sleep-maintenance insomnia, timed bright light exposure reduced the amount of time spent awake during the night by about an hour and improved sleep efficiency from roughly 78% to 90%, without changing the total time spent in bed. The additional sleep came in the form of deeper and REM stages.14PubMed. Alleviation of sleep maintenance insomnia with timed exposure to bright light For people with early-morning awakening, even two evenings of bright-light exposure produced a two-hour delay in their circadian rhythms and improved sleep measures for up to a month.15SLEEP. The Treatment of Early-Morning Awakening Insomnia With 2 Evenings of Bright Light
Clinicians can also use scheduled dim light, blue-blocking glasses in the evening, and properly timed melatonin as circadian interventions alongside CBT-I. The specific timing matters: morning light helps people who fall asleep too late, while evening light helps people who wake too early. Getting the timing wrong can worsen the misalignment.16PubMed Central. Circadian Interventions as Adjunctive Therapies to Cognitive-Behavioral Therapy for Insomnia
Exercise and Sleep Hygiene Have Real Limits
You have probably heard the standard sleep hygiene advice: keep a consistent wake time, limit caffeine after noon, avoid screens before bed, keep the bedroom cool and dark. These habits are sensible and worth maintaining, but on their own they are not an effective treatment for chronic insomnia. The American Academy of Sleep Medicine explicitly recommends against using sleep hygiene as a standalone therapy.17PubMed Central. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline A meta-analysis found that sleep hygiene education produced small to medium improvements on its own, but was significantly less effective than CBT-I, with the gap averaging about 8 percentage points in sleep efficiency.18Family Practice. Sleep hygiene education as a treatment of insomnia: a systematic review and meta-analysis
Exercise is more promising. A study using detailed sleep recordings found that exercise increased the power of slow-wave (deep) sleep oscillations in the first half of the night, making that deep sleep more stable and consolidated.19Scientific Reports. Exercise improves the quality of slow-wave sleep by increasing slow-wave stability Regular physical activity is consistently linked to better sleep quality in observational research, and clinical guidelines include it as a supportive measure. But like sleep hygiene, exercise alone is unlikely to resolve chronic insomnia, especially if the underlying problem is cognitive hyperarousal or a conditioned anxiety response to bedtime. Think of these lifestyle factors as the foundation that other treatments build on, not as treatments in themselves.
When Insomnia Overlaps with Depression
Insomnia and depression travel together so often that untangling which causes which has occupied researchers for years. The relationship is bidirectional: poor sleep fuels depression, and depression disrupts sleep. For a long time, the assumption was that treating the depression would fix the insomnia as a side effect. The evidence now points in the opposite direction as well: treating the insomnia directly can improve the depression.
A meta-analysis of CBT-I in people with major depressive disorder found that treating the insomnia roughly doubled the odds of a depression response compared to control conditions. At a median follow-up of eight weeks, about 32% of people receiving CBT-I showed a meaningful depression response, compared to 17% in control groups. The improvements in mood went beyond what could be explained by better sleep alone.20PubMed. Cognitive behavioral therapy for insomnia to treat major depressive disorder with comorbid insomnia: A systematic review and meta-analysis Another meta-analysis found moderate to large effect sizes for depression improvement when insomnia was treated directly, whether through CBT-I or other insomnia-specific interventions.21PubMed. Effect of insomnia treatments on depression: A systematic review and meta-analysis
One nuance: a randomized trial that combined CBT-I with depression-focused therapy found that the combined treatment improved insomnia severity beyond a control condition, but did not outperform the control on depression measures specifically.22PubMed Central. Psychological Treatment of Comorbid Insomnia and Depression: A Double-Blind Randomized Placebo-Controlled Trial This suggests that while fixing insomnia helps mood overall, the relationship is not perfectly simple, and depression may still need its own targeted treatment. If you have both conditions, treating both simultaneously is likely the best approach.
Insomnia Alongside Sleep Apnea
Between roughly 40% and 58% of people with obstructive sleep apnea also have insomnia symptoms, and between 29% and 67% of people presenting with insomnia turn out to have at least mild sleep apnea on testing. When the two conditions coexist, treating only one tends to leave the other untreated. Research on this overlap has found that combination therapy addressing both problems at once, typically CBT-I plus CPAP or another apnea treatment, produces greater improvements in insomnia than either treatment alone.23PubMed Central. Comorbid Insomnia and Obstructive Sleep Apnea: Challenges for Clinical Practice and Research If you have been diagnosed with insomnia but have never been evaluated for apnea, especially if you snore, wake with headaches, or feel unrefreshed despite adequate hours in bed, that evaluation is worth having.
Emerging Approaches Still Being Studied
A few newer interventions sit at the boundary between experimental and clinical use. Repetitive transcranial magnetic stimulation (rTMS), a noninvasive technique that uses magnetic pulses to modulate brain activity, has shown promising results for insomnia in several trials. A meta-analysis found that compared to sham stimulation, rTMS was associated with substantial improvements in sleep quality scores, and it appeared to increase slow-wave and REM sleep.24PubMed. The effect of repetitive transcranial magnetic stimulation for insomnia: a systematic review and meta-analysis A follow-up study on people with treatment-resistant insomnia found that two consecutive courses of rTMS still showed benefits at three months.25PubMed. The long-term effect of repetitive transcranial magnetic stimulation in the treatment of intractable insomnia The technique is not yet widely available for insomnia and most of the research comes from relatively small trials, but it represents a genuinely different mechanism of action from anything else on this list.
Mindfulness-based therapy for insomnia (MBTI) takes a different tack, combining the behavioral components of CBT-I (sleep restriction, stimulus control) with mindfulness meditation practices designed to reduce the emotional reactivity that keeps people awake. The approach specifically targets the distress and frustration that build up around the experience of not sleeping, which for many people becomes as disabling as the sleep loss itself. MBTI is typically delivered as a group program and is intended for people whose insomnia has a strong psychophysiological component, meaning the mind and body are feeding each other’s arousal in a loop that standard sleep hygiene cannot break.