What Causes Mastitis in Dogs: When to See the Vet

8 min read · updated Nov 25, 2026

Mastitis in dogs is inflammation of a milk gland, and it is a reason to see your vet the same day. Learn what can cause it, the signs that mean you should go to an emergency vet now, and what your vet may check.

A dog being cared for at home, illustrating what causes mastitis in dogs: when to see the vet

Mastitis in dogs is caused when bacteria or trapped milk inflame a mammary gland, and it is a reason to see your vet today. Go to an emergency vet now if a gland has changed colour, broken open or is leaking pus or blood, if your dog is weak, collapsing or will not eat, or if her puppies are weak or not feeding; otherwise book a same-day appointment. Any new lump or swelling should be checked by a vet, who may take a fine needle sample. This page explains what causes mastitis in dogs as possibilities your vet checks, how it can happen, and what to tell your vet when you call.

When to go to the vet now

Go to an emergency vet now if you see any of these:

  • A mammary gland that has changed colour, broken open, or is leaking pus or blood
  • Weakness, collapse, or a dog who will not get up
  • Refusing food, vomiting, or fast or heavy breathing
  • Puppies that are weak, crying without stopping, or not feeding

For anything else, including any swelling, redness or soreness along her belly or teats in a dog who is still eating and moving about, book a same-day appointment. Mastitis can get worse quickly, and an infected gland can go from swollen to broken open in a short time, so call your vet today. The Dog Emergency Signs page lists other signs that need emergency care.

What can cause mastitis

Mastitis is inflammation of one or more mammary glands, the milk glands that run in two rows along a female dog's belly, each with its own teat. Infection with bacteria is one possible reason a gland becomes inflamed, and milk that collects in a gland is another. Your vet looks at each possibility below when working out what causes mastitis in a dog, and the answer for your dog comes from an exam and tests, not from how the gland looks at home.

When a dog is making milk, her glands are full and warm, and milk gives bacteria a place to grow. Bacteria can get in through the small opening at the tip of each teat, or through a scratch, crack or sore in the skin around it. Once inside, they can multiply in the milk and in the tissue of the gland. The body responds with inflammation, and the gland can become swollen, firm, sore and red, and the milk can change. Without treatment, an abscess can form, or part of the gland can lose its blood supply and the tissue can be damaged. This is how mastitis happens in dogs, and it is why the vet looks at the whole dog and not only the gland, since infection can spread and make her unwell.

Nursing puppies are one possible source of trouble. While puppies feed, their sharp claws and small teeth can scratch the teats and the skin around them. Those tiny breaks give bacteria from the puppies' mouths, from her own skin and coat, and from the bedding a way into the gland. A whelping area that is damp or soiled can add to the bacteria close to her teats. Mastitis can show up at any point while she is nursing, and it can affect one gland or several. Your vet considers infection linked to nursing as a possible cause in any mother with a sore or swollen gland.

Milk build-up is another possibility. A gland that fills with milk but is not emptied can swell, stretch and become painful, and vets may call this milk stasis. It can happen when puppies are weaned suddenly, when puppies are lost or taken away, when a small litter leaves some teats unused, or when puppies favour certain teats over others. Trapped milk can inflame a gland on its own, and it can also give bacteria a place to settle and grow. This is one reason the timing of weaning, and what happened to the litter, matters to your vet.

Mastitis is not limited to dogs with puppies. After a heat, an unspayed female can go through a false pregnancy, where hormones make her body act as if she were pregnant. Her glands can swell and make milk even though there are no puppies to drink it. That milk can collect, and licking at the teats can bring bacteria to the area. When the question is what causes mastitis in female dogs who have not given birth, a false pregnancy is one of the first things your vet thinks about, and the date of her last heat helps.

An injury to the gland can also let infection in. A knock, a scrape on rough ground, a bite from another animal or any wound near the teats can let bacteria into the tissue. This can happen in a dog who is nursing, a dog in a false pregnancy, or a dog who is neither. A small wound can be hidden under the coat, so tell your vet about any recent rough play, fights or falls.

Her overall health plays a part too. A dog who is worn out after giving birth, who has another infection after whelping such as an infection of the womb, or who has a health problem that affects her immune system can find it harder to fight off bacteria. Your vet looks at her general health, her appetite, her temperature and her recent history as part of finding the cause.

More than one cause can be present at once. A nursing mother can have scratched teats and a gland that the puppies are not emptying, or a dog in a false pregnancy can lick at a full gland until the skin breaks. Your vet puts the history and the exam together to work out which possibilities apply to your dog. Talk to your vet about anything in her recent history that might be relevant, even if it seems small.

Not every swelling along the belly is mastitis. Mammary tumours, a skin infection, an abscess from another cause or a hernia can all cause swelling in the same area, and some mammary cancers can cause redness and heat that resemble infection. This matters because an older female, a female who has not been spayed, or a dog who is not nursing can have a swollen gland for reasons other than mastitis. Only a vet exam and tests can sort out which of these is present, so any swelling in this area needs a same-day vet visit.

The cause shapes the treatment your vet chooses. An infected gland needs a different plan from one that is swollen with trapped milk, and an abscess or damaged tissue may need more. You can read more in Mastitis in Dogs, Mastitis in Dogs Treatment and What Are Symptoms of Mastitis in Dogs, and you can browse other health topics in our conditions library.

What your vet may do

