Best Antibiotics for Mastitis: What Doctors Prescribe

The most commonly prescribed antibiotics for mastitis are dicloxacillin and cephalexin, both taken at 500 mg four times daily for 10 to 14 days. These target the staph bacteria responsible for the vast majority of breast infections. Starting the right antibiotic early is important because delayed or incomplete treatment raises the risk of developing a breast abscess.

Standard Antibiotic Options

Mastitis is almost always caused by Staphylococcus aureus, a gram-positive bacterium that enters through small cracks or breaks in the nipple. The first-line antibiotics are chosen specifically to kill this type of bacteria. Your provider will typically prescribe one of the following:

  • Dicloxacillin 500 mg four times a day for 10 to 14 days
  • Flucloxacillin 500 mg four times a day for 10 to 14 days
  • Cephalexin 500 mg four times a day for 10 to 14 days

All three are equally effective. Which one you get often depends on what’s available at your pharmacy and your provider’s preference. The 10-to-14-day course is longer than many people expect, and it’s important to finish the full course even if you feel better within a few days. Stopping early can allow resistant bacteria to survive and cause a relapse.

Options If You Have a Penicillin Allergy

Dicloxacillin and flucloxacillin belong to the penicillin family, so they’re off the table if you’re allergic. Cephalexin is a cephalosporin, which is closely related to penicillin. Some people with a penicillin allergy can safely take cephalexin, but others cannot, depending on the nature of the allergy.

If penicillins and cephalosporins are both ruled out, the main alternatives are:

  • Clindamycin 300 mg four times a day for 10 to 14 days
  • Trimethoprim-sulfamethoxazole (double strength) for 10 to 14 days
  • Erythromycin or clarithromycin as additional alternatives

Your provider will choose based on your specific allergy history and whether there’s any concern about antibiotic-resistant bacteria.

When MRSA Is a Concern

Most mastitis responds to standard antibiotics, but methicillin-resistant Staphylococcus aureus (MRSA) is increasingly showing up in breast infections, even in healthy young women with no traditional risk factors for resistant infections. MRSA should be suspected when mastitis doesn’t improve after 48 to 72 hours on a standard antibiotic, or when the infection is unusually severe from the start.

Clindamycin and trimethoprim-sulfamethoxazole are the most common oral antibiotics effective against community-acquired MRSA. If your provider suspects MRSA, they’ll likely send a culture of breast milk or wound drainage to confirm the bacteria and guide treatment. In one study of postpartum MRSA mastitis, the median time to getting an antibiotic that actually worked against the resistant strain was five days, which underscores why early follow-up matters if symptoms aren’t improving.

Safety While Breastfeeding

You can and should continue breastfeeding (or pumping) while taking antibiotics for mastitis. Frequent milk removal actually helps clear the infection faster by preventing bacteria from multiplying in stagnant milk.

The antibiotics used for mastitis are considered safe during breastfeeding. Cephalexin carries a lactation risk category of L1 (compatible), meaning the amount that passes into breast milk is extremely small, around 0.5 to 1% of the maternal dose. Erythromycin is also rated L1. Clindamycin and trimethoprim-sulfamethoxazole are rated L2 (probably compatible), though trimethoprim-sulfamethoxazole requires caution if your baby has a rare enzyme deficiency called G6PD deficiency. Your baby may occasionally have slightly looser stools while you’re on antibiotics, but this is temporary and not a reason to stop.

Managing Pain Alongside Antibiotics

Antibiotics kill the bacteria, but they don’t directly relieve the pain, swelling, and inflammation that make mastitis so miserable. Ibuprofen is the most helpful over-the-counter option because it reduces both pain and inflammation. It’s also compatible with breastfeeding. Acetaminophen works for pain but doesn’t address swelling.

Warm compresses applied before nursing can help milk flow more easily from the affected area. Cold packs after nursing or pumping can reduce swelling and provide relief between feedings. Resting as much as possible, while difficult with a newborn, genuinely helps your body fight the infection.

Signs Your Antibiotic Isn’t Working

You should notice some improvement within 48 to 72 hours of starting antibiotics. The fever typically breaks first, followed by gradual reduction in redness and tenderness. If you’re still running a fever after two to three days, or if the breast becomes more swollen, more painful, or develops a soft, fluctuant area, this could mean the bacteria are resistant to your antibiotic or that an abscess has formed.

A breast abscess is a walled-off pocket of pus that antibiotics alone can’t reach. Ultrasound is the most effective tool to distinguish an abscess from severe mastitis. Abscesses develop when treatment is delayed or the bacteria are resistant to the prescribed antibiotic. They typically need to be drained, either with a needle guided by ultrasound or through a small incision, in addition to continuing antibiotics.

Preventing Recurrence

Some women experience mastitis more than once during breastfeeding. Incomplete courses of antibiotics, persistent nipple damage, and inconsistent milk removal are the most common reasons for recurrence. Addressing the underlying cause, whether it’s a latch problem, an oversupply issue, or skipped feedings, is just as important as treating the infection itself.

There is emerging evidence that certain probiotics may help prevent recurrence. In a randomized controlled trial, women who had experienced mastitis in a previous pregnancy and took a specific probiotic strain (Ligilactobacillus salivarius PS2) during late pregnancy had a mastitis rate of 25%, compared to 57% in the placebo group. Probiotic use for mastitis prevention is not yet part of standard guidelines, but the early results are promising for women who deal with repeated episodes.