Can Keflex (cephalexin) be used to treat urinary tract infections (UTIs)?

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 27, 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.

Treatment of UTIs with Cephalexin (Keflex)

Cephalexin is an appropriate but second-line option for treating uncomplicated urinary tract infections when first-line agents cannot be used. 1

Efficacy and Recommendations

Cephalexin is FDA-approved for genitourinary tract infections caused by common UTI pathogens including Escherichia coli, Proteus mirabilis, and Klebsiella pneumoniae 2. However, according to the Infectious Diseases Society of America (IDSA) guidelines, β-lactams such as cephalexin are considered alternative agents rather than first-line treatments for UTIs due to:

  • Generally inferior efficacy compared to other UTI antimicrobials 1
  • More adverse effects than first-line agents 1
  • Should be used with caution for uncomplicated cystitis 1

First-line treatments that are preferred over cephalexin:

  • Fluoroquinolones (3-day course) - though these should be reserved for important uses other than acute cystitis due to concerns about collateral damage 1, 3
  • Nitrofurantoin (5-day course) 3
  • Fosfomycin (single dose) 3

Recent Evidence Supporting Cephalexin Use

Despite being considered a second-line agent, recent research has shown promising results for cephalexin in treating UTIs:

  • A 2023 study demonstrated 81.1% clinical success rate with short courses of twice-daily cephalexin for empiric treatment of uncomplicated UTIs 4
  • Another 2023 study found no difference in treatment failure between twice-daily (12.7%) and four-times-daily (17%) cephalexin dosing for uncomplicated UTIs 5
  • Twice-daily dosing may improve patient adherence compared to more frequent dosing regimens 5

Dosing Recommendations

If using cephalexin for UTI treatment:

  • 500 mg twice daily for 5-7 days is as effective as four-times-daily dosing 5, 6
  • Some older studies support 1g twice daily for 10 days in chronic UTIs 7

Important Considerations and Caveats

  1. Culture and susceptibility testing: The FDA label emphasizes that culture and susceptibility tests should be initiated prior to and during therapy 2

  2. Resistance concerns: Local resistance patterns should guide empiric therapy choices 2

  3. Patient selection: Cephalexin may be particularly useful in scenarios where:

    • First-line agents are contraindicated
    • Patient has known allergies to preferred agents
    • Local resistance patterns favor cephalexin use
  4. Pitfalls to avoid:

    • Using cephalexin empirically without considering local resistance patterns
    • Failing to adjust therapy based on culture results
    • Using for complicated UTIs without appropriate follow-up

Conclusion

While cephalexin is not a first-line agent for UTIs according to current guidelines, it remains a viable alternative when first-line options cannot be used. Recent evidence suggests that twice-daily dosing provides similar efficacy to more frequent dosing regimens, potentially improving patient adherence.

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.