Dog Throwing Up White Foam and Coughing: When to See a Vet

9 min read · updated Dec 1, 2026

A cough that brings up white foam is a reason to see a vet. Go to an emergency vet now if your dog is struggling to breathe, is retching without bringing anything up, has a swollen belly or collapses; otherwise book a same-day appointment.

A dog being cared for at home, illustrating dog throwing up white foam and coughing: when to see a vet

A cough that brings up white foam is a reason to see a vet. Go to an emergency vet now if your dog is struggling to breathe, is retching without bringing anything up, has a swollen belly or collapses; otherwise book a same-day appointment. A dog throwing up white foam and coughing can have kennel cough, and dogs with kennel cough can bring up white foam: a hard, honking coughing fit can end in a gag that brings up foam or frothy mucus. The same mix of coughing, gagging and foam can also come from the throat, the lungs, the heart or the stomach. White foam is saliva, mucus and air whipped together, and it can come up from the airway after a cough or from the stomach during retching. Your vet is the one who works out where it is coming from and why, so the step today is a call to the clinic.

When to go to the vet now

Go to an emergency vet now, day or night, if your dog has a cough that brings up white foam together with any of these signs:

  • Struggling to breathe, breathing fast or noisily at rest, or breathing with the neck stretched out
  • Retching or dry heaving again and again with nothing coming up
  • A swollen, tight or bloated belly, with pacing or restlessness
  • Gums or tongue that look pale, white, blue or grey
  • Collapse, fainting or sudden weakness
  • Choking, pawing at the mouth or face, or anything that looks stuck in the throat
  • Coughing up blood or pink, frothy foam

Retching with nothing coming up and a swollen belly can be signs of bloat, where the stomach fills with gas and can twist. Bloat can get worse fast, so go straight to an emergency vet and call ahead on the way if you can. For a cough that brings up white foam without any of these signs, book a same-day appointment. Tell the clinic your dog is coughing when you call, because some causes of coughing spread between dogs and the team may want to bring your dog in through a separate door.

What can cause a cough that brings up white foam

A cough that brings up white foam is a sign, not a diagnosis. The causes below are possibilities your vet checks during the visit. Several of them look alike at home, and some need treatment the same day, so working out which one applies is a job for the exam room.

Kennel cough is a contagious infection of the windpipe and the large airways. It can spread wherever dogs share air, water bowls or close contact, such as boarding, daycare, grooming, training classes and dog parks. The cough can be harsh and honking, a little like a goose, and a coughing fit can end with gagging, retching and white foam. A dog coughing, gagging and throwing up white foam after a fit can look as if it is vomiting when the foam is coming up from the airway, not the stomach. Kennel cough can also come with a runny nose, sneezing, tiredness or a poor appetite. Because it spreads between dogs, your vet may ask you to stay outside until the team is ready or to use a separate door.

Other infections of the nose, throat and lungs can cause coughing, gagging and foam too. Viruses, bacteria and fungi can all be behind them. Pneumonia, an infection or inflammation deep in the lungs, can bring a wet or soft cough, fast breathing, a fever, tiredness and loss of appetite. Pneumonia can also follow when food, fluid or vomit is breathed into the lungs. A dog with fast or hard breathing needs an emergency vet now.

The windpipe itself can be the problem. In a collapsing trachea, the rings of cartilage that hold the windpipe open soften or flatten, and the dog can have a honking cough that ends in a gag and a little foam. Excitement, pulling on the leash, heat or drinking can set it off. Problems with the voice box, or larynx, can change the sound of the bark, make breathing noisy and cause gagging. Inflammation of the airways from allergies, smoke, dust, strong cleaning products or other fumes can also set off coughing and gagging.

Something stuck in the mouth, throat, food pipe or airway can cause sudden coughing, gagging, retching, drooling and white foam. A splinter of stick, a grass seed, a piece of toy or a chunk of food can all lodge there. Your dog may paw at the mouth, stretch the neck or swallow over and over. Do not put your fingers in your dog's mouth or try to pull anything out, because this can push an object deeper and you can be bitten. Go to an emergency vet now if your dog is choking or struggling to breathe; otherwise call your vet today.

Heart disease can cause a cough, either because an enlarged heart presses on the airway or because fluid builds up in the lungs. A heart cough can come with tiredness, a reluctance to walk, a swollen belly, fast breathing while resting or sleeping, and fainting. Some dogs bring up foam after a coughing spell from heart disease, which is one reason the vet listens closely to the chest. If your dog already has a heart or airway condition, talk to your vet about this cough today; your vet can tell you how it fits with what is already known about your dog.

