GUIDE · PRACTICE

How to beat insomnia without pills: CBT-I, step by step

Melatonin, magnesium, chamomile tea, white noise, counting sheep: odds are you've already tried most of it. And the night's still a coin flip: some nights you're out in ten minutes, other nights you're staring at the ceiling until 3 a.m. This guide walks through the method clinicians worldwide recommend starting with for chronic insomnia: CBT-I, cognitive behavioral therapy for insomnia. We'll lay it out as a self-help program, step by step, with the math and the honest warnings.

Reviewed by our editors~8 min read

Chronic insomnia has a first-line fix

When insomnia drags on for months, you've usually run through the gentle stuff already. Sometimes something works for a couple of nights, then stops. That makes sense: chronic insomnia has a stubborn engine underneath it, and chamomile tea doesn't touch that engine.

Meanwhile, the treatment with the strongest evidence behind it has been around for a long time. It's CBT-I, cognitive behavioral therapy for insomnia. US and European clinical guidelines call it the first-line treatment: the thing to start with for chronic insomnia, before reaching for sleeping pills. It's backed by dozens of randomized trials, and the sleep gains hold up months and even years after the program ends.

The difference from a sleeping pill is fundamental. A pill buys you one night of sleep. For as long as the drug is active, the insomnia engine sits there untouched. CBT-I rebuilds the engine itself: it restores the bed–sleep connection and re-syncs your internal clock with your buildup of sleepiness. That's why the effect stays with you after the program is done.

Straight up: CBT-I asks for 3 to 6 weeks of discipline, and the first week is usually the hardest. It's a program with concrete rules, and it works for people who hold the rules. The upside: you can realistically do most of it on your own.

One note before you start. If your main problem is anxious thoughts that switch on the moment you're in bed, start with our guide on anxiety at night. It's about dumping your thoughts and building a wind-down routine. This article is about a different situation: when insomnia has already come loose from stress and turned into a problem of its own.

How insomnia turns chronic: the 3-P model

In sleep medicine, the shift from short-term to chronic insomnia is described by the 3-P model. It explains why sleep stays bad long after the original cause is gone.

Predisposing factors. Some people are naturally light sleepers, some react to stress more anxiously, some had parents who slept the same way. This is the background. On its own, it doesn't create insomnia.

Precipitating event. Heavy stress, an illness, a move, a new baby, a stretch of late deadlines. Short-term insomnia during a stretch like that is a normal reaction, and for most people it fades along with the event.

Perpetuating factors. The most important part of the model. The stress is over, but the insomnia stays. Now it's held up by the habits we use to cope: going to bed early "to bank some sleep," sleeping in on weekends, napping during the day, lying in bed with the phone "until I drift off," trying as hard as we can to fall asleep. Each of these looks reasonable. And each one makes sleep worse.

Here's the physics of it. Your need for sleep (sleep researchers call it sleep pressure) builds up across your waking hours and gets spent overnight. Daytime naps and sleeping in bleed that pressure off early, while an early bedtime stretches the night out. You spend nine hours in bed and sleep six, so your sleep gets smeared thin across the bed, light and broken, full of wake-ups. At the same time, the bed gets more and more firmly linked to lying awake and frustrated. It's a closed loop.

the loop Bad night fell asleep late, slept in pieces Anxiety about sleep coping habits: go to bed early, nap, sleep in Out of sync sleep pressure ≠ internal clock Night gets worse you lie awake even longer break the loop The way out: CBT-I shrink the sleep window, hold the schedule
Chronic insomnia is held up by habits now: anxiety about sleep and the scramble to "cope" knock sleep pressure out of sync with your internal clock. CBT-I breaks the loop at its strongest point: it shrinks the sleep window.

Check yourself: the Jenkins Sleep Scale (JSS-4)

Four questions about the past month: falling asleep, waking in the night, waking up worn out. Before you start the program, it helps to log where you're starting from. A few weeks in, you'll retake it and compare. You get your score right away, with a plain-English explanation you can talk through with Helpy.

Take the test

Want to see how strong it is right now?

The GAD-7 asks seven questions and takes about two minutes. You'll get a score and what its range means — no signup, nothing saved unless you ask.

