Can Bactrim (trimethoprim/sulfamethoxazole) cause black stools?

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: September 10, 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.

Can Bactrim Cause Black Bowel Movements?

Yes, Bactrim (trimethoprim-sulfamethoxazole) can cause black stools, though this is not among its common side effects. Black stools while taking Bactrim should be evaluated to rule out gastrointestinal bleeding.

Mechanism and Considerations

Bactrim may cause black stools through several potential mechanisms:

  1. Direct gastrointestinal effects: Bactrim can cause gastrointestinal irritation that may lead to minor bleeding, resulting in black stools 1.

  2. Alteration of gut flora: As an antibiotic, Bactrim disrupts normal intestinal flora, which can occasionally lead to changes in stool color 1.

  3. Rare but serious adverse effects: In rare cases, Bactrim may cause more severe gastrointestinal reactions including colitis, which could potentially result in melena (black, tarry stools) 1.

Clinical Approach to Black Stools in Patients Taking Bactrim

When a patient on Bactrim reports black stools, follow this approach:

1. Assess for Warning Signs

  • Evaluate for hemodynamic instability: Check vital signs for tachycardia, hypotension
  • Look for other symptoms: Abdominal pain, fever, dizziness, fatigue
  • Determine stool characteristics: True melena (black, tarry, sticky, foul-smelling) versus simply dark stools

2. Rule Out Other Causes

  • Dietary factors: Bismuth subsalicylate (Pepto-Bismol), iron supplements, dark foods (licorice, blueberries)
  • Medications: Other medications the patient may be taking
  • Pre-existing conditions: History of peptic ulcer disease, varices, or other GI conditions

3. Management Decision Tree

For patients taking Bactrim with black stools:

  • If hemodynamically unstable OR true melena present:

    • Stop Bactrim immediately
    • Urgent medical evaluation including CBC, BUN/Cr ratio
    • Consider endoscopic evaluation
    • Switch to alternative antibiotic based on indication
  • If hemodynamically stable with dark (but not tarry) stools AND no other concerning symptoms:

    • Monitor closely
    • Consider stool guaiac test to check for occult blood
    • Continue Bactrim if needed, but with close follow-up
    • Consider alternative antibiotic if appropriate

Gastrointestinal Side Effects of Bactrim

Bactrim is known to cause several gastrointestinal side effects, though black stools are not among the most commonly reported:

  • Common GI effects: Nausea, vomiting, diarrhea, abdominal cramps 2, 3
  • Less common: Anorexia, stomatitis
  • Rare but serious: Pseudomembranous colitis caused by C. difficile 4

Special Populations

Immunocompromised Patients

Immunocompromised patients are at higher risk for severe adverse effects from Bactrim, including gastrointestinal complications that could potentially lead to bleeding 1.

Pregnant Women

Bactrim is generally not recommended during pregnancy, especially near term, due to potential risks including kernicterus in the newborn 1.

Breastfeeding Women

Bactrim is present in breast milk in low concentrations and is generally considered acceptable for short-term use in breastfeeding women, though there is a theoretical risk for bilirubin displacement in susceptible infants 1.

When to Consider Alternative Antibiotics

If black stools develop while taking Bactrim, consider switching to alternative antibiotics based on the indication:

  • For urinary tract infections: Fluoroquinolones, nitrofurantoin, or beta-lactams
  • For respiratory infections: Macrolides or doxycycline
  • For gastrointestinal infections: Azithromycin or ciprofloxacin 1

Conclusion

While black stools are not a common side effect of Bactrim, their occurrence warrants clinical evaluation to rule out gastrointestinal bleeding. The decision to continue or discontinue Bactrim should be based on the severity of symptoms, the importance of the antibiotic treatment, and the availability of suitable alternatives.

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Drug therapy reviews: trimethoprim-sulfamethoxazole.

American journal of hospital pharmacy, 1979

Research

Adverse reactions to trimethoprim-sulfamethoxazole.

Reviews of infectious diseases, 1982

Research

Antibiotic-associated pseudomembranous colitis.

Reviews of infectious diseases, 1979

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.