Sleep Anxiety: Why Your Mind Races at Night and What Helps

✍️Sleep Smarter Editorial Team
••9 min read•Last reviewed: March 2026
Person lying in bed with swirling thought lines above their head representing racing thoughts and sleep anxiety

Sleep anxiety is worry or dread that switches on around sleep: your mind races the moment you lie down, you feel uneasy as bedtime gets close, or you wake in the night and the worries rush in. It's very common, and it isn't a diagnosis on its own. It usually runs on a loop. A few bad nights make you anxious about sleep, that anxiety keeps your body alert, and the alertness makes the next night harder.

The fastest ways to break the loop are simple, if not easy: stop trying to force sleep, move your worrying out of bed and earlier in the evening, get up when you're wide awake instead of lying there, and keep the same wake time every day. Here's why anxiety gets worse at night, what to do tonight, and when it's time to get help.

What Sleep Anxiety Feels Like

It shows up in a few different ways, and many people get more than one:

  • A racing mind at bedtime. You're exhausted, but the second your head hits the pillow you're replaying the day or planning tomorrow.
  • Dread as bedtime gets closer. You start worrying in the evening about whether you'll sleep tonight.
  • Anxiety waves as you drift off. A sudden rush of unease, a pounding heart or a jolt right at the edge of sleep. More on this below.
  • Waking in the night with your mind already running. Something wakes you, often around 3 AM, and a worry grabs hold before you can drift back down.
  • Clock-watching and sleep math. "If I fall asleep now, I'll get four hours."

If anxiety is with you most of the day as well, not just at night, that's worth a conversation with a doctor or therapist. The night-time tips below still help, but they're only part of the picture.

Why Anxiety Gets Worse at Night

During the day, work, people and noise keep your attention busy. At night the distractions go away. You're lying in the dark with nothing to do, so whatever is unresolved gets your full attention. Problems also feel bigger at night. You're tired, you can't act on anything until morning, and a worry that seems manageable over coffee feels huge at 1 AM.

Then there's effort. Sleep is one of the few things that gets harder the more you try. Trying to fall asleep is a form of effort, and effort makes you more alert, not less. So the night you most need sleep, when you're watching the clock and calculating, is often the night it won't come.

Finally, your brain learns. After enough nights of lying awake and frustrated, it starts linking your bed with being alert and stressed. Sleep specialists call this conditioned arousal. It's why some people sleep better in a hotel or on the couch: the cue that triggers the alertness isn't there.

The Sleep Anxiety Loop

  1. You have a few rough nights, often for an ordinary reason like stress, illness or travel.
  2. You start worrying about sleep itself: "What if I can't sleep again tonight?"
  3. That worry makes you more alert at bedtime, or when you wake in the night.
  4. You lie awake longer, which confirms the worry.
  5. Your brain links bed with being awake, and the loop tightens.

The good news is that every step in the loop is something you can change. You don't have to get rid of every worry in your life. You only have to stop feeding the loop.

What to Do Tonight, in Bed

Pick one or two of these. Trying all of them at once turns relaxing into another task.

1. Drop the goal of sleeping

Tell yourself that resting is the goal tonight, not sleep. Lying quietly with your eyes closed is still rest. This takes away the pressure, and pressure is what keeps you alert. It feels like a trick, but it's a real part of insomnia therapy, where it's called paradoxical intention: you stop trying to fall asleep, so the effort stops getting in the way.

2. Make your out-breath longer than your in-breath

Breathe in gently through your nose for a count of about four, then out slowly for six to eight. A long, slow exhale tends to calm the body. Skip long breath holds if they make you feel uneasy. The longer exhale is the part that matters. Put one hand on your belly and let it rise first.

3. Give your mind a dull job

A racing mind needs something to do, so give it something boring. Pick a neutral word like "garden." For each letter, picture random unrelated things that start with it: goat, glove, guitar, then apple, anchor, acorn. Random images that don't connect into a story leave little room for worry. This is often called cognitive shuffling.

