Keflex (Cephalexin) for Urinary Tract Infections
Cephalexin is an acceptable alternative agent for treating uncomplicated urinary tract infections when first-line options (nitrofurantoin, trimethoprim-sulfamethoxazole, or fosfomycin) cannot be used, but it should be used with caution due to generally inferior efficacy compared to these preferred agents. 1
Guideline Position on Cephalexin
β-lactam agents, including cephalexin, are classified as alternative rather than first-line therapy for uncomplicated cystitis. 1 The IDSA/ESMID guidelines specifically state that "other β-lactams, such as cephalexin, are less well studied but may also be appropriate in certain settings" and that "β-lactams generally have inferior efficacy and more adverse effects, compared with other UTI antimicrobials." 1
Why Cephalexin is Not First-Line:
- Less robust clinical trial data compared to nitrofurantoin, trimethoprim-sulfamethoxazole, and fluoroquinolones 1
- Generally inferior efficacy when compared head-to-head with traditional first-line agents 1
- Higher rates of adverse effects relative to other UTI antimicrobials 1
When Cephalexin IS Appropriate
Use cephalexin when:
- First-line agents (nitrofurantoin, trimethoprim-sulfamethoxazole, fosfomycin) cannot be used due to allergy, intolerance, or resistance 1
- Local resistance patterns favor cephalosporins over other alternatives 1
- You need a fluoroquinolone-sparing option in the era of increasing antimicrobial resistance 2
- The organism is confirmed susceptible to cefazolin (which serves as a surrogate for cephalexin susceptibility) 2
Optimal Dosing Strategy
For uncomplicated UTIs, cephalexin 500 mg twice daily for 5-7 days is as effective as the traditional four-times-daily dosing and improves adherence. 3, 4
Dosing Evidence:
- Twice-daily dosing (500 mg BID) showed no difference in treatment failure compared to four-times-daily dosing (12.7% vs 17%, p=0.343) 3
- Clinical success rates of 81.1% were achieved with short courses of twice-daily cephalexin 4
- Historical data supports 1 g twice daily for 10 days as equally effective as four-times-daily administration 5
- Treatment duration of 3-7 days is recommended by guidelines 1
Pharmacological Advantages
Cephalexin has favorable pharmacokinetic properties for UTI treatment:
- Rapid oral absorption with peak serum levels at 1 hour (500 mg dose achieves ~18 mcg/mL) 6
- Excellent urinary penetration with over 90% excreted unchanged in urine within 8 hours 6, 7
- High urinary concentrations (approximately 2200 mcg/mL following 500 mg dose) 6
- Acid stable and can be given without regard to meals 6
Spectrum of Activity
Cephalexin is active against the most common uropathogens:
- Escherichia coli (the most common cause, isolated in 85.4% of cases) 6, 3
- Klebsiella pneumoniae 6
- Proteus mirabilis 6
- Penicillinase-producing Staphylococcus aureus 6
Critical Limitations:
- NOT active against: Enterococci, Pseudomonas, Enterobacter, methicillin-resistant staphylococci 6
- Should not be used if ESBL-producing organisms are suspected 2
Clinical Outcomes Data
Recent real-world evidence supports cephalexin's effectiveness:
- Clinical success in 81.1% of patients treated empirically 4
- Only 10.6% required antibiotic change based on culture results 4
- 6.8% returned with nonresolving/worsening symptoms 4
- Comparable efficacy to traditional first-line agents for non-ESBL Enterobacteriaceae 2
Practical Algorithm for Use
Step 1: Confirm uncomplicated UTI (no fever, flank pain, structural abnormalities, pregnancy, or immunosuppression)
Step 2: Assess if first-line agents are contraindicated:
- Nitrofurantoin: contraindicated if CrCl <30 mL/min or at term pregnancy 1
- Trimethoprim-sulfamethoxazole: contraindicated if local resistance >20% or sulfa allergy 1
- Fosfomycin: may have inferior efficacy, more expensive 1
Step 3: If first-line agents unsuitable, prescribe cephalexin 500 mg twice daily for 5-7 days 3, 4
Step 4: Obtain urine culture if symptoms persist beyond 48-72 hours or worsen 4
Important Caveats
Do NOT use cephalexin for:
- Pyelonephritis: Fluoroquinolones or ceftriaxone are preferred 1
- Complicated UTIs: Broader spectrum agents required 1
- Empiric treatment in areas with high ESBL prevalence 2
- When amoxicillin or ampicillin would be considered: These have unacceptably high resistance rates 1
The 2024 EAU guidelines list cephalosporins (cefadroxil) as alternatives for uncomplicated cystitis when local E. coli resistance is <20%, but emphasize that first-line agents remain nitrofurantoin, fosfomycin, and pivmecillinam. 1