Can Bactrim (trimethoprim-sulfamethoxazole) cause diarrhea, particularly in elderly patients or those with a history of gastrointestinal issues?

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 18, 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.

Can Bactrim Cause Diarrhea?

Yes, Bactrim (trimethoprim-sulfamethoxazole) can definitely cause diarrhea, and this is explicitly warned about in the FDA drug label as a potentially serious adverse effect that may indicate Clostridioides difficile-associated diarrhea (CDAD). 1

Direct Evidence from FDA Drug Label

The FDA label for trimethoprim-sulfamethoxazole contains a specific warning about diarrhea 1:

  • CDAD has been reported with use of nearly all antibacterial agents, including sulfamethoxazole and trimethoprim, and may range in severity from mild diarrhea to fatal colitis 1
  • Treatment with antibacterial agents alters normal colonic flora, leading to C. difficile overgrowth 1
  • CDAD must be considered in all patients who present with diarrhea following antibiotic use 1
  • CDAD has been reported to occur over two months after administration of antibacterial agents 1

Clinical Evidence of Gastrointestinal Adverse Effects

Multiple sources confirm gastrointestinal disturbances as common adverse reactions to Bactrim:

  • Gastrointestinal upset and intolerance are among the most common adverse events associated with TMP-SMX 2, 3
  • Mild gastrointestinal distress is a frequently reported adverse reaction 4
  • Like other antibacterial agents, TMP-SMX is associated with gastrointestinal upset 3

Mechanism and Clinical Context

The diarrhea can occur through two distinct mechanisms:

1. Direct Drug Effect

  • Simple gastrointestinal intolerance causing mild diarrhea 2, 3
  • This typically resolves with drug discontinuation 3

2. Antibiotic-Associated Colitis (More Serious)

  • Alteration of normal colonic flora leading to C. difficile overgrowth 1
  • Can range from mild diarrhea to fatal colitis 1
  • May occur up to 2 months after stopping the antibiotic 1

Rare but Severe Gastrointestinal Reactions

In rare cases, more severe gastrointestinal reactions have been documented:

  • Eosinophilic gastroenteritis as an allergic reaction to TMP-SMX has been reported, presenting with vomiting, watery diarrhea, abdominal swelling, and weight loss 5
  • This severe reaction required glucocorticoid treatment and resolved after drug discontinuation 5

Clinical Management Recommendations

When diarrhea develops during or after Bactrim use:

  • If CDAD is suspected or confirmed, ongoing antibiotic use not directed against C. difficile should be discontinued 1
  • Appropriate fluid and electrolyte management should be instituted 1
  • Protein supplementation and antibiotic treatment of C. difficile should be considered as clinically indicated 1
  • Surgical evaluation may be necessary in severe cases 1

Important Context: Bactrim's Role in Treating vs. Causing Diarrhea

While Bactrim can cause diarrhea, it's worth noting that it has historically been used to treat certain types of infectious diarrhea 6:

  • Co-trimoxazole has been proven effective for traveler's diarrhea, though increasing resistance is compromising its use 6
  • It is listed as a second-line option for empirical treatment of secretory/invasive traveler's diarrhea (after quinolones) 6
  • For confirmed Salmonella infections, TMP-SMX is an alternative choice depending on in vitro susceptibility 6

However, the 2024 WHO guidelines note that sulfamethoxazole-trimethoprim should be avoided for cholera as it was less effective than doxycycline 6

Common Pitfalls to Avoid

  • Do not dismiss new-onset diarrhea during or after Bactrim therapy as simply "normal" antibiotic side effects - it could represent serious CDAD 1
  • Do not continue Bactrim if diarrhea develops without evaluating for C. difficile infection, especially if the diarrhea is severe, bloody, or accompanied by fever 1
  • Be aware that CDAD can develop up to 2 months after stopping the antibiotic 1

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.