Can't fall asleep because your brain won't shut off? What to do
When your brain won't shut off at bedtime, don't try to force the thoughts out: that makes them louder. Give your mind a dull, harmless job instead (a slow breath, a word game, a detailed calm picture), and if you're still wide awake and thinking after what feels like 20 minutes, get up and let the thoughts run somewhere other than bed. Then, starting tomorrow, give your worries their own time and paper earlier in the evening, so they stop waiting for the pillow.
Racing thoughts are the most common thing people with insomnia describe, and most of the methods that help come from CBT for insomnia (CBT-I), the treatment sleep doctors recommend first. Below: why your mind speeds up the moment you lie down, what to do in bed tonight, step by step; a table that matches the kind of thought to the tool that fits it; the evening routine that empties your head before bed; a 2-week plan; and when racing thoughts are a reason to see a doctor.
Why does my brain turn on when I lie down?
Three things happen together at bedtime, and each one makes the others worse.
- Bed is the first quiet minute of the day. All day your attention goes to work, people, screens and errands. In a dark room with nothing to do, the unfinished business finally gets a turn: the email you didn't answer, the bill, the conversation you keep replaying. The thoughts were there all day; bed is just where you hear them.
- Worry raises arousal, and arousal blocks sleep. Falling asleep needs your body and mind to wind down. Thinking about problems does the opposite: it keeps the brain alert and the body slightly on guard. Sleep researchers call this pre-sleep arousal, and in the leading model of insomnia (Allison Harvey's cognitive model, 2002) it's what keeps the problem going: worry wakes you up, you notice you're awake, then you worry about being awake.
- Bed becomes a cue for thinking. After enough nights of lying there planning and fretting, the bed itself starts the habit. That's why so many people nod off on the sofa and then feel wide awake once they get into bed. The brain has learned "bed = time to think".
The good news hidden in this: none of it means your brain is broken. A busy mind at bedtime is a learned pattern plus an unfinished to-do list, and both can be changed with habits.
Why "just stop thinking" doesn't work
Trying to push a thought away tends to bring it back. In Daniel Wegner's well-known studies, people told not to think of a white bear thought of it more than people who were allowed to. Harvey tested the same thing in people with insomnia (2003): those told to suppress their pre-sleep thoughts took longer to fall asleep and rated their sleep worse. So the goal isn't an empty mind. It's a mind busy with something harmless, or a mind that lets the thoughts pass without grabbing them.
What to do in bed tonight, step by step
- Turn the clock and the phone away. Checking the time feeds the worry ("if I fall asleep now I get 5 hours"). In a study from Harvey's lab (Tang, Schmidt and Harvey, 2007), people with insomnia who could watch a clock while trying to sleep worried more and took longer to fall asleep than those who couldn't.
- Notice the thought, name it, let it go past. Say to yourself "that's a work thought" or "planning again", without answering it. You're not arguing with it or solving it, just labelling it and going back to your breath. It sounds too simple, but labelling takes you out of the story and back to being an observer.
- Breathe out longer than you breathe in. In through the nose for about 4 counts, out slowly for about 6, for 5 minutes. Slow breathing is one of the relaxation methods used in CBT-I. It doesn't knock you out; it lowers the alertness that keeps the thoughts coming.
- Give your mind a dull job. Pick one from the next section: a cognitive shuffle, a detailed calm picture, or relaxing your muscles from the feet up. Choose one and stay with it; switching tools every two minutes is another way of trying too hard.
- If you're still awake and thinking after what feels like about 20 minutes, get up. Don't time it. When you notice you're frustrated, or you've solved the same problem three times, that's the cue. Go to another room with low light.
- Let the thoughts out on paper. Out of bed, write down whatever is going round: the task, the worry, the next small step if you know it. Then do something quiet and boring (a familiar paper book, folding laundry, a simple puzzle) until your eyes get heavy.
- Go back to bed when you're sleepy, not just tired. Heavy eyes, nodding, reading the same line twice. Repeat if the thoughts start up again.
- Get up at your usual time tomorrow, however the night went. A lie-in takes away the sleep pressure that helps you fall asleep the next night.
Steps 5 to 7 are stimulus control, described by Richard Bootzin in 1972 and recommended by the American Academy of Sleep Medicine's 2021 guideline. It's covered in full, with the different "15, 20 or 30 minutes" rules, in our guide on what to do when you can't fall asleep.
Tools that quiet a racing mind
The cognitive shuffle
Pick a calm word with no repeated letters, such as planet. Take the first letter and picture as many unrelated things starting with it as you can, one at a time, a few seconds each: p: a pear, a piano, a puddle, a parrot. When you run out, move to l. The point is that the pictures don't connect into a story. Luc Beaudoin, the researcher who designed it, argues that random, scattered images are close to what the mind does as it falls asleep, and they leave no room for planning. The evidence is early (small studies and conference reports), but it costs nothing and many people find it easier than breathing alone.
A detailed calm picture
Choose a scene you know well and find pleasant but not exciting: a walk by a lake you've visited, your grandmother's kitchen, a slow drive on a familiar road. Walk through it in detail: the sounds, the light, the temperature, what's on the left. In a study by Harvey and Payne (2002), people with insomnia who were taught this kind of imagery fell asleep sooner and had fewer unwanted thoughts than people who were told to distract themselves any way they liked. The detail matters: a vague "happy place" lets the worry back in.
Progressive muscle relaxation
Starting with your feet, tense one muscle group for about 5 seconds, then let it go for about 15 to 20 seconds and notice the difference. Move up: calves, thighs, stomach, hands, arms, shoulders, face. It takes about 10 to 15 minutes. It gives your attention a physical job and loosens the tension that worry builds in the jaw and shoulders.
Let the thought be there (acceptance)
Some thoughts don't go away with a word game: a real problem, a loss, a fear about health. For those, stop fighting. Say "I'm worried about this, and I can't fix it tonight", and let the worry sit beside you while you breathe. Acceptance-based methods are part of newer insomnia programs. They work on the second layer of the problem: the struggle against the thought, which keeps you more awake than the thought itself.
Paradoxical intention
For some people the main thought is "I must fall asleep". Paradoxical intention flips it: lie in bed with your eyes open in the dark and gently try to stay awake, without screens or moving around. Taking away the effort to sleep often takes away the anxiety about it. It's listed among accepted insomnia treatments in the American Academy of Sleep Medicine's 2006 practice parameters. It's an odd one; try it when the worry is about sleep itself.
Which tool fits which kind of thought
| The thoughts sound like | Try first | Why |
|---|---|---|
| "Don't forget to email Sam, book the car, buy milk" | A to-do list on paper, before bed or out of bed | The brain keeps rehearsing tasks it fears forgetting; paper holds them |
| "What if I lose the contract? What if the test is bad?" | Constructive worry earlier in the evening; acceptance in bed | Real problems need daytime thinking, not 1 a.m. thinking |
| Replaying a conversation, an argument, a mistake | Labelling ("replaying again"), then the detailed calm picture | Replays are stories; a vivid scene crowds them out |
| Random songs, ideas, plans for fun things | The cognitive shuffle | Busy but not worried: a dull job is enough |
| "I have to sleep, tomorrow will be awful" | Paradoxical intention; clock out of sight | The worry is about sleep itself, so remove the effort |
| Body feels tense, jaw or shoulders tight | Progressive muscle relaxation, long out-breaths | Calming the body lowers the arousal under the thoughts |
| Grief, a health scare, a crisis | Acceptance, getting up, and talking to someone in the day | Some thoughts are right to have; the aim is rest, not none |
Empty your head before bed: the evening routine
The best time to deal with racing thoughts is about two hours before you go to bed, when you can still act on them.
Constructive worry (15 minutes, early evening)
This method comes from Colleen Carney and William Waters (2006), who found it cut pre-sleep worry in people with insomnia.
- Sit down with paper 2 to 3 hours before bed, not in the bedroom.
- Draw two columns. On the left, write each problem that might keep you awake.
- On the right, write the next step for each one, however small: "email Sam at 9", "look at the bank statement Saturday", "ask my sister". If there's no step, write "nothing to do tonight; will look at it on Thursday".
- Fold the paper and put it somewhere you'll see it in the morning.
- If one of those thoughts turns up in bed, tell yourself: "I've dealt with that as well as I can today. It's on the paper."
The 5-minute to-do list (at bedtime)
In a sleep-lab study by Michael Scullin and colleagues (2018), adults who spent 5 minutes before bed writing a to-do list for the coming days fell asleep faster than adults who wrote about tasks they'd already finished. The more specific the list, the faster they fell asleep. It's one small study in young adults, but it's free: write tomorrow's tasks down, with detail, and close the notebook.
A real wind-down hour
Your head can't go from a work call or a gripping series straight to sleep. In the last hour: lights lower, screens away or at least no news, email or social feeds, something calm you enjoy. Our bedtime routine for adults has a timed 60-minute version you can copy, including one for people with anxiety.
During the day
- Caffeine: stop by early afternoon. In a 2013 study (Drake and colleagues), caffeine taken even 6 hours before bed cut sleep by more than an hour. Caffeine can also make anxious thinking sharper.
- Alcohol: it may help you drop off, but sleep gets lighter and more broken later in the night, and early-morning waking is when worry is loudest.
- Some time outside and some movement: daylight helps keep your body clock steady, and regular exercise is linked with better sleep. Leave hard workouts for earlier in the day if they wind you up.
- Small gaps: a few minutes without a screen during the day (a walk, waiting in line without a phone) lets thoughts come up when they're cheap, not at midnight.
Mistakes that keep the thoughts going
- Solving problems in bed. Lying there making plans teaches your brain that bed is the planning room. Plan on paper, out of bed.
- Scrolling to "switch off". Feeds and news give the mind new things to chew on, and the light from the screen comes with it. A podcast you know well or a familiar paper book does the job better.
- Going to bed earlier to get more sleep. More time awake in bed means more time for thinking. People with insomnia often need less time in bed, not more, which is the idea behind sleep restriction for insomnia.
- Switching techniques every few minutes. Pick one and stay with it for 10 minutes. Trying everything is another form of trying hard.
- Judging the night at 2 a.m. "This is going to be terrible" is a thought too. Label it and let it pass; nights after a bad one are usually easier, because sleep pressure has built up.
- Lying in after a bad night. It feels kind, but it pushes the next bedtime later and gives the thoughts another long night. Keep your wake-up time.
A 2-week plan for a mind that won't switch off
| Days | What to do |
|---|---|
| 1 to 3 | Set one wake-up time for every day, weekends too. Clock turned away. Each evening, 15 minutes of constructive worry 2 to 3 hours before bed. In bed: long out-breaths, then one tool. |
| 4 to 7 | Add the 5-minute to-do list at bedtime. Get up when you're awake and thinking for what feels like 20 minutes, write the thoughts down, back to bed when sleepy. Write down each morning roughly how long you think it took to fall asleep and how long you were in bed. |
| 8 to 10 | Keep the routine. Look at the week's notes: which kind of thought came most (tasks, worries, replays, sleep itself)? Make the matching tool from the table your first choice. |
| 11 to 14 | If you're still awake for long stretches in bed, work out your average sleep and your time in bed. If time in bed is much longer than sleep, try a set sleep window (sleep restriction), or talk to a doctor about CBT-I. |
If you'd rather not do the arithmetic, our 2-minute sleep quiz works out how many minutes you spend awake in bed and suggests a starting sleep window from your answers.
If you're also tired but somehow can't drop off even with a quiet mind, the cause may be your sleep timing rather than your thoughts: see why you can't fall asleep even when you're tired.
When racing thoughts are a reason to see a doctor
Most busy-mind nights are a habit and a full day, and the steps above are the standard first try. See a doctor or a mental health professional when:
- You have trouble sleeping at least 3 nights a week for 3 months or more, and it affects your days. That's the usual definition of chronic insomnia, and CBT-I with a trained clinician, or a CBT-I program, is the first-line treatment in the guidelines of the American Academy of Sleep Medicine (2021) and the American College of Physicians (2016).
- The worry is there most of the day too, is hard to control, and comes with restlessness, tension or a racing heart. That may be an anxiety disorder, which is very treatable.
- Your mood has been low or flat for 2 weeks or more, or you've lost interest in things you used to enjoy. Racing, gloomy thoughts at night can be part of depression.
- Your thoughts race, you feel full of energy and need much less sleep than usual for several days, and you don't feel tired. That can be a sign of mania or hypomania: see a doctor soon.
- The thoughts are about a past frightening event, with nightmares or startling easily.
- You snore loudly, stop breathing or gasp in your sleep, or you have an urge to move your legs at night.
- You're thinking about harming yourself. In the US, call or text 988 (the Suicide and Crisis Lifeline) any time, or 911 in an emergency.
Ask before starting any sleep aid or supplement, especially if you take other medicines; some can worsen mood or anxiety, and the American Academy of Sleep Medicine suggests against over-the-counter options such as melatonin and diphenhydramine for chronic insomnia.
Frequently asked questions
Why do my thoughts race only at night?
They're there in the day too, but busy hours drown them out. In a dark, quiet bedroom with nothing to do, unfinished tasks and worries get your full attention. After many nights of this, the bed itself becomes a cue to start thinking.
Is it anxiety or insomnia?
It can be both, and each feeds the other. If the worry is mostly at bedtime and about sleep or the next day, it's often part of insomnia. If it fills your days too and is hard to control, talk to a doctor about anxiety. The habit steps here help either way.
Does melatonin help a racing mind?
Melatonin shifts body-clock timing; it doesn't calm thoughts. The American Academy of Sleep Medicine suggests against it for chronic insomnia. Ask a doctor or pharmacist before taking it.
Should I listen to something to fall asleep?
A calm, familiar podcast, audiobook or steady sound can give the mind something easy to follow, which works like the dull job above. Pick something you've heard before, set a sleep timer, and keep the phone screen off.
What is the military method for falling asleep?
It's a popular routine: relax your face, drop your shoulders and arms, breathe out, relax your legs, then picture a calm scene or repeat "don't think" for 10 seconds. It mixes muscle relaxation and imagery, both used in CBT-I. The claim that it works for nearly everyone in 2 minutes isn't from a study.
How long until my mind quiets at night?
Many people notice a difference within a week or two of worry time, a fixed wake-up time and getting up when awake. If thoughts still keep you up most nights after a few weeks, a full CBT-I program usually takes 6 to 8 weeks.
Tonight
Turn the clock away. Breathe out long, pick one dull job for your mind, and get up if you're still thinking after what feels like 20 minutes. Tomorrow evening, give your worries 15 minutes and a sheet of paper before bed. To see how long you're really awake in bed and where a plan would start, take the free sleep quiz. More on falling asleep, night waking and the methods behind them: all our sleep guides.
Sources: Harvey AG, A cognitive model of insomnia, Behaviour Research and Therapy, 2002. Harvey AG, The attempted suppression of presleep cognitive activity in insomnia, Cognitive Therapy and Research, 2003. Harvey AG, Payne S, The management of unwanted pre-sleep thoughts in insomnia: distraction with imagery versus general distraction, Behaviour Research and Therapy, 2002. Wegner DM et al., Paradoxical effects of thought suppression, Journal of Personality and Social Psychology, 1987. Tang NKY, Schmidt DA, Harvey AG, Sleeping with the enemy: clock monitoring in the maintenance of insomnia, Journal of Behavior Therapy and Experimental Psychiatry, 2007. Carney CE, Waters WF, Effects of a structured problem-solving procedure on pre-sleep cognitive arousal in college students with insomnia, Behavioral Sleep Medicine, 2006. Scullin MK et al., The effects of bedtime writing on difficulty falling asleep, Journal of Experimental Psychology: General, 2018. Bootzin RR, Stimulus control treatment for insomnia, 1972. Beaudoin LP, Digdon N, Serial diverse imagining (cognitive shuffle) and pre-sleep arousal, SLEEP 2016 abstract. Morgenthaler T et al., Practice parameters for the psychological and behavioral treatment of insomnia, SLEEP, 2006. Edinger JD et al., Behavioral and psychological treatments for chronic insomnia disorder in adults, American Academy of Sleep Medicine guideline, Journal of Clinical Sleep Medicine, 2021. Sateia MJ et al., Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults, Journal of Clinical Sleep Medicine, 2017. Qaseem A et al., Management of chronic insomnia disorder in adults, American College of Physicians, Annals of Internal Medicine, 2016. Drake C et al., Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed, Journal of Clinical Sleep Medicine, 2013. Sweetman A, How to silence your thoughts and drift off to sleep, The Conversation. 988 Suicide and Crisis Lifeline, 988lifeline.org. This guide is education, not medical advice.