Doctors Note Logo

Published on: 3/13/2026

Heart Racing at Night? How to Tell if It’s Stress or Sleep Apnea

There are several factors to consider: a nighttime racing heart is most often due to stress or obstructive sleep apnea, with stress episodes tied to panic or vivid dreams and settling as you relax, while apnea is more likely if there is loud snoring, gasping, repeated awakenings, and daytime sleepiness.

Because untreated apnea raises risks like high blood pressure and irregular heart rhythms and other causes like thyroid problems, medications, alcohol, dehydration, or true arrhythmias can also be involved, see below for key red flags, self-care steps, when to get a sleep study, and when to seek urgent care so you can choose the right next steps.

answer background

Explanation

Heart Racing at Night? How to Tell if It's Stress or Sleep Apnea

Waking up with a racing heart during sleep can feel alarming. You may suddenly become aware of your heartbeat pounding in your chest, sometimes with sweating, shortness of breath, or a sense of panic.

A racing heart at night isn't always dangerous — but it's never something to ignore. Two of the most common causes are stress (including anxiety and panic attacks) and obstructive sleep apnea (OSA). The key is understanding the differences so you know what to do next.

Let's break it down clearly and calmly.


What Is a "Racing Heart" During Sleep?

A racing heart, also called nocturnal palpitations, typically means:

  • Your heart feels like it's pounding, fluttering, or beating very fast
  • You wake up suddenly aware of your heartbeat
  • Your pulse may feel irregular or forceful
  • It may take minutes — sometimes longer — to settle down

A normal resting heart rate for adults is 60–100 beats per minute. During sleep, it often drops even lower. So when your heart suddenly speeds up at night, your body is reacting to something.

The most common triggers are:

  • Stress or anxiety
  • Nighttime panic attacks
  • Sleep apnea
  • Alcohol or caffeine
  • Certain medications
  • Hormonal changes
  • Heart rhythm disorders

Here, we'll focus on telling the difference between stress-related racing heart sleep episodes and sleep apnea-related episodes.


Racing Heart at Night From Stress or Anxiety

Stress doesn't turn off when you go to bed. In fact, for many people, nighttime is when anxious thoughts become louder.

How Stress Causes a Racing Heart During Sleep

When your brain senses danger (even emotional stress), it activates your fight-or-flight response. This releases adrenaline, which:

  • Increases heart rate
  • Raises blood pressure
  • Speeds up breathing
  • Makes you more alert

Sometimes this surge happens during sleep and wakes you up suddenly.

Signs Your Racing Heart Is Stress-Related

Your symptoms may be linked to stress or anxiety if:

  • You've been under significant emotional pressure
  • You wake up feeling panicked or fearful
  • Your heart racing happens after vivid dreams or nightmares
  • You have a history of anxiety or panic attacks
  • The episodes improve with relaxation techniques
  • You don't snore heavily or gasp for air at night

Stress-related nighttime racing heart episodes often:

  • Come on suddenly
  • Peak within minutes
  • Gradually settle as you calm down

You may also notice daytime symptoms like muscle tension, irritability, digestive issues, or constant worrying.


Racing Heart Sleep Episodes Caused by Sleep Apnea

Obstructive sleep apnea (OSA) is a medical condition where the airway repeatedly collapses or becomes blocked during sleep. This causes breathing to stop for brief periods — sometimes dozens or even hundreds of times per night.

Each time breathing stops:

  1. Oxygen levels drop
  2. The brain senses danger
  3. Stress hormones surge
  4. The heart rate spikes
  5. You partially wake up

This cycle can cause a racing heart during sleep, often without you fully remembering waking up.

Common Signs of Sleep Apnea

A nighttime racing heart may point to sleep apnea if you also have:

  • Loud, chronic snoring
  • Gasping or choking during sleep
  • Witnessed pauses in breathing
  • Waking up short of breath
  • Morning headaches
  • Dry mouth upon waking
  • Daytime sleepiness, even after "enough" sleep
  • High blood pressure

Unlike stress-related episodes, sleep apnea events are often:

  • Repetitive throughout the night
  • Associated with breathing problems
  • Accompanied by oxygen drops
  • Linked to poor-quality sleep

If you frequently wake with a racing heart and feel exhausted during the day, sleep apnea becomes more likely.


Key Differences: Stress vs. Sleep Apnea

Here's a simple comparison:

Racing Heart From Stress

  • Triggered by emotional strain
  • May include panic or fear
  • Not usually linked to snoring
  • Heart racing settles as you relax
  • More common during stressful life periods

Racing Heart From Sleep Apnea

  • Linked to breathing pauses
  • Often includes loud snoring
  • May involve gasping or choking
  • Happens repeatedly throughout the night
  • Causes significant daytime fatigue

