← All articles
Sleep·7 min read

What to Do When You Can't Sleep Because of Anxiety

Lying awake with a racing mind is exhausting — but there are proven, CBT-based techniques you can use tonight to quiet anxious thoughts and get back to sleep.

The short version

  • Anxious thoughts at bedtime are habits your brain learned — and habits can be unlearned.
  • Getting out of bed when you can't sleep is often better than lying there struggling.
  • Scheduled 'worry time' earlier in the day keeps anxious thoughts out of your bedroom.
  • CBT techniques like cognitive restructuring and relaxation exercises can bring real, lasting relief.

When anxiety hijacks your sleep, the first thing to know is this: you are not broken, and you are not alone. Millions of people in the US lie awake every night with thoughts that spin like a hamster wheel. The good news is that Cognitive Behavioral Therapy (CBT) — the most well-researched approach for both anxiety and insomnia — gives you concrete tools to interrupt that cycle tonight, not someday.

Why Anxiety and Sleep Fight Each Other

Your brain has a built-in alarm system called the fight-or-flight response. When you're anxious, that system treats a looming work deadline or a difficult conversation the same way it would treat a physical threat — it floods your body with cortisol and adrenaline to keep you alert. That's helpful if you're outrunning danger. It's the opposite of helpful when you're trying to fall asleep.

Over time, your bed can become a trigger for worry. You climb in, your brain learns 'this is where we panic,' and the association sticks. CBT calls this conditioned arousal — and breaking it is one of the most powerful things you can do for your sleep.

Try This First: The 20-Minute Rule

If you've been lying awake for roughly 20 minutes without falling asleep, get up. This sounds counterintuitive, but it's one of the most evidence-backed strategies in CBT for insomnia (CBT-I). Staying in bed while anxious teaches your brain that bed equals wakefulness and worry. Getting up breaks that association.

Go to a dim, quiet space. Do something calm — read a physical book, listen to soft music, or do light stretching. Avoid your phone or anything stimulating. Return to bed only when you feel genuinely sleepy. Repeat as needed. It feels frustrating at first, but most people see improvement within one to two weeks.

Calm Your Body in Minutes: Relaxation Techniques

Before your thoughts can quiet down, your body needs to get the message that you're safe. These techniques directly counter the fight-or-flight response:

  • 4-7-8 Breathing: Inhale through your nose for 4 counts, hold for 7, exhale slowly through your mouth for 8. The long exhale activates your parasympathetic nervous system — your body's natural calm-down switch.
  • Progressive Muscle Relaxation (PMR): Starting at your feet, tense each muscle group for 5 seconds, then release. Work your way up to your head. This drains physical tension you may not even notice you're carrying.
  • Body Scan: Close your eyes and slowly move your attention from the top of your head to your toes, just noticing sensations without judging them. This anchors you in the present moment and away from future-focused worry.
  • Temperature Reset: Splash cool water on your face or hold a cold pack to your wrists for 30 seconds. This triggers the dive reflex, which slows your heart rate quickly.

Quiet the Noise: CBT Thought Techniques for Bedtime

Relaxing your body helps, but anxious thoughts need their own strategy. CBT teaches that it's not events that disturb us — it's our interpretation of them. Here's how to challenge those 2 a.m. spirals:

  1. Name the thought pattern. Common ones include catastrophizing ('Everything will fall apart'), mind-reading ('They definitely think badly of me'), and fortune-telling ('I know tomorrow will go wrong'). Simply labeling a thought as 'catastrophizing' creates a tiny bit of distance from it.
  2. Ask a grounding question. 'What is the actual evidence for this thought? What would I tell a close friend who was thinking this?' You're not forcing positive thinking — you're looking for accuracy.
  3. Write it down. Keep a notepad by your bed. Jotting down a worry signals to your brain that it's been 'filed' and doesn't need to be held in active memory. This simple act can reduce middle-of-the-night rumination significantly.
  4. Schedule a worry. Tell yourself: 'I'll think about this properly tomorrow at 5 p.m.' This sounds too simple to work — but research shows that designated worry time genuinely reduces intrusive thoughts at night.

Schedule 'Worry Time' Earlier in the Day

One of the most underrated CBT strategies for sleep anxiety is setting aside 15 to 20 minutes in the late afternoon — not close to bedtime — to deliberately think through your worries. Sit down, write out what's bothering you, and brainstorm what (if anything) you can actually do about each concern.

When worries show up at night, you can honestly tell your brain: 'We already handled that. It's not our job right now.' Over time, your brain stops bringing those thoughts to bed because it trusts they'll get attention at the right time.

Build a Wind-Down Routine Your Brain Can Trust

Consistency is the foundation of good sleep. Your nervous system responds to cues. A predictable pre-bed routine signals safety and sleepiness — the opposite of alert anxiety.

  • Dim lights 60 minutes before bed — bright light suppresses melatonin.
  • Put your phone face-down or in another room. Scrolling fuels comparison and stimulation, both enemies of calm.
  • Keep your bedroom cool (around 65–68°F / 18–20°C). Your core body temperature needs to drop to initiate sleep.
  • Do the same routine in the same order each night. Shower, light reading, breathing exercise — whatever works. The ritual itself becomes a sleep trigger.
  • Avoid checking the clock. Clock-watching increases anxiety about not sleeping, which makes sleep harder. Turn the clock away from you.

What to Avoid (Even When It Seems Helpful)

Some instinctive responses to sleep anxiety actually make it worse over time:

  • Lying in bed trying to force sleep — the harder you try, the more alert you become.
  • Napping during the day to compensate — this reduces your sleep drive and makes the next night harder.
  • Using alcohol to 'take the edge off' — alcohol disrupts REM sleep and increases anxiety the next day.
  • Spending hours in bed on weekends to 'catch up' — this shifts your sleep rhythm and makes weeknight anxiety worse.

A Note on Medication and Supplements

Melatonin can help with sleep timing (like jet lag) but is not a treatment for anxiety-driven insomnia. Over-the-counter sleep aids can create dependency. If you're considering medication, talk to a doctor or licensed provider first. CBT-I has been shown in research to outperform sleep medication for long-term relief from insomnia — without the side effects.

When to Reach Out for More Support

These techniques are real and they work for many people — but they're coaching tools, not a substitute for professional care. If your anxiety or sleep struggles are significantly affecting your daily life, your relationships, or your ability to function, please reach out to a licensed therapist or your primary care doctor. A professional can assess what's really going on and build a treatment plan tailored to you.

If you're ever in crisis, feeling overwhelmed to the point where you're thinking about harming yourself, please contact the 988 Suicide & Crisis Lifeline by calling or texting 988. You can also go to your nearest emergency room or call 911. You deserve support, and help is available right now.

"You don't have to fix everything tonight. You just have to make it a little easier for your brain to feel safe enough to rest. That's enough."

Start Tonight: Your Simple Action Plan

  1. Set a worry time for tomorrow afternoon and write down one thing that's on your mind right now.
  2. Start dimming lights and putting your phone away 60 minutes before your target bedtime.
  3. Practice 4-7-8 breathing for 5 minutes as you get into bed.
  4. If you're still awake after 20 minutes, get up, do something calm, and return when sleepy.
  5. Repeat consistently for two weeks — consistency is what rewires the pattern.

Sleep anxiety is a loop, and loops can be broken. Every small step you take tonight is a signal to your nervous system that the world is safe, that tomorrow can wait, and that rest is allowed. You've got this.

Try it for yourself

Take a free 2-minute mental health check.

No diagnosis. No login to start. Just a clear snapshot — and three personalized next steps.

Start the check