Can Keflex (cephalexin) treat a Klebsiella urinary tract infection?

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: February 20, 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 Treat Klebsiella UTI?

Cephalexin (Keflex) is FDA-approved and can effectively treat Klebsiella pneumoniae urinary tract infections when the isolate is susceptible to cefazolin, but it should not be used empirically without culture confirmation because first-generation cephalosporins are generally ineffective against many Enterobacteriaceae including Enterobacter species and have limited activity against ESBL-producing strains. 1, 2

FDA-Approved Indication

  • The FDA label explicitly lists Klebsiella pneumoniae as a susceptible organism for genitourinary tract infections treated with cephalexin, including acute prostatitis. 1
  • Culture and susceptibility testing must be initiated prior to and during therapy to confirm the isolate's susceptibility. 1

When Cephalexin Is Appropriate

  • Use cephalexin only after urine culture confirms susceptibility to cefazolin (used as a surrogate marker for first-generation cephalosporin susceptibility), as empiric use risks treatment failure with resistant strains. 3, 4
  • For uncomplicated UTIs caused by cefazolin-susceptible Klebsiella, cephalexin 500 mg twice daily for 5-7 days achieves clinical success rates of approximately 81-96% in recent studies. 5, 6, 7
  • Even in patients with impaired renal function, cephalexin concentrations in urine remain adequate for treating most UTIs caused by Klebsiella and other susceptible organisms. 8

Critical Limitations and When to Avoid

  • First- and second-generation cephalosporins are generally not effective against Enterobacter infections, and resistance is increasingly common among Enterobacteriaceae, particularly ESBL-producing strains. 2
  • Do not use cephalexin for complicated UTIs requiring broader coverage (e.g., pyelonephritis, sepsis, immunocompromised patients, or healthcare-associated infections), as these require agents like ceftriaxone, fluoroquinolones, or carbapenems depending on severity and resistance patterns. 9, 4
  • Avoid empiric cephalexin when local resistance to first-generation cephalosporins exceeds 20% or when the patient has received a beta-lactam within the preceding 3 months. 3
  • ESBL-producing Klebsiella pneumoniae is resistant to cephalexin and requires alternative agents such as carbapenems, newer beta-lactam/beta-lactamase inhibitor combinations, or fluoroquinolones based on susceptibility. 10, 3

Dosing Recommendations

  • Standard dosing: Cephalexin 500 mg orally twice daily for 5-7 days is as effective as four-times-daily dosing and improves adherence. 5, 6, 7
  • Complicated UTIs: If cephalexin is used after susceptibility confirmation in complicated cases, extend treatment to 7-14 days (14 days for males when prostatitis cannot be excluded). 4

Comparative Effectiveness

  • Cephalexin is inferior to fluoroquinolones and trimethoprim-sulfamethoxazole for complicated UTIs, with oral beta-lactams showing 15-30% higher failure rates. 9, 4
  • The 2011 IDSA guidelines recommend non-beta-lactam antibiotics (nitrofurantoin, trimethoprim-sulfamethoxazole, fosfomycin) as first-line for uncomplicated UTIs, reserving beta-lactams as alternatives. 9, 5

Common Pitfalls

  • Do not assume all Klebsiella isolates are susceptible—resistance patterns vary widely by geographic region and healthcare setting, making culture-guided therapy essential. 10, 3
  • Do not use cephalexin for upper tract infections (pyelonephritis) without initial parenteral therapy, as oral cephalosporins have insufficient tissue penetration and higher failure rates. 9, 4
  • Avoid treating asymptomatic bacteriuria with cephalexin or any antibiotic, as this promotes resistance without clinical benefit. 3, 4

References

Guideline

Cephalexin for Staphylococcus aureus Urinary Tract Infections

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Complicated Urinary Tract Infections Management

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Related Questions

What is the appropriate cephalexin dosing regimen for a 70-year-old female with a solitary kidney who has a urinary tract infection?
What is the appropriate cephalexin (Keflex) regimen for an uncomplicated urinary tract infection in a healthy adult, including dosing, adjustments for renal impairment, pregnancy, allergies, and alternative options?
What bacteria does Cephalexin (Cefalexin) cover in Urinary Tract Infections (UTIs)?
What is the recommended cephalexin dosing for an adult male with an uncomplicated urinary tract infection, including adjustments for impaired renal function and alternatives for cephalexin allergy?
What is the recommended duration of Keflex (cephalexin) treatment for an uncomplicated urinary tract infection (UTI)?
How can I differentiate between human papillomavirus (HPV) warts and molluscum contagiosum lesions and what are the appropriate treatment options for each?
How should psoriasis of the external auditory canal be treated, taking into account whether the tympanic membrane is intact or perforated?
Can octreotide be safely administered together with pantoprazole (Protonix), and are there any drug‑drug interactions or special dosing considerations?
Which ICD‑10‑CM code should be used for a routine skin examination?
Is magnesium oxide contraindicated or harmful in patients with chronic kidney disease, particularly those with eGFR below 30 mL/min?
What intravenous magnesium sulfate dose and infusion schedule should be used in an adult with aluminum‑phosphide (Celphos) poisoning who develops cardiac instability or refractory hypotension, and what are the pediatric dosing recommendations?

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.