Both conditions activate stress hormones — but sleep apnea does it because your oxygen drops, not because of emotional distress.


Why Sleep Apnea Shouldn't Be Ignored

While stress-related racing heart sleep episodes are distressing, untreated sleep apnea carries more long-term health risks.

Over time, untreated OSA increases the risk of:

  • High blood pressure
  • Irregular heart rhythms (like atrial fibrillation)
  • Heart attack
  • Stroke
  • Type 2 diabetes
  • Memory problems

That doesn't mean you should panic — but it does mean persistent symptoms deserve evaluation.

If you're experiencing symptoms like loud snoring, gasping during sleep, or chronic daytime exhaustion along with your racing heart, you can get clarity by using a free AI-powered Sleep Apnea Syndrome symptom checker to better understand whether your symptoms warrant professional sleep testing.


Other Causes of Racing Heart During Sleep

While stress and sleep apnea are common, they aren't the only possibilities. Other causes include:

  • Thyroid disorders
  • Menopause-related hormone shifts
  • Low blood sugar
  • Dehydration
  • Alcohol use before bed
  • Certain medications (like decongestants)
  • True heart rhythm disorders

If your racing heart feels irregular, extremely fast, or prolonged, it's important to get evaluated.


When to Seek Immediate Medical Care

Call emergency services if a racing heart at night is accompanied by:

  • Chest pain or pressure
  • Severe shortness of breath
  • Fainting
  • Weakness on one side of the body
  • Confusion
  • A heart rate persistently above 130–150 beats per minute at rest

These symptoms could signal a serious heart or circulation problem.


What You Can Do Now

If your racing heart during sleep is occasional and mild, start with these steps:

For Possible Stress-Related Episodes

  • Limit caffeine and alcohol
  • Practice slow breathing before bed
  • Keep a consistent sleep schedule
  • Avoid screens 1 hour before sleep
  • Try mindfulness or guided relaxation

For Possible Sleep Apnea

  • Avoid alcohol near bedtime
  • Sleep on your side instead of your back
  • Maintain a healthy weight
  • Track snoring with a sleep app or partner feedback
  • Ask your doctor about a sleep study

A formal sleep study is the only way to diagnose sleep apnea definitively.


The Bottom Line

A racing heart during sleep is your body signaling that something needs attention. In many cases, it's related to stress or anxiety. In others, it may be a sign of sleep apnea, especially if loud snoring and daytime fatigue are present.

Neither cause should be ignored.

If your symptoms are frequent, worsening, or affecting your quality of life, speak to a doctor. A healthcare professional can:

  • Check your heart rhythm
  • Evaluate for sleep apnea
  • Screen for thyroid or hormonal issues
  • Help you manage anxiety safely

Most causes of racing heart sleep episodes are treatable — and identifying the cause is the first step toward better rest and better health.

If you're unsure where to start, consider using a free Sleep Apnea Syndrome symptom checker to help determine if your symptoms align with this condition, and most importantly, speak to a doctor about any symptoms that could be serious or life threatening.

Better sleep — and peace of mind — are possible once you know what's really going on.

(References)

  • * Sun X, Xu W, Wu X, Zheng Y. Nocturnal Tachycardia: Mechanisms, Clinical Significance, and Management. Curr Cardiol Rev. 2021;17(4):e070821191060. doi: 10.2174/1573403X17666210507102035. PMID: 33924376; PMCID: PMC8759364.

  • * Palmiotta S, Braghiroli A, Lenti G, et al. Heart rate variability in sleep apnea: a systematic review. Sleep Breath. 2021;25(3):1037-1049. doi: 10.1007/s11325-021-02426-3. PMID: 34556100; PMCID: PMC8486016.

  • * Zaremba S, Spiegelhalder K, Perrault A, Riemann D, Nissen C. Autonomic Nervous System Function and Heart Rate Variability During Sleep: Implications for Insomnia Pathophysiology. Curr Sleep Med Rep. 2023;9(3):111-122. doi: 10.1007/s40675-023-00266-7. PMID: 37626359; PMCID: PMC10447387.

  • * Xie W, Li M, Cao X, et al. Cardiovascular consequences of obstructive sleep apnea: a focus on autonomic nervous system dysfunction. Sleep Breath. 2019;23(1):15-23. doi: 10.1007/s11325-018-1748-y. PMID: 30426210.

  • * Craske MG, Zucker BG. Nocturnal Panic Attacks: Prevalence, Clinical Characteristics, and Treatment Implications. CNS Spectr. 2016;21(2):162-167. doi: 10.1017/S109285291600007X. PMID: 27063717.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Learn more about diseases

Sleep Apnea Syndrome

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.