What to Do If You Can’t Sleep Because of Stress

If stress is keeping you awake right now, the single most effective thing you can do is get out of bed. Lying there trying to force sleep while your mind races actually trains your brain to associate the bed with wakefulness, making the problem worse over time. What follows are specific techniques you can use tonight, habits that prevent stress-driven insomnia from becoming chronic, and signs it’s time to get professional help.

Get Out of Bed After 15 to 20 Minutes

This feels wrong, but it’s one of the most well-supported strategies in sleep medicine. If you’ve been lying awake for roughly 15 to 20 minutes, get up and move to another room. Keep the lights low. Do something quiet and unstimulating: read a physical book, listen to calm music, fold laundry. Return to bed only when you feel genuinely sleepy again. If you get back in bed and another 15 to 20 minutes pass without sleep, get up again. Repeat as many times as needed.

The goal is to protect your bed as a place your brain links with sleep, not with staring at the ceiling. Over time, this one habit can dramatically shorten the time it takes to fall asleep. It helps to plan ahead: leave a lamp on in the living room and a book on the couch so you’re not fumbling around in the dark deciding what to do.

Write Down What’s on Your Mind

Racing thoughts respond well to a simple pen-and-paper exercise. A study published in the Journal of Experimental Psychology found that spending just five minutes writing a to-do list before bed helped people fall asleep significantly faster than those who wrote about things they’d already completed. The key is being thorough: write down everything you need to remember, every task ahead, every loose end. Bullet points work fine. The act of offloading those thoughts onto paper gives your brain permission to stop cycling through them.

Keep a notepad on your nightstand. If you wake at 2 a.m. with a new worry, write it down and put the notepad back. You’re not solving the problem right now. You’re telling your brain it’s been captured and can wait until morning.

Slow Your Breathing to Lower Your Heart Rate

Stress activates your body’s fight-or-flight response, raising your heart rate and blood pressure. Controlled breathing directly reverses this. The 4-7-8 technique, recommended by the Cleveland Clinic, works like this:

  • Inhale through your nose for a count of four.
  • Hold gently for a count of seven (no straining).
  • Exhale slowly through your mouth for a count of eight, with lips slightly pursed.

That’s one cycle. Do three to four cycles. The long exhale is what matters most: it activates your parasympathetic nervous system, the branch responsible for calming you down. This isn’t a one-time fix. Practicing twice a day, even outside of bedtime, builds your body’s ability to shift into a relaxed state more quickly when you need it at night.

Release Physical Tension You May Not Notice

Stress parks itself in your muscles, often without you realizing it. Progressive muscle relaxation works by making you tense each muscle group deliberately and then release it, so your body learns what “relaxed” actually feels like. Start with your feet: squeeze the muscles for about five seconds, then let go completely for 30 seconds. Move to your calves, thighs, abdomen, hands, arms, shoulders, and finally your face and jaw. The whole sequence takes about 10 to 15 minutes.

The 30-second rest between each group matters. That’s when your nervous system registers the contrast between tension and relaxation. Many people fall asleep before they finish the full sequence, which is exactly the point.

Set Up Your Bedroom for Sleep

A few environmental changes make a measurable difference. Your core body temperature needs to drop slightly to initiate sleep, so keep your bedroom between 60 and 67°F (15 to 19°C). This range also helps stabilize REM sleep, the phase most important for emotional processing.

Screen light is another factor. The blue wavelengths from phones, tablets, and laptops suppress your body’s natural melatonin production. Harvard Health recommends avoiding bright screens two to three hours before bed. If that feels unrealistic, at minimum put your phone in another room once you get into bed. Scrolling through emails or news is the opposite of what a stressed brain needs at midnight.

Build a Buffer Between Your Day and Your Bed

Most people with stress-related sleep problems go straight from dealing with stressful things to lying down and expecting their brain to shut off. That transition needs a buffer. In the hour before bed, do things that are low-stimulation and mildly enjoyable: a warm shower, light stretching, reading fiction, making tea. The specific activity matters less than the consistency. When you do the same winding-down routine each night, your brain starts to treat it as a cue that sleep is coming.

During this buffer zone, avoid checking work messages, paying bills, or having difficult conversations. If a worry surfaces, write it on your notepad. This is also the time to do your breathing exercises or muscle relaxation. Stack these techniques into your wind-down routine so they become automatic rather than something you scramble for at 1 a.m.

What Works Long-Term

If stress-related sleeplessness is happening regularly, the techniques above are still helpful, but they work best within a larger framework. Cognitive Behavioral Therapy for Insomnia (CBT-I) is the most effective long-term treatment for insomnia, outperforming sleep medications in sustained results. It combines the stimulus control strategies described above (leaving bed when awake, keeping a consistent wake time, avoiding naps) with structured techniques for managing the anxious thoughts that fuel the cycle.

One core principle of CBT-I is keeping the same wake-up time every single day, including weekends, regardless of how poorly you slept. This feels punishing at first, but it consolidates your sleep drive so you fall asleep faster the next night. Another principle is restricting the time you spend in bed to roughly match the amount of sleep you’re actually getting, then gradually expanding it. A trained therapist can guide you through this process, and several app-based CBT-I programs exist for people who can’t access in-person treatment.

When Sleeplessness Becomes Chronic

Occasional stress-driven insomnia is normal. A bad night before a big presentation or during a family crisis doesn’t mean something is wrong with you. But the diagnostic threshold for chronic insomnia is three or more nights per week of disrupted sleep lasting three months or longer. If you’re approaching that pattern, something beyond basic sleep hygiene is needed.

Pay attention to what happens during the day. If poor sleep is affecting your concentration, mood, or ability to function at work, that’s a signal the problem has moved beyond garden-variety stress. CBT-I, delivered by a psychologist or through a structured program, is the standard first-line treatment. It addresses both the stress and the sleep habits that have grown around it, breaking the cycle at multiple points rather than just masking the symptoms.

A Note on Supplements

Magnesium glycinate is widely marketed as a sleep and relaxation supplement, and it’s gentler on the stomach than other forms of magnesium. However, despite its popularity, the evidence that magnesium supplementation improves sleep in people who aren’t deficient is limited. It hasn’t been proven in human studies to reliably help with sleep or mood. If you’re eating a reasonably varied diet, you may already be getting enough. For adults, the recommended daily intake ranges from 310 to 420 mg depending on age and sex. If you suspect a deficiency, a blood test can confirm it before you start supplementing.