4. Label the thought, don't argue with it

Trying not to think about something makes it louder. Instead, put a little distance between you and the thought. Swap "I'm going to be wrecked tomorrow" for "I'm having the thought that I'll be wrecked tomorrow." You're not trying to win the argument. You're noticing the thought and letting it be there without following it.

5. Get up if you're wide awake

If you've been awake for what feels like about 20 minutes and you're alert or frustrated, get out of bed. Sit somewhere dim and read something dull on paper. Go back to bed when you feel sleepy. This breaks the link between your bed and lying awake, and it's a standard part of insomnia therapy called stimulus control. Estimate the 20 minutes. Don't check the clock to measure it.

6. Hide the clock

Turn the clock to face the wall and keep your phone out of reach. Every glance starts the sleep math, and the math always makes it worse.

Anxiety Waves When Falling Asleep

Some people fall asleep without racing thoughts, then get hit right at the edge of sleep: a sudden wave of dread, a lurch in the chest, a pounding heart, sometimes a physical jolt. It fades, you drift off again, and it happens again.

Part of this is often a hypnic jerk, the sudden twitch or falling feeling many people get as they drop off. Hypnic jerks are common and harmless, and they tend to happen more when you're short on sleep, stressed or have had caffeine late in the day. The jolt can set off a quick rush of adrenaline, and that rush feels a lot like panic. Then worry about it happening again keeps you on edge, which makes the next one more likely.

What usually helps:

  • Don't fight the wave. Notice it, name it ("there's that wave"), and let it pass. Bracing against it adds a second layer of anxiety on top of the first.
  • Slow your breathing with the longer out-breath above as soon as you notice it.
  • Cut caffeine after midday and keep a steady sleep schedule, since being short on sleep makes these more frequent.
  • Remind yourself it's harmless. Taking away the threat is a big part of what makes the waves fade.

Get checked by a doctor if you wake from sleep in full panic with a racing heart and shortness of breath (nocturnal panic attacks are real and they respond to treatment), if your heartbeat feels irregular or stays fast, or if you wake gasping or choking. Chest pain, or a racing heart with fainting or severe shortness of breath, is an emergency: call 911.

What to Do During the Day and Evening

The night-time tools work much better when the day sets them up.

  • Schedule worry time. Two hours or more before bed, spend 10 to 15 minutes writing down what's on your mind, plus one next step for each item. You're not solving everything. You're telling your brain it's been written down and will be dealt with tomorrow.
  • Build a wind-down buffer. Give yourself 30 to 60 minutes before bed with dimmer lights and nothing stressful: no work email, no news, no arguments by text.
  • Go to bed when you're sleepy, not just tired, and not early to "catch up."
  • Keep the same wake time every day, even after a bad night. Sleeping in feels kind, but it makes the next bedtime harder.
  • Get daylight in the morning. It helps anchor your body clock.
  • Watch caffeine and alcohol. Caffeine lingers for hours. Alcohol can make you drowsy at first, then break up sleep later in the night. See alcohol and sleep for more.
  • Keep naps short and early, or skip them while you're rebuilding your sleep.

What Makes Sleep Anxiety Worse

  • Trying harder. More effort means more alertness.
  • Lying in bed for hours awake. It teaches your brain that bed is a place for being awake.
  • Scrolling in bed. It keeps your mind busy and stretches the night.
  • Catastrophizing a bad night. One rough night is unpleasant, but most people get through the next day. Remembering that takes pressure off tonight.
  • Using alcohol to knock yourself out. It tends to backfire in the second half of the night.

If you feel wired but exhausted at bedtime night after night, our guide to being so tired but unable to sleep goes deeper on that pattern.

When You Wake Up at 3 AM With Your Mind Racing

