How it works

CBT-I has a handful of parts. Here is what each one asks of you, in the order most people take them. You don’t need all of them, and you can stop at any step.

  1. Keep the diary for one to two weeks

    Each morning, within an hour or so of getting up, answer a few questions about the night that just ended. A rough guess is fine for every answer, and there’s no need to watch the clock at night to get it right. To save, you need only the time you got into bed and the time you got up. If you miss a morning, you can add it for up to two days afterward.

    Optional questions ask about the day before, like naps, caffeine, alcohol, and screens. Once there are enough nights, Week by week compares them with your nights. They never change the numbers or the window.

    Open the sleep diary

  2. Read your nights in numbers

    • Time in bed runs from when you got into bed to when you got out of it for the day.
    • Total sleep starts when you fell asleep, which is the time you tried to sleep plus how long it took. It ends at your final waking, and time awake in the night is taken out.
    • Sleep efficiency is total sleep divided by time in bed.

    Time in bed before you tried to sleep, and after your final waking, doesn’t count as sleep. That is why total sleep is often shorter than your time in bed.

    A night missing something the math needs is saved as Partial. It shows what’s missing, and it stays out of your averages and your sleep window until you add it.

    A night whose times can’t all be right says “Times to check” instead, and the night’s page names what to check. It happens when one time comes before the one it should follow, like trying to sleep before getting into bed. It also happens when getting into bed and getting up are the same time, when the night adds up to more than 18 hours in bed, which usually means AM and PM got swapped, or when falling asleep and time awake add up to more than the night itself. Until you fix it, the night stays out of your averages and your sleep window.

  3. Follow the rules for the bed

    These are the stimulus control rules, first described by Richard Bootzin in 1972. Treatment manuals ask for them every night, the hard nights most of all.

    • Go to bed only when you’re sleepy.
    • Use the bed only for sleep and sex.
    • If you can’t sleep, get up and go to another room. Go back to bed when you’re sleepy.
    • Get up at the same time every day.
    • Avoid napping during the day. If you’re too sleepy to drive or work safely, a short nap early in the afternoon is the safer choice.

    How stimulus control fits into CBT-I

  4. Decide whether the sleep window is right for you

    The sleep window limits your time in bed for a while, which is why it starts with a page called “Before you start.” This is what it says.

    Limiting your time in bed can make you very sleepy during the day, especially in the first weeks. Talk with a health care provider first if any of these apply to you.

    • Bipolar disorder
    • A seizure disorder
    • A history of psychosis
    • Sleep apnea
    • Narcolepsy or another sleep problem besides insomnia
    • Sleepwalking or other unusual behavior during sleep
    • A history of falls, or another health problem
    • Medicine that makes you drowsy
    • Pregnancy
    • Driving or using machinery for work

    Don’t drive or do anything risky when you feel drowsy.

    Stop the window and talk with a health care provider if you nod off during the day without meaning to, have a seizure or a fall, or notice your mood running unusually high, your thoughts racing, or that you need much less sleep than usual. If you already doze off easily during the day, see a doctor before you start.

    There are gentler ways to start. Sleep compression shrinks your time in bed a little at a time instead of all at once. It’s often a better fit for older adults and for anyone who can’t safely be very sleepy. You’ll choose between it and the standard window when you set yours up. You can also skip the window and keep using the diary and the other tools.

    The window isn’t built for rotating shifts.

  5. Set the window, then check it once a week

    Once the diary has 7 complete nights, the calculator works out a starting window from your average sleep. You choose one wake time for all seven days, weekends included, and your bedtime is that wake time minus the window. Go to bed no earlier than that, and only when you’re sleepy.

    There are two ways to start, and you choose when you set the window up.

    • Standard sleep window. Your time in bed starts at how much you sleep now, never under 5 h 30 min. Each week, the check can suggest going to bed 15 min earlier or later.
    • Sleep compression. Your time in bed starts up to 30 min shorter than it is now, never below how much you sleep now. After that, in any week your efficiency is under 85%, it shrinks by up to 30 more min, with the same limit. At 90% or more, the check can suggest going to bed 15 min earlier.

    The sleep window check looks at your efficiency for the week, which is the share of your time in bed you spent asleep, and suggests a change.

    • 90% or higher. Bedtime 15 minutes earlier.
    • 85 to 89%. No change.
    • Under 85%. Bedtime 15 minutes later, never less than 5 hours and 30 minutes in bed.

    A week with fewer than 5 complete nights gets no suggestion, because a few nights can swing the average a lot. If you spent most nights in bed outside your window, the check says so and keeps the window where it is, since the numbers then show something other than the window. You always decide. Neither the app nor the calculator moves the window on its own.

    The window can keep widening until a longer window stops filling with sleep, usually when efficiency settles between 85 and 89%, or until you feel rested during the day. Then you can keep it where it is.

    These thresholds are the ones taught in most treatment manuals. Clinicians sometimes adjust them, for example moving bedtime earlier at 85% for older adults. If you work with one, follow their plan.

    Each check’s buttons say exactly what they’ll do, and the last change can be undone until the next check opens. Under “Change your window,” you can also move the wake time, switch between the two ways to start, or stop.

    Open the sleep window calculator

  6. Quiet a busy mind

    Many people with insomnia are tired in body and wide awake in thought. CBT-I has a few ways in. Worry time, early in the evening, gives the day’s concerns a place to land before bed. A wind-down routine fills the last 30 to 60 min with something calm and the same each night. Breathing, relaxation, and meditation exercises give the body something slow and steady to do before bed.

    In the app, “Quiet a busy mind” has worry time, the wind-down, and guided exercises, and the guided exercises are also here on the site. Each exercise is guided step by step, with narration in a female or male voice, or you can read it at your own pace.

    CBT-I also works on what you think and expect about sleep. Thoughts about sleep sets common beliefs next to what your own diary shows, and sleep experiments test a belief over a few nights. Both are in the app and here on the site.

    Two evening writing practices sit beside them, a gratitude journal and three good things. They aren’t part of CBT-I, but some people like ending the day with a few lines of writing. Both are in the app, and you can also use the gratitude journal and three good things here on the site.

    Breathing

    • Slow breathing. Breathing out a little longer than you breathe in, at an easy pace.
    • Even breathing. Breathing in and out for the same count, about six breaths a minute.
    • Belly breathing. Letting the breath move your belly more than your chest, with no count to keep.

    Relaxing the body

    • Progressive muscle relaxation. Tensing and letting go of one group of muscles at a time.
    • Body scan. Moving your attention slowly through the body, noticing without changing anything.
    • Heavy and warm. Short phrases of heaviness and warmth, repeated silently while the body settles.

    The mind

    • A calm place. Building a place you find calming, one sense at a time.
    • Mindful breathing. A daytime practice of resting attention on the breath and coming back when it wanders.
    • Leaves on a stream. Setting each thought on a leaf and watching it float by, without pushing it away or following it.

    When you’re awake at night

    • Let sleep come. Lying in bed in the dark with your eyes open, gently staying awake instead of trying to sleep.
    • Up in the night. For sitting up in another room when sleep won’t come, until you’re sleepy again.
    • Word pictures. Picturing simple, unrelated things one at a time, to give a busy mind something dull to do.

    Calming the body explains how the exercises work, and Racing thoughts at night covers worry time and the wind-down.

  7. Know when to get other help

    Some sleep problems aren’t insomnia. Loud snoring, gasping, or pauses in breathing, an urge to move your legs at night, acting out dreams, or falling asleep while driving all deserve a doctor’s look. So does trouble that started with a new medicine or a change in your health.

    When to see a doctor