How to Fall Asleep When Your Mind Is Racing

A racing mind at bedtime is one of the most common barriers to falling asleep, and it happens because your brain is stuck in problem-solving mode when it should be powering down. The good news: several techniques can short-circuit that mental loop, and most of them work by shifting your nervous system out of its alert state. Here’s what actually helps.

Why Your Brain Won’t Shut Off

When you lie down and the distractions of the day disappear, your mind often fills the quiet with worries, to-do lists, or replays of conversations. These thoughts aren’t just annoying. They activate your fight-or-flight system, triggering a cascade of physical responses: your heart rate climbs, your breathing quickens, your muscles tense, and you may notice tightness in your chest. Your body is now primed for action, which is the opposite of what sleep requires.

Sleep onset depends on your parasympathetic nervous system taking over. That’s the “rest and digest” side of your nervous system, and it can’t do its job while stress hormones are elevated and your body is bracing for a threat that exists only in your thoughts. Every technique below works by interrupting that cycle in a different way.

Cognitive Shuffling

This is one of the most effective techniques for a racing mind because it targets the problem directly: your brain is generating structured, meaningful thoughts, and sleep requires the opposite. Cognitive scientist Luc Beaudoin developed cognitive shuffling after discovering that right before people fall asleep, their thoughts naturally become scattered, random, and nonsensical. The technique forces your brain into that disorganized state earlier.

Here’s how to do it. Pick a simple word like “lamp.” Focus on the first letter and think of as many words starting with that letter as you can: lemon, ladder, laptop, lake, llama. For each word, briefly picture the object in your mind before moving on. When you run out of words for that letter, move to the next letter in your original word. So after “L” words, you’d move to “A” words, then “M,” then “P.”

The randomness is the point. Your brain can’t simultaneously worry about tomorrow’s meeting and picture a llama standing on a ladder. Because the images have no logical connection to each other, they mimic the fragmented thinking that naturally precedes sleep, and your brain takes the hint. Most people don’t make it past the second letter.

Controlled Breathing

The fastest way to activate your parasympathetic nervous system is through your breath, specifically by making your exhale longer than your inhale. This stimulates the vagus nerve, which controls heart rate and other involuntary functions, and triggers the rest-and-digest response that your body needs for sleep.

The 4-7-8 pattern is straightforward: breathe in quietly through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. The extended exhale is the key ingredient. If holding for 7 seconds feels uncomfortable, you can shorten the counts proportionally (try 3-5-6) as long as the exhale stays longer than the inhale. Repeat for at least four cycles. You’ll likely feel your heart rate slow within the first minute or two.

Progressive Muscle Relaxation

Racing thoughts often come with physical tension you don’t even notice until you look for it. Progressive muscle relaxation works by systematically releasing that tension, which sends a signal to your brain that you’re safe and can stand down.

Start with your feet. Curl your toes and arch your feet, holding the tension briefly so you can really feel the contrast when you let go. Then release. Move slowly upward through your body: calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead. Breathe softly throughout. Tense each area for about five seconds, then relax it completely before moving on. By the time you reach your forehead, the physical symptoms of anxiety (the tight chest, the clenched jaw) have typically dissolved, and your thoughts slow down with them.

Try Staying Awake on Purpose

This one sounds counterintuitive, but it has solid clinical backing. The technique is called paradoxical intention, and it works by removing the performance anxiety that makes insomnia worse. When you’re lying in bed desperately trying to fall asleep, the effort itself creates stress, which keeps you awake, which creates more stress. It’s a feedback loop.

Instead, lie in bed with your eyes open and gently tell yourself to stay awake. Don’t try to sleep. The goal is to remove the pressure entirely. When you stop treating sleep as something you need to force, the anxiety around it fades, and your body’s natural sleep drive can take over. It feels strange the first time, but the logic is sound: sleep effort is one of the primary variables that prevents sleep onset.

The 15-Minute Rule

If you’ve been lying in bed for roughly 15 minutes without falling asleep, get up. This comes from stimulus control therapy, one of the most well-supported approaches to insomnia, and it’s based on a simple principle: your brain should associate your bed with falling asleep quickly. Every minute you spend lying awake strengthens the opposite association.

Go to another room and do something quiet and enjoyable in dim lighting. Reading with a small lamp or watching TV from across the room are both fine. Avoid screens you sit close to, like phones or laptops. The light from a monitor at close range is brighter than most people realize, and whatever you’re doing on it (checking email, scrolling social media) tends to be mentally stimulating. Keep the lights low throughout the house, since even normal room lighting can interfere with your body’s sleep signals.

When you feel drowsy, go back to bed. If you don’t fall asleep within another 15 minutes, repeat the process. This may feel frustrating the first few nights, but it retrains your brain to connect the bed with sleep rather than with lying awake and worrying.

Set Up Your Room for a Calmer Brain

Your bedroom environment matters more than you might expect, especially on nights when your mind is already overactive. The optimal room temperature for sleep is around 65°F (18.3°C), with a comfortable range of 60 to 68°F. A room that’s too warm makes it harder for your core body temperature to drop, which is a necessary part of falling asleep. If you can’t control your thermostat precisely, a fan or lighter blankets can help.

Beyond temperature, keep the room as dark as possible and remove anything that invites mental engagement. Charging your phone in another room eliminates the temptation to check it, which matters because even a quick glance can restart the thought cycle you’ve been trying to break.

Magnesium and Sleep

Magnesium plays a role in nervous system regulation, and supplementation has shown some promise for people with poor sleep quality. In a randomized, placebo-controlled trial of 31 adults, those taking magnesium for two weeks showed significant improvements in sleep quality, sleep duration, deep sleep, and sleep efficiency compared to the placebo group. The form used in most sleep-related research is magnesium glycinate, which is better absorbed and less likely to cause digestive issues than other forms.

Magnesium isn’t a sleeping pill, and it won’t override a mind that’s churning with anxiety. But if you’re generally low in magnesium (many adults are), correcting that deficit can make the other techniques on this list more effective.

When Occasional Becomes Chronic

Everyone has nights when sleep won’t come. But if you’re struggling to fall asleep three or more nights per week and it’s been going on for three months or longer, that meets the clinical definition of insomnia disorder. At that point, the issue likely won’t resolve with breathing exercises alone. Cognitive behavioral therapy for insomnia is the first-line treatment and is more effective than medication for long-term results. It combines many of the techniques described above (stimulus control, relaxation training, cognitive restructuring) into a structured program, typically completed in six to eight sessions.