Sleep · 7 min read
CBT for insomnia at home: what CBT-I involves and how self-guided programmes compare
TL;DR. CBT-I (cognitive behavioural therapy for insomnia) is a structured programme, usually 4 to 8 weeks, that retrains sleep rather than covering it up. Its core parts are sleep restriction (or compression), stimulus control and work on unhelpful thoughts about sleep; sleep hygiene is a minor part. Guidelines recommend it as the first treatment for chronic insomnia. Self-guided and app-based versions have shown real benefits in trials, but they are not for everyone: if you have bipolar disorder, epilepsy, possible sleep apnoea or you are pregnant, involve a doctor before restricting your sleep.
Contents
What CBT-I is
CBT-I is a short, skills-based programme for people who have had trouble falling or staying asleep at least three nights a week for three months or more. It does not try to remove every bad night. It changes the habits and thinking that keep insomnia going once a rough patch has passed.
Major guidelines recommend it as the first-line treatment for chronic insomnia in adults, ahead of sleeping pills (Edinger et al. 2021; Riemann et al. 2023; Qaseem et al. 2016). The reason is simple: the effects tend to last after the programme ends, which is less clear for medication.
The parts of CBT-I
1. Sleep restriction (or compression)
This is the part that surprises people. If you spend 9 hours in bed but sleep 6, you are spending 3 hours awake in bed, and the bed becomes linked with wakefulness. Sleep restriction temporarily limits your time in bed to roughly the time you actually sleep, with a floor (usually not under 5 to 5.5 hours). That builds sleep pressure, so sleep becomes quicker and more continuous. Once sleep efficiency (time asleep divided by time in bed) is high, the window is widened step by step. The method goes back to work by Spielman and colleagues in the 1980s (Spielman et al. 1987).
Sleep compression is a gentler version: the window is shortened gradually instead of in one step. It suits people who find full restriction too hard, though it takes longer.
The first one or two weeks usually feel worse: you are sleepier in the daytime. That is expected, and it is why this part needs care (see below).
2. Stimulus control
The aim is to rebuild the link "bed = sleep". The rules are short: go to bed only when sleepy; use the bed only for sleep (and sex); if you cannot sleep after about 20 minutes, get up, do something calm in dim light, and return when sleepy; keep the same wake-up time every day. Details are in Can't sleep? What to do when your mind won't switch off.
3. Cognitive work
This targets the thoughts that keep arousal high: "I must get eight hours", "one bad night will wreck my week", "I'm going to be ill if this goes on". You write the thought down, check the evidence, and replace it with a more balanced one. Worry time earlier in the evening and writing tomorrow's tasks down belong here too. If fear of the night is the main issue, see Sleep anxiety: what to do when you are afraid of not falling asleep.
4. Sleep hygiene (a minor part)
Cool dark room, regular daylight, limiting late caffeine and alcohol. These are worth doing, but guidelines are clear that sleep hygiene alone is not enough to treat chronic insomnia (Edinger et al. 2021). In CBT-I it is a supporting actor.
5. Relaxation (optional)
Slow breathing or muscle relaxation can lower arousal. It is often included, though the evidence for relaxation alone is weaker than for the behavioural parts. The free breathing timer can pace the breath.
Does self-guided or digital CBT-I work?
Face-to-face CBT-I with a trained clinician remains the reference. But there are not enough trained clinicians, so self-help books, websites and apps are widely studied.
- A meta-analysis of randomised trials found internet-delivered CBT-I produced clear improvements in insomnia severity and sleep, with effects in a moderate-to-large range (Zachariae et al. 2016).
- A large randomised trial of a digital programme (Sleepio) found better sleep, and improvements in mood and wellbeing, versus sleep hygiene education (Espie et al. 2019).
- Guidelines accept digital CBT-I as an option when a therapist is not available.
Limits worth knowing: results come from programmes that are structured and complete, not from reading one article; many people drop out of apps within weeks; and trials mostly study adults with no serious health problems. Self-guided programmes work best when you keep a daily sleep diary and follow the steps for the whole 4 to 8 weeks.
Who should not do sleep restriction alone
Talk to a doctor first, and ideally do it with a trained clinician, if any of these apply:
- Bipolar disorder, or periods of needing very little sleep with high energy. Lost sleep can trigger episodes.
- Epilepsy. Lost sleep can make seizures more likely.
- Possible sleep apnoea (loud snoring, gasping, unrefreshing sleep). Insomnia may be a symptom; apnoea needs its own care.
- Pregnancy. Needs and risks change; ask your doctor or midwife.
- Driving or safety-critical work. Sleepiness in the first weeks is a real risk.
- Other conditions such as untreated severe depression, a history of falls, or parasomnias (sleepwalking and the like).
Stimulus control, thought work and a steady wake-up time are generally gentler. The risky part is cutting time in bed.
What you can start at home
If none of the cautions apply, a simple self-guided start looks like this:
- Keep a sleep diary for one to two weeks: bedtime, wake time, estimated time asleep, how rested you feel.
- Pick a fixed wake-up time and keep it every day, including weekends.
- Work out an average sleep time, and set a window slightly longer than that, never under five and a half hours. Our free sleep window calculator does the arithmetic.
- Go to bed only when sleepy inside that window; get up if awake for about 20 minutes.
- Review weekly. If you sleep most of the time you spend in bed (roughly 90% or more), add 15 minutes. If sleep is poor, keep the window.
- Expect a rough first two weeks, and stop and talk to a doctor if the sleepiness is dangerous or your mood gets worse.
If this feels too heavy to do alone, a clinician or a structured programme is a reasonable choice.
When to seek help
Please talk to a doctor or a sleep specialist if:
- insomnia has lasted three months or more and affects your days;
- you snore loudly, gasp or stop breathing in your sleep;
- you have periods of high energy with very little sleep, or a history of seizures;
- low mood, loss of interest or hopelessness have come with the sleeplessness;
- you are taking sleeping pills, melatonin or alcohol to sleep and want to change that;
- thoughts of harming yourself appear.
If you are in danger or thinking about harming yourself, contact emergency services or a crisis line now. These lines are free and confidential:
Free, confidential crisis lines by country are listed in the box below. See the crisis lines ↓
More options are on our Get help page.
FAQ
What is the difference between CBT-I and CBT?
CBT is a broad family of methods. CBT-I is the version built specifically for insomnia, with sleep restriction and stimulus control as its core.
How long does CBT-I take to work?
Programmes usually last 4 to 8 weeks. Many people notice a change in the first few weeks, but the first week or two can feel worse.
Is sleep restriction therapy dangerous?
Not for most healthy adults when done carefully, but it can cause sleepiness and is not suitable for everyone. See the list above.
Is digital CBT-I as good as seeing a therapist?
Trials show real benefit, though in-person treatment is still the reference, and results depend on completing the programme.
Do I still need sleep hygiene?
Yes, as a small supporting part. It is not enough by itself.
Sources
- Edinger JD et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an AASM clinical practice guideline. J Clin Sleep Med 2021
- Riemann D et al. The European Insomnia Guideline: an update on the diagnosis and treatment of insomnia 2023. J Sleep Res 2023
- Qaseem A et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Ann Intern Med 2016
- Zachariae R et al. Efficacy of internet-delivered cognitive-behavioral therapy for insomnia: a systematic review and meta-analysis of randomized controlled trials. Sleep Med Rev 2016
- Espie CA et al. Effect of digital cognitive behavioral therapy for insomnia on health, psychological well-being, and sleep-related quality of life: a randomized clinical trial. JAMA Psychiatry 2019
- Spielman AJ, Saskin P, Thorpy MJ. Treatment of chronic insomnia by restriction of time in bed. Sleep 1987
Read next
- Caffeine and sleep: how long before bed to stop, and why it lingersHow caffeine affects sleep, how long it stays in your body and when to stop before bed. What the research shows, plus a simple two-week test.
- Can't sleep? What to do when your mind won't switch offWhat to do if you can't sleep at night: when to get out of bed, how to park racing thoughts, what makes it worse, and when bad nights need a doctor.
- How long should a nap be? 10–20 minutes, 90 minutes, and the window to avoidThe best nap length for a quick boost is 10 to 20 minutes. When a 90-minute nap makes sense, why 30+ minutes can leave you groggy, and when to nap.
- How much sleep do I need? What the guidelines say for adults, and how to find your own numberMost adults need 7 or more hours, but needs differ. What the guidelines say, whether 6 hours is enough, and a 2-week way to find your own need.
- How to fall asleep fast: what works, what doesn't, and what to do if you're not sleepyHow to fall asleep faster tonight: a wind-down that works, a mental trick for racing thoughts, when to get up, and what to do if you are not tired.
- How to fix your sleep schedule: shift a late body clock graduallyGoing to bed at 3 a.m. and dragging through mornings? How to move a drifted sleep schedule earlier: fixed wake time, morning light, small steps.
- How to fix your sleep after a stressful period: 7 steps for the first two weeksCan't sleep because of stress? Slow to fall asleep, waking at night: why stress keeps you awake and seven steps that help steady sleep come back gradually.
- Revenge bedtime procrastination: why you stay up late and how to get your evening backStaying up late because the night is the only time that is yours? Why it happens and 5 steps to protect both free time and sleep.
- Sleep anxiety: what to do when you are afraid of not falling asleepDread of bedtime and watching the clock? How the fear of not sleeping keeps you awake, plus 5 steps to take pressure off and when to see a professional.
- Sleep diary template: what to write each morning, for how long, and how to use it with your doctorA free sleep diary template: 8 things to note each morning in 2 minutes, how long to keep it, common mistakes, and how to read it or take it to your GP.
- Sleep hygiene tips: the short checklist that matters (and why it's rarely enough)A short sleep hygiene checklist: caffeine, alcohol, light, a steady wake time. Plus why hygiene alone rarely shifts long-term insomnia, and what does.
- Sleep restriction therapy side effects: what the first weeks can feel like, and why it is best done with a clinicianSleepiness, headaches, low energy, drowsy driving: common side effects of sleep restriction therapy, who should not do it alone, how clinicians adjust it.
- Waking up at 3 a.m. and can't fall back asleep: why it happens and what to doWaking at 3–4 a.m. and lying awake? Why it happens, what to do right now, what to avoid in the night and what to change in the day to wake less often.
- Why am I always tired? Common causes, what to check, and when to see a doctorTired all the time? The most common causes, from sleep and stress to low mood, the medical ones a doctor should rule out, and a two-week log to bring along.
Resteady programmes — join the waitlist
We are building short daily skills programmes: 14 days of Calm under pressure and 28 days for sleep. Join and we will write when the beta opens. Review of the programmes by clinicians is planned and has not started yet.
Join the waitlist