When is Bactrim (trimethoprim/sulfamethoxazole) contraindicated in patients?

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

When Not to Use Bactrim (Trimethoprim-Sulfamethoxazole)

Bactrim is absolutely contraindicated in patients with known hypersensitivity to trimethoprim or sulfonamides, documented megaloblastic anemia due to folate deficiency, pregnancy (especially at term), nursing mothers, infants under 2 months of age, marked hepatic damage, severe renal insufficiency when renal function cannot be monitored, history of drug-induced immune thrombocytopenia with trimethoprim or sulfonamides, and concurrent use with dofetilide. 1, 2

Absolute Contraindications (Never Use)

Hypersensitivity and Prior Reactions

  • Known hypersensitivity to trimethoprim or any sulfonamide is an absolute contraindication 1, 2
  • History of drug-induced immune thrombocytopenia with use of trimethoprim and/or sulfonamides 3, 1, 2
  • Prior Stevens-Johnson syndrome, toxic epidermal necrolysis, or severe cutaneous reactions to sulfonamides 3

Hematologic Conditions

  • Documented megaloblastic anemia caused by folate deficiency 3, 1, 2
  • Active bone marrow suppression or severe blood dyscrasias 3

Pregnancy and Pediatrics

  • Pregnant patients at any stage, as sulfonamides cross the placenta and may cause kernicterus 1, 2
  • Nursing mothers, because sulfonamides are excreted in breast milk and may cause kernicterus in the infant 1, 2
  • Pediatric patients less than 2 months of age due to risk of kernicterus 3, 1, 2

Organ Dysfunction

  • Marked hepatic damage or severe hepatic insufficiency 3, 1, 2
  • Severe renal insufficiency when renal function status cannot be monitored 3, 1, 2

Drug Interactions

  • Concomitant administration with dofetilide due to serious drug interaction 2
  • Concurrent use with methotrexate at treatment doses due to risk of severe bone marrow suppression and pancytopenia 4

High-Risk Situations Requiring Extreme Caution or Alternative Therapy

Renal Impairment

  • Creatinine clearance <30 mL/min increases risk of drug accumulation and toxicity 5
  • Acute kidney injury occurs in approximately 11% of patients treated for ≥6 days, with 5.8% likely attributable to Bactrim 6
  • Check baseline creatinine clearance before initiating therapy, especially in elderly or diabetic patients 7

Elderly and Frail Patients

  • Avoid in frail elderly patients taking ACE inhibitors or ARBs due to nearly 7-fold increased risk of hyperkalemia-associated hospitalization (adjusted OR 6.7,95% CI 4.5-10.0) 7
  • Higher incidence of severe adverse events including Stevens-Johnson syndrome, toxic epidermal necrolysis, blood dyscrasias, and hepatic necrosis 7
  • Monitor electrolytes every 3-5 days during treatment, especially in the first week when hyponatremia and hyperkalemia typically develop 7

Concurrent Medications Creating Dangerous Interactions

  • Methotrexate at treatment doses: Both drugs are folic acid antagonists; combination can cause severe pancytopenia even after single methotrexate dose 4
  • ACE inhibitors or ARBs: Dramatically increases hyperkalemia risk 7
  • Cyclosporine: Increases risk of nephrotoxicity 3
  • Oral anticoagulants: May potentiate anticoagulant effect 3
  • Oral hypoglycemic agents: Risk of hypoglycemia 3

Specific Clinical Scenarios to Avoid

G6PD Deficiency

  • Do not use in patients with G6PD deficiency due to risk of hemolytic anemia 8

Asymptomatic Bacteriuria in Elderly

  • Strong recommendation against treating asymptomatic bacteriuria in elderly patients, as high-quality evidence shows no mortality or sepsis benefit while confirming frequent adverse effects including C. difficile infection and antimicrobial resistance 7

Enterohaemorrhagic E. coli Infections

  • Avoid antibiotics for patients with enterohaemorrhagic E. coli infections due to higher risk of hemolytic uremic syndrome 3

Common Pitfalls and How to Avoid Them

Monitoring Failures

  • Failure to check baseline renal function in elderly patients leads to preventable acute kidney injury 7, 6
  • Not monitoring electrolytes in first week of therapy misses development of life-threatening hyperkalemia or hyponatremia 7
  • Ignoring drug interaction with methotrexate: Even prophylactic-dose Bactrim (used for Pneumocystis prophylaxis) requires monitoring when combined with methotrexate, though generally tolerated 3

Misidentifying Appropriate Use

  • Using for remission maintenance in GPA/MPA: Methotrexate or azathioprine are preferred over trimethoprim/sulfamethoxazole 3
  • Adding to other immunosuppressive therapies unnecessarily: Conditionally recommended against adding trimethoprim/sulfamethoxazole to rituximab, azathioprine, or methotrexate for remission maintenance in GPA 3

Recognizing Early Toxicity

  • Any new rash requires immediate discontinuation, as progression to Stevens-Johnson syndrome or toxic epidermal necrolysis can be life-threatening 3, 7
  • Hepatotoxicity is rare but recognized: Jaundice and highly elevated liver enzymes may develop within one week of administration 9
  • Bone marrow suppression manifests as agranulocytosis, aplastic anemia, or thrombocytopenia and requires immediate cessation 3

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

Methotrexate Side Effects and Management

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Research

Clinical use of trimethoprim/sulfamethoxazole during renal dysfunction.

DICP : the annals of pharmacotherapy, 1989

Research

Acute kidney injury associated with trimethoprim/sulfamethoxazole.

The Journal of antimicrobial chemotherapy, 2012

Guideline

Considerations for Trimethoprim-Sulfamethoxazole Use in Frail Elderly Patients

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Guideline

Maximum Daily Dosing of Septrin (Trimethoprim-Sulfamethoxazole)

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2026

Related Questions

What is the Bactrim (trimethoprim/sulfamethoxazole) dose for an adult patient with intrabdominal sepsis, Klebsiella pneumoniae bacteremia, and impaired renal function?
What is the low dose of Bactrim (trimethoprim/sulfamethoxazole) for a patient with impaired renal function?
Can Bactrim (trimethoprim/sulfamethoxazole) harm the kidneys in a patient with a urinary tract infection (UTI)?
What about Bactrim (trimethoprim-sulfamethoxazole) step-down therapy for an adult patient with intrabdominal sepsis, Klebsiella pneumoniae bacteremia, and impaired renal function?
What are the recommendations for using Bactrim (trimethoprim/sulfamethoxazole) in patients at risk of acute renal failure?
What is the recommended treatment for a patient presenting with pneumonia, considering the cause, severity, and potential underlying health conditions?
What diagnostic tests and interventions are indicated for a 48-year-old postmenopausal Asian American female with a history of hypothyroidism, melanoma, and 20-year pack/day smoking, who is concerned about her bone health, has a family history of osteoporosis and cardiovascular disease, and has a bone density T-score of -1.2, indicating osteopenia?
What is the initial workup for a patient presenting with transaminitis (elevated liver enzymes)?
What is the best approach to manage continuous focal seizures in a post-operative patient with a history of hypertensive intracranial hemorrhage (ICH)?
What are the clinical guidelines for managing a patient with Chronic Kidney Disease (CKD) stage 3, including those with comorbid conditions such as hypertension or diabetes?
What prophylaxis is recommended for a patient with a severely impaired immune system, indicated by a CD4 (Cluster of Differentiation 4) count less than 18, to prevent opportunistic infections?

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.