Dog Coughing Up Phlegm: Causes and When to See a Vet
A dog coughing up phlegm has something irritating the throat, airways or lungs and needs to see a vet. This page covers the emergency signs, the causes your vet checks for, the tests they may do and what to tell them.

A cough with phlegm means something is irritating your dog's throat, airways or lungs, and a dog coughing up phlegm needs to see a vet. Go to an emergency vet now if your dog is struggling to breathe, has blue, grey or pale gums or tongue, is coughing up blood, or collapses; otherwise book a same-day appointment. The phlegm is not a diagnosis on its own. It is a sign that the body is trying to clear something from the airways, and the cause can be an infection, a parasite, a heart problem, something inhaled or another condition that only a vet exam can find.
When to go to the vet now
- Your dog is struggling to breathe, breathing fast or hard at rest, or standing with the neck stretched out and the mouth open to get air
- Blue, grey or pale gums or tongue
- Coughing up blood or phlegm with blood in it
- Collapse, fainting or sudden weakness
Any of these means go to an emergency vet now. The guide to signs of an emergency in dogs covers other signs that need emergency care.
What can cause a cough with phlegm
Dogs can cough up phlegm, and when they do, the cough is called a productive cough. The airways, from the nose down to the lungs, are lined with a thin layer of mucus that traps dust, pollen and germs. When something irritates or inflames that lining, it makes extra mucus, and the cough pushes it up into the throat. Mucus and phlegm mean the same thing here, so a dog coughing up mucus and a dog coughing up phlegm are showing the same sign. A dog may swallow the phlegm straight away, so you might see only a gag, a hard swallow or a retch at the end of the cough, or a small amount of froth or sticky fluid on the floor. A cough that ends in a retch can look a lot like vomiting, and part of your vet's job is to work out whether the material came from the airways, the throat, the food pipe or the stomach.
So what is it when a dog coughs up phlegm? It is a sign, not a cause. The possibilities in the paragraphs below are the ones your vet thinks about and checks during the exam and tests. None of them can be confirmed or ruled out at home.
A single episode counts too. If your dog coughed up phlegm once and seems bright afterwards, call your vet today and book a same-day appointment, because a cough with phlegm points to something in the airways that needs a proper exam.
Infections of the airways are one group. Kennel cough, also called infectious tracheobronchitis, is caused by a mix of viruses and bacteria passed between dogs wherever they meet, such as kennels, daycare, training classes, groomers and parks. Canine influenza is another infection that can cause a cough with phlegm, along with a runny nose and a dull, tired dog. Bacteria can also infect the airways on their own or after a virus has damaged the lining. Your vet considers these when your dog has been around other dogs.
Pneumonia is an infection or inflammation deeper in the lungs. It can bring up thick phlegm and can come with fast breathing, a fever, a poor appetite and a quiet, low dog. One form, called aspiration pneumonia, happens when food, vomit or water is breathed into the lungs, which can follow a bout of vomiting, a problem with swallowing or an anaesthetic. Pneumonia can affect breathing quickly, which is why hard or fast breathing alongside a cough is an emergency.
Inflammation of the airways without an infection is another possibility. Long-term inflammation of the airways, called chronic bronchitis, can cause a cough that keeps coming back and brings up mucus. Allergic airway disease, and irritation from smoke, dust or strong sprays in the air, can do the same. A weak or collapsing windpipe, a problem seen in some small breeds, can cause a harsh, honking cough and can make the airways produce extra mucus. Problems with the voice box, called the larynx, can cause coughing and gagging, and can change the sound of the bark or the breathing.
The heart is part of the picture too. Some heart conditions let fluid build up in or around the lungs, and that fluid can cause a cough, sometimes with frothy fluid, along with tiredness, faster breathing and less interest in walks. Your vet listens to the heart as well as the lungs for this reason, and may suggest heart tests even when the cough seems to come from the chest alone.
Parasites can live in or pass through the lungs. Heartworm is spread by mosquitoes and lives in the heart and the large blood vessels of the lungs. Lungworm is carried by slugs and snails. In young puppies, roundworm larvae can travel through the lungs and cause a cough. Lungworm can also affect blood clotting, so a cough together with any unexplained bleeding or bruising needs a vet now. Your vet can test for these parasites with blood and stool samples.
Something breathed in can lodge in the airways. A grass seed or plant awn, a small piece of a toy, or a bit of food can cause a sudden coughing fit that keeps returning, sometimes with mucus or a little blood. Your vet will ask whether the cough began after a run through long grass, a game or a meal, because that history helps them decide which tests to do. Do not try to look into or reach into your dog's mouth or throat to find or remove anything: choking, gagging that will not stop or any trouble breathing means go to an emergency vet now.
Problems above the airways can show up as a cough with phlegm as well. Discharge from the nose or sinuses can drain down the back of the throat and be coughed or gagged up. An infection in the nose, a tooth root problem near the sinuses, or something stuck in the nose can all play a part. Growths in the nose, throat, airways or lungs are another possibility your vet may look into, in a dog of any age, and only tests can show whether one is there.
Some problems are not in the airways at all but can look like coughing up phlegm. A problem with the food pipe, the oesophagus, can let food and frothy fluid come back up without effort, and that material can then be breathed into the lungs. Nausea can bring up foamy saliva. Your vet asks careful questions about when and how the material comes up to tell these apart from a true cough.
Age does not narrow things down at home either. A puppy coughing up phlegm needs a vet today, because young puppies can become ill quickly with an infection or with worms in the lungs. An older dog with a new cough needs a vet today too, because heart changes, airway changes and growths are among the possibilities your vet considers.
Because a wide range of problems can cause the same cough, the sound of the cough, the time of day, the amount of phlegm and what it looks like do not point to one cause on their own. A dog coughing up lots of phlegm, a dog that keeps coughing up phlegm, and a dog that is coughing with phlegm for the first time all need the same first step: a vet visit today, or an emergency vet now for any of the emergency signs above. You can read more about airway, lung and heart problems in the conditions library.
What your vet may do
Your vet starts by asking about the cough: when it began, how it sounds, when it happens, what comes up, and whether your dog has been near other dogs, travelled, or been in long grass. They also ask about vaccines, worming, appetite, energy and any change in breathing or in how much exercise your dog manages.
The exam comes next. Your vet listens to the heart and lungs with a stethoscope, checks the temperature, looks at the gums and the colour of the tongue, and gently feels the throat and windpipe. Pressing lightly on the windpipe can bring on a cough so the vet can hear it for themselves. They also look at the nose, mouth and teeth, feel the lymph nodes, check the weight and look at how your dog breathes at rest. If your dog brings up phlegm at the clinic, your vet may look at a sample under the microscope.
Chest X-rays may help find the cause. They can show signs of pneumonia, fluid in or around the lungs, a change in heart size or shape, changes in the airways, some inhaled objects, and growths. Blood tests can show signs of infection or inflammation and check the organs before any treatment or sedation. A blood test for heartworm and a stool test for lungworm and other worms are part of the work-up where these parasites are a possibility.
If the first tests do not give a clear answer, your vet may suggest more. A heart scan, called an echocardiogram, looks at how the heart is working. Swabs from the nose or throat can be tested for the germs behind kennel cough and canine influenza. An airway wash collects fluid from deep in the airways so it can be looked at under a microscope and grown to find bacteria and choose the right treatment. A thin camera passed into the airways, called bronchoscopy, lets the vet see the lining directly and remove an inhaled object. These need sedation or a general anaesthetic, and some dogs also need a CT scan of the chest. Some dogs need light sedation for X-rays too, especially if they are anxious.
Treatment depends on the cause your vet finds. A dog that is struggling to breathe may need oxygen and hospital care straight away, with tests following once breathing is steadier. Other care can include a medicine your vet prescribes for an infection, for inflammation in the airways, for parasites or for a heart condition, removal of an inhaled object, and rest. Your vet may ask you to keep your dog away from other dogs while an infection is possible.
Talk to your vet about how vaccines against kennel cough and canine influenza, and protection against heartworm and lungworm, fit your dog's life. If anything changes before the appointment, such as fast or hard breathing, blue, grey or pale gums or tongue, blood or collapse, go to an emergency vet now.
What to tell your vet
Bring these details to the appointment:
- When you first noticed the cough, and whether it started suddenly
- Any change since then in the sound, how much your dog coughs, or when it happens, such as at night, after exercise, after drinking or with excitement
- Any blood in what came up, and anything else your dog brought up
- Licking the lips, gagging or swallowing hard after coughing
- Other signs, such as changes in breathing, energy, appetite or weight, a runny nose or fainting
- Contact with other dogs, kennels or daycare, recent travel, time in long grass, and your dog's vaccines and worming
Frequently asked questions
- Is a cough with phlegm an emergency in dogs?
- It is an emergency if your dog is struggling to breathe, has blue, grey or pale gums or tongue, is coughing up blood, or collapses: go to an emergency vet now. Any other cough with phlegm still needs a same-day vet appointment, because infection, heart disease, parasites and inhaled objects can all cause it.
- What should I do if my dog has a cough with phlegm?
- Call your vet today and book a same-day appointment. Tell them when the cough started, what came up and any other signs. If your dog's breathing becomes fast or hard, your dog has blue, grey or pale gums or tongue, you see blood or your dog collapses, go to an emergency vet now.
- Can I treat a cough with phlegm at home?
- No, because the cause needs a vet to find it. Do not give your dog any human cough or cold medicine, do not put anything in the mouth or throat, and do not try to remove anything stuck. Gentle pressure with a clean cloth is only for a bleeding wound on the way to the vet.
- Why is my dog coughing up phlegm?
- A dog coughs up phlegm when the throat, airways or lungs are irritated or inflamed and make extra mucus. Possible causes your vet checks include kennel cough and other infections, pneumonia, airway inflammation, heart disease, lungworm or heartworm, and something inhaled. A same-day vet visit is the way to find out which one.
- Can dogs cough up phlegm?
- Yes, dogs can cough up phlegm, because their airways make mucus that a cough pushes up into the throat. A dog may swallow it straight away, so you might only see a gag, a retch or a little froth. Either way, a cough with phlegm is a reason to book a same-day vet appointment.
- Why is my dog coughing mucus?
- Mucus and phlegm are the same thing here: the sticky fluid the airways make to trap dust and germs. Your dog brings it up when something such as an infection, inflammation, a parasite, fluid linked to heart disease or an inhaled object irritates the airways. Call your vet today so the cause can be found.
- What does it mean when a dog is coughing up mucus?
- It means the airways are making extra mucus and the body is trying to clear it out. That points to irritation or inflammation somewhere between the nose and the lungs, but not to one cause. Your vet listens to the chest and may suggest X-rays or other tests, so book a same-day appointment.
- What is it when a dog coughs up phlegm?
- It is a productive cough, meaning the cough is moving mucus up from the airways rather than being dry. The cough can end in a retch that looks like vomiting, and your vet works out where the material came from. Book a same-day appointment, and go to an emergency vet now for hard breathing or blood.
- What should I do if my dog keeps coughing up phlegm?
- Call your vet today and book a same-day appointment, even if your dog seems bright between coughing fits. A cough that keeps coming back needs a proper exam and may need chest X-rays or other tests. If breathing becomes fast or hard, or you see blood or collapse, go to an emergency vet now.
- What should I do if my dog is coughing up lots of phlegm?
- Call your vet now. A dog coughing up lots of phlegm can have an infection deep in the lungs or fluid building up, and these can affect breathing quickly. Go to an emergency vet now if your dog is struggling to breathe, has blue, grey or pale gums or tongue, brings up blood or collapses.
Educational content, not veterinary advice. Ask your vet about your dog.