How to Sleep With Anxiety: Calm Your Mind at Night

Anxiety and sleep have a frustrating circular relationship: worry keeps you awake, and poor sleep makes anxiety worse the next day. Up to 90% of people with generalized anxiety disorder report insomnia symptoms, making sleeplessness one of the most common consequences of living with anxiety. The good news is that several practical strategies can break the cycle, from adjusting your environment to retraining how your brain responds to nighttime worry.

Why Anxiety Disrupts Sleep

When you’re anxious, your body stays in a state of heightened alertness. Stress hormones keep your heart rate elevated, your muscles tense, and your mind scanning for threats. That’s the opposite of what your body needs to fall asleep, which is a gradual winding down of your core temperature, heart rate, and mental activity. The result is lying in bed wide awake, often with racing thoughts that feel louder and more urgent in the quiet of a dark room.

What makes this especially tricky is that the bed itself can become a trigger. After enough nights of tossing and turning, your brain starts associating the bedroom with wakefulness and frustration rather than rest. That anticipatory dread (“here we go again”) layers a second problem on top of the original anxiety, and the two reinforce each other.

Set Up a Worry Time Earlier in the Day

One of the most effective techniques for nighttime rumination is surprisingly simple: give your worries a designated slot during the day so they’re less likely to ambush you at bedtime. The NHS recommends setting aside 10 to 15 minutes each day, well before bed, to write down what’s on your mind and brainstorm possible solutions.

The key is consistency. Once you’ve established this routine, you can redirect anxious thoughts when they pop up at night by telling yourself, “I’ll deal with that during my worry time.” This isn’t about suppressing thoughts. It’s about training your brain to process concerns at a time when you can actually do something about them, rather than spiraling at 2 a.m. when no action is possible. Over time, this creates a mental boundary between problem-solving mode and sleep mode.

Retrain Your Response to Sleeplessness

Cognitive behavioral therapy for insomnia (CBT-I) is the gold-standard treatment for anxiety-related sleep problems, and several of its core principles are things you can start applying on your own. The central idea is changing your response to thoughts rather than forcing sleep. If you’re lying in bed thinking “I’m never going to fall asleep” or “tomorrow will be terrible,” those thoughts create a stress response that actively prevents sleep.

Instead of fighting to fall asleep, try these CBT-I principles:

  • Get out of bed if you’re not sleeping. If you’ve been lying awake for roughly 20 minutes, get up and do something quiet in dim light (reading a physical book, gentle stretching). Return to bed only when you feel sleepy. This breaks the association between your bed and frustration.
  • Stop watching the clock. Calculating how many hours of sleep you’ll get if you fall asleep “right now” is a guaranteed way to spike your anxiety. Turn your clock away from view.
  • Let go of the effort. Paradoxically, trying harder to sleep pushes it further away. Shift your goal from “I need to fall asleep” to “I’m going to rest quietly,” which removes the performance pressure.

If self-directed strategies aren’t enough, working with a therapist trained in CBT-I typically produces results within four to eight sessions. It’s more effective than sleeping pills for long-term insomnia and directly addresses the anxiety component.

Optimize Your Bedroom Environment

Your physical environment plays a bigger role than you might expect, especially temperature. As you fall asleep, your core body temperature naturally drops to initiate the sleep process. If your room is too warm, your body can’t complete that cooldown, which disrupts both the deep, restorative stages of sleep and REM sleep (the stage linked to emotional processing and dreaming). Sleep experts recommend keeping your bedroom between 60 and 67°F (15 to 19°C).

Too cold isn’t great either. When you’re cold, your body constricts blood vessels and shifts into a physiological stress response to warm up, which can pull you out of sleep. The sweet spot is a cool room with enough blankets that you feel comfortable but not overheated.

Beyond temperature, reduce sensory triggers that can activate an anxious brain. Keep the room as dark as possible, use a white noise machine or fan to mask unpredictable sounds, and reserve the bed for sleep and intimacy only. Working, scrolling, or watching TV in bed weakens the mental link between the bedroom and rest.

