What is the recommended treatment for a urinary tract infection (UTI) during the second trimester of pregnancy?

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: October 23, 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 UTI During Second Trimester of Pregnancy

The recommended first-line treatment for urinary tract infections during the second trimester of pregnancy is a 7-14 day course of a cephalosporin such as cephalexin, cefpodoxime, or cefuroxime. 1

Antibiotic Selection

  • Cephalosporins (cephalexin, cefpodoxime, cefuroxime) are appropriate first-line options for treating UTIs during pregnancy as recommended by the American Academy of Pediatrics 1
  • Nitrofurantoin is an acceptable option for uncomplicated lower UTIs, but should NOT be used for suspected pyelonephritis as it does not achieve therapeutic concentrations in the bloodstream 1
  • Fosfomycin can be considered as an alternative treatment option for uncomplicated UTIs during pregnancy 1, 2
  • Trimethoprim-sulfamethoxazole and fluoroquinolones should be avoided throughout pregnancy due to potential adverse effects on the fetus 1, 2

Treatment Duration and Approach

  • The total course of therapy should be 7 to 14 days to ensure complete eradication of the infection 1
  • A urine culture should be obtained before initiating treatment to guide antibiotic selection 1, 3
  • Follow-up urine cultures should be performed 7 days after completing therapy to confirm cure 4
  • For severe infections or pyelonephritis, initial parenteral therapy is required, with transition to oral therapy after clinical improvement 1, 3

Special Considerations

  • Group B Streptococcus (GBS) bacteriuria in any concentration during pregnancy requires treatment at the time of diagnosis AND intrapartum GBS prophylaxis during labor 1
  • Untreated asymptomatic bacteriuria can progress to acute pyelonephritis in up to 40% of pregnant women, with potential negative effects on both mother and fetus 5
  • Bacteriuria in pregnancy is associated with higher rates of low birth weight, preterm delivery, and increased neonatal mortality 5, 3
  • Escherichia coli is the most common pathogen isolated in UTIs during pregnancy 6

Management Algorithm

  1. Obtain urine culture before starting antibiotics 1, 3
  2. For uncomplicated UTI:
    • Start cephalexin 500 mg four times daily for 7-14 days 1
    • Alternative: nitrofurantoin 100 mg twice daily for 7 days (not for pyelonephritis) 1, 3
  3. For pyelonephritis:
    • Hospitalize and start parenteral therapy with ceftriaxone or ampicillin plus gentamicin 1, 6
    • Transition to oral therapy after clinical improvement 1
    • Complete a total of 14 days of therapy 1
  4. Perform follow-up urine culture 7 days after completing treatment 4

Common Pitfalls and Caveats

  • Delaying treatment in pregnant women with symptomatic UTI increases the risk of pyelonephritis and adverse pregnancy outcomes 1
  • Ampicillin should not be used as monotherapy due to high resistance rates in Escherichia coli 6
  • Lower genital tract infections associated with pyelonephritis may be responsible for antibiotic treatment failure and should be evaluated 6
  • Recurrent UTIs during pregnancy may require prophylactic antibiotics, though evidence for specific regimens is limited 3

References

Guideline

Treatment of UTI During Pregnancy

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

Urinary tract infections in pregnancy.

Clinical microbiology and infection : the official publication of the European Society of Clinical Microbiology and Infectious Diseases, 2023

Research

Recommended treatment for urinary tract infection in pregnancy.

The Annals of pharmacotherapy, 1994

Research

Urinary tract infections in pregnancy.

Current opinion in urology, 2001

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.