NP Blog / Mental Health in Primary Care / Insomnia: Why CBT-I Comes First, Which Drugs When, and the Older-Adult Rules
Insomnia: Why CBT-I Comes First, Which Drugs When, and the Older-Adult Rules

Insomnia: Why CBT-I Comes First, Which Drugs When, and the Older-Adult Rules

By Ala Alrashaeideh, Founder, NPPace·9 min read·Updated 2026-11-02
The short answer

For chronic insomnia (trouble falling or staying asleep at least 3 nights a week for at least 3 months with daytime impairment), CBT-I is the first-line treatment for every adult, a strong recommendation from both ACP 2016 and AASM 2021. Medication is a short-term adjunct chosen by shared decision when CBT-I alone is not enough, matched to the problem: the AASM 2017 guideline suggests drugs such as zolpidem, eszopiclone, ramelteon or zaleplon for sleep onset and suvorexant or low-dose doxepin for maintenance, and suggests against trazodone, diphenhydramine and melatonin. In older adults, avoid benzodiazepines, Z-drugs and sedating antihistamines (Beers 2023); low-dose doxepin 6 mg or less is acceptable.

Chronic insomnia is treated with cognitive behavioral therapy for insomnia (CBT-I) first, for every adult, and medication is a second, usually short-term step. The American College of Physicians (2016) gives CBT-I a strong recommendation as initial treatment, and the American Academy of Sleep Medicine behavioral guideline (2021) does the same. When a drug is added, the AASM 2017 pharmacologic guideline matches the agent to sleep onset or sleep maintenance problems, and the Beers Criteria rule out most hypnotics for adults 65 and older.

Assessment

Defining chronic insomnia

ICSD-3 and DSM-5 define chronic insomnia disorder by:

  • Difficulty initiating sleep, maintaining sleep, or early morning awakening (in children, resisting bedtime or needing a parent to sleep).
  • Daytime consequences: fatigue, poor attention or memory, mood disturbance, errors, reduced performance.
  • Adequate opportunity and circumstances for sleep.
  • Occurring at least 3 nights per week for at least 3 months.

Symptoms of shorter duration are short-term insomnia, often tied to a stressor, and usually resolve with the stressor and basic counseling.

History and tools

  • Sleep diary for 1 to 2 weeks: bedtime, sleep latency, awakenings, final wake time, time out of bed, naps, caffeine and alcohol. It drives CBT-I and measures response.
  • Severity scale: the Insomnia Severity Index is widely used to quantify severity and track change.
  • Screen for sleep disorders that need different treatment: obstructive sleep apnea (snoring, witnessed apneas, daytime sleepiness, STOP-BANG), restless legs syndrome (urge to move the legs in the evening, relieved by movement; check ferritin), circadian rhythm disorders (delayed sleep phase in adolescents, advanced phase in older adults), parasomnias.
  • Psychiatric conditions: depression, anxiety, PTSD, bipolar disorder and substance use. Insomnia that persists after depression improves needs its own treatment.
  • Medical conditions: pain, nocturia, GERD, heart failure, COPD, hyperthyroidism, menopause.
  • Medications and substances: caffeine, alcohol, nicotine, stimulants, decongestants, activating antidepressants taken at night, corticosteroids, beta-agonists, diuretics late in the day.

Polysomnography is not needed to diagnose insomnia; it is ordered when sleep apnea, periodic limb movement disorder or a parasomnia is suspected.

Why CBT-I comes first

ACP 2016 recommends that all adult patients receive CBT-I as the initial treatment for chronic insomnia disorder (strong recommendation, moderate-quality evidence). CBT-I improves sleep latency, wake after sleep onset and global outcomes, the gains last after treatment ends, and it has no drug interactions, dependence or falls. Hypnotics work while they are taken, their benefit fades after they stop, and their harms grow with age.

The 2021 AASM behavioral guideline recommends multicomponent CBT-I (strong) and gives conditional recommendations for brief behavioral therapy for insomnia, stimulus control, sleep restriction therapy and relaxation therapy as single components. It suggests against sleep hygiene education as a single-component therapy.

