Our Services
Medical Information
Helpful Resources
Published on: 3/13/2026
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.
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.
A racing heart, also called nocturnal palpitations, typically means:
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:
Here, we'll focus on telling the difference between stress-related racing heart sleep episodes and sleep apnea-related episodes.
Stress doesn't turn off when you go to bed. In fact, for many people, nighttime is when anxious thoughts become louder.
When your brain senses danger (even emotional stress), it activates your fight-or-flight response. This releases adrenaline, which:
Sometimes this surge happens during sleep and wakes you up suddenly.
Your symptoms may be linked to stress or anxiety if:
Stress-related nighttime racing heart episodes often:
You may also notice daytime symptoms like muscle tension, irritability, digestive issues, or constant worrying.
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:
This cycle can cause a racing heart during sleep, often without you fully remembering waking up.
A nighttime racing heart may point to sleep apnea if you also have:
Unlike stress-related episodes, sleep apnea events are often:
If you frequently wake with a racing heart and feel exhausted during the day, sleep apnea becomes more likely.
Here's a simple comparison:
Both conditions activate stress hormones — but sleep apnea does it because your oxygen drops, not because of emotional distress.
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:
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.
While stress and sleep apnea are common, they aren't the only possibilities. Other causes include:
If your racing heart feels irregular, extremely fast, or prolonged, it's important to get evaluated.
Call emergency services if a racing heart at night is accompanied by:
These symptoms could signal a serious heart or circulation problem.
If your racing heart during sleep is occasional and mild, start with these steps:
A formal sleep study is the only way to diagnose sleep apnea definitively.
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:
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.
We would love to help them too.
For First Time Users
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.
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.