Is Keflex (cephalexin) safe to use for treating a urinary tract infection (UTI) 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: August 23, 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 for UTI Treatment During Pregnancy

Cephalexin (Keflex) is safe and effective for treating urinary tract infections during pregnancy, as it is classified as FDA pregnancy category B and has shown no evidence of fetal harm in reproductive studies. 1

Safety Profile in Pregnancy

Cephalexin has been extensively studied in pregnancy with favorable outcomes:

  • The FDA drug label confirms that reproduction studies in mice and rats using doses up to 1.5 times the maximum daily human dose revealed no harm to the fetus 1
  • Cephalexin is classified as pregnancy category B, indicating it is generally considered safe during pregnancy 1
  • The drug reaches high bactericidal concentrations in the urinary tract while inducing minimal resistance in the bacterial flora 2

Efficacy for UTI Treatment

Cephalexin demonstrates strong efficacy against common uropathogens:

  • It achieves high concentrations in the urine where it maintains full activity against organisms commonly responsible for UTIs 3
  • Clinical studies have shown cephalexin to be effective in treating bacteriuria during pregnancy, with cure rates of approximately 74% at 2 weeks and 60% at 6 weeks 4

Dosing Recommendations

For treating UTIs during pregnancy:

  • Standard dosing is typically 250-500 mg orally three to four times daily for 7 days
  • Dosage adjustments may be needed for patients with impaired renal function 1

Important Considerations

When using cephalexin during pregnancy:

  • Urine cultures should be repeated 7 days following therapy to assess cure or failure 5
  • Screening for and treating asymptomatic bacteriuria in pregnant women is recommended, as it can prevent complications 6
  • While cephalexin is excreted in human milk, it reaches maximum levels of 4 mcg/mL and disappears within 8 hours after administration 1

Potential Side Effects

Common side effects to monitor:

  • Gastrointestinal symptoms (diarrhea, nausea)
  • Allergic reactions (particularly in those with penicillin allergies)
  • Rarely, Clostridioides difficile-associated diarrhea 1

Prevention of Recurrent UTIs

For pregnant women with history of recurrent UTIs:

  • Postcoital prophylaxis with a single oral dose of cephalexin (250 mg) has been shown to be highly effective 2
  • This prophylactic approach significantly reduced UTI recurrence during pregnancy in women with prior history of recurrent infections 2

Cephalexin represents an excellent choice for UTI treatment during pregnancy due to its established safety profile, effectiveness against common uropathogens, and minimal risk to the developing fetus.

References

Research

Effective prophylaxis for recurrent urinary tract infections during pregnancy.

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

Research

Cephalexin in the therapy of infections of the urinary tract.

Postgraduate medical journal, 1983

Research

Recommended treatment for urinary tract infection in pregnancy.

The Annals of pharmacotherapy, 1994

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

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.