← All articles
Sleep·7 min read·

Why You Wake Up With a Racing Heart at Night (And How to Stop It)

Waking up at 2 a.m. with your heart pounding is frightening — and more common than you think. Here's what's actually happening in your body and brain, and what you can do tonight.

The short version

  • Nighttime heart racing is usually driven by anxiety and your nervous system — not a heart problem.
  • Your brain can trigger a stress response during sleep without you even knowing you were anxious.
  • CBT techniques like thought records and a worry window can break the cycle before bed.
  • Slow, paced breathing is the fastest way to calm your body in the moment when you wake up.

If you keep waking up in the middle of the night with a racing heart, the most likely cause is your nervous system firing off a stress response — often tied to anxiety — even while you're asleep. It's unsettling, sometimes scary, and it can make you dread going to bed. The good news is that once you understand what's driving it, there are concrete, evidence-based steps you can take to interrupt the cycle.

What's Actually Happening in Your Body

Your autonomic nervous system runs quietly in the background 24 hours a day — including while you sleep. When it detects a threat (real or imagined), it kicks off the fight-or-flight response: adrenaline surges, your heart rate spikes, your breathing gets shallow, and your muscles tense. This system doesn't need a conscious thought to pull the trigger. During lighter sleep stages, especially in the early hours of the morning, your brain is more active and more vulnerable to this kind of activation.

Stress hormones like cortisol also follow a natural rhythm. Cortisol starts rising around 2–4 a.m. to prepare your body for waking up. If your baseline stress level is already high, that cortisol rise can push you over the edge into full alertness — heart pounding, mind suddenly busy, wide awake at 3 a.m.

Common Reasons Your Heart Races at Night

There's rarely one single cause. Usually it's a combination of factors stacking on top of each other:

  • Daytime anxiety that was never fully processed — your brain stores unresolved worry and replays it at night.
  • Doom-scrolling or emotionally activating content close to bedtime, which primes your nervous system for threat-detection.
  • Caffeine or alcohol — alcohol in particular disrupts deep sleep and causes fragmented, anxious waking in the second half of the night.
  • Irregular sleep schedules that keep your circadian rhythm confused.
  • Sleeping in a warm room, which can elevate heart rate slightly and tip a borderline state into wakefulness.
  • Hypnic jerks or vivid dreams that startle you out of sleep and send adrenaline spiking.
  • Generalized anxiety or panic disorder — chronic anxiety lowers the threshold for fight-or-flight to fire.

Should You Be Worried It's Your Heart?

This is usually the first fear when you wake up with palpitations, and it's worth taking seriously once — meaning, if you haven't already, mention it to your doctor so they can rule out anything cardiac. That one conversation can itself reduce anxiety significantly. However, anxiety-driven nighttime palpitations are far more common than cardiac events, and they typically come with a cluster of other anxiety symptoms: racing thoughts, a sense of dread, difficulty getting back to sleep, and the pounding fading within a few minutes of calm breathing.

If your palpitations are accompanied by chest pain, shortness of breath that doesn't ease, dizziness, or fainting, seek medical attention promptly. But if you've been checked out and given the all-clear, then the work is about calming your nervous system — and CBT gives us very good tools for that.

What to Do Right Now When You Wake Up

The moment you wake with a pounding heart, your first instinct might be to check your pulse, lie there worrying about your heart, or grab your phone. Each of those actions actually prolongs the stress response. Instead, try this sequence:

  1. Don't check the time. Looking at the clock triggers math anxiety ('I only have four hours left') and makes it harder to sleep.
  2. Put one hand on your chest and one on your belly. Feel your body — grounding yourself in physical sensation interrupts the mental spiral.
  3. Breathe in through your nose for 4 counts, hold for 2, breathe out through your mouth for 6–8 counts. A longer exhale activates your parasympathetic nervous system and slows your heart rate. Do this for 2–3 minutes.
  4. Label what you're feeling without judgment: 'This is anxiety. My body is trying to protect me. I am safe.' Research on affect labeling shows that naming an emotion reduces its intensity in the brain.
  5. If thoughts are racing, mentally 'postpone' them: 'I'll think about that tomorrow at 8 a.m.' This isn't avoidance — it's intentional deferral, a recognized CBT technique.