Some parasites live in the heart, the blood vessels of the lungs or the airways, including heartworm and lungworm. They can cause coughing, tiredness and trouble breathing. Your vet can test blood or stool for them and set out parasite prevention that suits your dog.

Not every dog bringing up white foam is coughing. Foam can come up from the stomach or from the food pipe, the tube that carries food from the mouth to the stomach, during retching or vomiting. Reflux, an irritated stomach, an empty stomach, eating grass, gulping food or water, or a problem with the food pipe itself can lead to gagging and foam. A cough and a vomit can look alike in the moment, and a dog that vomits can cough afterwards, or cough until it gags. Your vet will ask you to describe what happened in order, and the page on Dog Gagging and Coughing After Eating covers foam and gagging around meals.

Dry heaving with white foam needs its own mention. A dog that heaves and gags over and over with only foam or nothing coming up can have bloat, also called gastric dilatation and volvulus, where the stomach fills with gas and can twist on itself. Bloat can come with a swollen or tight belly, drooling, pacing, restlessness, lying down and getting straight back up, and weakness. Bloat can happen in any dog, and large, deep-chested dogs are among those at risk. A dog that is dry heaving and bringing up only white foam needs an emergency vet now, and a swollen belly makes that even more urgent.

Gagging and bringing up white foam can come from the throat, the airway or the stomach. Tonsillitis, a sore throat, mouth or tooth pain, nausea and mucus dripping down the back of the throat from a runny nose can all bring on gagging. The pages on Dog Coughing and Gagging, Dog Coughing, Gagging but Not Throwing Up and Why Does My Dog Keep Gagging but Not Throwing Up cover gagging when no foam comes up, and Dog Gagging and Coughing Up Clear Liquid covers clear fluid. Each points to the same step: a vet visit.

Hiccup-like jerks, gulping, lip licking or swallowing over and over alongside white foam can come from reflux, nausea, throat irritation or a breathing problem. Reverse sneezing, a loud snorting pull of air in through the nose, can also be mixed up with hiccups, coughing or gagging. If your dog is throwing up white foam and has hiccups, book a same-day appointment, and go to an emergency vet now if your dog is struggling to breathe.

Some toxins and irritant plants or household products can cause drooling, foaming at the mouth and retching. If your dog may have licked, chewed or swallowed something toxic, call your vet or an animal poison control service now. Go to an emergency vet now for tremors, collapse or trouble breathing.

You can read more about the airway, heart and stomach problems named on this page in the conditions library.

What your vet may do

Your vet will start with questions about the cough and the foam: when it began, what it sounds like, whether the foam came up after a coughing fit or after heaving from the belly, whether your dog has been around other dogs, and whether anything could have been chewed or swallowed. A dog may not cough in the exam room, so your description matters.

The exam itself covers the whole dog. Your vet will listen to the heart and lungs with a stethoscope, look at the gum color, take a temperature, look in the mouth and throat as far as is safe while your dog is awake, gently feel the neck and windpipe, and feel the belly for swelling or pain. A dog that is struggling to breathe may be given oxygen and settled first, before any tests.

Tests depend on what the exam shows. Chest X-rays can show the lungs, the size and shape of the heart, the windpipe and some objects stuck in the airway or food pipe. Belly X-rays can show a stomach full of gas or twisted out of place, which is how bloat is confirmed. Blood tests can look for infection, inflammation and how the organs are working, and a heartworm test checks for that parasite. A stool sample can be tested for lungworm. Swabs from the nose or throat can be sent to a lab to look for the germs behind kennel cough and other airway infections.

If the cause is still unclear, your vet may suggest an ultrasound of the heart, or a look down the throat and airways with a thin camera under anesthesia. During that look, the vet can wash a little fluid through the airways and collect it for testing, and can remove an object stuck in the throat or airway. Some dogs need light sedation for a proper look at the throat.

Treatment depends on the cause your vet finds. A dog with bloat needs emergency treatment to release the gas and surgery to put the stomach back in place. Other causes can need a medicine your vet prescribes, fluids, oxygen, a hospital stay, rest from exercise or time apart from other dogs while an infection can spread. Your vet will explain the plan and what to do at home. Talk to your veterinarian about kennel cough vaccines and whether they suit your dog.