Take the 2-minute check-in

Step 1. The sleep diary: one or two weeks of watching

The program starts by gathering data. You can't calculate your sleep window in the next step without a diary, so for the first week or two you just watch and change nothing.

Every morning, in about 5 minutes, jot down a few things about the night that just passed:

You don't need minute-level accuracy. Eyeball it, and don't check the clock in the night. Fitness trackers aren't required: they read sleep stages inaccurately, and the habit of checking your "sleep score" each morning just feeds anxiety about sleep.

Two numbers matter from the diary. First, your average sleep time per night. Second, your sleep efficiency: time asleep divided by time in bed, times 100%. Say you spend 8.5 hours in bed and sleep 6: that's about 70% efficiency. For someone with healthy sleep, it usually runs above 85 to 90%.

Step 2. Sleep restriction: cut your time in bed

This is the core of CBT-I: the most powerful step, and the most counterintuitive. The logic: right now your six hours of sleep are smeared across eight or nine hours in bed. Shrink your time in bed down to your actual sleep time, and sleep pressure builds up properly across the day, so sleep gets denser: you fall asleep faster, and your wake-ups get shorter.

  1. Set your sleep window. Your window equals your average real sleep time from the diary, but never less than 5.5 hours. Sleep 6 hours on average, the window is 6. Sleep 5, the window is still 5.5.
  2. Lock in your wake-up time. Pick a time you can get up at every day, weekends included, say 7 a.m. This is the anchor for the whole program.
  3. Count back to your bedtime. Wake-up time minus your window. With a 6-hour window and a 7 a.m. wake-up, you don't get into bed before 1 a.m. Yes, that's late, and it's supposed to be.
  4. Recalculate once a week. Figure your sleep efficiency for the week. Above 85%, move your bedtime 15 minutes earlier. 80 to 85%, leave it as is. Below 80%, tighten the window a little more, but never below 5.5 hours.

This way, 15 minutes at a time, your window widens back out to your personal norm, now with dense, solid sleep. An honest heads-up: the first few days you'll feel sleepier than usual. That's a sign sleep pressure is building and the method is working, but go easy behind the wheel and around anything dangerous. If you're literally nodding off during the day, your window's too tight. Go back to 5.5 to 6 hours and move slower.

Step 3. Stimulus control: give the bed its job back

Over months of insomnia, the bed has turned into the place where you lie there, get frustrated, check the time, and scroll your feed. Your brain honestly learned that link, and now the act of getting into bed switches on wakefulness. Stimulus control re-teaches your brain the other way around. There are five rules, and they only work together:

  1. Bed is for sleep and sex only. No shows, no eating, no work, no social media. All of that moves to other spots in your place.
  2. Get into bed only when you're sleepy. Sleepy means your eyes are drooping and your head's nodding. Tired without sleepy doesn't count.
  3. Not asleep in about 20 minutes, get up. Don't watch the clock, just estimate. Go to another room, keep the lights low, and do something calm and boring: a paper book, some simple handwork. Come back to bed when you feel sleepy again. Repeat as many times as it takes. The first few nights, that might be three or four times.
  4. Same wake-up time, every single day. Weekends included, and the morning after your worst night too. Sleeping in "to make up the debt" wrecks the whole thing.
  5. No daytime naps. For the length of the program, cut napping entirely: it leaks off the sleep pressure you're saving up for the night.

Getting up in the middle of the night is annoying and cold, especially in winter. Keep a blanket nearby and decide ahead of time what you'll do. When the plan's ready, getting up is easier.

Step 4. Thoughts about sleep: take the pressure off

Chronic insomnia almost always has a cognitive layer: beliefs about sleep that get in the way of sleeping. The two most common: "if I don't fall asleep right now, tomorrow's a disaster" and "I have to get 8 hours no matter what." In CBT, you test thoughts like these against the facts.

Check the evidence. Think back to the last few times you barely slept. How did the next day actually go? Usually the answer is: rough, ran on coffee, but the work got done and nobody noticed. That's data from your own experience: a bad night makes the day harder, and the day is still livable. The thought "I can't fall asleep again, everything's ruined" doesn't line up with that data.

