Can Bactrim (trimethoprim/sulfamethoxazole) increase the risk of Clostridioides difficile (C. diff) infection?

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 29, 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 Increase the Risk of C. difficile Infection?

Yes, Bactrim (trimethoprim-sulfamethoxazole) significantly increases the risk of C. difficile infection and should be considered a high-risk antibiotic for this complication.

Evidence for Increased CDI Risk

The FDA drug label explicitly warns that "Clostridium difficile associated diarrhea (CDAD) has been reported with use of nearly all antibacterial agents, including sulfamethoxazole and trimethoprim oral suspension, and may range in severity from mild diarrhea to fatal colitis" 1. This is not a theoretical concern but a documented clinical reality.

Multiple studies demonstrate trimethoprim-sulfamethoxazole as an independent risk factor for C. difficile colonization and infection:

  • In long-term care facilities, TMP/SMX use was the strongest independent predictor of C. difficile colonization with a relative risk of 8.45 (P = 0.007), higher than cephalosporins (RR 4.66) or antibiotics in general (RR 3.31) 2
  • Among HIV-infected patients, trimethoprim-sulfamethoxazole was significantly associated with CDAD (P = 0.02), along with third-generation cephalosporins and clindamycin 3
  • The antibiotic disrupts intestinal microbiota, with the highest CDI risk (7-10 fold increase) occurring during therapy and in the first month after exposure, remaining elevated for up to 3 months 4, 5

Risk Timeline and Mechanism

The risk begins immediately upon exposure and does not require prolonged treatment:

  • Even single-dose antibiotic prophylaxis increases CDI risk 5
  • Risk peaks during therapy and the first month post-exposure, but remains elevated for 3 months after cessation 4, 5
  • Treatment with antibacterial agents alters normal colonic flora, leading to C. difficile overgrowth and toxin production 1

High-Risk Patient Populations

Certain patients face substantially elevated CDI risk when prescribed Bactrim:

  • Advanced age is one of the most critical risk factors 4, 5
  • Recent or prolonged hospitalization increases exposure risk 4, 2
  • Immunosuppression (HIV/AIDS, chemotherapy, immunocompromising conditions) significantly elevates risk 4, 3
  • Concomitant proton pump inhibitor use further increases CDI risk (OR 1.74-1.96) 6, 4, 5
  • Multiple antibiotic exposures substantially compound the risk 4, 2

Clinical Recognition and Management

Monitor for CDI symptoms during and after Bactrim therapy:

  • Any new-onset diarrhea (≥3 unformed stools in 24 hours) warrants suspicion 5
  • Associated symptoms include abdominal pain, cramping, fever >38.5°C, and leukocytosis (WBC >15 × 10⁹/L) 5
  • CDAD can occur over 2 months after antibiotic cessation, requiring careful history-taking 1

If CDAD is suspected or confirmed:

  • Discontinue Bactrim immediately unless treating C. difficile itself 1
  • Test stool for C. difficile toxins in any patient with unexplained diarrhea who received antibiotics 5
  • Institute appropriate fluid/electrolyte management, protein supplementation, and C. difficile-directed therapy 1
  • Failure to stop the precipitating antibiotic significantly increases recurrence risk 7

Critical Pitfall to Avoid

Do not continue Bactrim if CDI develops. The FDA label explicitly states: "If CDAD is suspected or confirmed, ongoing antibiotic use not directed against C. difficile may need to be discontinued" 1. Continuing the offending antibiotic is significantly associated with increased CDI recurrence 7.

Prevention Strategies

Minimize CDI risk when Bactrim is necessary:

  • Limit treatment duration whenever possible, as both longer exposure and multiple antibiotic courses increase risk 4
  • Ensure adequate fluid intake to prevent crystalluria (which is a separate Bactrim concern) 1
  • Avoid concomitant PPI use unless absolutely indicated 4
  • Monitor patients for diarrhea during treatment and up to 3 months post-discontinuation 4

References

Guideline

Risk of C. difficile Infection in Patients on Chronic Trimethoprim

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

C. difficile Infection After Broad-Spectrum Antibiotics

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

Cefdinir and C. difficile Colitis Risk

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Related Questions

What is the best course of action for a patient experiencing a sunburn-like rash, conjunctival injection, nausea, tachycardia, and hypotension after taking a single dose of Bactrim (trimethoprim/sulfamethoxazole)?
Can Bactrim DS (trimethoprim/sulfamethoxazole) cause lower leg redness?
What is the management for a skin reaction to Bactrim (trimethoprim/sulfamethoxazole)?
Can a rash caused by Bactrim (trimethoprim/sulfamethoxazole) continue to spread after it's been stopped?
Can a skin reaction to trimethoprim/sulfamethoxazole (Bactrim) or a dress (contact dermatitis) cause hypertension?
How do hormonal fluctuations affect patients with Mast Cell Activation Syndrome (MCAS), particularly women of reproductive age, and what treatment options are available to manage symptoms?
A patient with a history of depression, taking a daily multivitamin, presents with a burning sensation, increased tearing, and swelling in the right eye, without any change in vision or recall of ocular trauma, and examination reveals a pink, irritated eye with multiple eyelashes missing and a clear conjunctiva, what is the likely diagnosis and treatment?
What is the best antibiotic for a patient with a kidney stone and suspected infection?
What is the treatment for a female patient of reproductive age with bacterial vaginosis (BV) caused by BVAB (Bacterial Vaginosis-Associated Bacteria) 2,3, Gardnerella vaginalis, Ureaplasma urealyticum, and a fungal infection caused by Candida species, including Candida albicans, parapsilosis, and tropicalis?
Is a vaccine being developed for Nipah virus?
What is the recommended treatment for a patient with sinusitis and a known allergy to penicillin (PCN)?

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.