Sleep care that puts you firstGet started

Therapy for Sleeping Problems: CBT-I, Medicines and Other Treatment Options

Written by HealSend Clinical Team

Published 12/04/2026

CBT-I is the first-line therapy for chronic sleeping problems. Here is how it works, how sleep medicines compare, which safety warnings matter, and a simple guide to choosing a path.

Short answer: the main therapy for sleeping problems that keep coming back is cognitive behavioral therapy for insomnia (CBT-I). The American College of Physicians (ACP) recommends it as the first-line treatment for adults with chronic insomnia, and the American Academy of Sleep Medicine (AASM) gives it a strong recommendation. It usually takes 4 to 8 sessions. Medicines can help when CBT-I isn't enough, ideally for the short term, and sleep problems caused by another condition, such as sleep apnea, need that condition treated.

Key takeaways

  • CBT-I is the first-line treatment for chronic insomnia, recommended by ACP and strongly by AASM; it usually takes 4 to 8 sessions.
  • Sleep hygiene alone isn't recommended as the only treatment for chronic insomnia.
  • FDA-approved sleep medicines are intended for short-term use, and the Z-drugs carry a boxed warning for complex sleep behaviors.
  • AASM suggests against diphenhydramine, melatonin, trazodone and valerian for chronic insomnia.
  • Sleep problems caused by another condition, such as sleep apnea, need that condition treated.

First, what kind of sleep problem is it?

Trouble falling asleep, staying asleep or waking too early is insomnia. ACP estimates that about 6 to 10% of adults have insomnia that meets diagnostic criteria. But not every sleep problem is insomnia, and the right treatment depends on the cause:

  • Sleep apnea: frequent loud snoring, gasping for air, breathing that stops and starts, daytime sleepiness and waking often to urinate are common signs. Insomnia itself can be a symptom of sleep apnea, especially in women.
  • Medicines: some over-the-counter and prescription drugs, such as certain cold and allergy medicines, can disrupt sleep.
  • Habits and schedule: irregular sleep times, naps, caffeine, nicotine and alcohol close to bedtime all affect sleep.

Insomnia care from a licensed provider

HealSend offers online insomnia care. A licensed US provider reviews your sleep, health history and medicines, recommends a plan, and if a prescription is appropriate, it ships from a licensed pharmacy.

Explore sleep care

CBT-I: how the therapy works

CBT-I is a structured program that changes the thoughts and habits that keep insomnia going. NHLBI describes it as a 6- to 8-week plan, delivered in person, by phone or online. It combines several parts:

ComponentWhat it involves
Cognitive therapyReducing worry and nervousness about not being able to sleep
Stimulus controlGoing to bed only when sleepy, and getting up if you can't fall asleep within about 20 minutes
Sleep restrictionSetting a specific amount of time in bed, then slowly increasing it as sleep improves
RelaxationMeditation, imagery or muscle relaxation to help you fall asleep faster
Sleep educationA consistent bedtime and wake time, no naps, and limits on caffeine and alcohol

Mayo Clinic notes that most people need 6 to 8 sessions, that CBT-I addresses causes rather than only symptoms, and that its benefits seem to last, with no evidence of harmful side effects. ACP says CBT-I likely has fewer harms than drug treatment, though direct comparisons are limited.

Other behavioral therapies

When full CBT-I isn't available, AASM's 2021 guideline conditionally supports shorter options: brief multi-component therapies and three single-component approaches, stimulus control, sleep restriction and relaxation therapy. The same guideline suggests that sleep hygiene advice on its own shouldn't be used as the only treatment for chronic insomnia. Good habits help, but the guideline treats them as one part of a larger plan.

Sleep medicines: how the options compare

AASM's 2017 guideline on sleep medicines made only weak recommendations, meaning the evidence was limited and the choice depends on the person. The summary below follows that guideline, plus safety information from FDA and NHLBI.

TypeExamplesAASM 2017 suggestionKey cautions
"Z-drugs"Zolpidem, eszopiclone, zaleplonFor falling asleep (all three); zolpidem and eszopiclone also for staying asleepFDA boxed warning for complex sleep behaviors, such as sleepwalking and sleep driving
Orexin receptor antagonistSuvorexantFor staying asleepNot recommended with narcolepsy; rarely, brief inability to move or speak when falling asleep or waking
Melatonin receptor agonistRamelteonFor falling asleepDizziness, fatigue
Low-dose doxepinDoxepinFor staying asleepReview your other medicines with a clinician
BenzodiazepinesTemazepam, triazolamTemazepam for falling and staying asleep; triazolam for falling asleepHabit-forming; usually only for a few weeks; dizziness, confusion
Suggested againstDiphenhydramine, melatonin, trazodone, valerian, L-tryptophan, tiagabineNot suggested for chronic insomniaNHLBI notes research hasn't proven melatonin works for insomnia

A few points to know:

  • Short term is the norm. ACP notes that FDA has approved insomnia medicines for short-term use, about four to five weeks, and recommends shared decision-making about medication when CBT-I alone hasn't worked.
  • Complex sleep behaviors are serious. In 2019, FDA added a boxed warning to eszopiclone, zaleplon and zolpidem after reviewing 66 cases of complex sleep behaviors, 20 of them fatal. These drugs shouldn't be used by anyone who has had such an episode.
  • Off-label use is common. Some antidepressants, antipsychotics and anticonvulsants are prescribed for insomnia even though FDA hasn't approved them for it.

