Is Trimethoprim/Sulfamethoxazole (Bactrim) effective against Escherichia coli (E. coli)?

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: May 29, 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.

From the Guidelines

Bactrim (trimethoprim-sulfamethoxazole) is effective against E. coli, but its use should be guided by local resistance rates and susceptibility testing, as recommended by the American College of Physicians in 2021 1.

Key Points to Consider

  • The American College of Physicians recommends short-course antibiotics with either nitrofurantoin for 5 days, trimethoprim–sulfamethoxazole (TMP–SMZ) for 3 days, or fosfomycin as a single dose for women with uncomplicated bacterial cystitis 1.
  • TMP–SMZ is an appropriate choice for therapy if local resistance rates of uropathogens causing acute uncomplicated cystitis do not exceed 20% or if the infecting strain is known to be susceptible, as stated in the 2010 update by the Infectious Diseases Society of America and the European Society for Microbiology and Infectious Diseases 1.
  • Typical adult dosing for uncomplicated urinary tract infections caused by E. coli is one double-strength tablet (160mg trimethoprim/800mg sulfamethoxazole) every 12 hours for 3-5 days.
  • Patients should be aware of potential side effects, including rash, nausea, and sun sensitivity, and those with sulfa allergies, certain blood disorders, or kidney disease should not take Bactrim.

Important Considerations

  • Resistance to Bactrim has been increasing in some regions, so susceptibility testing may be necessary in complicated infections.
  • The threshold of 20% as the resistance prevalence at which the agent is no longer recommended for empirical treatment of acute cystitis is based on expert opinion derived from clinical, in vitro, and mathematical modeling studies 1.
  • Bactrim may interact with certain medications like warfarin and methotrexate, and patients should take the full course of antibiotics even if symptoms improve and drink plenty of water during treatment.

From the FDA Drug Label

Urinary Tract Infections: For the treatment of urinary tract infections due to susceptible strains of the following organisms: Escherichia coli, Klebsiella species, Enterobacter species, Morganella morganii, Proteus mirabilis and Proteus vulgaris Traveler’s Diarrhea in Adults: For the treatment of traveler’s diarrhea due to susceptible strains of enterotoxigenic E. coli. Aerobic gram-negative bacteria Escherichia coli (including susceptible enterotoxigenic strains implicated in traveler’s diarrhea)

Bactrim is effective against E. coli. The drug label indicates that Bactrim can be used to treat urinary tract infections and traveler's diarrhea caused by susceptible strains of E. coli 2, 2.

  • Key points:
    • Bactrim is effective against E. coli in urinary tract infections
    • Bactrim is effective against enterotoxigenic E. coli in traveler's diarrhea
    • The effectiveness of Bactrim against E. coli depends on the susceptibility of the strain 2, 2

From the Research

Effectiveness of Bactrim against E. coli

  • Bactrim, also known as trimethoprim/sulfamethoxazole (TMP/SMX), is an antibiotic commonly used to treat urinary tract infections (UTIs) caused by E. coli.
  • According to a study published in 2019 3, TMP/SMX was found to be less effective against E. coli, with a lower sensitivity rate compared to other antibiotics such as fosfomycin, pivmecillinam, and nitrofurantoin.
  • Another study published in 2014 4 found that TMP/SMX had a resistance rate of 29.2% against E. coli, which is relatively high compared to other antibiotics.
  • A more recent study published in 2024 5 found that E. coli resistance rates to TMP/SMX were around 18%, which is still relatively high.
  • Other studies have also reported high resistance rates of E. coli to TMP/SMX, ranging from 33% to 42% 6, 7.
  • Overall, the evidence suggests that Bactrim may not be the most effective antibiotic against E. coli due to high resistance rates.

Alternative Treatment Options

  • Fosfomycin, pivmecillinam, and nitrofurantoin have been shown to be more effective against E. coli, with lower resistance rates 3, 4, 5.
  • These antibiotics may be considered as alternative treatment options for UTIs caused by E. coli.
  • However, it is essential to note that antibiotic resistance patterns can vary depending on the region and population, and local resistance data should be consulted to guide treatment decisions.

Related Questions

Is amoxicillin (amoxicillin) effective against Escherichia coli (E. coli)?
Is treatment necessary for asymptomatic Escherichia coli (E. coli) bacteriuria?
Is Amoxicillin (amoxicillin) effective against Escherichia coli (E. coli)?
Is Macrobid (Nitrofurantoin) appropriate for a patient with a urine culture result showing Escherichia coli?
What is the significance of Escherichia coli (E. coli) in a culture with a colony count exceeding 100,000?
What is the diagnosis and treatment for a cystic lesion in the submandibular (submaxillary) gland?
What is the appropriate laboratory workup for a 49-year-old individual presenting with alopecia (hair loss)?
What is the clinical significance of a urinalysis showing abnormal color, normal clarity, normal specific gravity, normal pH, negative leukocytes, negative nitrite, negative protein, normal glucose, negative ketones, normal urobilinogen, negative blood, negative bilirubin, mild hematuria (1 Red Blood Cell (RBC) per High Power Field (HPF)), leukocyturia (13 White Blood Cells (WBC) per HPF), and rare renal epithelial cells?
What are the implications of a reactive Epstein-Barr Virus (EBV) infection?
What is the appropriate laboratory workup for a 50-year-old female undergoing a wellness exam with a strong family history of cardiovascular disease (CVD) and Diabetes Mellitus (DM), who is also experiencing menopause, insomnia (difficulty sleeping), and alopecia (hair loss)?
What is the appropriate management for a cat bite in a patient with a history of anxiety, asthma, Crohn's disease, and allergies?

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.