About the 8 hours. That's a population average, and the normal range is wide: roughly 6 to 9 hours. Demanding "8 hours no matter what" turns the bed into a place where you're taking a test, and test-taking tension doesn't mix with sleep.

Paradoxical intention. Sleep is a process you can't force into being: the harder you try to fall asleep, the further it runs. Try flipping the effort: lie down, turn off the light, and gently try to stay awake, with no phone and no screens, just lying there with your eyes open. The pressure of "I have to fall asleep" disappears, and sleep often shows up on its own. It sounds strange, but the technique has solid research behind it. It's part of the clinical CBT-I protocols.

If your evening worry latches onto everything at once (work, health, relationships), it helps to move it out of the night entirely, and that's what the "worry time" technique is for.

Sleep hygiene: the background you need, but not enough on its own

You've almost certainly read about sleep hygiene, so here's the short version: caffeine until early afternoon, since it takes 5 to 6 hours to clear; alcohol speeds up falling asleep but breaks the back half of the night; keep the bedroom cool (around 65 to 68°F), dark, and quiet; cut bright light and screens for an hour before bed; and skip heavy meals and hard workouts late in the evening.

It's worth being clear about what these rules do. Sleep hygiene clears away interference, and that's a useful background for the program. It doesn't cure chronic insomnia on its own: the perpetuating engine (sleep pressure out of sync and the "bed = wide awake" link) stays untouched. That's why you hear "I do everything right, I sleep in a cool dark room, and I still can't sleep" so often. The real tools are Steps 2 and 3; hygiene just helps them along.

What to expect, week by week

Week 1. The hardest, no sugarcoating it. The sleep window feels brutal, you're aching to go to bed early in the evening, and daytime sleepiness follows you around. This is the week people quit most often. It helps to remember: sleepiness is the fuel you're saving up for the night.

Weeks 2 to 3. Falling asleep speeds up, usually down to 15 or 20 minutes. Night wake-ups get shorter and rarer, and sleep feels denser. Efficiency climbs, and the window starts widening back out 15 minutes a week.

Weeks 3 to 6. The window works back up to your norm. That forgotten "head hits the pillow, I'm out" feeling comes back. The dread of the bed melts away, because your brain has stacked up new evidence: bed means sleep again. Long-term follow-ups show the results hold up a year out from the program.

When you shouldn't do CBT-I on your own

Sleep restriction is a serious intervention, and in some situations it's used only under a doctor's supervision: if sleep apnea is a possibility (loud snoring, breathing pauses your partner has noticed, heavy daytime sleepiness), during pregnancy, with bipolar disorder (lost sleep can trigger an episode), with epilepsy, and with night-shift work. Run the other parts of the program (the diary, stimulus control, working with thoughts) by a doctor too; they can help you fit them to your situation.

About sleeping pills, neutrally. If you're already taking a medication your doctor prescribed, CBT-I is compatible with it: people often start the program while on the medication, and the doctor then tapers the dose gradually. Don't stop a sleeping pill cold on your own. Talk through any change to the regimen with whoever prescribed it.

When it's worth talking to a professional

If insomnia has held on for more than three months and 4 to 6 weeks of honest self-help haven't budged it; if you're dropping into microsleep during the day; if a low, depressed mood or heavy anxiety has piled onto the insomnia, reach out to a sleep specialist, a psychiatrist, or a therapist who works in CBT. CBT-I with a professional is the same method, just with guidance and adjustments tailored to you.

Want to work through your own situation before you start the program? Describe what your nights look like, and Helpy will ask a few follow-up questions and help you calculate your sleep window from your diary.

Important

This is educational self-help content, not a substitute for professional care or diagnosis. If your insomnia comes with a low, depressed mood, heavy anxiety, or severe daytime sleepiness, reach out to a doctor or mental-health professional. If you're in crisis or thinking about suicide, get help now: call or text 988 (988 Suicide & Crisis Lifeline), text HOME to 741741 (Crisis Text Line), or call 911 for emergencies. Available 24/7.

← All CBT guides