What is the recommended cephalexin (Keflex) dosage for treating an uncomplicated urinary tract infection (UTI) in adults, and how should the dose be adjusted for children, renal impairment, or penicillin/cephalosporin allergy?

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: June 5, 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.

Cephalexin (Keflex) Dosing for UTI

For uncomplicated UTIs in adults, cephalexin 500 mg twice daily for 7 days is the recommended regimen, offering equivalent efficacy to the traditional four-times-daily dosing while improving adherence.

Adult Dosing

Uncomplicated Cystitis

  • Standard dose: 500 mg orally twice daily for 7 days 1, 2
  • Alternative: 500 mg four times daily for 7 days (traditional dosing) 1
  • Recent evidence demonstrates that twice-daily dosing achieves comparable treatment success rates (87.3% vs 83% for four-times-daily) with no difference in recurrence rates 2

Important caveat: The FDA label specifies 7-14 days for cystitis treatment 1, though contemporary evidence supports 7 days as adequate for uncomplicated cases. Cephalexin is considered a second-line agent for uncomplicated cystitis—nitrofurantoin remains the preferred first-line choice to preserve broader-spectrum agents 3.

Pyelonephritis (Uncomplicated)

  • Dose: 500 mg orally four times daily for 7 days 1
  • Consider higher doses (up to 1 g four times daily) for more severe infections 1
  • Cephalexin achieves adequate urinary concentrations even with moderate renal impairment, making it suitable for upper UTIs 4, 5

Critical consideration: Local resistance patterns must guide empiric therapy. Cephalexin should only be used when local E. coli resistance rates are acceptable (ideally <20% for empiric use) 6, 4.

Pediatric Dosing

Febrile UTI (Ages 2-24 months)

  • Dose: 50-100 mg/kg/day divided into 4 doses 7
  • Duration: 7-14 days 7
  • The higher end of dosing (75-100 mg/kg/day) may be needed for more severe infections 7

Uncomplicated Lower UTI (Children >1 year)

  • Dose: 25-50 mg/kg/day divided every 12 hours 7
  • Duration: 7 days minimum 8, 9
  • Recent pediatric data shows cephalexin covers 85.3% of lower UTI isolates and can be successfully used as narrow-spectrum therapy 8, 9

Pediatric pitfall: Avoid using cephalexin for febrile infants who appear toxic or cannot retain oral intake—these patients require parenteral therapy initially 7. Nitrofurantoin should NOT be used for febrile UTIs in children as it doesn't achieve adequate tissue concentrations for pyelonephritis 7.

Renal Impairment Adjustments

Cephalexin requires dose adjustment in renal dysfunction 1:

  • CrCl 30-50 mL/min: No adjustment typically needed for UTI treatment (drug concentrates in urine)
  • CrCl 10-30 mL/min: Consider 500 mg every 8-12 hours
  • CrCl <10 mL/min: 250-500 mg every 12-24 hours
  • Hemodialysis: Give dose after dialysis (58% removed during 6-hour session) 5

The drug achieves adequate urinary concentrations even in moderate renal impairment, making it particularly useful for UTI treatment in this population 5, 10.

Penicillin/Cephalosporin Allergy

For patients with true penicillin allergy:

  • Non-severe reactions: Cephalexin may be used cautiously (cross-reactivity ~1-3%)
  • Severe/immediate hypersensitivity: Avoid all beta-lactams 11, 12
    • Alternative: Trimethoprim-sulfamethoxazole (if local resistance <20%) 6
    • Alternative: Nitrofurantoin for uncomplicated cystitis only 6, 3
    • Alternative: Fluoroquinolones (reserve for complicated cases) 6, 13

Key Clinical Considerations

When to Use Cephalexin

  • Local E. coli susceptibility data supports its use (ideally >80% susceptible) 4, 8
  • Patient cannot tolerate first-line agents (nitrofurantoin, TMP-SMX)
  • Fluoroquinolone-sparing strategy desired 4
  • Pregnancy (cephalexin is pregnancy category B)

When NOT to Use Cephalexin

  • Suspected ESBL-producing organisms 4
  • Recent hospitalization or healthcare exposure (consider broader coverage)
  • Known colonization with resistant organisms
  • Severe sepsis/urosepsis requiring IV therapy initially 13

Monitoring

  • No routine monitoring needed for uncomplicated UTI treatment
  • Consider repeat culture only if symptoms persist after 48-72 hours 3
  • Monitor for C. difficile if diarrhea develops (though risk is low with cephalexin) 2

Drug Interactions

Metformin: Cephalexin increases metformin levels by 24-34% through reduced renal clearance. Monitor glucose closely and consider metformin dose reduction 1.

Probenecid: Inhibits renal excretion of cephalexin, increasing serum levels. Dose adjustment may be needed 1.

Practical Algorithm

  1. Confirm uncomplicated UTI (no fever, flank pain, or complicating factors)
  2. Check local antibiogram (cephalexin susceptibility >80% ideal)
  3. Verify no recent broad-spectrum antibiotic use (<3 months)
  4. Prescribe: 500 mg PO BID × 7 days (adults) or 25-50 mg/kg/day divided BID × 7 days (children)
  5. Counsel patient: Complete full course even if symptoms improve
  6. Follow up only if: Symptoms persist >48-72 hours or worsen

References

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.