What medication is safe to treat a urinary tract infection (UTI) in a pregnant woman?

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: January 26, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Safe Antibiotics for UTI Treatment in Pregnancy

Nitrofurantoin (50-100 mg four times daily for 5-7 days) and cephalosporins (such as cephalexin 500 mg four times daily for 7-14 days) are the safest first-line antibiotics for treating UTIs during pregnancy, with fosfomycin (3g single dose) as an acceptable alternative. 1

First-Line Treatment Options by Trimester

First Trimester

  • Nitrofurantoin is the preferred first-line agent for lower UTI treatment during the first trimester 1
  • Fosfomycin trometamol (3g single dose) serves as an acceptable alternative to nitrofurantoin 1
  • Cephalosporins (cephalexin, cefpodoxime, cefuroxime) are appropriate options throughout pregnancy with excellent safety profiles 1
  • Avoid trimethoprim-sulfamethoxazole in the first trimester due to potential teratogenic effects including neural tube defects 1, 2

Second and Third Trimesters

  • Cephalexin 500 mg four times daily for 7-14 days is the recommended first-line alternative for third trimester UTIs, particularly when nitrofurantoin should be avoided near term 1
  • Amoxicillin-clavulanate (20-40 mg/kg per day in 3 doses) is appropriate if the pathogen is susceptible 1
  • Trimethoprim-sulfamethoxazole is contraindicated in the last trimester due to risk of kernicterus 1

Critical Antibiotics to Avoid

  • Fluoroquinolones (ciprofloxacin, levofloxacin) must be avoided throughout pregnancy due to potential adverse effects on fetal cartilage development and arthropathy 1, 3
  • Nitrofurantoin should not be used for pyelonephritis as it does not achieve therapeutic blood concentrations 1
  • Nitrofurantoin should be avoided near term (after 38 weeks) due to theoretical risk of hemolytic anemia in the newborn 1

Treatment Duration and Monitoring

  • Standard treatment duration is 7-14 days for symptomatic UTI to ensure complete eradication 1
  • Obtain urine culture before initiating treatment to guide antibiotic selection, as screening for pyuria alone has only 50% sensitivity 1
  • Perform follow-up urine culture 1-2 weeks after completing treatment to confirm cure 1
  • Screen for asymptomatic bacteriuria at 12-16 weeks gestation with urine culture 1

Treatment of Pyelonephritis in Pregnancy

  • Cephalosporins and fluoroquinolones are recommended for oral empiric treatment of uncomplicated pyelonephritis in non-pregnant patients, but fluoroquinolones must be avoided in pregnancy 4
  • Initial parenteral therapy with ceftriaxone (1-2g daily) or cefepime (1-2g twice daily) is appropriate for hospitalized pregnant women with pyelonephritis 4
  • Transition to oral cephalosporin therapy after clinical improvement for completion of 7-14 day course 1

Asymptomatic Bacteriuria Management

  • All pregnant women with asymptomatic bacteriuria must be treated as untreated bacteriuria increases pyelonephritis risk 20-30 fold (from 1-4% with treatment to 20-35% without) 1
  • Treatment reduces premature delivery and low birth weight infants 1
  • Do not perform repeated surveillance testing or treat asymptomatic bacteriuria multiple times after the initial screen-and-treat approach, as this fosters antimicrobial resistance 1

Special Considerations

  • Group B Streptococcus (GBS) bacteriuria in any concentration requires treatment at diagnosis plus intrapartum prophylaxis during labor 1
  • For recurrent UTIs, consider prophylactic cephalexin for the remainder of pregnancy 1
  • Postcoital prophylaxis with cephalexin 250 mg or nitrofurantoin 50 mg is highly effective for pregnant women with history of recurrent UTIs 5

Common Pitfalls to Avoid

  • Do not classify pregnant women with UTIs as "complicated" unless they have structural/functional urinary tract abnormalities or immunosuppression, as this leads to unnecessary broad-spectrum antibiotic use 1
  • Do not rely on pyuria alone for diagnosis, as it has only 50% sensitivity for bacteriuria 1
  • Do not use single-dose or 3-day regimens, as insufficient evidence supports shorter courses compared to 7-14 day regimens 1
  • Antibiotic choice must consider local resistance patterns, as ampicillin and amoxicillin are associated with high E. coli resistance rates 6

References

Guideline

Treatment of UTI During Pregnancy

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Effective prophylaxis for recurrent urinary tract infections during pregnancy.

Clinical infectious diseases : an official publication of the Infectious Diseases Society of America, 1992

Research

Which antibiotics are appropriate for treating bacteriuria in pregnancy?

The Journal of antimicrobial chemotherapy, 2000

Related Questions

What is the recommended treatment for urinary tract infections (UTIs) during pregnancy using Macrobid (nitrofurantoin)?
Is Nitrofurantoin (antibiotic) safe for a pregnant woman with a urinary tract infection (UTI)?
What is the preferred antibiotic for treating a urinary tract infection (UTI) during the second trimester of pregnancy, ciprofloxacin (Cipro) or nitrofurantoin?
What is the recommended treatment and dosage for uncomplicated urinary tract infections using Macrobid (nitrofurantoin)?
What are safe antibiotics for urinary tract infections (UTIs) during pregnancy?
What is the best treatment approach for a patient in cardiogenic shock with atrial fibrillation (AFib) and rapid ventricular response (RVR)?
What is the ICD-10 (International Classification of Diseases, 10th Revision) code for an electrocardiogram (EKG) for a patient with no specific symptoms, who is considering surgery and wants to check for possible cardiac issues?
What to do for a bipolar patient who has stopped taking Abilify (aripiprazole) and is reluctant to take medications?
What is the best course of action for a patient with suspected urosepsis, recent stent placement, leukocytosis, mild anemia, and mildly elevated liver enzymes, who is currently on an antibiotic regimen likely including cefepime?
What is the most likely diagnosis for an elderly patient with a history of dementia presenting with worsening confusion?
What is the recommended management for an adult patient with a history of cardiovascular disease who is now back in sinus rhythm after treatment for cardiogenic shock with atrial fibrillation and rapid ventricular response?

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.