Waking up gasping, choking, or unable to get a satisfying breath can happen with obstructive sleep apnea, but it is not specific to sleep apnea. Heart or lung disease, an upper-airway event, swallowing or reflux problems, nocturnal panic, medicines, and several less common conditions can feel similar.
One episode cannot diagnose the cause. Recurrent episodes, a new pattern, or symptoms that are becoming more severe deserve a medical assessment. If breathing remains difficult after you are fully awake, treat it as a breathing problem rather than waiting to see whether sleep fixes it.
What to do during an episode
Sit upright in a position that makes breathing easier and loosen tight clothing. If you have an asthma inhaler, epinephrine, home oxygen, or another rescue treatment prescribed for this exact situation, follow your personal action plan. Do not use someone else's medicine or oxygen.
Call emergency services if breathing is still difficult, is worsening, or is accompanied by blue or gray lips or skin, chest pain, fainting, confusion, inability to speak normally, coughing blood, severe wheezing, a harsh high-pitched breathing sound called stridor, or swelling of the face, tongue, or throat 12. Sudden one-sided weakness or numbness, facial droop, trouble speaking, trouble seeing, loss of coordination, or a severe unexplained headache also requires an emergency call 3.
Do not drive yourself if you may faint, are confused, have chest pain, or remain short of breath.
This article focuses on adults. A baby who has pauses in breathing, struggles to breathe, turns blue or gray, is unusually limp, or is difficult to wake needs emergency care rather than advice from an adult sleep article 1.
The pattern can narrow the possibilities
The feeling of “gasping” can describe several different events. The details before, during, and after the awakening often matter more than the word itself.
Obstructive sleep apnea
In obstructive sleep apnea, the upper airway repeatedly narrows or closes during sleep. A bed partner may notice snoring, pauses, snorts, or gasps. The person may also have unrefreshing sleep, morning headache, dry mouth, impaired concentration, or excessive daytime sleepiness.
Gasping raises suspicion, but it does not confirm OSA. The absence of remembered snoring, a quiet recording, a thin body type, or a normal reading from a wearable does not rule it out either. AASM guidance requires diagnosis to rest on a comprehensive sleep evaluation and validated sleep testing, not symptoms or a screening tool alone 4.
Central sleep apnea is different. Breathing effort decreases or stops rather than the throat simply closing. Chronic opioid therapy is one setting in which it can occur. Distinguishing central from obstructive events requires a clinical evaluation and appropriate testing; the feeling alone does not establish which one occurred 54.
Shortness of breath when lying flat or after hours asleep
Some people with heart failure become short of breath while lying flat or wake after sleeping with trouble breathing. Leg or abdominal swelling, rapid weight gain, reduced exercise tolerance, cough, fatigue, or needing to sit up to breathe can add to concern 6.
Sleeping on several pillows may mask the positional symptom, but it does not treat the underlying condition. A new need to sleep upright, especially with swelling, chest discomfort, palpitations, or fainting, needs prompt medical evaluation. Ongoing severe breathlessness, chest pain, or fainting is an emergency.
Asthma or another lung problem
Asthma can cause nighttime cough, wheeze, chest tightness, and shortness of breath. Symptoms often vary over time and may worsen with a respiratory infection, allergens, cold air, exercise, or another trigger 7.
Chronic obstructive pulmonary disease, infection, a blood clot in the lung, and other lung conditions can also cause nocturnal breathlessness 1. A clinician uses the full pattern, examination, and cause-directed tests rather than assuming that every nighttime event is asthma. If a prescribed reliever does not improve a severe asthma attack or breathing remains very hard, call emergency services 8.
Reflux, regurgitation, aspiration, or a laryngeal event
Reflux can be present with heartburn, sour fluid in the mouth, regurgitation, cough, or hoarseness, but those symptoms do not prove that reflux caused the gasp. Sleep-related laryngospasm is an uncommon pattern of abrupt awakening with a temporary inability to breathe, sometimes with stridor. Reflux is one proposed trigger, but the evidence is limited and other causes such as OSA, asthma, and seizures need to be considered 9.
Coughing or choking when eating or drinking, food sticking, recurrent chest infections, or waking after regurgitation raises a different concern about swallowing and aspiration. Swallowing disorders can allow food, liquid, or saliva to enter the airway, and the correct evaluation may involve an ear, nose, and throat clinician or a speech-language pathologist rather than an automatic course of reflux medicine 10.
Do not start a restrictive reflux diet, acid-suppressing medicine, or swallowing exercise solely because you woke gasping. Treatment should match the problem that is actually found.
Nocturnal panic
A nocturnal panic attack can wake someone abruptly with intense fear, a racing heart, sweating, trembling, tingling, chest discomfort, and a feeling of suffocation. The research base specifically on nocturnal panic is limited, and its symptoms overlap with sleep apnea, asthma, heart problems, seizures, and other disorders 11.
Panic is a real possible cause, but feeling frightened after waking unable to breathe does not show that anxiety started the event. New or recurrent episodes should not be labeled “just anxiety” before relevant breathing and medical causes have been considered.
Medicines, alcohol, and other substances
Chronic opioid therapy is associated with sleep-related hypoventilation, central sleep apnea, and obstructive sleep apnea 5. Combining an opioid with a benzodiazepine, alcohol, or another central nervous system depressant can cause extreme sleepiness and slowed or difficult breathing 12.
Tell the clinician about prescription medicines, nonprescription sleep aids, supplements, alcohol, cannabis, and other substances, including recent starts and dose changes. Do not abruptly stop a prescribed opioid, benzodiazepine, antiseizure medicine, or other regular medicine. Ask the prescriber how to change it safely.
Less common look-alikes
Recurrent, highly similar episodes with unusual movements, tongue injury, loss of bladder control, injury, or confusion that lasts after waking can point toward a seizure or another neurological event 13. A racing or irregular heartbeat, fainting, or near-fainting can point toward a heart rhythm problem. Sudden hives or swelling can indicate an allergic reaction 12.
These clues do not establish a diagnosis, but they change how quickly and where the event should be assessed.
What to record before an appointment
A short note after an episode can preserve details that are hard to remember later:
- when it happened and roughly how long after falling asleep;
- whether you were on your back, side, or sitting up;
- whether you could breathe in, breathe out, speak, or cough;
- whether the sound was snoring, wheezing from the chest, stridor from the throat, gurgling, or silence;
- how long the breathing difficulty and recovery lasted;
- any chest pain, palpitations, sweating, fear, sour taste, vomiting, cough, swelling, weakness, confusion, or unusual movements;
- what a witness saw or heard;
- alcohol, medicines, or other substances used that evening;
- daytime sleepiness, morning headache, breathlessness with activity, leg swelling, asthma symptoms, swallowing trouble, or reflux symptoms;
- whether you already use positive airway pressure, or PAP, and whether the mask came off or the equipment alarmed.
A phone audio clip or device record may add context if it was captured safely. It cannot clear you of a sleep or breathing disorder. Consumer sleep technology is not a substitute for a clinical evaluation or validated diagnostic testing 14.
How the cause is evaluated
The first step is usually a history and examination. The clinician may check the nose and throat, heart and lungs, oxygen level while awake, blood pressure, medicines, substance exposure, and signs of fluid retention. The next test depends on the pattern.
Possible cause-directed testing includes:
- a sleep study when OSA, central apnea, hypoventilation, or another sleep-related breathing disorder is suspected;
- spirometry or other lung testing when asthma or chronic lung disease is plausible;
- an electrocardiogram, blood tests, chest imaging, or heart imaging when the history points toward a cardiac cause;
- a swallowing assessment when choking, food sticking, regurgitation, or aspiration is a concern;
- an ear, nose, and throat or laryngeal assessment when stridor, hoarseness, or suspected laryngospasm is central to the episode;
- neurological evaluation when events are stereotyped or include prolonged confusion, unusual movements, or other seizure clues.
Not everyone needs every test. A blanket panel can add noise without answering the question raised by the event.
Polysomnography versus a home sleep apnea test
In-laboratory polysomnography is the standard diagnostic test when OSA is suspected after a comprehensive evaluation. A technically adequate home sleep apnea test can be used for an uncomplicated adult whose symptoms suggest an increased risk of moderate to severe OSA 4.
A home test is not the right shortcut for every person. AASM guidance favors polysomnography when there is significant heart or lung disease, neuromuscular weakness that may affect breathing, suspected hypoventilation, chronic opioid use, a history of stroke, or severe insomnia. If a single home test is negative, inconclusive, or technically inadequate while concern for OSA remains, the next step is polysomnography rather than treating the home result as clearance 4.
A normal overnight number from a watch, ring, phone app, or consumer pulse oximeter is not equivalent to either medical test 14.
If you already use PAP
Waking up gasping while using CPAP, APAP, or bilevel PAP does not automatically mean the prescribed pressure is wrong. The mask may have shifted, treatment use may be inconsistent, nasal symptoms or equipment problems may be interfering, the original disorder may need reassessment, or another heart, lung, reflux, panic, or neurological cause may be present.
Keep using the device as prescribed unless the treating team tells you otherwise. Check for an obvious loose connection, damaged tubing, or a mask that no longer fits, then contact the sleep clinic or equipment provider. Do not change pressure settings, add unprescribed oxygen, borrow another PAP device, or use mouth tape to try to force the mouth closed.
AASM guidance says follow-up polysomnography or home testing can be used when symptoms recur or persist despite good PAP adherence. Routine retesting is not needed simply because a person with stable, well-controlled OSA uses PAP 15.
When to arrange care
Call emergency services now for persistent or worsening breathing difficulty; blue or gray lips or skin; chest pain; fainting; confusion; inability to speak normally; severe wheeze or stridor; face, tongue, or throat swelling; stroke signs; or a severe episode that does not respond to a prescribed rescue plan 123.
Seek prompt medical advice for a first unexplained episode, repeated awakenings, a pattern that is becoming more frequent, a new need to sit upright to breathe, leg swelling, palpitations, daytime breathlessness, uncontrolled asthma symptoms, swallowing difficulty, or events with unusual movements or prolonged confusion.
Arrange a sleep evaluation when gasping occurs with snoring, witnessed breathing pauses, unrefreshing sleep, morning headaches, impaired concentration, or daytime sleepiness. Do not wait for every feature to appear before asking, and do not use quieter snoring as proof that breathing is normal.
The bottom line
Waking up gasping is a symptom, not a diagnosis. OSA is an important possibility, but the same experience can arise from heart or lung disease, reflux or an upper-airway event, swallowing problems, panic, medicines, or less common neurological and cardiac conditions.
The safest approach is to respond to any continuing breathing emergency first, then use the pattern of the episode to guide a focused evaluation. Avoid self-treating with pressure changes, oxygen, sedatives, mouth tape, or a borrowed device. A cause-directed assessment is more useful than guessing from one symptom or one consumer-device reading.