Your vet starts by asking about her history: whether she has puppies and how old they are, whether a litter was recently weaned or lost, when her last heat was, whether she is spayed, and when you first noticed the swelling. They also ask about her appetite, her energy, and any vomiting or other signs.

Next comes a full physical exam. The vet takes her temperature, listens to her heart and lungs, checks her hydration and gum colour, and looks at and gently feels each mammary gland and teat. They look for swelling, heat, pain, wounds, discharge and any area of skin that has changed colour or broken open. Some dogs need light sedation for a proper look at a painful area.

The vet may take a small sample of milk or fluid from an affected gland. Looked at under a microscope, this can show signs of infection and inflammation. The sample can also be sent for a culture, which grows any bacteria present and shows which medicine works against them. This helps your vet choose the right medicine for your dog.

Blood tests can show whether infection is affecting her whole body and whether she is dehydrated. An ultrasound scan of the glands can show an abscess or an area of damaged tissue that is not clear from the outside. If there is a lump rather than a soft swelling, or if the vet wants to rule out a tumour, they may take a fine needle sample of cells to look at. If she has recently given birth, the vet may also check her for an infection of the womb, and they may look over the puppies.

Treatment depends on the cause. It can include a medicine your vet prescribes for infection, pain relief your vet prescribes, and fluids for a dog who is dehydrated or very unwell. An abscess may need to be opened and drained by the vet, and badly damaged tissue may need surgery under anaesthetic. Your vet also advises whether the puppies should keep nursing from the affected glands and how to keep them fed if not. Some dogs need to stay at the clinic for a time.

Talk to your veterinarian about the plan, what each step is for, and which changes mean you should call again. Once your vet has seen her, call your vet again if the swelling grows, a gland changes colour or breaks open, or she stops eating, seems weaker or breathes fast.

What to tell your vet

When you call, tell your vet:

  • When you first noticed the swelling, redness or soreness, and which glands are affected
  • Any change since then, such as more swelling or a change in the milk
  • Any bleeding, pus or discharge from a teat or the skin
  • Whether she is licking the area or will not let the puppies feed
  • Other signs, such as not eating, vomiting, weakness or panting
  • Whether she has puppies, has recently weaned a litter, or recently finished a heat

Write these down before you call if you can, and have the puppies' ages ready too. Do not put anything on the gland, squeeze it or try to empty it before your vet sees her, because that can make the gland sorer and can change what the vet finds.

Frequently asked questions

Is mastitis an emergency in dogs?
Mastitis is an emergency when a gland has changed colour, broken open or is leaking pus or blood, when your dog is weak, collapsing or will not eat, or when her puppies are weak or not feeding. Go to an emergency vet now for any of these. For any other sign of mastitis, book a same-day vet appointment.
What should I do if my dog has mastitis?
Call your vet today and describe what you see, including which glands are swollen, whether she has puppies, and whether she is eating. Go to an emergency vet now if a gland has changed colour or broken open, or if she is weak or will not eat. Do not squeeze or treat the gland before she is seen.
Can I treat mastitis at home?
No, because mastitis needs a vet to find the cause and prescribe the right care. Do not put anything on the gland, squeeze it, try to empty it or remove anything before the vet sees her. If a gland is bleeding, hold a clean cloth on it with gentle pressure on the way to the vet only.
What causes mastitis in dogs?
Mastitis in dogs happens when a mammary gland becomes inflamed, and bacteria entering through the teat or a break in the skin is one possible reason. Milk that builds up after sudden weaning, a false pregnancy, or an injury to the gland can also lead to it. A vet exam may help find the cause in your dog.
What else can cause mastitis in a dog besides nursing?
Mastitis can happen in a dog who is not nursing. A false pregnancy can fill the glands with milk, a scrape, bite or knock can let bacteria into the tissue, and a dog who is unwell or run down can find infection harder to fight. Your vet rules out mammary tumours, which can cause swelling in the same area.
What causes mastitis in female dogs that have not had puppies?
In a female who has not had puppies, a false pregnancy after a heat is one possible cause, because hormones can make the glands swell and produce milk with no puppies to drink it. Licking, an injury to the skin, or another illness can also play a part. Book a same-day vet visit for any swollen gland.
How does mastitis happen in dogs?
Mastitis happens when a mammary gland becomes inflamed. Bacteria can enter through the teat opening or a small scratch from nursing puppies, then multiply in the milk and tissue. Milk that the puppies do not drink can also collect and swell the gland. The gland can become swollen, sore and red, and an abscess can form without treatment.
Does the cause of mastitis change the treatment?
Yes, because the plan depends on what your vet finds. Infection can need a medicine your vet prescribes, chosen with help from a milk sample test, and pain relief. An abscess may need draining by the vet, and badly damaged tissue may need surgery. Talk to your vet about the plan and about the puppies' feeding.
Can a dog get mastitis after her puppies are weaned?
Yes, because milk can remain in the glands after sudden weaning, and that milk can collect and make a gland swollen and sore. Trapped milk can also give bacteria a place to grow. Call your vet today if a gland swells, and go to an emergency vet now if she is weak or will not eat.
Should the puppies keep nursing if their mother has mastitis?
Ask your vet when you call, because the answer depends on the cause and on how unwell she is. Do not take the puppies off her or change how they are fed before the vet advises you. If the puppies are weak, crying without stopping or not feeding, go to an emergency vet now.

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