If anxiety keeps you awake at night, you’re dealing with one of the most common sleep problems there is. A 2025 survey from the American Academy of Sleep Medicine found that 68% of Americans lose sleep to anxiety at least sometimes, and 43% say it happens often or always. The good news: your brain isn’t broken. It’s doing exactly what stressed brains do, and there are concrete ways to interrupt the cycle.
Why Anxiety Makes It Hard to Sleep
When you’re anxious, your brain’s stress system floods your body with hormones and neurotransmitters designed to keep you alert. Cortisol, the primary stress hormone, reduces the deep sleep your body needs most and increases the number of times you wake up during the night. At the same time, norepinephrine, a wake-promoting chemical, ramps up brain activity. This is controlled by a feedback loop between your brain and adrenal glands called the HPA axis, and in people with chronic anxiety, this system stays active well into the night when it should be winding down.
The result is a frustrating paradox: you’re exhausted, but your brain is running a threat-detection program that treats sleep as optional. Elevated stress hormones also reduce REM sleep, the stage where your brain processes emotions. Less REM sleep can make anxiety worse the next day, which makes the following night harder, creating a self-reinforcing loop.
Calm Your Nervous System With Breathing
The fastest way to shift your body out of alert mode is controlled breathing. The 4-7-8 technique is one of the most studied approaches: breathe in through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. Repeat for three to four cycles.
This works through a specific mechanism. Slow breathing with a long exhale activates the parasympathetic nervous system, your body’s built-in “calm down” signal. The extended hold increases oxygen saturation in your blood, which further dampens the alert signals your body is sending. Studies using heart rate variability measurements confirm that 4-7-8 breathing measurably reduces sympathetic (fight-or-flight) activity and increases parasympathetic activity within minutes. You don’t need to believe it will work. The effect is physiological, not psychological.
Redirect Racing Thoughts With Cognitive Shuffling
The other half of anxious insomnia is mental. Your mind locks onto worries, replays conversations, or spirals into worst-case scenarios. Telling yourself to “stop thinking” never works because suppressing thoughts makes them louder. Cognitive shuffling takes a different approach: instead of fighting your thoughts, you replace them with something deliberately boring and random.
Here’s how it works. Pick an emotionally neutral word, like “garden.” Take the first letter, G, and visualize as many objects as you can that start with that letter: guitar, grape, gate, giraffe. Picture each one clearly before moving to the next. When you run out of G words, move to the second letter (A) and repeat. The key is choosing neutral categories like animals, groceries, or household objects. Anything related to work, money, or relationships will pull you back into anxious thinking.
Sleep researcher Eleni Kavaliotis at Monash University explains that this technique works because it mimics the scattered, disconnected thought patterns your brain naturally generates as you drift off. Sleep medicine specialist Alanna Hare at Royal Brompton Hospital calls it “super somnolent,” describing a push-and-pull mechanism: it actively quiets intrusive worries while simultaneously pulling you toward sleep-like mental states. Most people don’t make it past the second or third letter.
Set Up Your Environment for Sleep
Your bedroom setup matters more when anxiety is involved, because an anxious brain is scanning for stimulation. A few changes can reduce the signals that keep your alert system active.
Weighted blankets have real evidence behind them for anxiety specifically. A study of adults in an inpatient mental health setting found that weighted blankets significantly reduced anxiety in 60% of patients. An earlier study found that 63% of users reported lower anxiety, 78% preferred the blanket as a calming tool, and a third showed measurable drops in blood pressure and pulse rate. The pressure sensation appears to activate the same parasympathetic pathways that deep breathing does. A blanket weighing roughly 10% of your body weight is the typical recommendation.
Beyond blankets, keep your phone outside the bedroom or at minimum face-down with notifications silenced. Blue light is part of the problem, but the bigger issue is that your phone is a portal to every source of anxiety in your life. Temperature also matters: a cool room (around 65 to 68°F) supports the natural body temperature drop that signals sleep onset. If your mind associates your bed with tossing and turning, get up after 15 to 20 minutes of wakefulness and sit in a dim room until you feel drowsy, then return. This retrains the association between your bed and sleep rather than your bed and frustration.
Build a Pre-Sleep Wind-Down
Anxiety-driven insomnia often starts before you get into bed. If you go from scrolling your phone or watching intense TV straight to trying to sleep, your brain has no transition period. A consistent wind-down routine of 30 to 60 minutes signals to your brain that the threat-monitoring shift is over.
What you include matters less than doing it consistently. Some options that work well for anxious sleepers: writing tomorrow’s to-do list (this externalizes worries so your brain stops trying to hold onto them), gentle stretching, reading fiction on paper, or a warm shower. The shower works through thermoregulation: your body temperature rises in the warm water, then drops rapidly when you get out, mimicking the cooling signal that triggers sleepiness.
If you tend to worry in bed, try scheduling “worry time” earlier in the evening. Set a timer for 10 to 15 minutes and write down everything on your mind. When a worry surfaces later in bed, you can remind yourself it’s been logged and will be dealt with tomorrow. This sounds simple, but it gives your brain permission to let go.
Supplements That May Help
Magnesium is the supplement with the most consistent evidence for anxiety-related sleep problems. Magnesium glycinate (also called magnesium bisglycinate) is the form most often recommended for sleep because it’s well-absorbed and less likely to cause digestive issues than other forms. Clinical studies have used doses in the range of 200 to 400 mg of elemental magnesium daily, often taken in the evening. Many people are mildly deficient in magnesium without knowing it, and deficiency itself can worsen both anxiety and sleep quality.
Magnesium isn’t a sedative. It supports the chemical processes your body uses to calm nerve activity and regulate your stress response. Results typically build over several weeks of consistent use rather than working dramatically on the first night.
How Anxiety Medications Affect Sleep
If you’re already taking medication for anxiety, it’s worth knowing that common antidepressants prescribed for anxiety disorders (SSRIs and SNRIs) have significant, dose-dependent effects on sleep architecture. They tend to delay and reduce REM sleep. For some people this means fewer anxiety-driven nightmares, but for others it contributes to feeling unrested even after a full night. These effects often lessen over the first few weeks as your body adjusts.
If your medication seems to be making sleep worse rather than better, that’s a conversation worth having with your prescriber. Timing adjustments (taking the medication in the morning instead of at night, for example) can sometimes resolve the issue without changing the drug itself.
When Sleep Problems Become Clinical Insomnia
Occasional bad nights from anxiety are normal. Clinical insomnia is defined as difficulty falling or staying asleep at least three nights per week for three months or more, with daytime consequences like fatigue, difficulty concentrating, or mood changes. If that describes your situation, the most effective treatment is cognitive behavioral therapy for insomnia (CBT-I), which addresses the thought patterns and behaviors that maintain the problem. CBT-I outperforms sleep medications in long-term studies and can be delivered through therapist sessions or structured online programs.
Short-term insomnia (lasting less than three months) is also recognized as a real clinical condition. You don’t need to wait three months to seek help if anxiety is regularly stealing your sleep and the techniques above aren’t enough.