CBT Strategies to Break the Pattern Over Time

Waking with a racing heart at night is often maintained by a feedback loop: you wake up anxious → you lie there worrying about the fact that you're anxious → anxiety increases → sleep gets worse → you dread bedtime → you're more anxious going in. CBT breaks that loop at multiple points.

Set a Worry Window

Pick a 15–20 minute slot in the late afternoon — not after 7 p.m. — and write down every worry on your mind. This is your designated worry time. When worries come up later in bed, you remind yourself: 'I already dealt with that. It's scheduled.' Over time, this trains your brain to contain worry to a specific container and stop processing it during sleep.

Challenge the Catastrophic Thought

When you wake up with your heart racing, your brain often jumps to worst-case interpretations: 'Something is really wrong,' or 'I'm going to feel awful tomorrow.' CBT asks you to examine the evidence. Keep a simple thought record on your nightstand — a small notebook works fine. Write the scary thought, then write three pieces of evidence against it. This small act of cognitive restructuring can shorten the anxious episode significantly.

Build a Wind-Down Routine That Signals Safety

Your nervous system learns from repetition. A consistent 30-minute pre-bed routine — the same sequence every night — signals to your brain that the day's threats are over and sleep is safe. Include things that genuinely calm you, not just things you think should calm you.

  • Dim the lights at least 30 minutes before bed — bright light suppresses melatonin.
  • Swap screens for something low-stakes: light reading, a podcast, gentle stretching.
  • Write a short 'done list' — three things you completed today. This closes mental loops your brain would otherwise reopen at 3 a.m.
  • Keep your bedroom cool (around 65–68°F) to prevent the temperature-driven heart-rate spike.
  • Avoid alcohol within 3 hours of sleep and caffeine after noon if you're sensitive.

What About Sleep Restriction and Stimulus Control?

If you've been lying awake for long stretches, your brain may have started associating your bed with wakefulness and anxiety rather than sleep. Two CBT for Insomnia (CBT-I) techniques can reverse this. Stimulus control means only using your bed for sleep — no working, scrolling, or worrying in bed. If you can't sleep after about 20 minutes, get up, do something quiet in dim light, and return when you feel drowsy. Sleep restriction temporarily limits time in bed to consolidate sleep pressure, then gradually extends it — this one is best done with a professional guiding you, but knowing it exists matters: there are structured programs that work.

"You don't have to earn sleep by being calm enough. The goal isn't to eliminate every anxious thought before bed — it's to lower the overall alarm level so your nervous system stops treating nighttime as a threat."

How Long Before You See Improvement?

Most people who consistently apply these strategies — the worry window, the breathing protocol, the wind-down routine, and challenging catastrophic thoughts — notice meaningful improvement within 2–4 weeks. Sleep responds to consistency more than intensity. One perfect relaxation session won't fix it; a calmer, more predictable routine repeated every night will.

A Note If You're Really Struggling

If nighttime panic is happening frequently, leaving you exhausted and dreading sleep, it's worth talking to a licensed therapist who specializes in CBT or CBT-I. These are short-term, structured approaches — not open-ended therapy — and they have strong research support for exactly this problem. Your primary care doctor can also screen for underlying contributors like sleep apnea, thyroid issues, or anxiety disorders that benefit from professional support. You don't have to figure this out alone.

If you're in crisis, feeling overwhelmed, or having thoughts of harming yourself, please reach out to the 988 Suicide & Crisis Lifeline by calling or texting 988 (US). Trained counselors are available around the clock. For medical emergencies, call 911 or go to your nearest emergency room.

Free at launch

Get Bruno free for 6 months — plus free merch.

Join the waitlist with just your name and email. No login. Lock in six free months and monthly Bruno merch drops.

Join the waitlist