How to Stop Racing Thoughts When Trying to Sleep

Racing thoughts at bedtime respond best to a combination of simple cognitive redirection and physical relaxation techniques you can start tonight. The underlying problem is that your brain treats the quiet of bedtime as an open invitation to process unfinished business, and the frustration of not sleeping only accelerates the cycle. The good news is that researchers have tested specific, low-effort strategies that interrupt that cycle, and most of them require nothing more than a pen, a change in breathing, or a shift in how you think about falling asleep itself.

Why Your Brain Speeds Up When the Lights Go Off

During the day, your attention is occupied by tasks, conversations, and screens. At bedtime, that external input drops away and your brain’s default mode network takes over. This is the neural circuitry responsible for self-referential thinking, replaying memories, and imagining future scenarios. Researchers have proposed that the intrusive ruminations and worries people experience while trying to fall asleep are closely tied to overactivity in this network, and that insomnia itself may be understood partly as a disorder of excessive default-mode processing during the transition to sleep.1New Ideas in Psychology. Default-mode network activity and its role in comprehension and management of psychophysiological insomnia: A new perspective

On top of that, people who struggle with sleep tend to exist in a state of heightened arousal that spans body, brain, and emotions. Their nervous system is running a little hotter than it should be at bedtime, not just mentally but physiologically and cortically. This hyperarousal keeps the brain in a mode where worries and sleep-related anxieties feed on each other: you worry about not sleeping, which makes you more alert, which makes it harder to sleep, which gives you more to worry about.2PubMed Central. Hyperarousal in insomnia disorder: Current evidence and potential mechanisms

There is even an evolutionary angle to this. Some researchers argue that acute insomnia is a normal biological response to perceived threat, essentially a survival mechanism that keeps you alert when your brain believes danger is present. The problem is that in modern life, “danger” can mean an upcoming deadline or an awkward email you sent, and your brain cannot distinguish between a genuine threat and a social worry. For some people, this vigilance response fails to switch off properly, which is how occasional sleeplessness becomes a chronic pattern.3PubMed. Failure of fear extinction in insomnia: An evolutionary perspective

Write a To-Do List Before Bed

One of the most effective and straightforward techniques for quieting a busy mind is also one of the simplest: write down what you need to do tomorrow. A sleep-lab study using polysomnography (the gold standard for measuring when someone actually falls asleep) found that participants who spent five minutes writing a to-do list before bed fell asleep significantly faster than those who wrote about tasks they had already completed that day. The more specific and detailed the to-do list, the faster people dropped off.4PubMed Central. The Effects of Bedtime Writing on Difficulty Falling Asleep: A Polysomnographic Study Comparing To-Do Lists and Completed Activity Lists

The logic behind this is intuitive once you hear it. A large portion of bedtime racing thoughts involves incomplete tasks and unresolved plans. When you externalize those onto paper, your brain seems to let go of the need to keep cycling through them. Vague lists do not work as well because the brain still feels like the planning is unfinished. Writing “call dentist, email Jake about project timeline, buy groceries for Thursday dinner” is more effective than writing “handle stuff.” The act of committing specifics to paper appears to signal to your mind that the task is captured and does not need to be rehearsed anymore.

This is worth trying first because it takes almost no time, requires no practice, and works on the exact type of thought that keeps most people awake: the “I need to remember to…” loop.

Give Your Mind Something Else to Do

If your racing thoughts are less about tasks and more about general mental chatter, worry, or replaying the day, you need a technique that occupies your mind just enough to block the unwanted content without stimulating you further. Researchers have tested an approach called the serial diverse imagining task, which involves picturing a random sequence of unrelated objects or scenes. Think of a beach ball, then a fork, then a cathedral, then a dog wearing a hat. The randomness matters: each new image prevents your mind from building a narrative that could loop back into worry.

This technique was found to be as effective as a more structured problem-solving exercise at reducing pre-sleep arousal and improving sleep quality, with the added advantage that you can do it while lying in bed, whereas structured problem-solving ideally happens earlier in the evening.5American Academy of Sleep Medicine and the Sleep Research Society. Serial diverse imagining task: A new remedy for bedtime complaints of worrying and other sleep-disruptive mental activity

The broader category this falls into is called cognitive refocusing, and it has been identified as a promising component of insomnia treatment.6PubMed. The cognitive treatment components and therapies of cognitive behavioral therapy for insomnia: A systematic review The idea is not to fight your thoughts or force your mind to be blank. Trying to think about nothing almost always backfires. Instead, you gently redirect attention toward something that is vivid enough to hold your focus but boring or pleasant enough not to trigger further arousal. Some people achieve this with mental imagery, others with body scanning (progressively focusing on each body part), and others with a repetitive mental task like counting backward from 300 by threes.

Stop Trying So Hard to Fall Asleep

This sounds counterintuitive, but one of the better-studied cognitive techniques for insomnia involves deliberately trying to stay awake. It is called paradoxical intention, and it works by dismantling the performance anxiety that builds up around sleep. When you lie in bed worrying about whether you will fall asleep, the effort itself becomes a source of arousal. Paradoxical intention flips the script: you lie in bed with your eyes open (no screens, no reading) and gently try to stay awake. By removing the pressure to sleep, you remove the anxiety that was keeping you alert.

