CBT for Insomnia: The First-Line Treatment, Step by Step
This article contains affiliate links. As an Amazon Associate, we earn from qualifying purchases, at no extra cost to you. Learn more.
Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first treatment for chronic insomnia. The American College of Physicians strongly recommends it as initial treatment for adults, ahead of sleeping pills. CBT-I is a short, structured program, usually 4 to 8 sessions, that retrains your sleep with a few core techniques: a consistent sleep window, using the bed only for sleep, getting up when you cannot sleep, and changing the worried thoughts that keep you awake.
It takes effort for a few weeks, but unlike pills, the benefits tend to last after treatment ends.
Who is CBT-I for?
CBT-I is designed for chronic insomnia: trouble falling asleep or staying asleep at least three nights a week for more than three months, with daytime effects like fatigue or poor concentration. Insomnia is the most common sleep problem in adults 60 and older, according to the National Institute on Aging, and it often starts or worsens around menopause.

What are the main parts of CBT-I?
| Technique | What you do | Why it works |
|---|---|---|
| Sleep diary | Track bedtime, wake times, and how long you slept for 1 to 2 weeks | Shows your real sleep pattern and sets your starting point |
| Sleep restriction (sleep window) | Limit time in bed to about the hours you actually sleep, then widen it as sleep improves | Builds sleep drive so sleep becomes deeper and more solid |
| Stimulus control | Use the bed only for sleep and sex; get up if you are awake about 20 minutes | Rebuilds the link between bed and sleeping, not lying awake |
| Fixed wake time | Get up at the same time every day, including weekends | Anchors your body clock |
| Cognitive work | Challenge thoughts like “if I don’t sleep, tomorrow is ruined” | Lowers the anxiety that keeps you alert |
| Sleep habits and relaxation | Wind-down routine, cool dark room, limits on caffeine and alcohol | Removes things working against sleep |
How does a sleep window work?
- Use your sleep diary to find your average actual sleep time, say 6 hours.
- Set a fixed wake time, for example 6:30 a.m.
- Count back to set your earliest bedtime, for example 12:30 a.m. Most programs do not go below about 5 to 6 hours in bed.
- Stick to it for a week, even if you are tired at first.
- When you are sleeping most of the time you are in bed, move bedtime 15 minutes earlier. Repeat weekly.
The first week or two can make you sleepier during the day. Avoid driving drowsy, and do sleep restriction with a clinician’s guidance if you have bipolar disorder, seizures, untreated sleep apnea, or a job where sleepiness is dangerous.
What should you do when you cannot sleep?
- If you are awake for about 20 minutes or feel frustrated, get up.
- Go to another room with dim light and do something calm, like reading a paper book.
- Return to bed only when you feel sleepy.
- Skip the clock. Turn it away from you.
For the middle-of-the-night version, see why you wake up at 3 a.m.
How do you get CBT-I?
- A trained therapist: look for a behavioral sleep medicine specialist or a psychologist trained in CBT-I. Ask your doctor for a referral.
- Digital programs: several app-based and online CBT-I programs exist, some prescription-based. The U.S. Department of Veterans Affairs offers a free Insomnia Coach app based on CBT-I.
- Books and workbooks based on CBT-I can work for motivated people.
How does CBT-I compare with sleeping pills?
Sleep medicines can help in the short term, but the National Institute on Aging notes they carry risks and are not meant for long-term use. CBT-I takes longer to work but keeps working after you stop. Some people use both for a while under a doctor’s care. See sleep aids after 50.
What does a CBT-I sleep diary track?
CBT-I starts with data, not guesses. Mayo Clinic notes a sleep specialist may ask you to keep a detailed sleep diary for 1 to 2 weeks before treatment begins. Fill it in each morning, not in the middle of the night, so you are not clock watching.
| Diary item | Why it matters |
|---|---|
| Time you got into bed | Shows how long you spend in bed awake |
| About how long it took to fall asleep | Tracks trouble falling asleep |
| Number and length of night wakings | Tracks trouble staying asleep |
| Final wake time and time out of bed | Sets your anchor wake time |
| Naps, caffeine, alcohol, night sweats | Spots patterns you can change |
| How rested you felt, on a 1 to 5 scale | Shows progress beyond hours slept |
Rough estimates are fine. The goal is a pattern, not perfect numbers.
How do you set your first sleep window?
Your sleep window is the time you allow yourself in bed, and it starts close to the amount you actually sleep now. Here is a worked example:
- Average your diary. Say you are in bed 8.5 hours but sleep about 6.
- Set the window to match. Allow about 6 hours in bed.
- Fix your wake time first. If you must be up at 6:30 a.m., your earliest bedtime is 12:30 a.m.
- Hold it for a week. Get up at the same time every day, weekends included.
- Adjust weekly. When you are asleep for most of the time in bed, move bedtime 15 minutes earlier.
Most CBT-I programs set a minimum window, often around 5 to 5.5 hours. If your average sleep is very low, do this step with a clinician or a structured program.
How do you calm a racing mind with the cognitive part?
The “cognitive” half of CBT-I targets the thoughts that keep you alert. Mayo Clinic describes it as learning to recognize and change beliefs that affect your sleep, including worry about not sleeping.
- Scheduled worry time: a Mayo Clinic program suggests writing down worries for about 10 minutes at least two hours before bed, then reviewing the list the next morning.
- Thought swaps: replace “I must get eight hours or tomorrow is ruined” with “I have gotten through hard days on less sleep before.”
- Remaining passively awake: lie in bed and stop trying to fall asleep. Mayo Clinic notes letting go of the effort can make sleep come more easily.
- Relaxation skills: slow breathing or muscle relaxation lowers the body’s alarm signals.
What problems come up in the first two weeks?
Expect it to feel harder before it feels better. Mayo Clinic notes some CBT approaches may cause you to lose sleep at first, but the results tend to last if you stay with it.
- Daytime sleepiness: normal early on. Do not drive or operate machinery if you feel drowsy.
- Wanting to nap: skip naps if you can. If you cannot, keep one short and early.
- Breaking the wake time on weekends: the most common reason progress stalls.
- Night sweats: treat them alongside CBT-I. See our night sweats plan.
Use clinician guidance rather than going solo if you have bipolar disorder, a seizure disorder or untreated sleep apnea, or if you drive for a living, because sleep restriction can make these riskier.
How many sessions does CBT-I take?
Mayo Clinic says most people need 6 to 8 sessions, though some need as few as one and others need more. Ways to get it include:
- A behavioral sleep medicine specialist or psychologist, in person or by video
- Group CBT-I classes through some health systems
- Digital programs and apps, including free options such as the VA’s Insomnia Coach app
- Self-guided workbooks, if you can keep to the schedule on your own
Mayo Clinic also notes there is no evidence CBT has harmful side effects, and its benefits seem to last after treatment ends.
Want a short explainer on CBT for insomnia?
Psych Hub explains how cognitive behavioral therapy for insomnia works.
What helps you do CBT-I at home?
A good workbook and the right light for those out-of-bed stretches make CBT-I much easier to stick with. Our picks:
- Quiet Your Mind and Get to Sleep by Colleen Carney, PhD, and Rachel Manber, PhD: A CBT-I workbook from two leading insomnia researchers, with step-by-step exercises you can do on your own. Check price on Amazon
- The Women's Guide to Overcoming Insomnia by Shelby Harris, PsyD: A sleep psychologist's guide to insomnia across women's lives, including perimenopause and menopause, built on CBT-I methods. Check price on Amazon
- Hooga Amber Book Light: A clip-on reading light with warm amber light, ideal for the get-up-and-read-until-sleepy step without bright light jolting you awake. Check price on Amazon
Frequently asked questions
What is the best treatment for chronic insomnia?
CBT-I is the recommended first treatment for chronic insomnia in adults, according to the American College of Physicians.
How long does CBT-I take to work?
Most programs run 4 to 8 weekly sessions. Many people notice improvement within a few weeks, though sleep can feel worse briefly at the start.
Can I do CBT-I on my own?
Yes. Digital programs and workbooks based on CBT-I can help. Get professional guidance if you have other health conditions or a safety-sensitive job.
Is CBT-I better than sleeping pills?
CBT-I is recommended first because its benefits last after treatment ends and it avoids medication side effects.
Does CBT-I work for women going through menopause?
Yes. CBT-I has been studied in women with menopause-related insomnia and is considered an effective option.
Will CBT-I make me more tired at first?
Often, yes, for the first week or two. Mayo Clinic notes some approaches may cause you to lose sleep early on, but most people see lasting results if they keep going.
Do I need a therapist for CBT-I?
Not always. Many people do well with digital programs or workbooks. A specialist helps most if your sleep is very short, you have other health conditions, or you have tried on your own and stalled.
Sources and further reading
- Management of Chronic Insomnia Disorder in Adults: A Clinical Practice Guideline, American College of Physicians, Annals of Internal Medicine, 2016
- Sleep and Older Adults, National Institute on Aging
- Insomnia, National Heart, Lung, and Blood Institute
- Insomnia treatment: Cognitive behavioral therapy instead of sleeping pills, Mayo Clinic
- Insomnia: Diagnosis and treatment, Mayo Clinic
- Trouble sleeping? Behavioral therapy can help, Mayo Clinic Community Health
- Think your way to sleep: Cognitive behavioral therapy for insomnia, Mayo Clinic Press
- Cognitive behavioral therapy for insomnia, Wikipedia
- Sleep hygiene, Wikipedia
A quick note: this is general health information, not medical advice. Talk with your doctor about sleep problems, and before starting, stopping, or changing any medicine or supplement.