Skip to content
PubMed This is a summary of 17 peer-reviewed journal articles Updated
Sleep Medicine

Why Am I Waking Up Gasping: Sleep Apnea or Panic Attack?

At a Glance

Waking up gasping with a racing heart can be caused by either sleep apnea or a nocturnal panic attack. Sleep apnea triggers an adrenaline surge because you stop breathing and oxygen drops. An in-lab sleep study is the best way to determine the exact cause of your nighttime symptoms.

Waking up in the middle of the night with a racing heart, sweating, and a feeling of suffocation can be terrifying. While these symptoms strongly resemble a nocturnal panic attack, they are frequently the result of an undiagnosed sleep apnea event. During an apnea (a pause in breathing), your blood oxygen levels drop. To save your life, your brain triggers a massive “fight-or-flight” adrenaline surge to jolt you awake and force you to breathe [1][2]. Understanding the physiological differences between these two conditions is essential to getting the correct diagnosis and finding relief.

The Mechanics of an Adrenaline Surge in Sleep

In sleep apnea, the primary trigger is a physical or neurological impairment of your breathing, leading to a drop in oxygen (hypoxia) [3]. The lack of oxygen forces your body into survival mode. There are a few key types of sleep apnea:

  • Obstructive Sleep Apnea (OSA): Your upper airway partially or completely collapses during sleep. Your body tries to breathe, but the physical blockage stops air from entering the lungs [1][4].
  • Central Sleep Apnea (CSA): Your airway remains open, but the brain temporarily pauses sending the signal to the breathing muscles [4][5].
  • Mixed (or Complex) Sleep Apnea: This condition involves a combination of both obstructive and central events. Often, a specific sub-type called Treatment-Emergent Central Sleep Apnea emerges when a patient with OSA is placed on continuous positive airway pressure (CPAP) therapy, and central apneas appear [6][7].
  • Sleep Apnea (General): The overarching term for conditions characterized by pauses in breathing during sleep [8].

When you stop breathing during an OSA event, your body is deprived of oxygen. The brain detects this emergency and forces a sudden release of stress hormones, including adrenaline [1][2]. This adrenaline spike accelerates your heart rate (tachycardia) and forces you to wake up gasping for air [3][2]. Because this physiological response mimics a severe anxiety episode, many patients misattribute these respiratory arousals to panic attacks [2].

How Nocturnal Panic Attacks Differ

While sleep apnea arousals are triggered by a physiological inability to breathe, a nocturnal panic attack typically stems from a sudden dysregulation of your nervous system [9].

During a panic attack, patients experience a sudden shift in the brain’s fear centers that triggers the nervous system, resulting in a rapid heartbeat and sympathetic arousal without any preceding airway obstruction or oxygen drop [9][2]. Nocturnal panic attacks are deeply linked to cognitive symptoms, fear, and psychological hypervigilance (heightened alertness and anxiety), whereas sleep apnea is fundamentally a respiratory disorder [10][11].

Daytime Clues: Tracking Your Symptoms

Because the nighttime symptoms of gasping and a racing heart overlap so closely, looking at your daytime experience can help provide important context for your doctor.

Clues it might be Sleep Apnea Clues it might be a Panic Disorder
Excessive Daytime Sleepiness: Feeling a strong, physical urge to fall asleep during quiet daytime activities [12]. Daytime Hyperarousal: Feeling exhausted but “wired,” anxious, or constantly on edge [13].
Physical Morning Symptoms: Waking up with a dry mouth, sore throat, or morning headache [14]. Anticipatory Anxiety: Persistent worry during the day about having another terrifying nighttime attack [10].
Partner Observations: Loud snoring, choking noises, or witnessed pauses in breathing while you sleep [12]. Daytime Panic: Experiencing similar racing heart or panic episodes while fully awake during the day [11].

Getting the Right Diagnosis: Next Steps

