What should I do if Keflex (Cephalexin) for a urinary tract infection (UTI) is causing diarrhea at 26 months pregnant?

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: November 14, 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.

Management of Keflex-Induced Diarrhea During Pregnancy with UTI

Continue the Keflex (cephalexin) for the full prescribed course while managing the diarrhea symptomatically, unless the diarrhea becomes severe, bloody, or is accompanied by fever and abdominal cramping—which would require immediate evaluation for Clostridioides difficile infection. 1

Understanding the Clinical Context

Cephalexin is an appropriate choice for UTI treatment during pregnancy, though it is considered a second-line agent with less well-studied efficacy compared to other options 2. The drug achieves high urinary concentrations and is essentially nontoxic at recommended doses 3. Diarrhea is a common problem caused by antibiotics which usually ends when the antibiotic is discontinued 1.

Immediate Assessment Required

Evaluate the severity and characteristics of the diarrhea:

  • Mild diarrhea (loose stools without systemic symptoms): This is a common, self-limited side effect that does not require antibiotic discontinuation 1
  • Severe diarrhea with warning signs: Watery and bloody stools, stomach cramps, fever, or symptoms occurring even weeks after antibiotic use require immediate physician contact as this may indicate C. difficile infection 1

Management Algorithm

For Mild Diarrhea (Most Common Scenario)

Continue cephalexin and implement supportive measures:

  • Maintain adequate hydration with water and electrolyte-containing fluids 2
  • Consider probiotics (though evidence is limited, they are generally safe in pregnancy)
  • Avoid antidiarrheal medications without physician consultation during pregnancy
  • Complete the full 7-14 day course as prescribed to prevent treatment failure and bacterial resistance 2

For Moderate to Severe Diarrhea

Contact the prescribing physician immediately for potential antibiotic switch:

Alternative pregnancy-safe options for UTI include:

  • Amoxicillin-clavulanate (20-40 mg/kg per day in 3 doses) 2
  • Cefpodoxime (10 mg/kg per day in 2 doses) 2
  • Nitrofurantoin for 5 days (though avoid if pyelonephritis is suspected, as it doesn't achieve adequate tissue concentrations) 2

Critical Safety Considerations

Do not discontinue antibiotics prematurely without physician guidance, as this increases the risk of:

  • Treatment failure and persistent infection 1
  • Development of antibiotic-resistant bacteria 1
  • Potential progression to pyelonephritis, which poses significant maternal and fetal risks

Seek immediate medical attention if:

  • Bloody or severe watery diarrhea develops 1
  • Fever, severe abdominal cramping, or signs of dehydration occur 1
  • UTI symptoms worsen or fail to improve within 48-72 hours 2

Duration Considerations

The total antibiotic course should be 7-14 days for UTI treatment 2. Recent evidence suggests shorter courses may be effective for uncomplicated cystitis, with clinical success rates of 81% for short courses of twice-daily cephalexin 4, though pregnancy-specific data for shortened courses are limited.

Common Pitfall to Avoid

Do not assume all diarrhea during antibiotic therapy is benign. While most cases represent simple antibiotic-associated diarrhea, C. difficile colitis can develop during or up to 2 months after antibiotic exposure and requires specific treatment 1. The distinction is critical, particularly during pregnancy when both maternal and fetal wellbeing are at stake.

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.