The components of CBT-I

Component What the patient does Why it works
Stimulus control Bed only for sleep and sex; get up if not asleep in about 20 minutes; same wake time every day; no naps Reconnects the bed with sleep rather than wakefulness
Sleep restriction Time in bed limited to actual sleep time from the diary (not less than about 5 hours), then extended as sleep efficiency improves Builds sleep drive and consolidates sleep
Cognitive therapy Challenge beliefs such as "I must get 8 hours or tomorrow is ruined" Reduces arousal and sleep-related worry
Relaxation Progressive muscle relaxation, breathing, imagery Lowers physiologic arousal
Sleep hygiene education Limit caffeine, alcohol, heavy meals and screens near bedtime; regular exercise; dark, quiet room Supportive only; not effective alone

CBT-I is usually delivered over about 4 to 8 sessions by a trained therapist, in groups, by telehealth or through validated digital programs, which widens access in primary care. Sleep restriction should be used cautiously in patients with bipolar disorder, seizure disorders or high fall risk, and in drivers or operators of heavy machinery while daytime sleepiness lasts.

When to add a medication

ACP 2016 recommends a shared decision about adding pharmacologic therapy for adults whose insomnia does not improve with CBT-I alone (weak recommendation, low-quality evidence), with a discussion of benefits, harms and costs of short-term use. The AASM 2017 guideline sorts drugs by the sleep problem they target, with all recommendations rated weak because the evidence quality was low or very low.

Problem AASM 2017 suggests (weak) Doses evaluated in the guideline Notes
Sleep onset Zaleplon, triazolam, ramelteon Zaleplon 10 mg, triazolam 0.25 mg, ramelteon 8 mg Ramelteon, a melatonin receptor agonist, is not a controlled substance; triazolam is a short-acting benzodiazepine
Sleep onset and maintenance Eszopiclone, zolpidem, temazepam Eszopiclone 2 to 3 mg, zolpidem 10 mg, temazepam 15 mg Zolpidem immediate-release starting dose is 5 mg for women and older adults per FDA labeling
Sleep maintenance Suvorexant, doxepin Suvorexant 10 to 20 mg, doxepin 3 or 6 mg Low-dose doxepin acts as an antihistamine; suvorexant is an orexin receptor antagonist (Schedule IV)
Suggested against Trazodone, tiagabine, diphenhydramine, melatonin, tryptophan, valerian Not applicable Weak recommendations against, for both onset and maintenance

Lemborexant and daridorexant, newer orexin receptor antagonists, were approved after the 2017 guideline; their place is not graded in it, so confirm current recommendations before using them on an exam answer.

Prescribing principles

  • Use the lowest effective dose for the shortest period, with a plan to taper or stop.
  • Take the drug only when able to stay in bed for 7 to 8 hours, to avoid next-morning impairment.
  • Never combine with alcohol, opioids or other sedatives. Benzodiazepines and opioids together carry an FDA boxed warning for respiratory depression and death.
  • Complex sleep behaviors. Since 2019, eszopiclone, zaleplon and zolpidem carry a boxed warning for sleepwalking, sleep driving and other activities while not fully awake, which have caused serious injuries and deaths. A patient who has had such an episode must not take these drugs again.
  • Antidepressants. When insomnia coexists with depression, an antidepressant that treats the depression (and sometimes a sedating one such as mirtazapine) is chosen for the depression; it is not an insomnia treatment in itself.

The older-adult rules

Older adults have lighter, more fragmented sleep, earlier sleep timing and more sleep apnea, pain and nocturia, so the workup is broader and the drug threshold is higher.

