Coughing spasms, sometimes called paroxysmal coughs, are sudden fits of rapid, uncontrollable coughing that can last from seconds to several minutes. The most common cause is pertussis (whooping cough), but asthma, acid reflux, bronchitis, and respiratory infections are also frequent triggers. Understanding what’s behind your spasms matters because the cause determines both the pattern and the fix.
How the Cough Reflex Becomes a Spasm
A normal cough is a protective reflex. Sensory nerve fibers lining your airways detect an irritant, whether it’s mucus, dust, or acid, and send a signal through the vagus nerve to your brainstem, which triggers a forceful expulsion of air. This happens quickly and usually stops once the irritant clears.
A spasm happens when that reflex gets stuck in a loop. Two types of nerve fibers are involved. Fast-acting fibers respond to physical irritants like foreign particles or sudden pH changes. Slower C-fibers, which make up the majority of the sensory nerves in your airways, are responsible for a phenomenon called cough hypersensitivity. When airways become inflamed from infection, allergies, or acid exposure, these C-fibers get sensitized. The threshold for triggering a cough drops dramatically, so stimuli that wouldn’t normally provoke a reaction (a whiff of perfume, a change in air temperature) can set off a violent fit.
Brain imaging studies have shown that people with chronic cough hypersensitivity have heightened activity in the same midbrain regions that become overactive in chronic pain conditions. At the same time, the parts of the brain responsible for suppressing the cough reflex show reduced activity. In other words, the “go” signal is louder and the “stop” signal is weaker, which is why spasms can feel impossible to control once they start.
Pertussis: The Classic Cause
Whooping cough remains the most recognized cause of true paroxysmal coughing. Caused by the bacterium Bordetella pertussis, the illness follows a predictable pattern. The first one to two weeks resemble an ordinary cold. Then comes the paroxysmal stage: sudden bursts of rapid coughing, often ending with a high-pitched “whoop” as you gasp for air. These fits can cause vomiting, exhaustion, and even brief episodes where the skin turns blue from lack of oxygen.
Paroxysmal attacks average about 15 per day and tend to be worse at night. They increase in frequency over the first one to two weeks, plateau for two to three weeks, then gradually decrease. Even after the infection clears, the cough can linger for months because the nerve fibers remain sensitized long after the bacteria are gone. Adults whose childhood vaccinations have worn off are particularly vulnerable, and the illness is often misdiagnosed as a stubborn cold or bronchitis because adults don’t always produce the characteristic whoop.
Asthma and Cough-Variant Asthma
Asthma is one of the most common causes of recurring cough spasms, especially at night or in response to cold air, exercise, or allergens. In typical asthma, coughing comes alongside wheezing and shortness of breath. But a subtype called cough-variant asthma produces coughing as the only symptom, with no wheezing or breathing difficulty at all.
The underlying problem is the same: the airways narrow and swell from inflammation. In most people this restricts airflow enough to cause obvious breathing trouble. In cough-variant asthma, the narrowing primarily irritates the nerve endings in the airway walls, triggering spasms without the telltale wheeze. Attacks tend to come in episodes lasting hours or days, set off by things that irritate the lungs. Because there’s no wheezing, it often goes undiagnosed for months or years. The key clue is that standard asthma inhalers (bronchodilators) typically relieve the cough. If they don’t, the spasms may have a different source.
Acid Reflux and Nighttime Spasms
Gastroesophageal reflux disease (GERD) is a surprisingly common trigger for coughing spasms, particularly ones that hit when you lie down at night. Stomach acid doesn’t just irritate the esophagus. Refluxed material can reach the throat, voice box, upper airway, and even the lower branches of the lungs. Any of these areas, once exposed to acid, can activate the same vagus nerve fibers that drive the cough reflex.
What makes reflux-related cough tricky is that you may not have classic heartburn. Some people only experience the cough. The pattern is the giveaway: spasms that worsen after meals, when bending over, or when lying flat. Slow stomach emptying, esophageal motility problems, and nighttime acid breakthrough can all contribute to the cycle. Elevating the head of your bed and avoiding eating within a few hours of sleep are practical first steps, but persistent reflux-driven cough often needs targeted treatment to break the cycle of airway irritation and sensitization.
Other Medical Causes
Several other conditions produce recurrent coughing spasms:
- Bronchitis and viral infections. Acute infections inflame the airways and leave nerve endings hypersensitive. The so-called “post-viral cough” can persist for weeks after the infection itself resolves, because inflamed C-fibers remain on a hair trigger.
- COPD. Chronic obstructive pulmonary disease causes ongoing airway inflammation and mucus production, both of which provoke spasms. These tend to be worst in the morning.
- Pneumonia. A deeper lung infection can trigger intense, painful coughing fits, often accompanied by fever and colored phlegm.
- Vocal cord dysfunction. The vocal cords close when they should open, causing sudden coughing, throat tightness, and noisy breathing. It’s frequently misdiagnosed as asthma, but a key difference is that standard asthma inhalers don’t help. Some people have both conditions simultaneously, making diagnosis harder.
- Cough hypersensitivity syndrome. When coughing spasms persist for more than eight weeks and no clear cause is found after thorough testing, the diagnosis may be cough hypersensitivity syndrome. This means the cough reflex itself has become disordered, firing in response to stimuli (talking, laughing, temperature changes) that wouldn’t provoke coughing in a healthy person.
Rarely, lung tumors can cause sudden, violent coughing. This is uncommon but worth mentioning because persistent, unexplained coughing spasms that don’t respond to any treatment warrant imaging.
Environmental and Everyday Triggers
Even without an underlying disease, environmental irritants can provoke spasms in anyone with mildly sensitive airways. Common culprits include secondhand smoke, strong chemical fumes from cleaning products or paints, wood smoke from fireplaces, mold spores, pet dander, dust mite debris, and outdoor air pollution. Nitrogen dioxide from gas stoves and heaters is a less obvious indoor trigger that can increase airway reactivity at even low concentrations.
Cold, dry air is a particularly reliable trigger. It causes rapid moisture loss from the airway lining, which irritates nerve endings and can set off a spasm within seconds of stepping outside in winter. Breathing through a scarf or neck gaiter warms and humidifies the air before it reaches the lower airways, which is a simple but effective preventive measure.
How to Stop a Spasm in Progress
Once a coughing fit starts, the instinct is to gasp for air between coughs, but that large inhalation through the mouth can irritate the airways further and keep the cycle going. A technique used in respiratory therapy works against that instinct:
- Smother: As soon as you feel the urge, place your hand over your mouth to prevent a large gasp.
- Swallow: Swallow once to reset the throat.
- Stop breathing: Hold your breath for a count of 10.
- Small breathing: Take a small, gentle breath in and out through your nose. Continue breathing slowly and softly for at least 30 seconds.
The goal is to starve the reflex of its trigger. Rapid mouth-breathing floods the airways with dry, unfiltered air, which keeps the nerve fibers firing. Switching to slow, small nasal breaths calms the loop. It takes practice, especially in the panic of a bad spasm, but becomes more effective with repetition.
Signs That Need Urgent Attention
Most coughing spasms, however alarming they feel, resolve on their own or with treatment of the underlying cause. But certain symptoms during a fit signal something more serious: coughing up blood or pink-tinged mucus, chest pain during the spasm, difficulty breathing or swallowing between coughing bouts, or choking and vomiting. Any of these warrant emergency evaluation, particularly if they’re new or worsening over time.