A systematic review and meta-analysis found that paradoxical intention produced large reductions in sleep-related performance anxiety compared to passive control conditions.7PubMed. Paradoxical intention for insomnia: A systematic review and meta-analysis The decreased performance anxiety appears to be the mechanism through which the technique works: once you stop pressuring yourself to fall asleep, the natural sleep drive has room to take over.8PubMed Central. Paradoxical intention as a treatment for insomnia disorder: study protocol for a mixed-methods pilot trial

Paradoxical intention is not the right fit for everyone. It works best for people whose primary issue is the anxiety of not sleeping rather than a specific flood of worry content. If your racing thoughts are mostly “I can’t sleep, I have to sleep, tomorrow will be terrible if I don’t sleep,” this technique targets exactly that spiral. If your thoughts are about a specific problem or unresolved conflict, you may get more mileage from the writing or cognitive refocusing techniques described above.

Use Your Body to Calm Your Brain

Racing thoughts are not purely mental. They ride on a physiological wave of activation: elevated heart rate, shallow breathing, muscle tension. Targeting the body can quiet the mind indirectly, and several physical approaches have research behind them.

Slow, Deep Breathing

Diaphragmatic breathing, where you breathe slowly into your belly rather than your chest, activates the parasympathetic nervous system and shifts your body out of fight-or-flight mode. A study of nurses working during a high-stress period found that a structured deep-breathing practice significantly improved multiple dimensions of sleep quality, including how long it took to fall asleep and overall subjective sleep quality.9PubMed Central. The effectiveness of diaphragmatic breathing relaxation training for improving sleep quality among nursing staff during the COVID-19 outbreak: a before and after study A common approach is the 4-7-8 pattern (inhale for four counts, hold for seven, exhale for eight), but the exact numbers matter less than the general rhythm: slow inhale, brief hold, long exhale. The extended exhale is the part that most strongly activates the calming branch of your nervous system.

A Warm Shower or Bath

Taking a warm shower or bath one to two hours before bed helps your body cool down afterward, and that drop in core temperature is one of the strongest natural signals for sleep onset. A systematic review and meta-analysis confirmed that passive body heating before bed improves sleep, and the mechanism involves increased blood flow to the hands and feet, which allows heat to radiate away from the body’s core more efficiently.10PubMed. Before-bedtime passive body heating by warm shower or bath to improve sleep: A systematic review and meta-analysis This is not a direct treatment for racing thoughts, but by lowering your physiological arousal and accelerating the temperature cues your brain uses to initiate sleep, it shrinks the window during which racing thoughts have time to take hold.

Weighted Blankets

Weighted blankets apply deep pressure across the body, which stimulates the parasympathetic nervous system in much the same way that a firm hug or swaddling does.11PubMed Central. The effect of weighted blankets on sleep and related disorders: a brief review In one study, users reported feeling roughly 13% less stressed and 17% more relaxed while trying to fall asleep when using a weighted blanket.12Sleep. 1203 Worth The Weight: Weighted Blanket Improves Sleep And Increases Relaxation If part of your racing-thoughts problem is a body that feels physically keyed up, a weighted blanket can help bring down the baseline tension that feeds mental activity. Most guidelines suggest choosing a blanket that is roughly 10% of your body weight.

What About White Noise and Sleep Sounds

Many people swear by white noise machines, rain sounds, or ambient soundscapes to drown out racing thoughts. The idea is that a steady, neutral sound gives your auditory system something to latch onto, preventing your brain from filling the silence with worry. However, a systematic review of auditory stimulation and sleep found that the evidence supporting white and pink noise as effective sleep aids is not well established.13PubMed Central. Systematic review: auditory stimulation and sleep

That does not mean it cannot work for you personally. The research gap is partly because the studies that do exist are small and inconsistent in their methods. If you find that ambient sound helps your mind settle, there is no reason to stop using it. Just be aware that it is more of a comfort tool than a well-validated treatment, and if your racing thoughts are intense enough to override background noise, you will probably need one of the cognitive or physical techniques above as well.

Things That Make Racing Thoughts Worse

Some common habits directly amplify bedtime mental activity, and eliminating them can be as powerful as adding a new technique.

Caffeine is the most obvious offender, and its effects on nighttime thinking go beyond simply keeping you awake. A study comparing high worriers and low worriers found that caffeine increased nocturnal worry and sleeplessness across both groups.14PubMed. Night-time thoughts in high and low worriers: reaction to caffeine-induced sleeplessness Caffeine’s half-life is roughly five to six hours, meaning that a coffee at 3 PM still has half its stimulant load in your system at 9 PM. If you are prone to racing thoughts, cutting off caffeine by noon is a reasonable starting point.

Screens before bed also deserve mention, though the mechanism is not just the blue light that gets all the attention. The content you consume before bed matters: scrolling through social media, reading stressful news, or engaging in work email primes your brain with exactly the kind of emotionally charged material that fuels rumination once the lights go out. Giving yourself a 30-to-60-minute screen-free wind-down period is less about light wavelengths and more about reducing the raw material your default mode network has to chew on.

