When anxiety and insomnia feed each other, falling asleep can feel nearly impossible. About 72% of people with generalized anxiety disorder also experience sleep disturbances, making this one of the most common overlapping health problems. The good news: the cycle is breakable, and the most effective strategies target both problems at once.
Why Anxiety Makes It So Hard to Fall Asleep
Your body’s stress response system doesn’t shut off just because you got into bed. In people prone to insomnia, the issue isn’t necessarily that stress hormones like cortisol are elevated all the time. It’s that the stress response itself is dysregulated, firing too easily when you’re trying to wind down. Research from the sleep medicine field describes this as “sleep reactivity,” meaning how easily stress disrupts your ability to fall and stay asleep.
People with highly reactive sleep systems are two to three times more likely to have trouble with sleep onset specifically. They also estimate their time to fall asleep at roughly 65 minutes on a bad night, compared to 37 minutes for people with lower reactivity. If you lie in bed with your heart rate climbing and your mind replaying the day, that’s your nervous system stuck in alert mode when it should be shifting into rest.
Retrain Your Brain’s Association With Bed
The most effective treatment for chronic insomnia, even when anxiety is involved, is a structured approach called CBT-I (cognitive behavioral therapy for insomnia). It works by breaking the habits that keep insomnia going long after the original stressor has passed. Two core techniques matter most.
Stimulus control means using your bed only for sleep (and sex). If you’re lying awake for more than 15 to 20 minutes, get up. Go to another room, do something low-key, and return only when you feel sleepy again. This sounds counterintuitive when you’re exhausted, but it retrains your brain to associate the bed with sleeping rather than with anxious wakefulness.
Sleep restriction targets a common habit: spending extra time in bed to compensate for lost sleep. Going to bed earlier, sleeping in, or napping fragments your sleep drive and makes the next night worse. Instead, you temporarily compress your time in bed to match the amount of sleep you’re actually getting. This builds up stronger sleep pressure, so when you do lie down, you fall asleep faster. Over time, you gradually expand the window as your sleep consolidates. It can feel rough for the first week, but the payoff is significant.
One counterintuitive piece of advice from sleep specialists: spending your late evening doing something active rather than passive (like watching TV on the couch) is better for your sleep. Getting “wound up” before bed is actually less of a problem than accidentally dozing off on the couch and draining the sleep pressure you’ve been building.
Calm Your Nervous System Before Bed
Your vagus nerve acts as a brake pedal for your stress response. Activating it shifts your body from alert mode into rest mode, lowering your heart rate and triggering the release of feel-good chemicals like serotonin and dopamine. Several simple techniques do this reliably.
Slow diaphragmatic breathing is the most accessible. Breathe in deeply, filling your belly rather than your chest, hold for about five seconds, then exhale slowly. Repeat this for several minutes. The slow exhale is the key part: it directly stimulates the vagus nerve and drops your heart rate.
Humming or chanting works through vibration in the throat, which sits right along the vagus nerve pathway. You don’t need to meditate formally. Even humming a single note for a few minutes while lying in bed can shift your body toward relaxation. Gentle movement like stretching or a few minutes of yoga before bed has a similar calming effect by resetting your breathing and heart rate patterns.
A cold stimulus can also interrupt a spiral of anxious thoughts quickly. Splashing cold water on your face or holding a cold pack against your neck for a minute or two activates a reflex that slows your heart rate and redirects blood flow. This is more of an emergency tool for high-anxiety moments than a nightly routine, but it works fast.
What to Do When You Wake Up at 3 a.m.
Middle-of-the-night waking is especially common with anxiety. You wake up, your mind immediately latches onto a worry, and within seconds your body is flooded with alertness. The goal in that moment is to pull your attention out of your head and into your senses.
Grounding techniques work well here. The 5-4-3-2-1 method, recommended by Cleveland Clinic psychologists, asks you to mentally list five things you can see, four you can touch, three you can hear, two you can smell, and one you can taste. A simpler version is 3-3-3: focus on three things you can see, hear, and touch. These exercises interrupt the anxiety loop by forcing your brain to process sensory information instead of abstract worries.
If you’ve been awake for more than 15 to 20 minutes, get out of bed. Keep the lights dim, do something boring and non-stimulating (a paper book, a simple puzzle, folding laundry), and go back to bed only when drowsiness returns. Staying in bed while anxious teaches your brain that bed is a place for worrying.
Weighted Blankets and Your Sleep Environment
Weighted blankets have genuine research support for both sleep and anxiety. Multiple studies, including randomized controlled trials, show they improve sleep quality, shorten nighttime awakenings, reduce self-reported stress, and lower anxiety scores. The mechanism is deep pressure touch, which stimulates the parasympathetic nervous system in the same way that slow breathing does. The gentle, distributed weight triggers the release of endorphins, dopamine, and serotonin, leading to a lower heart rate, relaxed muscles, and steadier breathing.
People using weighted blankets in studies also reported better morning mood, with some becoming more agitated and sleeping worse when the blankets were removed. Most weighted blankets are designed to be about 10% of your body weight. They’re not a cure for insomnia, but as a low-risk addition to other strategies, the evidence is consistently positive.
Beyond blankets, basic environmental factors matter. A cool room (around 65 to 68°F), minimal light exposure in the hour before bed, and consistent wake times even on weekends all support sleep. The wake time is especially important: it anchors your circadian rhythm, and keeping it consistent does more for your sleep than any supplement.
Magnesium for Sleep and Anxiety
Magnesium plays a role in calming the nervous system through several pathways. It enhances the activity of GABA, your brain’s main inhibitory neurotransmitter, which reduces neuronal excitability and promotes relaxation. It also appears to support melatonin production and reduce cortisol levels. On the muscular side, magnesium helps regulate calcium in muscle fibers, promoting physical relaxation.
A recent randomized, placebo-controlled trial tested 250 mg of elemental magnesium (in the bisglycinate form) daily for 28 days in adults with self-reported insomnia. The supplement produced modest but statistically significant improvements in insomnia severity compared to placebo. The effect size was small, so magnesium is best thought of as a helpful addition rather than a standalone solution. The bisglycinate form is worth noting because each dose also delivers about 1,500 mg of glycine, an amino acid that independently supports sleep.
When the Problem Needs Professional Help
If you’re having trouble sleeping at least three nights per week and it’s been going on for three months or more, that meets the clinical definition of chronic insomnia. At that point, self-help strategies alone may not be enough, and a structured CBT-I program, either with a therapist or through a validated digital program, becomes the recommended first-line treatment. This is true even when anxiety is the underlying driver. Sleep specialists recognize comorbid insomnia as its own condition that warrants direct treatment, not just a side effect of anxiety to wait out.
If your anxiety is severe enough that it’s affecting your functioning during the day, not just at night, treating the anxiety directly through therapy or medication often improves sleep as well. The relationship works in both directions: improving sleep reduces anxiety, and reducing anxiety improves sleep. The most effective approach typically addresses both sides at once.