For many people, sleep anxiety isn't about falling asleep at all. They drop off fine, then wake in the early hours and the worrying starts. That's a slightly different problem, because something usually wakes you first and the anxiety moves in afterward. Our guide to why you wake up at 3 AM covers the usual triggers and what to do in the moment, and why you keep waking up at night covers wake-ups at other hours. For the habits that keep you asleep in the first place, see how to stay asleep through the night.

Waking up at 3 AM and can't get back to sleep? The 3 AM Wake-Up Fix is a $7 printable plan: a 15-minute setup for tonight, a 3 AM card for your nightstand and a 7-night tracker.

When to Get Help

Sleep anxiety often fades once you stop feeding the loop. Talk to a doctor if:

  • Anxiety is there most of the day, not just at night, or it's getting in the way of work or relationships.
  • You have panic attacks, during the day or waking you from sleep.
  • Your mood has been low for weeks, or you've lost interest in things you used to enjoy. Early-morning waking can be a sign of depression, and it responds to treatment.
  • You snore loudly, gasp or choke in your sleep, or someone has seen you stop breathing. That points to sleep apnea, not anxiety.
  • Trouble sleeping happens at least three nights a week for three months or more. That's the usual definition of chronic insomnia. Cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line approach, ahead of sleep medication, and it works directly on the loop described here.

If you ever have thoughts of harming yourself, call or text 988 in the US, any time of day or night.

The Short Version

Sleep anxiety is a loop: worry about sleep makes you alert, and being alert makes sleep harder. Tonight, make rest the goal, breathe out slowly, give your mind a dull job, and get up if you're wide awake. During the day, do your worrying on paper early in the evening, keep a fixed wake time and wind down before bed. If it's been months, or anxiety follows you through the day, talk to a doctor about CBT-I.

Frequently Asked Questions

What is sleep anxiety?+

Sleep anxiety is worry or dread that switches on around sleep: a racing mind at bedtime, unease as bedtime gets close, or worries rushing in when you wake at night. It's common and isn't a diagnosis on its own. It usually runs on a loop where worry about sleep keeps you alert, which makes sleep harder.

Why is my anxiety worse at night?+

At night the distractions of the day are gone, you're tired, and you can't act on anything until morning, so worries get your full attention and feel bigger. Trying hard to sleep adds effort, which makes you more alert. After enough bad nights, your brain can also start linking your bed with being awake.

How do I calm anxiety at night so I can sleep?+

Make rest the goal instead of sleep, breathe out more slowly than you breathe in, and give your mind a dull job like picturing random objects for each letter of a word. If you're wide awake after what feels like 20 minutes, get up, sit somewhere dim and go back to bed when sleepy. During the day, write your worries down well before bed and keep a fixed wake time.

Why do I get a wave of anxiety right as I fall asleep?+

Often it starts with a hypnic jerk, the common, harmless twitch or falling feeling as you drift off. The jolt can trigger a quick rush of adrenaline that feels like panic, and worry about it happening again keeps you on edge. Letting the wave pass without fighting it, slow breathing, less late caffeine and a steady sleep schedule usually help.

Can sleep anxiety go away?+

Yes. It often fades once you stop feeding the loop: no forcing sleep, no lying in bed for hours awake, and a steady schedule. If it has lasted at least three nights a week for three months, cognitive behavioral therapy for insomnia (CBT-I) is the recommended first-line approach.

When should I see a doctor about sleep anxiety?+

See a doctor if anxiety is there most of the day, you have panic attacks, your mood has been low for weeks, you snore loudly or gasp in your sleep, or trouble sleeping has lasted months. Chest pain or a racing heart with fainting is an emergency. If you have thoughts of harming yourself, call or text 988 in the US.

Ready to sleep smarter?

Calculate your optimal bedtime in seconds.

Use Sleep Calculator
😴

Sleep Smarter Editorial Team

Our editorial team researches and writes evidence-based sleep content grounded in peer-reviewed science. All articles reference established sleep research from sources including the NIH, AASM, and Sleep Foundation.