Weighted Blankets and Physical Calming

Weighted blankets have moved from niche therapy tool to mainstream sleep aid, and the research supports their use for anxiety. A meta-analysis of studies involving people with psychiatric disorders found that weighted blankets significantly reduced anxiety symptoms compared to a placebo blanket. Four of the included studies also found improvements in insomnia severity, total sleep time, and the time it took to fall asleep.

The proposed mechanism is deep pressure stimulation, which is the same principle behind a firm hug or swaddling an infant. The gentle, even pressure across your body appears to activate your parasympathetic nervous system (the “rest and digest” mode), lowering heart rate and promoting calm. Most weighted blankets are designed to be about 10% of your body weight. They’re not a cure-all, but many people with anxiety find the physical sensation grounding enough to quiet the mental chatter at bedtime.

Supplements That May Help

Two supplements have the most evidence behind them for anxiety-related sleep trouble: L-theanine and magnesium.

L-theanine, an amino acid found naturally in tea, promotes the release of a brain chemical that helps regulate mood and relaxation. At doses of 200 to 400 milligrams taken at bedtime, a small trial of healthy adults found it shortened the time to fall asleep and reduced sleep disturbances. It doesn’t cause grogginess the way traditional sleep aids do, which makes it appealing for people who are wary of sedation.

Magnesium plays a role in hundreds of processes in the body, including muscle relaxation and nervous system regulation. Many people don’t get enough of it through diet alone. The glycinate form is most commonly recommended for sleep because it’s well-absorbed and less likely to cause digestive issues. The upper supplemental dose is 350 milligrams per day. Research has linked magnesium supplementation to improved sleep quality, though the studies are small.

Neither supplement is a substitute for addressing the underlying anxiety, but they can be a useful addition to a broader strategy.

How Anti-Anxiety Medications Affect Sleep

If you’re already taking medication for anxiety or depression, it’s worth knowing that different medications have very different effects on sleep. Some are sedating, others can actually cause or worsen insomnia.

Among common antidepressants used for anxiety, mirtazapine and trazodone rank among the most sedating, which is why they’re sometimes prescribed specifically to help with sleep. Mirtazapine has an interesting dose-dependent quirk: its sedating effect is strongest at lower doses and can actually decrease at higher doses due to changes in brain chemistry. On the other end of the spectrum, medications like desvenlafaxine and vilazodone are among the most likely to cause insomnia as a side effect.

If your medication is making sleep harder, that’s a conversation worth having with your prescriber. Adjusting the timing of your dose (taking an activating medication in the morning rather than at night, for instance) can sometimes solve the problem without switching drugs.

A Wind-Down Routine That Works

The hour before bed is where most of these strategies come together. An effective wind-down routine for an anxious brain isn’t about lighting candles and hoping for the best. It’s about systematically lowering your body’s arousal level so sleep becomes possible.

Start by setting a consistent “screens off” time 30 to 60 minutes before bed. The light from phones and laptops suppresses the hormones that signal sleepiness, but for anxious people, the content matters just as much as the light. News, social media, and work emails are all potential anxiety triggers. Replace screen time with something that occupies your mind just enough to prevent rumination but not so much that it’s stimulating: a podcast you’ve heard before, a jigsaw puzzle, light reading.

Add a physical relaxation component. Slow, deep breathing where your exhale is longer than your inhale (try inhaling for four counts and exhaling for six to eight) directly activates your body’s calming response. Progressive muscle relaxation, where you tense and then release each muscle group from your toes to your forehead, gives your brain a physical task to focus on instead of thoughts. Even a warm shower 60 to 90 minutes before bed can help by raising your skin temperature briefly, which accelerates the natural cooldown your body needs to initiate sleep.

The most important thing is doing the same sequence at the same time each night. Consistency turns a collection of relaxation techniques into a conditioned signal that tells your brain it’s time to shift gears. For most people with anxiety-related insomnia, the improvement is gradual rather than instant, but within a few weeks, the routine starts to build a new association between bedtime and calm rather than dread.