Mastitis in Dairy Cows: Signs, Treatment and Prevention

Mastitis is inflammation of the udder, almost always caused by bacteria, and the most useful first question is not “which medicine?” but “which type is it?” Contagious mastitis spreads from cow to cow during milking, while environmental mastitis comes from dirty, damp bedding and wet teats. They need different control. Most infected cows show few signs at all (subclinical mastitis): the milk looks normal, but the somatic cell count is high and the yield is falling. This guide explains the two types, how to detect each form, the classic five-point plan, and when a cow needs a vet.

Written for dairy farmers and students. It is educational and does not replace a veterinarian, who should choose any treatment for a cow with mastitis.

Two ways to describe mastitis (do not mix them up)

QuestionAnswer oneAnswer two
How does it look?Clinical: you can see it (abnormal milk, a hot, swollen, painful quarter)Subclinical: nothing visible; the cell count is high and yield falls
Where do the bacteria come from?Contagious: from other infected cows, spread at milkingEnvironmental: from bedding, dung and the surroundings

Either type can show up as clinical or subclinical, so the two descriptions cross. The division is not perfect (some environmental bacteria can spread at milking, and the reverse), but it is the best starting point for control.

Comparison of contagious mastitis, spread cow to cow at milking by Staph aureus, Strep agalactiae and Mycoplasma and controlled by post-milking teat dip, milking infected cows last and culling chronic cases, with environmental mastitis, caused by E coli and Strep uberis from dirty damp bedding and controlled by clean dry bedding and clean dry teats; with the five-point plan and the cell count threshold of about 200,000 per ml
Contagious versus environmental mastitis, and the five-point plan. Chart by Dr. Rameez Bloch, DrblochVet.com.

Contagious versus environmental

ContagiousEnvironmental
Main bacteriaStaphylococcus aureus, Streptococcus agalactiae, MycoplasmaE. coli, Streptococcus uberis and other bacteria from the cow’s surroundings
ReservoirThe udders of infected cowsBedding, dung, mud and water
How it spreadsAt milking, through the milking machine, milkers’ hands, teat-washing cloths and treatment proceduresMostly between milkings, when teats are wet or dirty
Typical pictureHigh cell count, often subclinical, recurring flare-upsSudden clinical cases, sometimes severe
Key controlPost-milking teat dip, milk infected cows last, cull chronic cases, clean milkingClean, dry bedding and clean, dry teats before milking

Since the five-point plan was introduced, the old contagious bacterium Strep. agalactiae has become uncommon, and Strep. uberis and E. coli are now bigger causes. Staph. aureus is harder: it is often at the root of long-term high cell counts and recurring mastitis, it is difficult to treat, and cure rates are low even with dry cow therapy.

How to detect it

  • Clinical mastitis: changes in the milk (clots, flakes, a change of colour or consistency) and swelling, heat, pain or redness of the quarter. Strip a few squirts from each quarter into a cup or onto a dark surface before milking. A strip cup works only for clinical cases.
  • Subclinical mastitis: use the California Mastitis Test (see our CMT guide) or a somatic cell count. Somatic cells are mostly white blood cells, so the higher the count, the more inflammation in the udder. A count above about 200,000 cells per ml in a quarter points to infection.
  • Culture: milk culture identifies the bacteria and the antibiotics that kill them. Take samples before starting treatment. If the problem is a high cell count, sample 10 to 12 cows with high counts, because samples from clinical cases will not represent the problem.

A fall in milk yield almost always accompanies infection. Heat stress also raises cell counts and clinical cases: see heat stress in dairy cows.

The five-point plan

Developed in the 1960s to control mastitis in dairy herds, the plan rests on two principles: remove existing infections, and prevent new ones.

  1. Treat and record every clinical case promptly, following your vet’s advice. Records show which cows and quarters keep relapsing.
  2. Disinfect every teat after every milking (post-milking teat dip). It is an excellent control for contagious bacteria, especially Staph. aureus and Strep. agalactiae.
  3. Dry cow therapy: a long-acting antibiotic infused into the udder at the end of lactation to clear existing infections, usually with a teat sealant to block the teat canal. Ask your vet whether to treat all cows or selected cows.
  4. Cull chronic cases. A cow with repeated flare-ups of a resistant infection is a source of infection for the others.
  5. Maintain the milking equipment and the routine, so that the machine does not push bacteria up the teat canal.

A milking routine that protects the udder

  1. Wash and dry your hands, and use a clean, single-use cloth or towel for each cow where you can, because cloths and hands carry contagious bacteria between cows.
  2. Clean the teats, dip them in a pre-dip disinfectant for the contact time on the label, and wipe them dry.
  3. Strip 3 to 5 squirts from each quarter and look for abnormal milk.
  4. Attach the unit (or milk by hand) calmly and remove it promptly when milk flow stops.
  5. Dip every teat immediately after milking.
  6. Milk cows with mastitis last to reduce cross-infection.

For environmental mastitis, the most important point is the cow’s surroundings: clean, dry, comfortable bedding, and clean, dry teats at milking. Flies that bite the teats can add to the problem.

When to call the vet

  • The cow is dull, off feed, hot, or has a very hard or swollen udder: a severe mastitis can make a cow seriously ill within hours.
  • The milk is bloody, watery or contains clots, or the quarter is hard and painful.
  • The same quarter or cow keeps relapsing, or several cows have high counts.
  • You are thinking of antibiotic treatment: the vet will choose the product and tell you how long to discard the milk.

A cow off feed after calving with a hot udder may have more than one problem: see cow not eating after calving and milk fever.

Frequently asked questions

Can milk from a cow with mastitis be used?

Milk from an infected quarter should not go for sale, and milk from cows treated with antibiotics must be withheld for the period stated on the label or by your vet. Never feed that milk to calves unless your vet says it is safe.

What is the most important single measure?

It depends on the type. For contagious mastitis, post-milking teat dipping and milking infected cows last. For environmental mastitis, clean, dry bedding and teats. Knowing which type you have comes first, and that needs cell counts and culture.

Why is my cell count high when the milk looks normal?

That is subclinical mastitis. Most infected cows show few clinical signs, but have a high cell count and give less milk.

Does mastitis occur in buffaloes?

Yes. The principles are the same: clean milking, teat dipping, early detection and veterinary advice. Cell-count thresholds for buffaloes and local breeds can differ, so ask your vet or dairy cooperative.

Sources and further reading

Reviewed by Dr. Rameez Bloch, BVSc & AH, MVSc (Gujarat Veterinary Council Reg. 3570). Last reviewed: November 2026. For education only. Treatment, dry cow products and milk withdrawal must be decided with your veterinarian.