Other approaches

NHLBI notes that light therapy, using a bright light box daily, can help set and maintain your sleep-wake cycle, and that acupuncture may help insomnia, especially in older adults. Massage, meditation and yoga may also help some people.

Choosing a path: a simple guide

This summary pulls together the guidance above. It's a starting point for a conversation with a clinician, not a substitute for one.

Your situationUsual first step
A few bad nights after a stressful event or schedule changeGood sleep habits and time; see what to do when you can't sleep
Trouble sleeping 3+ nights a week for more than 3 monthsCBT-I, plus a look for underlying causes
CBT-I done or unavailable, still sleeping poorlyShared decision with a clinician about short-term medication
Loud snoring, gasping, daytime sleepinessEvaluation for sleep apnea
Sleep changed after a new medicineAsk the prescriber about timing or alternatives; don't stop on your own
Low mood or anxiety alongside poor sleepTreat both; each can worsen the other
Body clock runs at least 2 hours lateEvaluation for delayed sleep phase; light therapy may help

Considering an off-label option? See gabapentin for sleep. Curious about supplements? See magnesium glycinate vs. citrate.

When to talk to a provider

Get help if poor sleep happens regularly, affects your days, or comes with signs of sleep apnea such as loud snoring or gasping. A clinician can sort out the type of sleep problem, recommend CBT-I, and discuss medicine if it's needed. ACP notes that insomnia that hasn't improved within 7 to 10 days of treatment should be re-evaluated.

If you take a sleep medicine, stop it and call your prescriber if you do anything while not fully awake, like walking, eating or driving. Tell your clinician about alcohol, opioids or other sedatives before starting any sleep medicine.

Sleeping badly most nights?

Answer a few questions about your sleep and health. A licensed US provider reviews them and suggests next steps, which may include CBT-I tools or, when appropriate, medication.

See if you qualify

FAQ

What is the most effective therapy for sleeping problems?

For chronic insomnia, CBT-I is the first-line treatment recommended by ACP and AASM. Sleep problems from another cause, such as sleep apnea, need that cause treated.

How long does CBT-I take to work?

Most programs run about 4 to 8 sessions, or 6 to 8 weeks.

Can I do CBT-I online?

Yes. NHLBI notes that CBT-I can be delivered in person, by phone or online.

Is it safe to take sleeping pills long term?

Insomnia medicines are FDA-approved for short-term use, and several carry serious warnings. Talk with a clinician about the risks and how long to use one.

What can I take over the counter for loss of sleep?

AASM suggests against diphenhydramine and melatonin for chronic insomnia, and antihistamines can be unsafe for some people. Ask a clinician before using any sleep aid regularly.

Does sleep hygiene work on its own?

Good habits help, but AASM's 2021 guideline suggests not using sleep hygiene as the only treatment for chronic insomnia. It works best as part of CBT-I.

Is trazodone good for sleep?

Trazodone is sometimes prescribed off-label, but AASM's 2017 guideline suggests against using it for chronic insomnia.

Does light therapy help insomnia?

NHLBI notes that daily light therapy with a bright light box can help set and maintain your sleep-wake cycle. Ask a clinician whether it fits your sleep problem.

8 Sources
  1. American College of Physicians: ACP recommends CBT as initial treatment for chronic insomnia (2016) https://www.acponline.org/acp-newsroom/acp-recommends-cognitive-behavioral-therapy-as-initial-treatment-for-chronic-insomnia
  2. AASM: New guideline supports behavioral and psychological treatments for insomnia (2021) https://aasm.org/new-guideline-supports-behavioral-psychological-treatments-for-insomnia/
  3. AASM: Pharmacologic treatment of chronic insomnia, guideline at a glance (2017) https://aasm.org/wp-content/uploads/2018/01/PharmInsomnia-Guideline-at-a-Glance.pdf
  4. NHLBI: Insomnia, Treatment https://www.nhlbi.nih.gov/health/insomnia/treatment
  5. Mayo Clinic: Insomnia treatment, cognitive behavioral therapy instead of sleeping pills https://mayoclinic.org/diseases-conditions/insomnia/in-depth/insomnia-treatment/art-20046677
  6. FDA: Boxed warning for complex sleep behaviors with eszopiclone, zaleplon and zolpidem (2019) https://www.fda.gov/drugs/drug-safety-and-availability/fda-adds-boxed-warning-risk-serious-injuries-caused-sleepwalking-certain-prescription-insomnia
  7. NHLBI: Sleep Apnea, Symptoms https://www.nhlbi.nih.gov/health/sleep-apnea/symptoms
  8. Mayo Clinic: Delayed sleep phase, symptoms and causes https://www.mayoclinic.org/diseases-conditions/delayed-sleep-phase/symptoms-causes/syc-20353340

This article is for informational purposes only and does not constitute medical advice. Talk with a licensed clinician about the risks and benefits of any treatment.

Related Articles

Care that fits your life

  1. 1Free assessment by a licensed medical professional
  2. 2No in-person visit or insurance required
  3. 3Personalized plans based on your unique needs

*Prescription products require an online review by a licensed provider. Restrictions apply.

*All images feature a model portrayal (unless otherwise noted).