Somnera
CBT-I science

How to do CBT-I at home: the steps, in order, and the safety rules

Self-guided CBT-I is a recognized way to treat insomnia. Here is the sequence, what each step is for, and when to do this with a clinician instead.

4 min read

Last reviewed October 7, 2026

A line climbing a set of five steps, with the final step highlighted

Share

You can do CBT-I at home. Self-guided delivery is recognized in the European insomnia guideline as a first-line option, and it has been tested in large trials. What makes it work is doing the steps in the right order and sticking with them through the weeks where it feels worse - not finding a shortcut.

This is the sequence, what each part is for, and the safety rules that come first.

Before you start: the safety check

Sleep restriction, the most powerful part of CBT-I, increases daytime sleepiness before it improves sleep. That has been measured directly, including objectively impaired vigilance during the restriction phase.

So do this with a clinician rather than on your own if:

  • you drive for a living, operate machinery, or do any work where sleepiness is dangerous;
  • you snore loudly, wake gasping, or have been told you stop breathing in your sleep - possible sleep apnea needs ruling out first;
  • you have severe depression, or any thoughts of harming yourself;
  • you have a medical condition where sleep loss carries particular risk;
  • you are taking sleep medication and want to change it - that is your prescriber's call.

If none of those apply, here is the order.

The steps, in order

Step 1: Keep a sleep diary (weeks 1–2)

For one to two weeks, change nothing. Each morning, write down when you went to bed, roughly how long it took to fall asleep, how long you were awake in the night, when you finally woke, and when you got up.

This is the baseline every later decision is made from. Your memory of a bad night is not reliable enough; the diary is. How to keep one properly.

Step 2: Fix your rising time

Pick a wake-up time you can keep every single day, weekends included, and keep it regardless of how the night went. This anchors your body clock and is the fixed point the sleep window is built backwards from.

Step 3: Set your sleep window

From the diary, work out your average total sleep time. That becomes your time in bed - counting back from your fixed rising time - with a floor you do not go below regardless of what the diary shows. The arithmetic, written out.

Take the free assessment to see:

  • ✓Your Insomnia Severity Index (ISI) score
  • ✓A personalized 6-week CBT-I plan, built by a sleep physician
  • ✓How your sleep improves, night by night
Start free assessment

This is sleep restriction. It will feel too short. It is meant to: it concentrates sleep by building more sleep pressure into a shorter window. Why it works, and why the first two weeks are hard.

Step 4: Apply stimulus control

At the same time, follow the stimulus control rules. Go to bed only when sleepy, not just tired. If you are awake and getting frustrated, get up and go somewhere else until you are sleepy again. Use the bed for sleep. Do not nap. What to do at 2am, specifically.

Step 5: Adjust the window week by week

Keep the diary going. Each week, look at your sleep efficiency - the share of time in bed you actually spent asleep. When it is consistently high, widen the window a little. When it is low, hold or narrow it. What a good number looks like.

Step 6: Work on the worry

Alongside the behavioral steps, CBT-I tests the beliefs that make sleep feel high-stakes - that one bad night ruins the next day, that you need eight hours to function, that you have lost the ability to sleep. Sleep anxiety and a racing mind at night cover this part. Relaxation techniques can help with the physical side.

What to expect

The first two weeks of sleep restriction are usually the hardest, and the most common point to quit. Sleepiness goes up before sleep consolidates. That is the mechanism working, not failing - but if you are too sleepy to drive or work safely, widen the window rather than pushing through.

Trials generally run CBT-I over four to eight weeks. If you have stuck with it and nothing has changed by week four, here is what to check before you give up.

Doing it alone vs with structure

The steps above are the method. What people most often struggle with on their own is not knowing the steps; it is calculating the window correctly, adjusting it at the right time, and staying with it through the hard weeks. That is the job a structured program or a therapist does. Whether online CBT-I works and how self-guided compares with a therapist are covered separately, along with the rest of this section.

Somnera is a self-guided education program built on CBT-I, founded and written by Dr. Camilo Ruiz, DO, FACOI, FAASM. It is not a diagnosis and does not replace care from your own clinician. The assessment is free and takes about two minutes.

Citations

  • Riemann D, et al. The European Insomnia Guideline: an update on the diagnosis and treatment of insomnia 2023. J Sleep Res. 2023;32(6):e14035. doi:10.1111/jsr.14035
  • Edinger JD, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. J Clin Sleep Med. 2021;17(2):255–262. doi:10.5664/jcsm.8986
  • Kyle SD, et al. Sleep restriction therapy for insomnia is associated with reduced objective total sleep time, increased daytime somnolence, and objectively impaired vigilance. Sleep. 2014;37(2):229–237. doi:10.5665/sleep.3386
  • Spielman AJ, Saskin P, Thorpy MJ. Treatment of chronic insomnia by restriction of time in bed. Sleep. 1987;10(1):45–56.
  • Carney CE, et al. The Consensus Sleep Diary: standardizing prospective sleep self-monitoring. Sleep. 2012;35(2):287–302. doi:10.5665/sleep.1642

Frequently asked questions

Yes. The European insomnia guideline recommends CBT-I as first-line treatment whether delivered in person or digitally, and self-guided programs have trial evidence behind them. Some people should still do it with a clinician, particularly if daytime sleepiness would be dangerous.

Keeping a sleep diary for one to two weeks, without changing anything. Every later step, including the sleep window, is calculated from that baseline.

For most people, with care. Sleep restriction increases daytime sleepiness before it consolidates sleep, which has been measured objectively. If you drive for a living, operate machinery, or have a condition where sleep loss carries particular risk, plan it with a clinician first.

Trials generally run CBT-I over four to eight weeks. Expect the early weeks of sleep restriction to feel harder before sleep starts to consolidate.