Can Keflex (cefalexin) be used to treat a Group B Streptococcus (GBS) urinary tract infection (UTI)?

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: January 6, 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.

Can Keflex (Cephalexin) Be Used for GBS UTI?

No, cephalexin (Keflex) is not recommended as first-line therapy for Group B Streptococcus urinary tract infections, and penicillin G or ampicillin should be used instead, particularly in pregnant women where GBS UTI has critical implications for neonatal outcomes. 1, 2

Why Cephalexin Is Not the Preferred Choice

First-Line Treatment for GBS UTI

  • Penicillin G remains the gold standard for GBS infections due to its narrow spectrum of activity, universal GBS susceptibility worldwide (with no documented resistance), and proven efficacy in preventing early-onset neonatal disease. 2

  • Ampicillin is an acceptable alternative to penicillin G, though it has broader spectrum activity which may increase selection pressure for resistant organisms. 1, 2

  • The American College of Obstetricians and Gynecologists specifically recommends penicillin G (5 million units IV initially, then 2.5 million units IV every 4 hours) as the preferred agent for inpatient treatment of GBS infections. 1

Role of Cephalosporins in GBS Treatment

  • Cefazolin (a first-generation cephalosporin like cephalexin) is only recommended for penicillin-allergic patients who are not at high risk for anaphylaxis, not as first-line therapy. 1, 3

  • The Centers for Disease Control and Prevention recommends cefazolin 2g IV initial dose, then 1g IV every 8 hours for penicillin-allergic pregnant patients without high-risk allergy features. 3, 2

  • Cross-reactivity between penicillins and cephalosporins occurs in approximately 10% of patients with penicillin allergy, making this a second-line choice only when necessary. 2

Critical Context for Pregnant Women

Why GBS UTI Treatment Matters

  • GBS bacteriuria at any concentration during pregnancy is a marker for heavy genital tract colonization and significantly increases the risk of early-onset neonatal GBS disease. 1, 2

  • Women with GBS bacteriuria require both immediate treatment of the acute UTI AND mandatory intrapartum IV antibiotic prophylaxis during labor, regardless of whether the UTI was treated earlier in pregnancy. 1, 2

  • Intrapartum prophylaxis administered ≥4 hours before delivery is 78% effective in preventing early-onset neonatal GBS disease. 1, 2

Treatment Algorithm for Pregnant Women with GBS UTI

  1. Treat the acute UTI immediately with penicillin-based therapy according to susceptibility testing. 1

  2. Document the GBS bacteriuria in the prenatal record to ensure intrapartum prophylaxis is administered during labor. 1, 2

  3. Administer intrapartum IV prophylaxis during labor with penicillin G 5 million units IV initially, then 2.5-3.0 million units IV every 4 hours until delivery. 1, 2

  4. Do NOT assume treating the UTI eliminates the need for intrapartum prophylaxis—this is a common and dangerous error, as oral antibiotics do not eliminate GBS colonization from the genitourinary tract. 1

When Cephalexin Might Be Considered

For Non-Pregnant Patients with GBS UTI

  • While cephalexin has documented efficacy for general urinary tract infections with excellent bioavailability and urinary penetration 4, 5, there is no specific guideline support for using it as first-line therapy for GBS UTI even in non-pregnant patients.

  • If cephalexin must be used (e.g., due to drug availability or allergy constraints), ensure the GBS isolate is tested for susceptibility, though this is not standard practice since penicillin remains universally effective. 2

Dosing Considerations If Used

  • Recent evidence suggests cephalexin 500mg twice daily is as effective as four-times-daily dosing for uncomplicated UTI, which may improve adherence. 5

  • However, this dosing data is for general UTI pathogens (primarily E. coli), not specifically for GBS. 5

Common Pitfalls to Avoid

  • Never use oral antibiotics (including cephalexin) to treat GBS colonization outside of active infection—this is ineffective in eliminating carriage and promotes antibiotic resistance. 2

  • Do not skip intrapartum prophylaxis in pregnant women who had GBS bacteriuria treated earlier in pregnancy—recolonization after oral antibiotics is typical. 1

  • Avoid assuming all cephalosporins are equivalent—only first-generation cephalosporins like cefazolin should be considered, as resistance to cefoxitin has been reported among GBS isolates. 1

  • Ensure susceptibility testing is performed when using alternatives to penicillin, particularly clindamycin where resistance ranges from 3-15% in GBS isolates. 1

References

Guideline

Treatment of Group B Streptococcal UTI in Pregnant Women

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

Group B Streptococcus Treatment Guidelines

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Treatment for Group B Strep Urinary Tract Infection in Penicillin-Allergic Patients

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Cephalexin in the therapy of infections of the urinary tract.

Postgraduate medical journal, 1983

Related Questions

What is the recommended duration of cephalexin treatment for group B streptococcus (GBS) urinary tract infections (UTIs)?
Can Keflex (cephalexin) be used for urinary tract infection (UTI) prophylaxis?
Is Keflex (cephalexin) effective in treating Citrobacter koseri urinary tract infections (UTIs)?
What is the appropriate dosing of cephalexin (Cephalexin) for Escherichia coli (E. coli) bacteremia complicated by a urinary tract infection (UTI)?
What is the recommended dose of Cephalexin (Cefalexin) for a patient with impaired renal function, specifically a Creatinine Clearance (CrCl) of 32, for the treatment of a Urinary Tract Infection (UTI)?
Can I give Coreg (carvedilol) and propranolol to a patient, considering their medical history and potential interactions?
Can a mildly elevated Alanine Transaminase (ALT) level be considered normal in a 14-year-old adolescent with no significant medical history?
What defence mechanisms are commonly used by individuals with paranoid personality disorder and how are they addressed in therapy?
Is it okay for a patient with a history of percutaneous coronary intervention (PCI) and stent placement, likely with coronary artery disease and possibly comorbid conditions such as hypertension or diabetes, to take ibuprofen (nonsteroidal anti-inflammatory drug) as needed for pain?
What is the preferred treatment between Amoxicillin-Clavulanate (Augmentin) and Cefpodoxime (Vantin) for a patient with community-acquired pneumonia?
What is the recommended vaccination schedule for Prevnar 13 (pneumococcal conjugate vaccine) in adults and children with certain medical conditions?

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.