A cough that becomes so forceful that it ends in gagging or even vomiting (post-tussive emesis) is unsettling, and many people go on to wonder whether something serious is behind it. The gag tends to happen because a long run of hard coughs raises the pressure in the chest and belly and irritates the throat, so the nerves that control the cough set off the nearby gag reflex as well. The causes range from a passing cold to asthma, reflux and whooping cough, and pulmonology is the field that looks into coughs that carry on.
The Link Between a Hard Cough and the Gag Reflex
A cough starts when sensors in the throat and airways pick up an irritant and send a signal along the vagus nerve to the brainstem, and the brainstem then tightens the chest and belly muscles against a closed voice box before the air is pushed out in a burst. The vagus nerve also carries signals from the back of the throat and the stomach, and the brain areas that run coughing and gagging sit close together, so a strong enough coughing fit is able to trigger the gag reflex.
Each hard cough presses on the stomach from the outside as the belly muscles squeeze, and a long fit with little time to breathe in will then add to that pressure until retching or vomiting follows. Researchers who write for the American College of Chest Physicians (CHEST) describe a pattern called cough hypersensitivity, in which the cough nerves react to small triggers such as cold air, talking or a scent, and people with this pattern tend to have coughing fits that are longer and harder to stop.
Cough Length and the Causes Doctors Consider
Doctors sort a cough by how long it has lasted because the likely causes change over time, and adult guidelines from CHEST and the European Respiratory Society use the groups set out in the table below.
Type of cough in adults
Length
Causes often considered
Acute
Under 3 weeks
Colds, flu and other viral infections
Subacute
3 to 8 weeks
Lingering cough after an infection and whooping cough
Chronic
Over 8 weeks
Asthma, postnasal drip, reflux and eosinophilic bronchitis
These time frames are a guide and a cough is able to move from one group to the next, so a cold that seemed minor will sometimes leave behind a cough that carries on for many weeks as the airway lining slowly settles down.
Contact our team
How can we help you? Share your contact details to prepare your request.
How can we help?
By submitting you confirm you have read the privacy information and consent to the processing of your personal data.
Infections Behind Forceful Coughing
Colds and flu inflame the lining of the airways and leave the cough nerves more sensitive for a time, and a number of people notice that their coughing fits grow harder in the second or third week before they fade. This lingering cough after an infection (post-viral cough) is common and it tends to ease on its own over several weeks.
Whooping Cough
Whooping cough (pertussis) is a bacterial infection that the Centers for Disease Control and Prevention (CDC) links to long coughing fits that can end in vomiting, and the CDC notes that these fits are able to go on for weeks and keep people awake at night. The CDC also states that teens and adults are able to have serious cases of whooping cough, and that coughing fits with whooping and vomiting tend to be less common in people who have had the vaccine.
The illness begins in a way that looks like a common cold and so it is often not picked up early, and MedlinePlus (from the US National Library of Medicine) advises that pertussis should be considered when vomiting happens together with coughing.
Asthma, Postnasal Drip and Airway Inflammation
A Nature Reviews primer published in 2022 groups a number of chronic cough causes in nonsmokers with a normal chest X-ray and normal breathing tests under the heading of airway inflammation driven by white blood cells called eosinophils. This group includes cough variant asthma (asthma in which a cough is the main feature), non-asthmatic eosinophilic bronchitis and atopic cough, and these conditions tend to make the airways react strongly to triggers such as cold air, exercise and allergens.
Upper airway cough syndrome (also called postnasal drip) happens when mucus from the nose and sinuses runs down the back of the throat, and this mucus is able to irritate the same area that sets off the gag reflex. Allergies and sinus inflammation are everyday causes, and people with this pattern often find that the cough is worse when they lie down at night or first get up in the morning.
Reflux and Other Causes Beyond the Lungs
Gastroesophageal reflux disease (GERD) lets stomach contents travel back up into the esophagus, and the 2022 primer lists GERD among the causes of chronic cough that start outside the lungs. CHEST published a guideline on reflux-related cough in 2016 and it notes that the link runs both ways, so reflux is able to trigger a cough and a hard cough is then able to push more stomach contents upward as the belly muscles squeeze.
A number of other things can also keep a cough going for a long time, and these include smoking and vaping, air pollution and dust at work, and a group of blood pressure medicines called ACE inhibitors that are known to cause a dry cough in some people. Lung conditions such as chronic obstructive pulmonary disease (COPD) and bronchiectasis (widened airways that collect mucus) are less common causes that a doctor will think about in people with a long history of smoking or repeated chest infections.
Relief and the Cause Behind the Cough
Relief from a cough that ends in gagging depends on the cause, because the steps that help a cough linked to asthma are not the same as those for reflux, whooping cough or a medicine side effect. A doctor or a pulmonology doctor is able to find the likely cause from the length and pattern of the cough together with tests such as a chest X-ray and breathing tests (spirometry), and the care team then gives advice that fits each person.
Vaccines against whooping cough and flu lower the chance of the infections that lead to many coughing fits, and the CDC recommends whooping cough vaccines for babies, children, teens, pregnant women and adults. People who notice a cough that carries on for weeks or keeps ending in vomiting can talk with a doctor, and anyone who has trouble breathing or turns blue around the lips should contact emergency services.
Frequently Asked Questions
Is it normal to gag when coughing hard?
Gagging after a strong coughing fit is common, because the nerves that control coughing and gagging are closely linked and a long fit raises the pressure on the stomach. A cough that keeps ending in gagging for weeks is worth raising with a doctor so the cause can be looked into.
Can whooping cough affect adults who were vaccinated as children?
Protection from whooping cough vaccines fades over the years, so adults who were vaccinated as children are still able to catch the infection. The CDC notes that illness in vaccinated people tends to be milder, and adults are advised to have a booster dose in line with national schedules.
Does acid reflux cause coughing at night?
Reflux tends to be more likely when a person lies flat, and stomach contents that reach the esophagus or throat are able to trigger the cough reflex. Reflux is listed among the outside-the-lungs causes of chronic cough, and a doctor can explain whether it is likely in each case.
Should a cough that lasts more than eight weeks be checked?
Adult guidelines describe a cough that lasts more than eight weeks as chronic, and at that point doctors tend to look for causes such as asthma, postnasal drip or reflux. A chest X-ray and breathing tests are often among the first tests that are arranged.
Could a blood pressure medicine be behind a dry cough?
ACE inhibitors are a group of blood pressure medicines that are known to cause a dry cough in some people, and the cough is able to start weeks or months after the medicine was first taken. Any change to a medicine is something to discuss with the prescribing doctor first.
Speaking With a Pulmonology Doctor
People whose cough keeps returning or carries on for many weeks can ask their family doctor whether a referral to pulmonology would be helpful. A pulmonology doctor is able to look at the full history of the cough together with breathing tests and imaging, and then explain the likely causes and the options that fit each person.
References
Centers for Disease Control and Prevention. Symptoms of Whooping Cough. https://www.cdc.gov/pertussis/signs-symptoms/index.html
MedlinePlus, US National Library of Medicine. Pertussis. https://www.medlineplus.gov/ency/article/001561.htm
Morice AH, Millqvist E, Bieksiene K, et al. ERS guidelines on the diagnosis and treatment of chronic cough in adults and children. European Respiratory Journal. 2020. https://www.doi.org/10.1183/13993003.01136-2019
Chung KF, McGarvey L, Song WJ, et al. Cough hypersensitivity and chronic cough. Nature Reviews Disease Primers. 2022. https://www.nature.com/articles/s41572-022-00370-w
Kahrilas PJ, Altman KW, Chang AB, et al. Chronic Cough Due to Gastroesophageal Reflux in Adults: CHEST Guideline and Expert Panel Report. 2016. https://pmc.ncbi.nlm.nih.gov/articles/PMC6026249
Mazzone SB, Chung KF, McGarvey L. Global Physiology and Pathophysiology of Cough: Part 1, CHEST Expert Panel Report. 2020. https://pmc.ncbi.nlm.nih.gov/articles/PMC8640837