If you are experiencing these terrifying nighttime wake-ups, the next step is to speak with a primary care physician or a sleep medicine specialist to request an evaluation. Because the symptoms overlap so closely, the best way to differentiate the two is through a sleep study [8][2].

  • Polysomnography (PSG): This overnight, in-lab sleep study is the gold standard [8]. It monitors airflow, blood oxygen, brain waves (EEG), and heart rhythms (ECG) to pinpoint exactly whether an oxygen drop caused your heart to race (OSA) or if the racing heart occurred without respiratory failure (Panic Disorder) [15][16].
  • Home Sleep Apnea Testing (HSAT): Many insurance companies now require a simplified at-home test as a first diagnostic step [17]. While an HSAT can effectively diagnose obstructive sleep apnea by tracking your breathing and oxygen, it typically does not measure brain waves, making it less comprehensive than an in-lab PSG for completely ruling out panic disorders or central sleep apnea [17].

Common questions in this guide

Why does sleep apnea cause an adrenaline surge at night?
When you stop breathing during a sleep apnea event, your blood oxygen drops. To protect you, your brain releases stress hormones like adrenaline to force you awake so you can resume breathing, which often causes a racing heart and gasping.
How can I tell if my nighttime racing heart is sleep apnea or a panic attack?
Sleep apnea often causes physical morning symptoms like dry mouth, sore throats, headaches, and excessive daytime sleepiness. Nocturnal panic attacks are more frequently associated with intense daytime anxiety, hyperarousal, and persistent worry about the next attack.
What is the best test to diagnose why I keep waking up gasping for air?
An in-lab polysomnography (PSG) sleep study is the gold standard for diagnosis. It monitors your breathing, oxygen, brain waves, and heart rhythms to determine if your symptoms are caused by a respiratory issue like sleep apnea or a nervous system response like a panic disorder.
Will a home sleep test show if I have panic attacks at night?
Home sleep apnea tests primarily track your breathing and oxygen levels to diagnose obstructive sleep apnea. Because they typically do not measure brain waves, they are less comprehensive than an in-lab study for completely ruling out panic disorders or central sleep apnea.
Can sleep apnea cause daytime anxiety and brain fog?
Yes, the repeated nighttime adrenaline spikes and disrupted sleep caused by sleep apnea can leave you feeling exhausted, anxious, or experiencing brain fog during the day. Treating the underlying breathing issue often helps resolve these daytime symptoms.

Questions to Ask Your Doctor

Curated prompts to bring to your next appointment.

  1. 1.Given my symptoms of waking up with a racing heart, should I be evaluated for a sleep study, and do you recommend an at-home test or an in-lab polysomnography?
  2. 2.If my sleep study shows I have sleep apnea, how quickly should my nighttime gasping and racing heart resolve once I start treatment?
  3. 3.What was my Apnea-Hypopnea Index (AHI) during my study, and did I show signs of obstructive, central, or mixed sleep apnea?
  4. 4.If I have both sleep apnea and a panic disorder, how do we sequence my treatments to make sure both are effectively addressed?
  5. 5.Could the daytime anxiety or brain fog I am experiencing be related to the adrenaline spikes caused by sleep apnea at night?

Questions For You

Tap a prompt to share your answer — we'll use it plus this page's context to start a tailored conversation.

References

