Dog Coughing and Gagging: Congestive Heart Failure and More

8 min read · updated Dec 1, 2026

A gagging cough is a reason to see a vet. It can come from congestive heart failure, a collapsing trachea, heartworm, an infection or cancer. Go to an emergency vet now for labored breathing, collapse, blue or grey gums or coughing up blood.

A dog being cared for at home, illustrating dog coughing and gagging: congestive heart failure and more

A gagging cough is a reason to see a vet. Go to an emergency vet now if your dog is struggling to breathe, has pale, white, blue or grey gums, collapses or faints, or coughs up blood or pink froth; otherwise book a same-day appointment. Dog coughing and gagging can come from congestive heart failure, a collapsing trachea, heartworm, an infection, a growth in the chest or something stuck in the throat. These causes can sound and look alike, and only a vet exam and tests can tell them apart, so call your vet today.

When to go to the vet now

  • Your dog is struggling to breathe, breathing hard or fast while resting, or breathing with the mouth open
  • Pale, white, blue or grey gums or tongue
  • Collapse, fainting or sudden weakness
  • Coughing up blood or pink, frothy fluid
  • Your dog cannot settle or lie down, or stands or sits with the neck stretched out to breathe
  • Gagging or retching that will not stop, or your dog seems to be choking
  • A swollen belly with weakness or fast breathing

Labored breathing with a cough is an emergency even when your dog still wants to eat or play. Keep your dog calm, call the clinic on the way so they are ready, and do not stop to try anything at home first. For other signs that need care straight away, read Dog Emergency Signs.

What can cause a gagging cough

A gagging cough can start in the heart, the windpipe, the lungs, the throat or elsewhere in the chest. Several of these causes can look and sound the same from home, and a dog can have more than one at once, such as a heart problem and an airway problem together. The possibilities below are the ones your vet checks with an exam and tests. They are not a way to work out the cause yourself. For the wider picture of this sign, see Dog Coughing and Gagging, and for more about individual illnesses, browse the conditions library.

Heart disease is one of the things your vet checks when a dog is coughing and gagging. When the heart cannot pump well, fluid can back up into or around the lungs, and this is called congestive heart failure. A heart that has grown larger can also press on the main airways and set off a cough. Coughing and gagging from heart failure can come with tiredness, less interest in walks, breathing faster or harder at rest, restlessness at night, fainting or a swollen belly. A cough that ends in a gag or retch can be part of this picture. Congestive heart failure with labored breathing is an emergency, and any cough in a dog with heart disease is a reason to call your vet today.

A heart murmur is an extra sound your vet hears through a stethoscope as blood moves through the heart. It can point to a leaky valve, a thickened heart wall or another change in the heart. The murmur is a finding, not the cause of the cough, but the heart disease behind it can enlarge the heart or lead to heart failure, and both can bring on coughing and gagging. If your dog has a known heart murmur and starts to cough or gag, call your vet today, and go to an emergency vet now for labored breathing or collapse.

Heartworm is a parasite spread by mosquito bites. The worms live in the heart and in the large blood vessels of the lungs, where they can damage the vessel walls and make the heart work harder. Coughing, gagging, tiring on walks, a dull coat and weight loss can all come with heartworm disease, and as it advances it can lead to heart failure. A blood test checks for it, and your vet may add chest X-rays to see how the heart and lungs are affected. Your vet can tell you how heartworm prevention fits your dog and where you live.

A collapsing trachea is a weakening of the rings of cartilage that hold the windpipe open. When the rings soften, the windpipe can flatten as your dog breathes in or out. This irritates the airway and can set off coughing fits that end in a gag or retch. Excitement, pulling on the lead, eating, drinking and hot weather can bring on a fit. A severe fit can leave a dog struggling for air or with blue or grey gums, and that is an emergency. A collapsed trachea can also sit alongside heart disease, which is one reason your vet checks the heart as well.

Small dogs, including chihuahuas, toy breeds and other small breeds, can have a collapsing trachea. They can also have heart valve disease, an infection or a problem with the voice box, and these can happen together. A small dog gagging and coughing needs a vet to check both the heart and the airway, rather than a guess based on the breed or the sound of the cough. If your chihuahua or other small dog has started coughing and gagging, call your vet today.

Infections of the airways and lungs can also cause a gagging cough. Kennel cough is an infection of the windpipe and airways that spreads between dogs, and it can cause a harsh cough that ends in a gag. Pneumonia is an infection or inflammation deeper in the lungs and can come with fever, low energy, a poor appetite and fast breathing. Long-term inflammation of the airways, called chronic bronchitis, and lung parasites are other possibilities your vet may look at.

Something stuck in the throat or airway, such as a piece of stick, a grass seed or food, can cause sudden, forceful gagging and coughing. Do not reach into your dog's mouth or try to pull anything out; go to an emergency vet now. Laryngeal paralysis, where the voice box does not open fully, can cause noisy breathing, a changed bark and gagging around meals and drinks. Problems with swallowing can also bring up fluid or food with a cough. For more on these, see Dog Gagging and Coughing After Eating and Dog Gagging and Coughing Up Clear Liquid.

Cancer is another possibility your vet looks at, including in an older dog with a new cough. A growth can start in the lungs, or cancer from elsewhere in the body can spread to the lungs. A mass in the chest can press on the windpipe or cause fluid to build up around the lungs. Lung cancer and other chest growths can bring a cough, gagging, weight loss, low energy or harder breathing. These signs overlap with heart and airway disease, which is why imaging and sometimes a sample are needed before anyone can say what is going on.

None of these causes can be confirmed from the sound of the cough, the time of day it happens or your dog's breed. Those details are still useful clues for your vet, so note them and bring them to the appointment. Talk to your vet about everything you have seen, and use the list further down this page to prepare.

