Dog Coughing Up Yellow Phlegm: When to See the Vet
Yellow or green phlegm from a dog that is coughing or throwing up is a reason to see a vet. This guide covers the emergency signs, the causes your vet checks, the tests involved and what to tell the clinic.

A dog coughing up yellow phlegm is a reason to see a vet. Go to an emergency vet now if your dog is struggling to breathe, coughs up or vomits blood, collapses, or retches without bringing anything up and has a swollen belly; otherwise book a same-day appointment. The same applies whether the phlegm comes up with a cough, with gagging or with vomiting, and whether it is yellow, green, brown or another colour.
When to go to the vet now
Go to an emergency vet straight away, day or night, for any of these signs. The guide to dog emergency signs covers more situations that need urgent care.
- Your dog is struggling to breathe, breathing fast while resting, or breathing with the mouth open and the neck stretched out
- Your dog coughs up or vomits blood, or brings up phlegm with blood in it
- Your dog collapses, is very weak or cannot stand
- Your dog retches again and again without bringing anything up, and the belly is swollen or tight
- Your dog is choking, gagging hard or pawing at the mouth, or may have breathed in or swallowed something that is now stuck
What can cause yellow phlegm
Yellow phlegm is thick mucus from the airways, throat or stomach that has changed colour. Mucus can change colour for many reasons, including infection, inflammation, bile, old blood or something your dog breathed in, so the colour on its own does not tell anyone the cause. Yellow, green, brown, white, clear or blood-tinged phlegm all lead to the same step: a vet exam. Your vet puts the colour together with the cough, the breathing, the chest sounds, the belly and your dog's history before naming any cause, and the possibilities below are the ones the vet works through.
Phlegm can come up in more than one way. A dog may cough it up from the airways, gag it up from the back of the throat, or bring it up from the stomach by vomiting or retching. Spitting up phlegm at the end of a coughing fit can look a lot like throwing up, and the two can happen together, because a hard cough can set off retching. Your vet works out where the phlegm is coming from as part of the exam, so you do not need to sort it out before you call.
In the airways, your vet checks for infections of the windpipe and the larger airways. Kennel cough is the name for a group of infections that spread between dogs where they meet, such as in kennels, daycare, parks and grooming salons, and it can cause a harsh cough that ends in gagging up phlegm. Pneumonia, an infection or inflammation deep in the lungs, is another possibility. It can follow an airway infection, or it can happen when vomit, food or liquid is breathed into the lungs, which is one way throwing up and coughing can be linked. Your vet will also think about bronchitis, where the airways stay inflamed, and about allergic airway disease.
Something breathed in or swallowed can lodge in the nose, throat, airway or food pipe and cause thick mucus, coughing, gagging and retching. Grass seeds and plant awns can be breathed in on a walk and travel down into the airways. If your dog may have swallowed a toy, a sock, a stick or anything else that could be stuck, call your vet now.
Problems higher up can also produce phlegm. A nose or sinus infection can drain mucus down the back of the throat, and your dog may then cough, gag or swallow hard to clear it. Inflamed tonsils, a sore throat, or an infection from the teeth that spreads into nearby tissue are other possibilities your vet looks at during the mouth and throat exam.
A cough with phlegm does not always come from an infection. Heart disease can let fluid build up in or around the lungs, which can cause coughing and a moist or rattling sound. A weak or collapsing windpipe, lungworm and other parasites that live in the airways or lungs, and growths in the airway, lungs or chest are all on the list your vet considers, particularly in an older dog or a dog with a cough that keeps coming back. These causes are part of why a chest X-ray and a careful listen to the heart matter.
When a dog is throwing up thick yellow mucus or yellow foam, the vet also looks at the stomach and gut. Bile flowing back from the small intestine into the stomach is one possibility your vet checks. Inflammation of the stomach or gut, a reaction to a food, a blockage in the gut, and problems with the pancreas, liver or kidneys can all cause vomiting with mucus. Vomiting with repeated retching, a swollen belly, blood or weakness belongs in the emergency list above; any other vomiting with phlegm is a same-day visit.
Green phlegm and green mucus go through the same checks, whether your dog is coughing it up or throwing it up. Infection, bile, grass or plant material and other causes can all leave mucus looking green, and your vet does not rely on the shade to decide which one is behind it. A dog coughing and bringing up green mucus needs a same-day appointment just as a dog with yellow phlegm does, and the same emergency signs apply. The same goes for brown, grey or rust-coloured phlegm: tell your vet the colour, and let the exam and tests find the cause.
In a puppy, the vet considers some extra causes. Kennel cough and other infections spread where young dogs mix, and a puppy that has not finished its vaccinations can pick up more serious infections, such as distemper, which can cause coughing along with discharge from the nose and eyes. Roundworm larvae can pass through a young puppy's lungs and cause coughing. Puppies can also lose fluid fast when they vomit or stop eating. If your puppy is coughing or bringing up yellow mucus, call your vet now.
Smoke, dust and strong fumes can irritate the airways and bring up mucus too, but irritation does not rule out infection or another cause, so the visit still matters. Talk to your vet about anything new in your dog's life lately, such as a move, a kennel stay, a grooming visit, a new food or time with other dogs. You can read about related airway, heart and stomach problems in the conditions library.
What your vet may do
Your vet starts with questions and a full exam. Expect questions about when the phlegm started, whether it comes up with a cough or with vomiting, how your dog is eating, drinking and breathing, and whether your dog has spent time with other dogs. The exam includes listening to the chest, heart and airways with a stethoscope, taking your dog's temperature, looking at the gums, mouth, throat and nose, gently pressing on the windpipe to see whether it sets off the cough, and feeling the belly.
If your dog is struggling to breathe when you arrive, the team may give oxygen and help your dog settle before anything else. Tests come once your dog is stable, and some dogs need light sedation for a proper look at the throat or for X-rays.
Chest X-rays can show the lungs, heart and airways and help your vet look for pneumonia, fluid, a narrowed windpipe, an object that should not be there or a growth. Blood tests can show signs of infection or inflammation and check how organs such as the liver, kidneys and pancreas are working. A stool test can look for lungworm and other parasites. Your vet may take a swab from the nose or throat to test for infections that spread between dogs.
When the cause is still unclear, your vet may suggest looking inside the airways with a thin camera, called a bronchoscopy, under anaesthetic. During it, the vet can collect fluid from the airways, called an airway wash, to grow and identify bacteria and look at the cells under a microscope. An ultrasound of the heart can show how well it is pumping, and an ultrasound of the belly can show the stomach, gut, pancreas and liver. If vomiting is part of the picture, X-rays or ultrasound of the belly can help find or rule out a blockage.
Treatment depends on what the exam and tests find. Your vet may prescribe a medicine for infection, inflammation, nausea, parasites or heart disease, chosen for your dog's cause and size. Some dogs need fluids through a drip, oxygen, or a stay in hospital so the team can support breathing and hydration. An object stuck in the airway or gut may need to be removed with a camera or by surgery. Do not give your dog any medicine from your cupboard for a cough or for vomiting: a medicine made for people can harm a dog, and the right treatment depends on the cause your vet finds.
If kennel cough or another infection that spreads between dogs is found, your vet will explain how to keep your dog apart from other dogs and for how long. Your vet will also tell you what to do at home during treatment and when to bring your dog back for a recheck, which may include repeat X-rays. Talk to your veterinarian about any part of the plan you are unsure of, including what each test is for.
Call your vet again if the cough, the phlegm or the vomiting changes or gets worse, or if new signs appear. Go to an emergency vet now if your dog struggles to breathe, brings up blood, collapses or retches with a swollen belly at any point.
What to tell your vet
When you call or arrive, tell your vet:
- When you first noticed the phlegm, and whether it came up with a cough, with gagging or with vomiting
- Any change since then, such as more phlegm, a new colour, a louder cough, more coughing fits or faster breathing
- Any bleeding, including blood in the phlegm, the vomit or the stool
- Any licking of the lips, swallowing hard or pawing at the mouth
- Other signs, such as eating less, drinking more or less, tiredness, a runny nose, sneezing or diarrhoea
- Whether your dog has been with other dogs, in kennels or daycare, or may have swallowed or breathed in something
If you can do it without delaying the visit, a short phone video of a coughing or retching episode can help your vet see what happens at home. Bring your dog's vaccination record and a list of anything your dog takes now, and tell your vet about any heart, airway or stomach condition your dog already has; your vet can tell you how this new cough fits with it.
Frequently asked questions
- Is yellow phlegm an emergency in dogs?
- It is an emergency if your dog is struggling to breathe, coughs up or vomits blood, collapses, or retches without bringing anything up and has a swollen belly, so go to an emergency vet now for any of those. For yellow phlegm without those signs, book a same-day appointment with your vet.
- What should I do if my dog has yellow phlegm?
- Call your vet today and book a same-day appointment. Tell them when the phlegm started, whether it comes up with a cough or with vomiting, and any other signs. If your dog is struggling to breathe, collapses or brings up blood before the visit, go to an emergency vet now instead.
- Can I treat yellow phlegm at home?
- No, because the cause needs a vet exam and tests before any treatment can be chosen. Do not put anything on or in your dog, give any medicine or remove anything from the mouth before the vet sees your dog. Gentle pressure with a clean cloth is only for a bleeding wound, on the way to the vet.
- What should I do if my dog is coughing up green phlegm?
- Book a same-day appointment with your vet, just as you would for yellow phlegm. Green phlegm can come from infection, bile, plant material or other causes, and the shade alone does not tell anyone which. Go to an emergency vet now if your dog is struggling to breathe, brings up blood or collapses.
- Why is my dog throwing up yellow mucus?
- Your vet checks several possibilities, including bile flowing back into the stomach, inflammation of the stomach or gut, a blockage, kennel cough or pneumonia causing retching, and problems with the pancreas, liver or kidneys. Book a same-day appointment, and go to an emergency vet now for repeated retching with a swollen belly, blood or collapse.
- What should I do if my puppy is coughing up yellow mucus?
- Call your vet now. Puppies can lose fluid fast and can pick up infections that spread between young dogs, including kennel cough and, in a puppy not fully vaccinated, more serious infections. Tell the clinic about vaccinations and any time with other dogs, and go to an emergency vet now if your puppy struggles to breathe or collapses.
- How will my vet treat a dog coughing up yellow phlegm?
- Treatment depends on the cause your vet finds after the exam and tests. It may include a medicine your vet prescribes for infection, inflammation, parasites, nausea or heart disease, fluids through a drip, oxygen or a hospital stay. An object stuck in the airway or gut may need removal with a camera or surgery.
- Does it matter whether my dog coughs up the phlegm or throws it up?
- It matters to your vet, because a cough and vomiting lead the vet to check different parts of the body. You do not need to sort it out yourself. Tell your vet what you saw, and book a same-day appointment either way, or go to an emergency vet now for emergency signs.
- Can kennel cough make a dog cough up yellow phlegm?
- Yes, kennel cough is one of the infections your vet checks for when a dog coughs up phlegm, and the coughing can bring on gagging or retching. Pneumonia and other causes can look similar, so your dog needs an exam. Book a same-day appointment and tell the clinic about the cough when you call.
- Should I keep my dog away from other dogs if it has yellow phlegm?
- Yes, keep your dog away from other dogs until your vet has seen your dog, because some causes of coughing and phlegm spread between dogs. Tell the clinic about the cough when you book, so the team can plan where your dog waits. Your vet will tell you how long to keep your dog apart.
Educational content, not veterinary advice. Ask your vet about your dog.