References (17)
  1. 1

    Abnormalities of the Vertebrobasilar Arterial System Leading to Sleep Disorders.

    Sabet C, Aggarwal A

    Journal of stroke and cerebrovascular diseases : the official journal of National Stroke Association 2022; (31(5)):106383 doi:10.1016/j.jstrokecerebrovasdis.2022.106383.

    PMID: 35190307
  2. 2

    [A case of REM obstructive sleep apnea with nocturnal panic-like episode as the main symptom].

    Zhang P, Li X, Kong X, et al.

    Lin chuang er bi yan hou tou jing wai ke za zhi = Journal of clinical otorhinolaryngology head and neck surgery 2022; (36(3)):225-227 doi:10.13201/j.issn.2096-7993.2022.03.014.

    PMID: 35193347
  3. 3

    Oxidative Stress and Inflammation in Hypoxemic Respiratory Diseases and Their Comorbidities: Molecular Insights and Diagnostic Advances in Chronic Obstructive Pulmonary Disease and Sleep Apnea.

    Rodríguez-Pérez J, Andreu-Martínez R, Daza R, et al.

    Antioxidants (Basel, Switzerland) 2025; (14(7)) doi:10.3390/antiox14070839.

    PMID: 40722943
  4. 4

    Sleep apnea is a common and dangerous cardiovascular risk factor.

    Henning RJ, Anderson WM

    Current problems in cardiology 2025; (50(1)):102838 doi:10.1016/j.cpcardiol.2024.102838.

    PMID: 39242062
  5. 5

    Absence of Typical Symptoms and Comorbidities in Patients with Central Sleep Apnea.

    Yayan J, Rasche K

    Advances in experimental medicine and biology 2015; (873()):15-23 doi:10.1007/5584_2015_163.

    PMID: 26269028
  6. 6

    Complex sleep apnea at auto-titrating CPAP initiation: prevalence, significance and predictive factors.

    Neu D, Balkissou AD, Mairesse O, et al.

    The clinical respiratory journal 2017; (11(2)):200-209 doi:10.1111/crj.12325.

    PMID: 26072986
  7. 7

    The prevalence and polysomnographic characteristics of treatment-emergent central sleep apnea with obstructive sleep apnea.

    Berik Safçi S

    Sleep & breathing = Schlaf & Atmung 2024; (28(3)):1245-1250 doi:10.1007/s11325-024-02999-1.

    PMID: 38308750
  8. 8

    Polysomnography.

    Rundo JV, Downey R

    Handbook of clinical neurology 2019; (160()):381-392 doi:10.1016/B978-0-444-64032-1.00025-4.

    PMID: 31277862
  9. 9

    Vagal control of the heart decreases during increasing imminence of interoceptive threat in patients with panic disorder and agoraphobia.

    Richter J, Pietzner A, Koenig J, et al.

    Scientific reports 2021; (11(1)):7960 doi:10.1038/s41598-021-86867-y.

    PMID: 33846417
  10. 10

    Intolerance of uncertainty and responsibility for harm predict nocturnal panic attacks.

    Smith NS, Albanese BJ, Schmidt NB, Capron DW

    Psychiatry research 2019; (273()):82-88 doi:10.1016/j.psychres.2019.01.025.

    PMID: 30640055
  11. 11

    Frontal cortex absolute beta power measurement in Panic Disorder with Agoraphobia patients.

    de Carvalho MR, Velasques BB, Freire RC, et al.

    Journal of affective disorders 2015; (184()):176-81.

    PMID: 26093831
  12. 12

    The economic and societal burden of excessive daytime sleepiness in patients with obstructive sleep apnea.

    Léger D, Stepnowsky C

    Sleep medicine reviews 2020; (51()):101275 doi:10.1016/j.smrv.2020.101275.

    PMID: 32169792
  13. 13

    Intermittent Hypoxia Triggers Glial Cell Activation, GluN2B Receptor Upregulation and Hyperalgesia in a Mouse Model of Sleep Apnea.

    Liu YC, Chiu BY, Tu KY, et al.

    European journal of pain (London, England) 2025; (29(6)):e70039 doi:10.1002/ejp.70039.

    PMID: 40485324
  14. 14

    Effectiveness of mandibular advancement appliances in treating obstructive sleep apnea syndrome: A systematic review.

    Serra-Torres S, Bellot-Arcís C, Montiel-Company JM, et al.

    The Laryngoscope 2016; (126(2)):507-14 doi:10.1002/lary.25505.

    PMID: 26228493
  15. 15

    Mandibular Advancement Devices in Obstructive Sleep Apnea Patients Intolerant to Continuous Positive Airway Pressure Treatment.

    Wojda M, Kostrzewa-Janicka J, Śliwiński P, et al.

    Advances in experimental medicine and biology 2019; (1150()):35-42 doi:10.1007/5584_2018_275.

    PMID: 30255301
  16. 16

    Rapid eye movement sleep behaviour disorder symptomatic of a brain stem cavernoma.

    Felix S, Thobois S, Peter-Derex L

    Journal of sleep research 2016; (25(2)):211-5 doi:10.1111/jsr.12364.

    PMID: 26780965
  17. 17

    Obstructive sleep apnea basics.

    Rundo JV

    Cleveland Clinic journal of medicine 2019; (86(9 Suppl 1)):2-9 doi:10.3949/ccjm.86.s1.02.

    PMID: 31509498

This page is for informational purposes only and does not replace professional medical advice. Always consult your primary care physician or a sleep medicine specialist for an accurate diagnosis of nighttime breathing issues or panic symptoms.

Get notified when new evidence is published on Sleep Apnea.

We monitor PubMed for new peer-reviewed studies on this topic and email a short summary when something meaningful changes.