A dog coughing then gagging at night can be especially concerning because the episodes may seem more noticeable when everything is quiet and your dog is resting.
You may hear a sudden bout of coughing followed by retching, swallowing, or gagging, sometimes repeatedly throughout the night.
In some dogs, the episode ends quickly, while others may continue coughing or seem unable to settle afterward.
What it may mean when a dog coughs and then gags at night depends on the dog’s other symptoms, age, medical history, how long the problem has been occurring, and whether the episodes are becoming more frequent or severe.
A dog that has an occasional nighttime cough but otherwise sleeps, eats, and breathes normally may have a different situation from one that repeatedly wakes up coughing, has breathing changes, or shows reduced energy during the day.
Understanding the pattern can help you recognize when veterinary evaluation is appropriate.
Table of Contents
Dog Coughing Then Gagging at Night: Why It Happens
A dog may cough then gag at night because coughing can irritate the throat and trigger the gag reflex, while certain airway, respiratory, or heart-related conditions may become more noticeable when the dog is resting.
Lying down can also change how mucus and respiratory secretions move, potentially making coughing more apparent.
Nighttime coughing and gagging does not point to one specific disease. The cause may involve the throat, windpipe, lungs, or, in some dogs, the heart.
The rest of the dog’s symptoms and the pattern of the cough are important for determining what may be happening.
Dog Coughing Then Gagging at Night: Common Causes
Kennel cough and other respiratory infections
Kennel cough and other infectious respiratory conditions can cause repeated coughing that ends with gagging or retching.
The cough may be harsh or forceful, and some dogs may gag as though they are trying to clear something from their throat.
Affected dogs can sometimes remain active and have a normal appetite, particularly with milder respiratory infections.
The cough may become more noticeable at night simply because the dog is resting and there are fewer distractions.
Related: Dog coughing up phlegm (Causes and when to worry)
Throat or windpipe irritation
Irritation of the upper airway can cause coughing followed by gagging. Smoke, dust, strong fragrances, airborne particles, or other irritants may contribute to coughing in sensitive dogs.
Pressure on the neck can also trigger coughing in some dogs. If coughing is particularly noticeable after lying down, changing position, or getting up, it is worth telling the veterinarian about the pattern.
Tracheal collapse
Tracheal collapse occurs when the windpipe becomes less able to remain open normally during breathing. It can produce a dry, harsh, repetitive cough that may be followed by gagging.
Episodes may become more noticeable with excitement, exercise, pulling against a collar, or changes in breathing position.
Small-breed dogs are particularly prone to tracheal collapse, although airway disorders can affect other dogs as well.
Chronic bronchitis
Chronic inflammation of the lower airways can cause a persistent cough that may continue for weeks or longer.
Some dogs cough more after resting or during periods of activity. Repeated coughing can irritate the throat and lead to gagging, retching, or swallowing afterward.
A cough that repeatedly occurs at night or interferes with sleep deserves veterinary assessment, particularly when it is becoming more frequent.
Heart disease
Heart disease is another possible reason an older dog may develop a recurring cough, although coughing does not automatically mean that heart disease is present.
Some dogs with heart disease may cough more while resting or sleeping. Other signs can include reduced exercise tolerance, faster breathing, difficulty breathing, weakness, or a change in normal activity.
Gagging after coughing can occur because of the force of the cough and does not by itself establish that the heart is responsible.
Pneumonia or significant lung infection
Pneumonia can cause coughing, and repeated coughing may lead to gagging. Dogs with more significant pneumonia often develop additional signs rather than having an isolated nighttime cough.
Possible accompanying symptoms include lethargy, reduced appetite, fever, nasal discharge, rapid breathing, or increased breathing effort.
A dog that develops breathing changes or becomes noticeably unwell should be evaluated promptly.
Postnasal drainage or respiratory secretions
Mucus or other respiratory secretions can irritate the throat and stimulate coughing and gagging.
A dog with nasal inflammation or a respiratory infection may swallow secretions while resting. This can contribute to coughing, throat clearing, or gagging, especially when the dog is lying down.
Laryngeal or upper-airway disorders
Conditions affecting the larynx or upper airway can cause coughing, gagging, noisy breathing, changes in the bark, or difficulty swallowing.
These problems may be more noticeable when a dog is resting or after changes in activity. Some upper-airway disorders are more common in older dogs, while others can occur at any age.
Related: Dog coughing and hacking suddenly (Here’s why)
Heartworm disease
Heartworm disease can affect the heart and lungs and may result in coughing, reduced stamina, or breathing difficulties.
Whether heartworm disease is a realistic possibility depends on the dog’s geographic exposure, preventive history, and individual risk.
A persistent cough should be discussed with a veterinarian, who can determine whether heartworm testing or other diagnostic testing is appropriate.
A foreign object or throat irritation
A piece of grass, food, or another foreign material can irritate the throat and cause coughing and gagging.
Dogs with something irritating the throat may also swallow repeatedly, drool, lick their lips, paw at their mouth, or appear uncomfortable.
Difficulty breathing or swallowing makes this a more urgent concern.
Lung disease or a mass
Less commonly, persistent coughing can be associated with chronic lung disease, structural changes, or a mass affecting the respiratory tract.
These possibilities become more relevant when the cough is persistent, progressively worsening, occurs in an older dog, or does not improve after appropriate treatment.
Related: Dog coughing up blood (Causes and treatment)
Dog Coughing Then Gagging at Night but Fine During the Day
A dog that coughs and gags at night but appears completely normal during the day may still have an airway or respiratory problem.
Some dogs with kennel cough, mild airway irritation, or chronic respiratory disease remain active and maintain their appetite between episodes. A dog appearing normal during the day does not necessarily mean the nighttime cough can be ignored.
Pay attention to how often the episodes occur and whether they are gradually becoming more frequent, longer, or more forceful.
Dog Coughing and Gagging While Lying Down
Coughing and gagging that occur mainly when a dog lies down may be associated with changes in airway position or the movement of mucus and respiratory secretions.
A positional pattern can also be relevant when evaluating certain heart or respiratory conditions. It does not identify the cause by itself, but telling the veterinarian that the cough happens primarily while lying down can be useful during the diagnostic process.
Dog Waking Up Coughing and Gagging
If your dog repeatedly wakes up coughing and gagging, the frequency and progression of the episodes are important.
An occasional cough may be relatively minor, but repeatedly waking from sleep because of coughing suggests that something is irritating the respiratory system enough to disturb normal rest.
Persistent nighttime coughing should be evaluated, particularly if the episodes are increasing or accompanied by other symptoms.
Dog Coughing Then Gagging at Night With Foam or Mucus
A dog may gag after coughing and bring up a small amount of clear, white, or foamy material. This can occur because repeated coughing irritates the throat or moves mucus upward.
The material alone cannot determine whether the problem is respiratory, digestive, or something else.
Blood, repeated vomiting, significant mucus production, or a change in breathing warrants veterinary attention.
Related: Dog Coughing Then Gagging (What it means)
When to Call or Visit the Vet
Arrange a veterinary examination if your dog’s nighttime coughing and gagging are persistent, recurrent, worsening, or regularly disturbing sleep.
Seek immediate veterinary care if your dog:
Has difficulty breathing or obvious increased breathing effort
Has blue, gray, or unusually pale gums or tongue
Is repeatedly coughing or gagging without settling
Cannot lie down comfortably because of breathing difficulty
Becomes weak, unusually lethargic, or collapses
Has a significant decrease in appetite
Coughs up blood
Has repeated vomiting or cannot keep water down
Has difficulty swallowing or excessive drooling
Develops a rapidly worsening cough
Has a cough accompanied by severe weakness or exercise intolerance
May have swallowed or inhaled a foreign object
Has a persistent cough that does not improve
Dog Coughing Then Gagging at Night: Treatment
Treatment depends on what is causing the cough and gagging.
The veterinarian will typically perform a physical examination and listen to the heart and lungs, with tests such as chest X-rays, blood work, heartworm testing, airway evaluation, or other imaging used when appropriate.
Infectious respiratory disease, airway disorders, pneumonia, heart disease, foreign material, and other causes require different treatments, so medication should be chosen based on the diagnosis rather than the cough alone.
Key Takeaway
A dog coughing then gagging at night can happen because forceful coughing irritates the throat and triggers gagging.
Respiratory infections, airway irritation, tracheal disease, chronic bronchitis, and other respiratory conditions can cause this pattern, while heart and lung disease are also possible in some dogs.
A dog that occasionally coughs at night but otherwise remains comfortable may not have an emergency, but repeated nighttime episodes should not automatically be dismissed.
A cough that wakes your dog regularly, becomes more frequent, or is accompanied by changes in breathing, appetite, energy, or exercise tolerance deserves veterinary evaluation.
If your dog is struggling to breathe, repeatedly gagging, coughing up blood, becoming weak, or unable to settle because of breathing difficulty, immediate veterinary care is important.
Determining whether the problem originates in the throat, windpipe, lungs, or heart is the key to choosing appropriate treatment.
