CBT-I Explained: How Cognitive Behavioral Therapy For Insomnia Works

CBT-I (cognitive behavioral therapy for insomnia) is a structured, drug-free treatment that changes the habits and thoughts that keep you awake. It usually runs for 6 to 8 weeks and combines stimulus control, sleep restriction, cognitive therapy, relaxation and sleep education. It is usually recommended as the first treatment for long-term insomnia and can be very effective, and you can do it with a doctor, nurse or therapist in person, by phone or online (NHLBI). Sleep medicine and physician guidelines recommend it ahead of sleeping pills for adults with chronic insomnia.

Last updated October 3, 2026

Before you start. This guide explains how CBT-I works so you know what to expect. It is not a treatment plan. Parts of CBT-I, especially sleep restriction, make you sleepier at first and are not safe for everyone, so work with a trained provider or talk to your doctor before trying them.

What Is CBT-I?

CBT-I is a specific type of cognitive behavioral therapy that addresses the thoughts and behaviors that keep you from sleeping well and teaches new strategies to sleep better (AASM Sleep Education). A trained provider helps you spot the thoughts, feelings and behaviors that feed your insomnia, tests whether beliefs about sleep are accurate, and reframes the unhelpful ones (Sleep Foundation).

It is built for chronic insomnia: trouble sleeping at least 3 nights a week for 3 months or more. For symptoms, causes and types, see our insomnia overview, and to work out a starting sleep window from your own diary, try the sleep efficiency calculator. If you are not sure how much your sleep problem affects you, the insomnia severity calculator gives you a baseline you can recheck as you go.

CBT-I is different from general sleep advice. Sleep hygiene tips are only one part of it, and the AASM suggests sleep hygiene should not be used on its own to treat chronic insomnia (AASM 2021 guideline). For the habits themselves, see sleep hygiene 101.

The Parts Of CBT-I At A Glance

Component What you do What it targets
Stimulus control Bed only for sleep and sex; go to bed only when sleepy; get up if you cannot sleep; same wake time daily The learned link between bed and being awake
Sleep restriction (sleep window) Limit time in bed to about the time you actually sleep, then extend it as sleep improves Too much time awake in bed; weak sleep drive
Cognitive therapy Identify and challenge worries and beliefs about sleep Anxiety about not sleeping and its consequences
Relaxation training Breathing, muscle relaxation, imagery, sometimes biofeedback Physical tension and a racing mind
Sleep hygiene education Fix daily habits that undermine sleep: caffeine, naps, exercise timing, the bedroom Habits that work against the other parts

Sources: NHLBI, AASM, Sleep Foundation.

Stimulus Control

After many nights of tossing and turning, bedtime and the bed itself start to trigger frustration instead of sleep. Stimulus control retrains that response. You use the bed only for sleep and sex, with no reading or TV in bed, go to bed only when you feel very sleepy, and if you are not asleep after about 20 minutes, get up and do something relaxing, returning only when sleepy again (AASM). Some programs use a shorter cut-off of about 10 minutes, and most add a fixed alarm every morning and no daytime naps (Sleep Foundation).

Over time this helps you fall asleep more quickly, and going to bed becomes relaxing rather than frustrating (AASM). The AASM guideline suggests stimulus control is useful even as a single-component treatment (AASM 2021).

Sleep Restriction And The Sleep Window

People with insomnia often spend far longer in bed than they sleep, trying to catch up. Sleep restriction does the opposite: it sets a strict limit on time in bed, starting at about the amount you actually sleep. If you sleep five hours but spend seven in bed, your first window is about five hours. The mild sleep loss makes you more tired at first, but it helps you fall asleep faster and wake fewer times, and the window is slowly widened as sleep improves (AASM).

Providers usually track this with sleep efficiency: the share of time in bed that you spend asleep. A typical approach uses 1 to 2 weeks of a sleep diary to set the starting window, keeps a floor of about 6 hours in bed even if you sleep less, and then adjusts the window in roughly 15-minute steps each week depending on your efficiency (Sleep Foundation). A gentler version, sleep compression, shrinks time in bed gradually and is often used with older adults (Sleep Foundation).

The fixed wake time is the anchor of the window. If you track your sleep with a wearable, our guide to sleep tracking and insomnia explains why a sleep diary is usually more useful here than a nightly sleep score.

Who Should Not Try Sleep Restriction On Their Own

Sleep restriction causes sleepiness, especially in the first weeks, so it is not right for everyone. Sleep experts generally do not prescribe it for people with major illness or recent surgery, untreated sleep apnea, seizure disorders that are not under control, or untreated bipolar disorder, and it is not recommended for people in jobs such as transportation, construction or healthcare, where working while sleep deprived could put themselves or others at risk (Sleep Foundation).

The VA’s self-help Insomnia Coach app also advises seeing a provider first if you have sleep apnea or restless legs syndrome, bipolar disorder, a seizure disorder or epilepsy, sleepwalking, night terrors, excessive daytime sleepiness, or frailty and a risk of falling when getting up at night, and notes it may not suit shift workers (VA). If you are not sure whether something else is going on, see the signs of a sleep disorder.

Whatever your situation, do not drive or operate machinery when you feel sleepy (NHS), and talk to your doctor before starting.

Cognitive Therapy

Insomnia breeds unhelpful beliefs, and those beliefs breed more insomnia. Worry about falling asleep can lead you to spend extra time in bed trying to force sleep, which makes falling asleep harder and sets up a nightly cycle (Sleep Foundation). Cognitive therapy helps you feel less nervous about not being able to sleep (NHLBI).