Alcohol is the other common trap. It may help you feel drowsy initially, but it fragments sleep architecture in the second half of the night, leading to middle-of-the-night awakenings when your mind is still primed for anxiety. Many people who think they have a falling-asleep problem actually have a staying-asleep problem worsened by alcohol, and the 3 AM waking is when the worst racing thoughts often hit.

When Racing Thoughts Point to Something Bigger

For most people, occasional nights of racing thoughts are a normal response to stress, and the techniques above will handle them. But persistent, nightly racing thoughts that resist self-help strategies can be a symptom of a clinical condition that needs different treatment.

Generalized anxiety disorder and insomnia share overlapping brain activity patterns. Neuroimaging research has found that both conditions show increased activity in brain regions associated with self-referential processing and decreased activity in areas involved in executive control, though the two conditions also have distinct neural signatures.15PubMed. Comparison of resting-state brain activity between insomnia and generalized anxiety disorder: A coordinate-based meta-analysis In people with primary insomnia, the connectivity between the brain’s threat-detection center and its emotion-regulation areas falls in between what is seen in good sleepers and what is seen in people with generalized anxiety.16PubMed Central. Resting State Functional Connectivity in Primary Insomnia, Generalized Anxiety Disorder and Controls In practical terms, this means that if your racing thoughts are accompanied by persistent daytime worry, muscle tension, and difficulty concentrating, you may be dealing with anxiety that happens to be most noticeable at bedtime rather than a pure sleep problem.

ADHD is another condition where bedtime racing thoughts are more the rule than the exception. Research has found that racing thoughts in people with ADHD increase specifically in the evening and at bedtime and are associated with insomnia severity.17PubMed Central. Beyond motor hyperactivity: Racing thoughts are an integral symptom of adult attention deficit hyperactivity disorder If you have always had a busy mind, particularly one that jumps rapidly between topics in a way that feels involuntary, it is worth considering whether the bedtime racing is part of a broader attention-regulation pattern that would benefit from evaluation.

Separately, some research has examined racing thoughts as a distinct phenomenon from rumination and worry, and found that racing thoughts at bedtime were more strongly associated with insomnia severity than either rumination or worry alone, especially in people with sleep-onset insomnia.18PubMed Central. Investigating racing thoughts in insomnia: A neglected piece of the mood-sleep puzzle? This is a useful distinction: if your experience is less “I keep worrying about the same thing” and more “my mind is moving fast and I can’t slow it down regardless of the content,” that racing quality itself may be worth discussing with a clinician.

Structured Treatment With CBT-I

If you have tried these techniques individually and your sleep is still suffering, cognitive behavioral therapy for insomnia (CBT-I) bundles most of them together in a structured program, typically over four to eight sessions. CBT-I is considered the first-line treatment for chronic insomnia by most sleep medicine organizations, preferred over medication because its effects tend to last after treatment ends.

The cognitive components of CBT-I include paradoxical intention, cognitive restructuring (identifying and challenging unrealistic beliefs about sleep), and cognitive refocusing, all of which have support as either efficacious or promising treatments for insomnia.6PubMed. The cognitive treatment components and therapies of cognitive behavioral therapy for insomnia: A systematic review The behavioral components include stimulus control (using your bed only for sleep), sleep restriction (temporarily limiting time in bed to build sleep pressure), relaxation training, and sleep hygiene adjustments.19PubMed Central. Behavioral interventions for insomnia: Theory and practice

CBT-I is available through trained therapists, but digital versions have become widely accessible in recent years through apps and online programs. If seeing a sleep specialist is not practical for you, a validated digital CBT-I program can deliver many of the same benefits. The key advantage of CBT-I over picking individual techniques is the structure: a clinician or program helps you figure out which of the many strategies targets your specific pattern of sleep disruption, rather than you experimenting alone.

The Attention-Rumination Connection

People vary in how easily they can shift their attention away from unwanted thoughts, and this trait plays a role in how vulnerable you are to bedtime racing. Research on attentional control has found that people with a narrower and less flexible attentional focus are more prone to rumination, the repetitive cycling over negative thoughts that is a hallmark of both depression and insomnia.20PubMed Central. Does rumination mediate the relationship between attentional control and symptoms of depression?

This is relevant because it explains why some people can shrug off a stressful day and fall asleep easily while others lie awake replaying every awkward moment. It is not a matter of willpower or caring too much. Attentional flexibility is partly a trait, like how easily you can switch between tasks during the day. The encouraging part is that attentional flexibility can be trained. Mindfulness meditation, which fundamentally involves practicing the act of noticing your attention has wandered and gently redirecting it, builds exactly this skill over time. You do not need to meditate at bedtime for it to help at bedtime; regular daytime practice gradually makes it easier for your brain to disengage from loops whenever they arise, including when you are trying to sleep.

If you have always been the type whose mind runs hot at night, understanding this as a trainable attentional pattern rather than an unchangeable personality flaw opens up a longer-term path forward alongside the immediate techniques that offer relief tonight.