The treatment of udder swelling largely depends on its cause. For bacterial infections, veterinary-prescribed antibiotics are frequently used. Commonly used medications include benzylpenicillin, procaine penicillin, and cephalosporins. In addition to antibiotics, anti-inflammatory medications may be administered to reduce swelling and alleviate pain for the cow.