What your vet may do

If your dog is struggling to breathe, the team may give oxygen and keep your dog quiet before any tests, because handling and stress can make breathing harder. Some dogs need light sedation so they can breathe more easily and be examined safely.

Your vet listens to the heart and lungs with a stethoscope. This is how a heart murmur, an irregular heartbeat, crackles from fluid or noisy airways can be heard. They check your dog's gum color, how fast and how hard your dog is breathing, the pulse, the temperature and the belly for signs of fluid. They may gently press on the windpipe at the throat to see whether it sets off a cough.

Chest X-rays show the size and shape of the heart, fluid or changes in the lungs, the windpipe and any mass in the chest. An ultrasound of the heart, called an echocardiogram, shows the valves, the chambers and how well the heart pumps. An ECG records the heart's rhythm, and your vet may measure blood pressure.

Blood tests check general health and how the organs are working. A heartworm test checks for the parasite. A blood test for a heart marker may help show whether heart disease is part of the picture.

If the heart looks clear or an airway problem is suspected, your vet may suggest a moving X-ray, called fluoroscopy, to see the windpipe as your dog breathes, or a look inside the airways with a small camera, called bronchoscopy, under anesthesia. A sample of fluid washed from the airways can be tested for infection, inflammation or abnormal cells. If a mass is found, a CT scan or a sample of the mass may be suggested. If fluid has built up around the lungs, your vet may drain it to help your dog breathe and send it for testing.

Treatment depends on the cause your vet finds. It may include a medicine your vet prescribes, oxygen, treatment for an infection or for heartworm, or a referral to a heart or airway specialist. Do not give your dog any human cough or heart medicine at home. Your vet sets the plan and can explain each step.

What to tell your vet

  • When you first noticed the cough and gagging, and whether it came on suddenly
  • Any change since then, such as more fits, a different sound or coughing at night
  • Whether your dog has coughed up blood, pink froth, mucus or anything else
  • Any licking of the lips, swallowing hard or pawing at the mouth
  • Other signs: tiredness, fainting, faster breathing at rest, a swollen belly, eating less or weight loss
  • When it happens: at night, after exercise, during excitement, after eating or drinking, or when pulling on the lead
  • Any known heart murmur, heart disease or other condition, and whether heartworm prevention has been missed
  • A short video of a coughing fit, if you have one

Call your vet again if the cough changes or new signs appear after the appointment, and go to an emergency vet now if your dog struggles to breathe, collapses or coughs up blood or pink froth.

Frequently asked questions

Is a gagging cough an emergency in dogs?
It is an emergency if your dog is struggling to breathe, has pale, white, blue or grey gums, collapses or faints, or coughs up blood or pink froth. Go to an emergency vet now for any of these. For a gagging cough without these signs, book a same-day appointment with your vet.
What should I do if my dog has a gagging cough?
Call your vet today and book a same-day appointment. Tell them when the cough started, whether it has changed and any other signs such as tiredness or faster breathing. If your dog is struggling to breathe, collapses or coughs up blood or pink froth, go to an emergency vet now instead.
Can I treat a gagging cough at home?
No, because the cause can be the heart, the windpipe, the lungs or something stuck, and each needs a vet. Do not give any human cough or heart medicine, do not put anything in your dog's mouth and do not try to remove anything from the throat. Call your vet today instead.
Can congestive heart failure cause coughing and gagging in dogs?
Yes, it can, because fluid can build up in or around the lungs and an enlarged heart can press on the airways. The cough may end in a gag and can come with tiredness, faster breathing or restlessness. Call your vet today, and go to an emergency vet now for labored breathing.
Can a heart murmur cause my dog to cough and gag?
A murmur is a sound your vet hears through a stethoscope. The heart disease behind it can enlarge the heart or lead to heart failure, and both can cause coughing and gagging. If your dog has a known murmur and starts to cough or gag, call your vet today, and go to an emergency vet now for labored breathing.
Can heartworm cause a dog to cough and gag?
Yes, heartworm can cause coughing and gagging, because the worms live in the heart and lung blood vessels and damage them over time. Tiring on walks and weight loss can come with it. A blood test checks for heartworm, so call your vet today, and your vet can tell you how prevention fits your dog.
Can a collapsed trachea cause coughing and gagging?
Yes, a collapsing trachea can cause coughing fits that end in a gag, because the weakened windpipe flattens and irritates the airway as the dog breathes. Excitement, pulling on the lead or drinking can bring on a fit. Call your vet today, and go to an emergency vet now if your dog struggles for air.
Why is my small dog gagging and coughing?
A small dog gagging and coughing, including a chihuahua, can have a collapsing trachea, heart valve disease, an infection or something stuck in the throat, and more than one at once. The sound alone cannot tell these apart, so call your vet today for an exam of both the heart and the airway.
Can lung cancer cause a dog to cough and gag?
Yes, a growth in the lungs or cancer that has spread there can cause coughing, gagging, weight loss and harder breathing. These signs overlap with heart and airway disease, so your vet uses chest X-rays and sometimes a sample to find the cause. Call your vet today about any new cough in your dog.
What should I do if my dog is coughing with labored breathing?
Go to an emergency vet now, because labored breathing with a cough can mean fluid in or around the lungs, a severe airway collapse or another serious problem. Signs include breathing hard or fast at rest, open-mouth breathing and being unable to settle. Call the clinic on the way so they are ready.
How does a vet find the cause of a gagging cough?
Your vet listens to the heart and lungs, checks breathing and gum color, and may take chest X-rays, a heart ultrasound, an ECG and blood tests, including a heartworm test. If the heart looks clear, airway tests such as a moving X-ray or a camera look into the windpipe may follow.

Educational content, not veterinary advice. Ask your vet about your dog.