Drug or class Beers 2023 for adults 65 and older Reason
Benzodiazepines (temazepam, triazolam, lorazepam and others) Avoid Cognitive impairment, delirium, falls, fractures, motor vehicle crashes
Z-drugs (zolpidem, eszopiclone, zaleplon) Avoid Same harms as benzodiazepines with minimal improvement in sleep latency and duration
First-generation antihistamines (diphenhydramine, doxylamine, hydroxyzine) Avoid Strongly anticholinergic: confusion, constipation, urinary retention; tolerance to the sedative effect
Doxepin above 6 mg per day Avoid Anticholinergic and sedating at antidepressant doses; 6 mg or less is acceptable
Antipsychotics for sleep Avoid unless for a specific psychiatric indication Stroke and mortality risk in dementia

What is left for an older adult: CBT-I first (it works as well in older adults), attention to the causes listed above, and if a drug is needed, low-dose doxepin for sleep maintenance or ramelteon for sleep onset, with suvorexant as another maintenance option per AASM. For an older adult already taking a benzodiazepine or Z-drug, the answer is a slow, collaborative taper combined with CBT-I.

Monitoring and follow-up

  • Review the sleep diary and severity score every few weeks during CBT-I; sleep efficiency (time asleep divided by time in bed) of 85 percent or more is the usual target for widening the sleep window.
  • When a hypnotic is started, reassess within a few weeks for benefit, next-day impairment, falls, memory problems and complex sleep behaviors.
  • Reassess the need for the drug at every visit, and plan discontinuation, ideally while CBT-I is in place to prevent rebound insomnia.
  • If insomnia persists despite CBT-I, re-examine the diagnosis: undiagnosed sleep apnea, restless legs, depression or a circadian disorder.

Referral triggers

  • Suspected obstructive sleep apnea, narcolepsy, periodic limb movement disorder or a parasomnia: sleep medicine and polysomnography.
  • Insomnia that does not respond to CBT-I plus a reasonable drug trial.
  • Complex sleep behaviors on a hypnotic.
  • Coexisting severe psychiatric illness, bipolar disorder, or suicidal thoughts (give the 988 Suicide and Crisis Lifeline number for any suicidal thinking).
  • Long-term benzodiazepine or Z-drug use that cannot be tapered in primary care.

Patient and caregiver education

  • Keep the same wake time every day, including weekends, even after a bad night.
  • Use the bed for sleep only; if awake about 20 minutes, get up and do something quiet in dim light.
  • Expect sleep restriction to make the first 1 to 2 weeks harder before sleep improves.
  • Limit caffeine after noon and avoid alcohol as a sleep aid; it fragments the second half of the night.
  • Over-the-counter "PM" products contain diphenhydramine or doxylamine and are not safe for older adults.
  • Caregivers of older adults should watch for nighttime confusion, falls and memory problems on any sleep medicine.
  • Take a prescribed hypnotic only when ready for bed with enough time to sleep, and never drive the morning after if drowsy.

How the exam tests this

  • Medication first. A vignette that offers zolpidem before CBT-I in a patient with chronic insomnia is testing whether the candidate knows ACP's strong recommendation.
  • Sleep hygiene as the answer. Sleep hygiene alone is the trap; CBT-I is the correct choice.
  • Trazodone. Common in practice, suggested against by AASM 2017.
  • Older adult on diphenhydramine. Beers: stop it.
  • Zolpidem 10 mg in a woman or an older adult. Wrong dose; the starting dose is 5 mg.
  • Matching drug to problem. Ramelteon or zaleplon for trouble falling asleep, suvorexant or low-dose doxepin for waking at 3 a.m.
  • Snoring and daytime sleepiness. That is a sleep apnea question, not an insomnia question.
  • Sleep driving. Stop the Z-drug permanently.

Practice question

A 74-year-old woman reports 6 months of waking at 2 or 3 a.m. and being unable to return to sleep, at least four nights a week, with daytime fatigue. She falls asleep within 15 minutes. She has no snoring or witnessed apneas, no leg discomfort and a PHQ-9 of 3. She has been taking an over-the-counter diphenhydramine product nightly for 2 months. She completed 6 weeks of CBT-I with partial improvement and asks for something to help her stay asleep. In addition to stopping the diphenhydramine, which of the following is the most appropriate choice?

  • A. Zolpidem 10 mg at bedtime
  • B. Trazodone 50 mg at bedtime
  • C. Doxepin 3 mg at bedtime
  • D. Temazepam 15 mg at bedtime

