Free patient guide · Insomnia
Insomnia Basics: how sleep breaks, and how to fix it
Insomnia is a cycle that feeds itself: worry and well-meant habits keep sleep out of reach. It also has a treatment that beats sleeping pills in head-to-head trials. This guide explains the cycle with one analogy, then gives you the three tools that fix it. A ten-minute read.
Sleep has a gas pedal and a brake
Two forces decide whether you sleep tonight.
The gas: sleep drive
Your body's built-in push toward sleep. The longer you've been awake, the stronger it gets. Sleep drive is also the only thing that produces sleep. Everything else you do can, at best, get out of its way.
The brake: hyperarousal
Your alertness system: stress, anxiety, vigilance, excitement. Its job is to keep you safe. If you think you left the stove on, the brake keeps you awake, as it should. In insomnia, the brake starts treating being awake as the threat.
You lie down, notice you're awake, and the noticing sets off an alarm: oh no, it's happening again. That alarm is arousal, which is the brake, so the fear of not sleeping ends up keeping you awake. It's like pressing the gas with your other foot stomped on the brake, and more gas won't free a stuck brake.
Every insomnia treatment that works does one of two things: it strengthens the gas or it releases the brake. Each tool below says which one it does.
How a bad week becomes a bad year
Short-term insomnia is normal, and it helps to know that. Nearly everyone sleeps badly for a stretch during a crisis, a loss, an illness, or a big life change, and only a tiny fraction of people go through life without one. A few wired nights during hard times may even be adaptive, giving you extra hours to process what's happening. For most people, sleep comes back on its own within days, and nothing needs to be done.
Chronic insomnia is what happens when your emergency response to those bad nights outlives the emergency. It's built out of the things people do to fix their sleep:
Stress, pain, a new baby, a loss. Sleep breaks for an understandable reason.
Napping to catch up, going to bed early "to get more chances," lying in longer, cancelling plans to save energy. Each feels sensible, and each drains the gas or feeds the brake.
Sleep doesn't improve, so beliefs form: "my sleep is broken," "I can't function like this." You start bracing for bedtime, and the brake is on before your head hits the pillow.
At the same time, the bed itself changes meaning. After enough nights of lying there frustrated, your brain stops filing "bed" under sleep and refiles it under wide-awake struggle. That's why so many people with insomnia doze off easily on the couch, then snap awake the moment they move to the bedroom.
The treatment is CBT-I (cognitive behavioral therapy for insomnia). It has three tools, one for each broken part: fixing the thoughts and retraining the bed both release the brake, and rebuilding sleep pressure floors the gas. In head-to-head studies it outperforms sleeping pills over the long run.
Tool 1: Fix the thoughts (release the brake)
Negative thoughts about sleep act on your body. Every "I'm screwed for tomorrow" sets off the stress response, and the stress response is wakefulness. Most of these thoughts are exaggerations, and believing an exaggeration at midnight costs you the night, so they are worth challenging. Three of the most common, with the facts that deflate them:
If you're sure a short night ruins the next day, think back to a night you barely slept for a happy reason, like a wedding or a red-eye to a vacation. You ran on fumes and had a great day, because you expected to. The sleep loss was the same but the story was different, which shows how much of "I'm wrecked today" comes from the story. So after a bad night, live your life anyway and do the day you had planned. Cancelling the day to recover from the night hands insomnia the steering wheel and confirms tonight's dread.
The medal system (for 3 am)
Chasing sleep pushes it further away. When you're awake in the night, stop going for gold and settle for silver:
Gold: asleep
The best rest there is. You can't force it, and trying disqualifies you.
Silver: quiet wakefulness
Lying calmly with your eyes closed, letting yourself be awake without judging it, watching thoughts drift by. It's restful and saves energy for tomorrow, and it teaches your brain that bed is a calm place. Aim for this one.
No medal: the struggle
Tossing, checking the time, doing sleep math, trying to force it. This is the insomnia itself, and none of it is restful.
Once you settle for silver and mean it, the brake eases and gold tends to arrive on its own.
Tool 2: Retrain the bed (release the brake)
Your brain learns by association, and right now it has learned the wrong thing about your bed. Stimulus control retrains it. The rules are strict so that the new lesson is unambiguous:
- Use the bed for sleep and sex only. No TV, laptop, scrolling, arguments, or worrying sessions; move everything else out of the bed, and ideally out of the bedroom.
- Get into bed only when you're sleepy. Sleepy means heavy eyelids and nodding off; being tired or bored doesn't count. If you're not sleepy, stay up.
- If you've been awake for around 20 to 30 minutes, get up. Leave the bedroom, keep the lights dim, skip screens, and do something calm and mildly boring that you chose in advance, such as a dull book, quiet music, or folding laundry. Go back to bed only when you're sleepy. Deciding at 3 am what to do is frustrating in itself, so have the plan ready by the chair before bed. (Acceptance-based therapy offers an alternative: stay in bed, but fully in silver-medal mode. Either works. Struggling in bed is the one wrong answer.)
- Get up at the same time every day, including weekends and the mornings after terrible nights. Your circadian system organizes itself around a fixed wake time.
- Banish the clock and the phone: turn the clock face away and charge the phone in another room. No one in history has checked the time at 3 am, calculated the hours remaining, and been soothed by the result.
These rules feel harsh for a week or two. After that the bed starts to mean sleep again, and getting into it stops feeling like the start of a fight.
Tool 3: Rebuild sleep pressure (floor the gas)
The least intuitive tool in sleep medicine is also the strongest: to fix insomnia, spend less time in bed. People with insomnia stretch their time in bed to "give sleep more chances," and it backfires. Eight hours in bed wrapped around four hours of sleep teaches the brain that bed is mostly a place to be awake, and all that lying around drains the sleep drive. Sleep restriction reverses this by shrinking your time in bed until the sleep in it is dense, then expanding from there.
Track one week
Each morning, write down four times: when you got into bed, roughly when you fell asleep, when you woke, and when you got up. You don't need a gadget; estimates are fine.
Set the window: average sleep + 1 hour
Work out your average sleep (not your time in bed) and add one hour. That's your new time-in-bed window. Start from your fixed wake time and count backwards. Say you average 6 hours of sleep and have to wake at 7 am: your window is 7 hours, so bedtime is midnight. No earlier, even if you're exhausted at 10.
Hold the line
Stay up until your set bedtime, get up at your set wake time, and don't nap. The first week is rough. You are building sleep pressure on purpose, and the sleepiness is what makes it work. Fill the extra evening hours with calm, pleasant things you planned ahead, like reading or stretching, and keep work, heavy conversations, and doomscrolling out of that window.
Earn time back
Once you're asleep for at least 80 to 85% of your time in bed for a full week, move bedtime 15 to 30 minutes earlier. Keep doing that until you land on the amount of sleep your body wants. Most people are surprised by how fast dense, deep sleep comes back once the window is honest.
Guardrails
Never set the window below 5 to 6 hours. If your tracking says you're sleeping less than that, do this with a professional rather than alone. Don't do sleep restriction on your own if you have bipolar disorder or a seizure disorder, because sleep deprivation can trigger episodes of both. Be cautious if your work involves driving or safety-critical machinery. When in doubt, do it with a clinician; that's what they're for.
The supporting cast (helpful, not the cure)
Whatever the wellness articles on your phone call "sleep hygiene" goes here. It helps, but only a little. Get morning sunlight within the first hour of waking. Exercise, and finish at least 3 hours before bed. Keep caffeine to the morning; it lingers far longer than it feels like it does. Alcohol knocks you out, then wrecks the second half of the night with shallow sleep and 4 am awakenings, so it's a sleep thief dressed up as a sleep aid. Keep the room cool (60 to 67°F), dark, and comfortable.
Hold these loosely, though. Sleep drive and the brake do the heavy lifting, and the perfect mattress or a magnesium routine is a rounding error next to them. Some people turn sleep optimization into a second full-time job (anxiety driven by sleep trackers even has a name: orthosomnia), and by then the optimizing is pressing the brake. If a sleep habit has started to feel like a ritual you're afraid to skip, it's working against you.
Getting more help
Every major guideline makes CBT-I the first-line treatment for chronic insomnia, ahead of medication, because its results last after treatment ends and the results of pills don't. A trained therapist can take you through it in about 4 to 8 sessions, and validated digital programs teach it if there's no therapist nearby. Sleeping medications have a place, especially short term and in a crisis. They work best as a bridge while the tools above take hold, and whether to use them is a conversation with your prescriber, not a decision to make alone at a pharmacy shelf.
Raise two things with a clinician. If you snore loudly, wake up gasping, or feel exhausted despite getting enough hours, get screened for sleep apnea before assuming it's insomnia. And if your sleep problems come with a mood disorder, treat both. Our companion guide covers the circadian side, which matters a great deal in depression and bipolar disorder.
Written for Psychofarm, based on the principles of cognitive behavioral therapy for insomnia (CBT-I), the first-line treatment for chronic insomnia in major clinical guidelines, with concepts drawn from the published research on sleep drive, hyperarousal, stimulus control, and sleep restriction therapy.
Not sure this is the right guide for you? Get a recommendation for what you’re dealing with