Yes, you can hyperventilate in your sleep, though it looks different from the rapid, panicked breathing you might picture during a waking episode. Nighttime hyperventilation most commonly happens in short bursts tied to sleep apnea events or as part of nocturnal panic attacks. In both cases, your body over-breathes in response to a trigger, dropping your blood carbon dioxide levels and setting off a chain of physical symptoms.
How Breathing Changes During Sleep
When you’re awake, your breathing is regulated by both conscious control and automatic systems. During sleep, the conscious part shuts off entirely, leaving your brainstem in charge. This shift makes your breathing more vulnerable to disruption because sleep unmasks a sensitive trigger point: the apneic threshold. This is the carbon dioxide level below which your brain simply stops sending the signal to breathe.
In healthy sleepers, the gap between normal carbon dioxide levels and that threshold is only about 2 to 5 mmHg. That’s a razor-thin margin. If anything causes you to over-breathe, even briefly, carbon dioxide can drop below that threshold and your breathing pauses altogether. When it restarts, the brain often overcorrects with a burst of rapid breathing, and the cycle repeats. This instability is at the heart of most sleep-related hyperventilation.
Sleep Apnea and the Hyperventilation Cycle
The most common reason people hyperventilate during sleep is as a direct consequence of sleep apnea. In obstructive sleep apnea, the airway collapses and blocks airflow for seconds at a time. During that pause, carbon dioxide builds up and oxygen drops. When the brain detects this, it triggers a brief arousal, just enough to reopen the airway. What follows is a ventilatory overshoot: your body breathes harder and faster than normal to clear the built-up carbon dioxide and restore oxygen levels.
This overshoot is, by definition, a period of hyperventilation. It’s usually brief, lasting only a few breaths, but it can happen dozens or even hundreds of times per night in people with moderate to severe sleep apnea. Each burst of rapid breathing drives carbon dioxide too low, which can then trigger another pause in breathing, creating a repeating loop of under-breathing and over-breathing that fragments sleep throughout the night.
Central sleep apnea follows a similar pattern but starts from a different place. Instead of a physical airway blockage, the brain temporarily stops sending the signal to breathe. People with central sleep apnea often have an unusually strong ventilatory drive, meaning their breathing system responds aggressively to even small changes in blood chemistry. This heightened sensitivity makes the overshoot after each apnea more dramatic and the resulting hyperventilation more pronounced. A pattern called Cheyne-Stokes breathing, where breathing gradually ramps up, peaks, then fades to nothing before restarting, is a classic example of this cycle and is especially common in people with heart failure.
What Hyperventilation Does to Your Airway
The rapid breathing itself creates a secondary problem. When hyperventilation drives carbon dioxide too low, the muscles in your throat and upper airway become less stiff and more prone to collapse, particularly during the exhale phase of each breath. Research measuring airway resistance during sleep found that low-carbon-dioxide conditions increased expiratory resistance significantly compared to normal breathing, while the inhale phase stayed relatively unchanged. This means hyperventilation can actually make your airway more likely to narrow or close, feeding right back into the apnea cycle.
This creates a frustrating feedback loop: apnea triggers hyperventilation, hyperventilation drops carbon dioxide, low carbon dioxide weakens airway tone, and the weakened airway sets up the next apnea event.
Nocturnal Panic Attacks
The other major cause of hyperventilation during sleep is nocturnal panic attacks. These strike without warning, jolting you awake in a state of intense fear with a racing heart, sweating, chest pain, chills, and difficulty breathing. You may feel like you’re choking or having a heart attack. Unlike daytime panic attacks, there’s no obvious trigger since you were asleep when it started.
Research suggests that nocturnal panic attacks may actually produce more severe breathing symptoms than their daytime counterparts. People who experience them often report gasping for air or feeling unable to catch their breath, which reflects the hyperventilation happening as the panic response floods the body with adrenaline. While most panic attacks occur during the day, nocturnal episodes can be especially disorienting because you wake up already in the middle of the body’s fight-or-flight response with no context for why.
Anxiety and depression are strongly linked to hyperventilation patterns overall. One study found that anxiety scores were the single strongest psychological predictor of hyperventilation severity, with a highly significant correlation between the two. Chronic stress, anger, and fear all increase baseline breathing rates and promote upper-chest breathing patterns that make hyperventilation episodes more likely, including during sleep.
How Sleep Hyperventilation Is Detected
If your doctor suspects a breathing problem during sleep, the standard test is a polysomnography, or overnight sleep study. Sensors track your brain waves, heart rate, oxygen levels, airflow, and breathing effort throughout the night. For hyperventilation specifically, the key measurement is carbon dioxide. Clinicians monitor this using either a small sensor on the skin (transcutaneous monitoring) or by measuring the carbon dioxide in your exhaled breath.
The sleep study can distinguish between different types of breathing disruption. Obstructive events show continued breathing effort against a closed airway, while central events show breathing effort stopping altogether. The hyperventilation that follows either type appears as a spike in airflow and a corresponding drop in carbon dioxide levels. This distinction matters because the treatments differ.
Treatment Options
For hyperventilation linked to sleep apnea, the primary treatment is positive airway pressure therapy. A CPAP machine delivers constant air pressure through a mask to keep your airway open, which prevents the apnea events that trigger hyperventilation in the first place. Variations include BPAP machines that adjust pressure between inhaling and exhaling, and auto-adjusting machines that respond to your breathing patterns in real time. By eliminating the apnea events, these devices break the cycle of airway collapse, arousal, and compensatory over-breathing.
Orofacial therapy, which involves targeted exercises for the tongue, lips, and muscles of the upper airway, can also help by strengthening the structures that keep your airway open during sleep. This approach works for both children and adults and is sometimes used alongside positive airway pressure.
For nocturnal panic attacks, treatment focuses on addressing the underlying anxiety or panic disorder. Cognitive behavioral therapy is the most effective long-term approach, helping to reduce the frequency and intensity of panic episodes. Good sleep hygiene also plays a supporting role: keeping a consistent sleep schedule, limiting caffeine and alcohol, and managing daytime stress can all reduce the likelihood of a nighttime episode. If you’re waking up gasping, panicked, and drenched in sweat, it’s worth noting whether you also snore or feel exhausted during the day, since sleep apnea and panic attacks can coexist and sometimes mimic each other.