Answer: C. Her problem is sleep maintenance, she has had CBT-I first, and low-dose doxepin is an AASM 2017 suggested option for maintenance insomnia that Beers 2023 permits at 6 mg per day or less. Option A is a Z-drug that Beers advises avoiding in older adults, and 10 mg exceeds the 5 mg starting dose for women and older adults. Option B is a drug the AASM guideline suggests against for insomnia, and it adds orthostatic hypotension and fall risk. Option D is a benzodiazepine, which Beers lists to avoid in adults 65 and older because of falls, fractures and cognitive impairment.

Key points

  • Chronic insomnia: difficulty initiating or maintaining sleep at least 3 nights a week for at least 3 months with daytime impairment despite adequate opportunity.
  • CBT-I is first-line for all adults (ACP 2016 and AASM 2021, strong); sleep hygiene alone is not adequate treatment.
  • Add a medication by shared decision when CBT-I alone is not enough, short term, matched to onset or maintenance problems.
  • AASM 2017 suggests against trazodone, diphenhydramine, melatonin, tryptophan, valerian and tiagabine.
  • Zolpidem starts at 5 mg in women and older adults; Z-drugs carry a boxed warning for complex sleep behaviors.
  • Beers 2023: avoid benzodiazepines, Z-drugs and first-generation antihistamines in adults 65 and older; doxepin 6 mg or less is acceptable.
  • Look for sleep apnea, restless legs, depression and medications before labeling insomnia primary.

Related NPPace guides

Frequently asked questions

Common follow-up questions on Mental Health in Primary Care.

Is sleep hygiene enough to treat chronic insomnia?

No. The 2021 AASM behavioral guideline suggests against sleep hygiene education as a single-component therapy. It is part of CBT-I, whose active components are stimulus control, sleep restriction and cognitive therapy.

Why is trazodone a wrong answer for insomnia?

The 2017 AASM pharmacologic guideline suggests against trazodone for sleep onset or maintenance insomnia because the evidence did not show benefits that outweigh the harms, which include orthostatic hypotension and next-day sedation.

What zolpidem dose is used in women and older adults?

FDA labeling sets the immediate-release starting dose at 5 mg for women and for older adults, because women clear zolpidem more slowly and next-morning impairment is more likely. Beers 2023 advises avoiding Z-drugs in adults 65 and older altogether.

What should I do if a patient sleepwalks or drives while asleep on a sleep medicine?

Stop the drug permanently. Since 2019, eszopiclone, zaleplon and zolpidem carry a boxed warning and a contraindication in anyone who has had a complex sleep behavior on them.

Sources and references

  1. Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD. Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline From the American College of Physicians. Annals of Internal Medicine. 2016;165(2):125-133. https://doi.org/10.7326/M15-2175
  2. Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical Practice Guideline for the Pharmacologic Treatment of Chronic Insomnia in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline. Journal of Clinical Sleep Medicine. 2017;13(2):307-349. https://doi.org/10.5664/jcsm.6470
  3. Edinger JD, Arnedt JT, Bertisch SM, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. 2021;17(2):255-262. https://doi.org/10.5664/jcsm.8986
  4. American Geriatrics Society 2023 Beers Criteria Update Expert Panel. American Geriatrics Society 2023 updated AGS Beers Criteria for potentially inappropriate medication use in older adults. Journal of the American Geriatrics Society. 2023;71(7):2052-2081. https://doi.org/10.1111/jgs.18372
  5. US Food and Drug Administration. FDA adds Boxed Warning for risk of serious injuries caused by sleepwalking with certain prescription insomnia medicines. 2019. https://www.fda.gov/drugs/drug-safety-and-availability/fda-adds-boxed-warning-risk-serious-injuries-caused-sleepwalking-certain-prescription-insomnia
Put this into practice

FNP and AGNP board questions written as primary-care cases, with guideline-based explanations, for the AANP and ANCC exams. Create a free account and pick your track.

Create Free Account →