What to tell your vet

  • When you first noticed the cough and the white foam, and how many times it has happened
  • Whether the foam came up at the end of a coughing fit or after heaving from the belly
  • Any change in the cough, its sound, the amount of foam or your dog's breathing
  • Any blood, pink froth or streaks in the foam
  • Any lip licking, drooling or swallowing over and over
  • Other signs, such as a runny nose, sneezing, tiredness, a poor appetite, vomiting food or a swollen belly
  • Recent contact with other dogs at boarding, daycare, grooming or the park
  • Anything your dog could have chewed or swallowed, and any health condition or medicine your dog already has

If you can do it without delaying the trip, a short video of a coughing fit on your phone can help your vet hear the sound. Call your vet again if the cough changes, the foam turns pink or bloody, or new signs appear, and go to an emergency vet now for any sign in the emergency list above.

Frequently asked questions

Is a cough that brings up white foam an emergency in dogs?
It is an emergency if your dog is struggling to breathe, is retching without bringing anything up, has a swollen belly, has pale, blue or grey gums, or collapses: go to an emergency vet now. For a cough that brings up white foam without these signs, book a same-day appointment with your vet.
What should I do if my dog has a cough that brings up white foam?
Call your vet today and book a same-day appointment. Tell the clinic your dog is coughing, because some causes spread between dogs. Go to an emergency vet now instead if your dog is struggling to breathe, retching with nothing coming up, has a swollen belly or collapses. Do not give any medicine or home remedy unless your vet says so.
Can I treat a cough that brings up white foam at home?
No, because the cause needs a vet exam and some causes, such as bloat or something stuck in the throat, are emergencies. Do not give anything for the cough, do not put anything in your dog's mouth and do not remove anything. Call your vet today, or go to an emergency vet now for trouble breathing or collapse.
Do dogs throw up white foam with kennel cough?
Yes, dogs with kennel cough can bring up white foam, because a hard, honking coughing fit can end in a gag that brings up foam or frothy mucus from the airway. Other airway, heart and stomach problems can look the same, so book a same-day vet appointment and tell the clinic your dog is coughing.
Why is my dog dry heaving and bringing up white foam?
Dry heaving with white foam can come from the throat, the airway or the stomach, and it can be a sign of bloat, where the stomach fills with gas and can twist. Go to an emergency vet now if your dog keeps retching with nothing else coming up, has a swollen belly, is restless or is weak.
Why is my dog gagging and bringing up white foam?
Gagging with white foam can come from kennel cough or another airway infection, something stuck in the throat, a windpipe or voice box problem, nausea or reflux. Your vet works out which applies. Book a same-day appointment, and go to an emergency vet now if your dog is choking, struggling to breathe or retching with nothing coming up.
What does it mean if my dog is throwing up white foam and has hiccups?
Hiccup-like jerks, gulping or swallowing over and over with white foam can come from reflux, nausea, throat irritation or a breathing problem, and reverse sneezing can be mixed up with hiccups. Book a same-day vet appointment, and go to an emergency vet now if your dog is struggling to breathe, retching with nothing coming up or collapses.
Is coughing up white foam the same as vomiting in dogs?
No, because foam after a cough comes up from the airway, while vomiting brings foam or food up from the stomach. The two can look alike, and a dog can do both. Tell your vet whether the foam came at the end of a coughing fit or after heaving from the belly, and book a same-day appointment.
Is kennel cough contagious to other dogs?
Yes, kennel cough spreads between dogs through the air, shared bowls and close contact, which is why it can pass around boarding, daycare, grooming and dog parks. Tell the clinic your dog is coughing when you book, and follow your vet's advice on keeping your dog apart from other dogs until your vet says otherwise.
What tests might my vet do for a cough that brings up white foam?
Your vet may listen to the heart and lungs, take chest or belly X-rays, run blood tests and a heartworm test, test a stool sample for lungworm and take nose or throat swabs for infection. If the cause is still unclear, a heart ultrasound or a camera look down the airway under anesthesia may help find it.
Can something stuck in my dog's throat cause coughing and white foam?
Yes, a stick splinter, grass seed, piece of toy or chunk of food stuck in the throat or airway can cause coughing, gagging and white foam. Do not put your fingers in your dog's mouth or pull it out. Go to an emergency vet now if your dog is choking or struggling to breathe; otherwise call your vet today.

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