Racing thoughts at night usually start once there's nothing left to distract you. During the day, work, conversation and noise keep unfinished business in the background. In a dark bedroom, the unsent email and tomorrow's meeting get your full attention, and a mind busy with them stays too alert to drift off.
Some nights it's planning. Other nights it's replaying a conversation, or, for people who have slept badly for a while, worrying about sleep itself. Sleep problems like these are part of the work our therapists do with clients across Alberta, by telephone and video.
Telling yourself to stop thinking rarely helps, because a quiet mind isn’t something you can produce on command. Giving your mind a different job can work better. A technique studied at the University of Oxford in people with insomnia does this with a detailed imagined scene.
We’ll look at why a tired body can come with a wide-awake mind, then walk through that technique in detail, with a backup step from CBT for insomnia for the nights it doesn’t hold. You’ll also find what else can keep your thoughts going at night, from anxiety to ADHD, and the signs that mean it’s time to get help.
Table of Contents
- What Are Racing Thoughts?
- Why Does My Mind Race at Night?
- How Imagery Distraction Can Help Quiet Racing Thoughts at Night
- Still Can't Fall Asleep? Try the 20-Minute Rule From CBT for Insomnia
- What Else Can Cause Racing Thoughts at Night?
- When to See a Doctor or Therapist About Racing Thoughts at Night
- Online Counselling for Racing Thoughts and Sleep Problems Across Alberta
- Common Questions About Racing Thoughts at Night
What Are Racing Thoughts?
Racing thoughts at night are a fast, hard-to-stop stream of thinking that starts or speeds up when you try to sleep. Sleep researchers call this pre-sleep cognitive arousal. The thoughts jump between worries, plans and memories, and they keep your mind and body alert enough to delay sleep or wake you in the night.
Insomnia and racing thoughts often go together, though plenty of people have the thoughts without developing a sleep disorder. Charles Morin's research team at Université Laval surveyed 4,037 Canadian adults in 2023 and estimated that 16.3% had insomnia disorder. Replaying old conversations or mistakes (a backward-looking pattern called rumination) is closely linked with low mood.
Why Does My Mind Race at Night?
Your mind races at night because a quiet room gives unresolved problems room to come back. Worries that were easy to push aside during a busy day move to the front, and if stress already has your nervous system on alert, they feel urgent enough to keep you awake.
How Worrying in Bed Keeps Your Brain and Body Alert
Psychologist Allison Harvey's cognitive model of insomnia describes a loop. Worry at bedtime raises arousal, and that arousal leads you to monitor yourself for signs of poor sleep, like a pounding heart or the time on the clock. The monitoring then adds more arousal.
This is why the clock matters so much. Each check turns a general worry into a specific countdown ("I have to be up in five hours"), and the countdown adds its own alertness. Turning the clock away from the bed removes one trigger for the loop.
Why Trying Harder to Fall Asleep Keeps You Awake
Sleep gets harder the more effort you put into it. Over time, the bed itself can become linked with frustration and worry, a learned connection called conditioned arousal. That link helps explain a familiar pattern: nodding off on the couch at 9 p.m., then feeling wide awake the minute you get into bed.
Middle-of-the-night waking feeds the same loop. Sleep gets lighter in the second half of the night and brief awakenings are a normal part of it, so a worried mind can grab hold during an ordinary wake-up at 3 a.m.
How Imagery Distraction Can Help Quiet Racing Thoughts at Night
Imagery distraction is a cognitive technique from insomnia research. It means deliberately filling your mind with a detailed, absorbing scene that's neutral or pleasant as you settle to sleep. The version tested in insomnia research is more structured than the familiar advice to "picture a peaceful place."
Does Imagery Distraction Help You Fall Asleep?
In a foundational 2002 study in Behaviour Research and Therapy, Allison Harvey and Suzanna Payne at Oxford gave 41 people with insomnia one of three sets of instructions for a night: imagery distraction, general distraction, or no instructions. The imagery group fell asleep faster and reported fewer and less distressing unwanted thoughts than the group given no instructions.
The researchers proposed two reasons it helped: an absorbing image takes up enough mental space that worries struggle to get back in, and a specific task is easier to follow than a vague goal like "stop thinking."
This was a one-night study with 41 people, so the findings are encouraging but limited. Imagery distraction is a simple, low-risk strategy to try, though it won't work for everyone.
Newer research points in the same direction. A 2023 survey study in Cognitive Therapy and Research of 166 young adults whose answers met insomnia disorder criteria found that intrusive mental pictures, more than intrusive verbal thoughts, were linked with feeling more alert before sleep. It measured an association at one point in time and didn't test any technique, but it suggests why a calmer image is worth trying.
How to Do Imagery Distraction Step by Step
The study asked people to imagine an interesting situation in vivid detail. The steps below are our clinical adaptation of that instruction, not the exact protocol the study tested.
Pick your scene before bed. Choose something absorbing with plenty of detail and little emotional charge: walking a favourite trail in Kananaskis, cooking a meal you know well, or a past holiday. Avoid anything tied to current worries, such as planning an upcoming trip.
Start at the beginning. Once you're settled, picture exactly where you're standing as the scene opens.
Add the senses one at a time. What do you see and hear? What's the temperature, the smell, the texture under your feet or hands?
Move slowly. Walk the trail step by step, or chop each vegetable. Take your time and add detail rather than rushing through.
When a worry pulls you away, go back. Expect this to happen many times. Return to the last detail you remember and carry on, without arguing with the worry or trying to solve it.
Keep the scene while it holds your attention. When it starts to feel stale, or your mind keeps drifting back to the day's worries, add new details or pick a different scene.
Know when to switch. If you've worked with the scene for what feels like about 20 minutes and you're still alert, stop and use the 20-minute rule in the next section.
Here's how the trail scene might go. You start at the trailhead, zipping up your jacket, gravel crunching under your boots. At the first bend you notice the creek on your left and the sound of water over the rocks. When a thought about tomorrow's meeting comes up, you return to the creek and walk on toward the bridge.
If you don't see pictures in your mind's eye (sometimes called aphantasia), describe the scene to yourself in words or focus on what you'd hear and feel instead.
Planning Your Response Before Your Mind Starts Racing
Deciding ahead of time means you aren't making the choice half asleep. Try these:
"When I notice I'm planning or replaying things in bed, then I'll go back to my trail and pick up at the last thing I remember."
"When I wake at 3 a.m. and my mind starts on tomorrow, then I'll leave my phone where it is and step back into my scene."
What to Picture When You Wake Up at 3 a.m.
At 3 a.m., building a whole scene can feel like too much. Picture one small room you know well and walk around it slowly in your mind, noticing one object at a time: its colour, its shape, what it's made of.
If you lose the thread, go back to the doorway. This shorter version follows the same principle, though it hasn't been studied on its own.
How is Imagery Distraction Different From Cognitive Shuffling?
"Cognitive shuffling," popular on TikTok, is a close cousin developed by Luc Beaudoin at Simon Fraser University: you pick a random word and picture unrelated objects starting with each letter. Its main evidence is a 2016 conference study with university students, not people diagnosed with insomnia, so treat it as early evidence.
If it works for you, keep using it. If random words don't hold your attention, a richer scene may suit you better.
Still Can't Fall Asleep? Try the 20-Minute Rule From CBT for Insomnia
If racing thoughts at night have kept you lying awake for what feels like about 20 minutes, get up, go to another room and do something quiet in dim light, like reading a dull book. Go back to bed only when you feel sleepy, repeat as often as needed, and get up at your usual time however the night went.
This step comes from stimulus control, a core part of cognitive behavioural therapy for insomnia (CBT-I). Each time you leave the bed while you're awake and worrying, you weaken the conditioned link between bed and lying awake, and over time the bed becomes a cue for sleep again.
Go by a rough sense of time, since watching the clock adds pressure. A when-then version: "When I've been awake long enough to feel frustrated, then I'll get up, sit on the couch with a lamp on low, and come back when my eyes feel heavy." If you're at risk of falls, check with your doctor first.
Why CBT-I is the First-Line Treatment for Chronic Insomnia
When nighttime overthinking turns into chronic insomnia, the strongest evidence points to CBT-I. The American Academy of Sleep Medicine's 2021 clinical practice guideline strongly recommends multicomponent CBT-I (several parts used together) for adults with chronic insomnia.
CBT-I doesn't involve sleep medication, though some parts, particularly sleep restriction, can cause temporary daytime sleepiness or fatigue early in treatment. A clinician can help assess whether these strategies suit you and adapt them to your circumstances. Whether sleep medication fits your situation is a conversation for your family doctor or nurse practitioner.
What Else Can Cause Racing Thoughts at Night?
What helps depends on what's driving your racing thoughts, since they're a symptom and not a diagnosis. Common drivers include:
Anxiety. Persistent, hard-to-control worry across several areas of life can be associated with generalized anxiety disorder (GAD), and a mental health professional can help assess whether that's part of what's happening. Some people also wake with panic attacks. Our articles on anxiety go deeper.
Intrusive thoughts. Sudden, upsetting thoughts followed by checking or mental rituals can be part of obsessive-compulsive disorder (OCD), covered in our obsessive compulsions articles.
Depression. Thoughts that turn to self-criticism or hopelessness, or waking very early with a heavy feeling, can be signs of depression; our depression resources explain more as well.
Grief and big life changes. After a death, separation, job loss or move, the mind often replays what happened and plans what comes next at once. Our grief articles cover support after a loss.
ADHD and autism. Sleep problems are common with both, and the reasons vary from person to person: a later body clock, trouble winding down, medication effects, or sensory differences (a ticking clock, a streetlight through the blinds) can each play a part.
Trauma. Sleep difficulty and nightmares are recognized symptoms of post-traumatic stress disorder (PTSD).
Teens and perimenopause. In puberty the body clock shifts later, so many teens aren't sleepy until late; in perimenopause, night sweats and shifting hormones can be one reason for waking at 2 or 3 a.m., though not every night waking is hormonal.
Medical causes and substances. An overactive thyroid, restless legs, chronic pain, sleep apnea, some medications, caffeine, alcohol and cannabis can all disrupt sleep.
A possible sign of bipolar disorder. Racing thoughts with a reduced need for sleep (feeling rested after only a few hours, several nights in a row), high energy and impulsive decisions can be signs of mania or hypomania.
When to See a Doctor or Therapist About Racing Thoughts at Night
An occasional restless night after a stressful day usually settles on its own. It's different when poor sleep happens most nights, when worry about sleep has become part of the problem, or when racing thoughts come with changes in mood, energy or behaviour.
Consider reaching out to a doctor or mental health professional if:
Sleep trouble happens three or more nights a week for three months or longer, even when you have enough time and a suitable place to sleep, and it affects how you feel or function during the day. That's the clinical definition of chronic insomnia, but you can ask for help sooner.
Racing thoughts come with little need for sleep, high energy and impulsive decisions. See a doctor promptly.
Your heart races without any worry behind it, or doesn't settle. Palpitations with chest pain, fainting or shortness of breath need urgent care at the nearest emergency department.
You snore loudly and gasp in your sleep, feel an urge to move your legs at night, or noticed the problem after starting a new medication.
You're a new parent and racing or frightening thoughts won't stop. Unwanted thoughts of the baby being harmed are common after birth and are different from wanting to act on them; talk to your doctor or a therapist soon.
You're a new parent and notice confusion, seeing or hearing things others don't, unusual beliefs, or any intent to harm yourself or the baby. These can be signs of postpartum psychosis, a medical emergency: go to the nearest emergency department right away.
A physician can rule out medical causes; a therapist can work on what keeps the mind busy at night. If your thoughts turn to harming yourself, call or text 9-8-8 or go to the nearest emergency department.
Online Counselling for Racing Thoughts and Sleep Problems Across Alberta
A few weeks of short nights can leave people dreading bedtime, irritated with themselves for not switching off, or guilty about how short-tempered they've been at home. Those reactions make sense, and frustration about sleep can also feed the same alert, wakeful state that keeps you up.
If your sleep problems are tied to stress, anxiety, low mood, grief or past trauma, or tired days are starting to cost you at work or in your relationships, that's a good reason to talk with someone. It's also worth it if the strategies here haven't helped enough.
The Mental Health Clinic offers counselling by telephone and video to teens, adults and couples across Alberta. Our therapists draw on Cognitive Behavioural Therapy (CBT), including strategies used for insomnia, and Acceptance and Commitment Therapy (ACT) for thoughts that keep pulling you back. It's reasonable to reach out while this is still mainly a sleep problem.
Common Questions About Racing Thoughts at Night
Can ADHD Cause Racing Thoughts at Night?
Sleep difficulties are common in people with ADHD. Some have trouble settling at bedtime or have a naturally later sleep schedule. ADHD medications can also affect sleep, depending on the medication, dose and timing. If you struggle most nights, tell your prescriber, since adjusting the medication sometimes helps.
Are Racing Thoughts at Night a Sign of Anxiety?
They can be, though not always. A stressful week can bring a few nights of racing thoughts without any anxiety disorder, and the worry may ease once the immediate stress has passed. When worry is hard to control, covers many topics and comes with daytime tension for months, a professional can help you sort out whether an anxiety disorder such as GAD is involved.
Does Cognitive Shuffling Work for Sleep?
It may help, though the evidence is early. A 2016 conference study of 154 university students with a busy mind before sleep reported improvements in pre-sleep arousal with cognitive shuffling, similar to the results for structured problem-solving. The study didn't include people diagnosed with insomnia or a group that used no technique at all. Imagery distraction, a related technique, has been studied in people with insomnia. If cognitive shuffling already helps you fall asleep, there's no reason to stop using it.
Why Do I Wake Up at 3 a.m. and Can't Stop Thinking?
Sleep naturally gets lighter in the second half of the night, and brief awakenings are a normal part of it. A mind already carrying worry can latch on during one of those wake-ups, and checking the clock or phone tends to stretch it. Walking slowly through one familiar room in your mind gives your attention somewhere else to go. If early waking comes with low mood or loss of interest most days, talk to your doctor, since it can be a sign of depression.
Can Virtual Counselling Help When Racing Thoughts Are Affecting My Sleep?
It can, especially when stress, anxiety, low mood or unhelpful thinking patterns are part of what keeps you awake. Counselling works on those patterns directly, and CBT includes practical strategies for sleep, such as changing how you respond to night wakings and to worry about sleep. You can attend sessions by telephone or video from Grande Prairie, Brooks, Calgary or anywhere else in Alberta, and they can fit around shift work or camp rotations.
When Are Racing Thoughts a Sign of Something More Serious?
A reduced need for sleep, especially with high energy, rapid speech or impulsive decisions, can signal mania or hypomania and needs prompt medical assessment. Sleep disruption can also contribute to manic episodes in people with bipolar disorder, so changes in sleep and energy need attention early. Hopelessness, nightmares and flashbacks, or panic attacks alongside racing thoughts also call for professional support. If you're thinking about suicide, call or text 9-8-8. If you're in immediate danger or have seriously harmed yourself, call 9-1-1 or go to the nearest emergency department.
Educational Disclaimer
If poor sleep has gone on for months, or it's arriving with changes in mood, energy or how you're coping, raise it with your doctor or a therapist.This article is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. If you're experiencing mental health concerns that interfere with your daily functioning, please reach out to a qualified mental health professional. If you're in crisis, contact your local crisis line or emergency services immediately.