Free patient guide · Insomnia
Insomnia Basics: how sleep breaks, and how to fix it
Insomnia is not just "not sleeping." It is a self-feeding cycle of thoughts, feelings, and well-intentioned habits that keeps sleep out of reach, and it has a treatment that beats sleeping pills in head-to-head trials. This guide explains the whole machine with one analogy, then hands you the three tools that fix it. A ten-minute read.
The whole system: a gas pedal and a brake
Two forces decide whether you sleep tonight, and everything in this guide comes down to them.
The gas: sleep drive
Your body's natural push toward sleep. It follows one simple law: the longer you've been awake, the stronger it gets. And here's the fact people miss: sleep drive is the only thing that produces sleep. Nothing else makes sleep. Everything else just gets out of its way.
The brake: hyperarousal
Your alertness system: stress, anxiety, vigilance, excitement. It exists to keep you safe. If you think you left the stove on, the brake keeps you awake, and rightly so. The problem in insomnia is that the brake starts treating being awake itself as the threat.
Read that last line again, because it is the entire disorder in one sentence. The person with insomnia lies down, notices they're awake, and the noticing triggers alarm: oh no, it's happening again. The alarm is arousal. Arousal is the brake. So the very fear of not sleeping becomes the thing preventing sleep. You are trying to accelerate with one foot stomped on the brake, and no amount of extra gas fixes a stuck brake.
Every treatment for insomnia that actually works does one of exactly two things: it strengthens the gas, or it releases the brake. Keep that model in mind and everything below will feel obvious.
How a bad week becomes a bad year
First, some perspective that is itself therapeutic: short-term insomnia is normal. Nearly everyone sleeps badly for a stretch during a crisis, a loss, an illness, a big life change. Only a tiny fraction of people go through life without one. A few wired nights during hard times may even be adaptive: extra hours to process what's happening. For most people, sleep simply snaps back on its own within days. Nothing needs to be done.
Chronic insomnia is what happens when the emergency response to those bad nights outlives the emergency. And the cruelest part is that it's built out of solutions:
Stress, pain, a new baby, a loss. Sleep breaks for a completely understandable reason.
Napping to catch up. Going to bed early "to get more chances." Lying in longer. Cancelling plans to conserve energy. Each one feels sensible. Each one drains the gas or feeds the brake.
Sleep doesn't improve, so beliefs form: "my sleep is broken," "tonight will be awful," "I can't function like this." Bedtime becomes something you brace for. The brake is now on before your head hits the pillow.
Meanwhile something quieter happens: 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 insomniacs fall asleep on the couch effortlessly and snap awake the moment they move to the bedroom. The mattress has become an alarm clock.
The fix, called CBT-I (cognitive behavioral therapy for insomnia), has three tools, one for each broken part: fix the thoughts (releases the brake), retrain the bed (releases the brake), and rebuild sleep pressure (floors the gas). In head-to-head studies, this package outperforms sleeping pills over the long run, which is why every major guideline lists it as the first-line treatment. Here are all three.
Tool 1: Fix the thoughts (release the brake)
Negative sleep thoughts aren't just unpleasant; they are physiologically active. Every "I'm screwed for tomorrow" fires the stress response, and the stress response is wakefulness. So the thoughts get challenged, not because positive thinking is magic, but because most of them are exaggerations, and believing an exaggeration at midnight costs you the night. Three of the biggest, and the facts that deflate them:
One belief deserves its own experiment. If you're sure that a short night ruins the next day, remember a night you barely slept for a happy reason: the wedding, the red-eye to a vacation, the party. You ran on fumes and had a great day, because you expected to. The sleep loss was identical; the story about it was different. That's not a trick. That's a measurement of how much of "I'm wrecked today" is the story. So the working rule is: live your life anyway. After a bad night, do the day you had planned. Cancelling the day to recover from the night hands insomnia the steering wheel, and it confirms tonight's dread.
The medal system (for 3 am)
The harder you chase sleep, the faster it runs. So stop competing for gold and learn to love silver:
Gold: asleep
The best rest there is. But you can't force it, and trying to disqualifies you.
Silver: quiet wakefulness
Lying calmly, eyes closed, accepting being awake without judgment, watching thoughts drift by. Genuinely restful, conserves real energy for tomorrow, and teaches your brain that bed is a calm place. This is the target.
No medal: the struggle
Tossing, checking the time, doing sleep math, forcing it. This state is the insomnia. Nothing restful happens here.
Here's the paradox that makes it work: the moment you genuinely settle for silver and stop demanding gold, the pressure lifts, the brake releases, and gold tends to arrive on its own. Aim at sleep and you'll miss. Aim at rest and sleep sneaks up on you.
Tool 2: Retrain the bed (release the brake)
Your brain is an association machine, and right now it has learned the wrong lesson about your bed. Stimulus control unteaches it. The rules are strict because the lesson has to be unambiguous:
- Bed is for sleep and sex. Nothing else. No TV, no laptop, no scrolling, no arguments, no worrying sessions. Every other activity moves out of the bed, ideally out of the bedroom.
- Get into bed only when sleepy. Sleepy means heavy eyelids and nodding off, not just tired or bored. If you're not sleepy, stay up.
- If you've been awake around 20 to 30 minutes, get up. Leave the bedroom, keep the lights dim, no screens, and do something calm and mildly boring that you chose in advance (a dull book, quiet music, folding laundry). Come back only when sleepy. Deciding at 3 am what to do is itself frustrating, so have the plan ready by the chair before bed. (An alternative from acceptance-based therapy: stay in bed but fully in silver-medal mode. Either works; struggling in bed is the only wrong answer.)
- Get up at the same time every single day. Weekends included, terrible nights included. A fixed wake time is the anchor the entire circadian system organizes around.
- Banish the clock and the phone. Turn the clock face away; 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. Clock math is pure brake.
These rules feel harsh for a week or two. Then the bed quietly changes meaning again, and getting into it starts to feel like the beginning of sleep instead of the beginning of a fight.
Tool 3: Rebuild sleep pressure (floor the gas)
This is the most counterintuitive tool in medicine's sleep toolbox, and the most powerful: 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 of wakefulness, and all that lying around bleeds off the sleep drive. Sleep restriction reverses it by compressing your time in bed until the sleep in it is dense, then expanding from there.
Track one week
Each morning, jot four times: when you got into bed, roughly when you fell asleep, when you woke, when you got up. No gadgets needed; estimates are fine.
Set the window: average sleep + 1 hour
Average your actual sleep (not time in bed) and add one hour. That's your new time-in-bed window. Anchor it to your fixed wake time and count backwards. Example: you average 6 hours of real sleep and must 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, no naps. The first week is rough; you're deliberately building sleep pressure, and it works precisely because you'll be genuinely sleepy. Fill the extra evening hours with calm, pleasant, pre-planned activities (reading, music, stretching) and keep the stressful stuff (work, heavy conversations, 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. Repeat until you land on the amount of sleep your body actually wants. Most people are shocked at how fast dense, deep sleep returns once the window is honest.
Guardrails
Never set the window below 5 to 6 hours, and if your tracking says you're sleeping less than that, do this with a professional rather than alone. Skip self-directed sleep restriction if you have bipolar disorder or a seizure disorder (sleep deprivation can trigger episodes in both) and 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)
Everything your phone's wellness articles call "sleep hygiene" belongs here: real, but small. Morning sunlight within the first hour of waking. Exercise, finishing at least 3 hours before bed. Caffeine in the morning only; it lingers far longer than it feels like it does. Alcohol honestly labeled: it knocks you out, then wrecks the second half of the night with shallow sleep and 4 am awakenings, so it is a sleep thief dressed as a sleep aid. A cool (60 to 67°F), dark, comfortable room.
But hold these loosely. Sleep drive and the brake do the heavy lifting; the perfect mattress and the magnesium routine are rounding errors next to them. Some people turn optimizing sleep into a second full-time job (there's even a name for tracker-driven sleep anxiety: orthosomnia), and at that point the optimization itself has become 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
CBT-I is the first-line treatment for chronic insomnia in every major guideline, ahead of medication, because its results last after treatment ends and pills' results don't. You can get it from a trained therapist in about 4 to 8 sessions, or through validated digital programs if none is nearby. Sleeping medications have a real place, especially short-term and in a crisis, but they work best as a bridge while the tools above rebuild the machine, and that's a conversation for you and your prescriber, not a decision to make alone at a pharmacy shelf.
Two flags worth raising with a clinician: if you snore loudly, gasp awake, or are exhausted despite adequate hours, get screened for sleep apnea before assuming it's insomnia. And if your sleep problems ride along with a mood disorder, treat both; our companion guide covers the circadian side, which matters enormously 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.