Is cephalexin (a cephalosporin antibiotic) safe to use during pregnancy?

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 5, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Cephalexin Safety During Pregnancy

Cephalexin is safe to use during pregnancy and is considered a first-line antibiotic option for treating bacterial infections in pregnant women. 1, 2

Safety Classification and Evidence

  • Cephalexin is FDA Pregnancy Category B, meaning reproduction studies in animals have shown no harm to the fetus at doses up to 1.5 times the maximum human dose, though adequate well-controlled studies in pregnant women are limited. 2

  • The American Academy of Dermatology supports cephalexin use during pregnancy based on moderate quality evidence demonstrating no harm to the fetus. 1

  • Cephalosporins as a class, including cephalexin, are not teratogenic at usual therapeutic doses based on human data. 3

Clinical Applications During Pregnancy

  • Cephalexin serves as a first-line treatment option for various bacterial infections during pregnancy, including urinary tract infections, respiratory infections, and skin/soft tissue infections. 1, 4

  • For recurrent urinary tract infections during pregnancy, postcoital prophylaxis with cephalexin 250 mg as a single oral dose has proven highly effective, with only 1 UTI occurring during pregnancy after prophylaxis compared to 130 UTIs before prophylaxis in one study. 5

  • Oral cephalexin (500 mg every 6 hours) is equally effective as intravenous cephalothin for treating acute pyelonephritis in pregnancy in non-bacteremic patients, with 91.4% success rates. 6

  • Cephalexin offers a safer alternative to contraindicated antibiotics during pregnancy such as doxycycline and trimethoprim-sulfamethoxazole, which pose risks including congenital anomalies and preterm birth. 1

Advantages Over Other Antibiotics

  • Penicillins and cephalosporins represent first-line antibiotic choices during pregnancy, with cephalosporins being particularly useful when penicillin allergy exists or when broader coverage is needed. 4

  • Cephalexin reaches high bactericidal concentrations in the urinary tract and induces minimal resistance in gram-negative bacterial flora, making it particularly effective for urinary infections. 5

Important Considerations

  • While cephalexin is safe throughout pregnancy, the drug should only be used when clearly needed to treat bacterial infections, not viral infections. 2

  • Cephalexin is excreted in breast milk, reaching maximum levels of 4 mcg/mL at 4 hours post-dose and disappearing by 8 hours, so caution should be exercised when administering to nursing mothers. 2

  • No medicine can be described as absolutely safe during pregnancy, but cephalexin does not cause serious harm to the unborn child when used properly at appropriate doses. 4

  • Treatment with cephalexin that may have been inadvertently given does not justify termination of pregnancy. 4

References

Guideline

Cephalexin Safety During Pregnancy

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Cefuroxime Use in Pregnancy

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Effective prophylaxis for recurrent urinary tract infections during pregnancy.

Clinical infectious diseases : an official publication of the Infectious Diseases Society of America, 1992

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.

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.