Are dicloxacillin and cephalexin safe for a breastfeeding infant when used to treat maternal mastitis?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: December 1, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Are Dicloxacillin and Cephalexin Safe for Breastfeeding in Mastitis Treatment?

Both dicloxacillin and cephalexin are safe for breastfeeding infants when used to treat maternal mastitis, with extremely low infant exposure levels that pose minimal risk.

Dicloxacillin Safety Profile

Dicloxacillin is the preferred first-line antibiotic for mastitis during breastfeeding 1, 2, 3. The evidence strongly supports its safety:

  • Minimal milk transfer: The maximum concentration in breast milk is only 67.6 ng/mL, with a relative infant dose (RID) of just 0.03% of the maternal dose 2
  • This RID is far below the 10% safety threshold that is internationally accepted as the cutoff for concern 2
  • The extremely low transfer is explained by dicloxacillin's high plasma protein binding (>95%), which prevents significant penetration into breast milk 2

FDA labeling states that penicillins are excreted in breast milk and recommends caution 1, but this generic warning does not reflect the actual minimal exposure documented in clinical studies. The practical clinical data demonstrates safety 2, 3.

Clinical Recommendations for Dicloxacillin

  • Continue breastfeeding without interruption during treatment 3
  • Women can breastfeed from both the affected and unaffected breast 3
  • The only precaution: monitor for penicillin hypersensitivity reactions in infants with known penicillin allergies 2

Cephalexin Safety Profile

Cephalexin is also safe during breastfeeding 4, 5, though with slightly higher milk transfer than dicloxacillin:

  • Low milk concentrations: Peak levels reach 4 mcg/mL at 4 hours post-dose, then decrease gradually and disappear by 8 hours 5
  • RID of approximately 0.5% of the maternal dose 6—still well below the 10% safety threshold
  • Cephalosporins as a class are not teratogenic and are considered compatible with breastfeeding 4

Important Caveat for Cephalexin

Monitor the infant for gastrointestinal effects, particularly diarrhea 6. While systemic effects are unlikely due to the low RID, local effects on the infant's gut flora can occur:

  • Diarrhea is the most common adverse effect reported 6
  • This occurs because antibiotics in breast milk can alter intestinal flora 4
  • These effects are typically mild and self-limited

FDA labeling recommends exercising caution when administering cephalexin to nursing women 5, but again, this generic warning does not contraindicate use given the documented low exposure levels.

Comparative Context with Other Antibiotics

The 2025 Global Consensus Statement on IBD management provides useful context 7, 8, 7:

  • Amoxicillin and other penicillins are considered low risk in nursing mothers 7, 8, 7
  • Cephalosporins (including cefuroxime) are compatible with breastfeeding 4
  • Even ciprofloxacin, which has higher milk concentrations than dicloxacillin or cephalexin, is considered low risk with an RID of 0.57 mg/kg/day 7, 8, 7

Practical Management Algorithm

For lactational mastitis treatment during breastfeeding:

  1. First-line choice: Dicloxacillin 500 mg four times daily for 10-14 days 9

    • Continue breastfeeding without interruption
    • No need to pump and discard milk
    • Monitor infant only for allergic reactions if penicillin allergy history exists
  2. Alternative choice: Cephalexin 500 mg four times daily for 10-14 days 9

    • Continue breastfeeding without interruption
    • Monitor infant for diarrhea or changes in stool pattern
    • If diarrhea develops, it typically resolves when antibiotic course completes
  3. For penicillin-allergic patients: Consider clindamycin or other alternatives based on allergy type 9

Common Pitfalls to Avoid

  • Do not unnecessarily interrupt breastfeeding based on generic FDA warnings—the actual exposure data shows safety 2, 3
  • Do not pump and discard milk during treatment—this is unnecessary and can lead to mastitis worsening, decreased milk supply, and infant feeding difficulties 10
  • Do not confuse theoretical concerns with actual clinical risk—both drugs have RIDs far below safety thresholds 2, 6, 11
  • Do not overlook the importance of continued milk removal—effective breastfeeding or pumping is essential for mastitis resolution and may reduce the need for prolonged antibiotic therapy 3, 12, 13

The evidence overwhelmingly supports that both dicloxacillin and cephalexin pose minimal risk to breastfeeding infants, with dicloxacillin having an exceptionally low transfer rate and cephalexin requiring only basic monitoring for gastrointestinal symptoms 2, 6, 11.

References

Research

Transfer of Dicloxacillin into Human Milk.

Breastfeeding medicine : the official journal of the Academy of Breastfeeding Medicine, 2020

Research

[Treatment of mastitis in general practice].

Tidsskrift for den Norske laegeforening : tidsskrift for praktisk medicin, ny raekke, 2003

Research

Transfer of probenecid and cephalexin into breast milk.

The Annals of pharmacotherapy, 2006

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.