Common targets include anxiety about past bad nights, unrealistic expectations about how much or how well you should sleep, and worry about how you will cope the next day (Sleep Foundation). Practical tools include setting a worry time in the afternoon or early evening to review the day and plan tomorrow, so worries are dealt with before bed, and guided imagery to stop the mind racing (AASM). If worry runs well beyond sleep, read insomnia vs anxiety, as anxiety may need its own treatment.

Relaxation Training

Relaxation training teaches you to relax both mind and body, which reduces the anxiety and tension that keep you awake in bed. It works on muscle relaxation, breathing and mental focusing, and can be used during the day and at bedtime. Biofeedback, which uses a device to show you signals such as muscle tension, is sometimes added. Some people learn these skills in a few sessions; others need many (AASM). Techniques commonly taught include slow breathing, progressive muscle relaxation, autogenic training and meditation (Sleep Foundation).

The AASM guideline suggests relaxation therapy as a single-component option as well (AASM 2021). To see which approach may suit you, try the sleep tension calculator.

Sleep Hygiene Education

This part corrects everyday habits that disturb sleep. Poor sleep usually has more than one cause, so fixing one habit, such as starting exercise, may not help while evening caffeine and long afternoon naps continue (AASM). Topics usually include diet, exercise and the sleep environment, and homework between sessions often includes a sleep diary and practicing new habits (Sleep Foundation).

How Long CBT-I Takes And What To Expect

CBT-I is a 6- to 8-week treatment plan (NHLBI). A therapist often sees you weekly, with sessions of 30 to 90 minutes; group therapy or phone sessions are other options and may cost less (AASM).

Expect it to feel harder before it feels easier. CBT is not a quick fix: it needs steady practice and patience, and sleep restriction will make you sleepier at first (AASM). Talking through difficult thoughts can also be uncomfortable for a while (Sleep Foundation). A typical course looks like this:

  1. Assessment and sleep diary. Your provider reviews your history and you record bed times, wake times and time awake.
  2. Behavioral changes. A fixed wake time, a sleep window and stimulus control rules start early.
  3. Adjustments. Each week the diary is reviewed and the window is adjusted.
  4. Thoughts and relaxation. Cognitive work and relaxation skills are added and practiced.

Programs differ in order and detail, so treat this as an outline, not a schedule.

Does CBT-I Work? What The Guidelines Say

  • American Academy of Sleep Medicine (2021). Strongly recommends multicomponent CBT-I for chronic insomnia disorder in adults. It also suggests multicomponent brief therapies, and stimulus control, sleep restriction or relaxation therapy on their own, and suggests not using sleep hygiene alone (AASM guideline).
  • American College of Physicians (2016). Recommends that all adults receive CBT-I as the initial treatment for chronic insomnia disorder, a strong recommendation based on moderate-quality evidence. If CBT-I alone does not work, any decision to add medicine should weigh the benefits, harms and costs of short-term use together with the patient (ACP guideline).

In the UK, a GP may offer CBT face-to-face or through an online self-help programme, and now rarely prescribes sleeping pills for insomnia (NHS).

CBT-I vs Sleeping Pills vs A Self-Help Plan

CBT-I with a provider Self-help plan Sleep medicines
Guideline position First-line for chronic insomnia Habits alone not recommended for chronic insomnia Considered with a doctor, often after CBT-I
Time to benefit Weeks; can feel worse at first Variable Depends on the medicine; ask your doctor
Main downsides Effort, cost, finding a provider No tailoring or safety check Side effects, tolerance, complex sleep behaviors

Sources: AASM 2021, ACP 2016, AASM Sleep Education. For a habits-first plan that borrows CBT-I principles, see our 7 steps to beat insomnia.

Digital CBT-I And How To Find A Provider

There are not enough trained CBT-I professionals to meet demand, so digital, group and self-help formats have been developed. Digital CBT-I ranges from fully automated programs to programs with regular email or phone feedback from a professional, and improvements appear similar to face-to-face treatment, though few studies compare them directly (Sleep Foundation).

  • Ask your doctor first. They can rule out other causes and refer you.
  • Behavioral sleep medicine directory. The Society of Behavioral Sleep Medicine lists providers who offer CBT-I, in person, by video or online (AASM); see the SBSM directory.
  • Accredited sleep centers. Use the AASM sleep center directory to find a sleep team near you.
  • Free apps from the VA. CBT-i Coach is designed to be used alongside a provider, not for self-care (VA). Insomnia Coach is a self-guided program based on CBT-I for anyone, though it does not replace professional treatment (VA).

Whichever route you choose, keep a sleep diary: it drives every adjustment in CBT-I.

Where CBT-I Fits With Our Other Guides

CBT-I FAQs

How Long Does CBT-I Take To Work?

A typical course runs 6 to 8 weeks. Sleep often feels worse in the first weeks of sleep restriction before it improves.

Can I Do CBT-I On My Own?

Self-guided programs exist, but talk to a doctor first, especially before sleep restriction, and get a provider if you have other health conditions.

Is CBT-I Better Than Sleeping Pills?

AASM and ACP guidelines recommend CBT-I as the first treatment for chronic insomnia in adults, with medicine considered afterwards.

What Is The Hardest Part Of CBT-I?

For most people it is sleep restriction, because the shorter time in bed makes you sleepier at first.

Does CBT-I Work For Anxiety-Related Insomnia?

It targets worry about sleep, so it can help. Anxiety that extends beyond sleep usually needs its own treatment as well.

Is Online CBT-I As Good As Seeing A Therapist?

Results look similar in studies so far, but few trials compare them directly, and a therapist can tailor the plan to you.

This article is general education, not medical advice or a treatment plan. CBT-I should be tailored by a qualified provider, and sleep restriction is not safe for everyone. Do not start, stop or change any medicine without talking to your doctor.