PrescriptionDrugs.org

Trimethoprim-Sulfamethoxazole

Brand names: Bactrim, Bactrim DS, Septra, Septra DS, Sulfatrim

Sulfonamide Antibiotics

Key Takeaway

Trimethoprim-sulfamethoxazole (Bactrim, Septra) is a combination antibiotic that blocks bacterial folic acid synthesis at two sequential steps. It is a first-line treatment for uncomplicated urinary tract infections and is also used for MRSA skin infections, Pneumocystis pneumonia prophylaxis, and traveler's diarrhea.

Medical Disclaimer: This content is for informational purposes only and does not constitute medical advice. Always consult your healthcare provider before starting, stopping, or changing any medication. Using this site does not create a doctor-patient relationship.

Drug information changes as the FDA updates labeling, and we cannot guarantee it is complete or current. Verify critical details with your pharmacist or physician.

Emergencies: If you think you may have a medical emergency, call 911 immediately. For a suspected overdose, call Poison Control at 1-800-222-1222. Report side effects to the FDA MedWatch program at fda.gov/medwatch or 1-800-FDA-1088.

See our Terms of Use and Editorial Policy.

How does Trimethoprim-Sulfamethoxazole work?

Trimethoprim-sulfamethoxazole (TMP-SMX) is a unique combination antibiotic that attacks bacterial folic acid synthesis at two different points in the same metabolic pathway, producing a synergistic bactericidal effect [1][2].

Sulfamethoxazole is a structural analog of para-aminobenzoic acid (PABA) and competitively inhibits the enzyme dihydropteroate synthase, which catalyzes an early step in folic acid synthesis [1]. Since humans obtain folic acid from their diet rather than synthesizing it, this enzyme is absent in human cells — giving sulfamethoxazole excellent selective toxicity against bacteria.

Trimethoprim inhibits dihydrofolate reductase (DHFR), the enzyme that converts dihydrofolate to tetrahydrofolate — a later step in the same pathway [2]. Trimethoprim binds bacterial DHFR approximately 50,000 times more avidly than the human enzyme, providing another layer of selectivity.

Together, this sequential blockade of folic acid synthesis is far more effective than either agent alone. The combination is typically bactericidal at therapeutic concentrations, even though each component alone may only be bacteriostatic [3]. TMP-SMX has a broad spectrum covering many gram-positive and gram-negative bacteria, including community-associated methicillin-resistant Staphylococcus aureus (CA-MRSA) [4].

What to expect when starting Trimethoprim-Sulfamethoxazole

When starting TMP-SMX for a urinary tract infection, most patients notice symptom improvement within 24-48 hours [1]. The burning sensation during urination typically decreases first, followed by reduced urinary frequency.

The most common early side effects are mild GI symptoms — nausea, decreased appetite, and occasionally diarrhea. Taking the medication with food and a full glass of water can reduce stomach upset [1].

Sun sensitivity is common with sulfonamides. Apply SPF 30+ sunscreen and wear protective clothing during treatment [3]. You may notice a mild skin rash — while many sulfa rashes are benign, report any rash to your doctor promptly, as serious skin reactions (though rare) require immediate discontinuation.

Drink plenty of fluids during treatment to maintain good urine output and prevent crystal formation in the kidneys [1]. Report any unusual bruising, sore throat, fever, or mouth sores, which could indicate blood count changes.

What are the common side effects of Trimethoprim-Sulfamethoxazole?

Common

Common(10 effects)
  • Nausea3.5%
  • Vomiting2.8%
  • Anorexia2.5%
  • Rash (non-serious)3.0%
  • Diarrhea2.2%
  • Urticaria1.5%
  • Headache1.3%
  • Dizziness1.0%
  • Elevated serum creatinine8.0%
  • Hyperkalemia5.0%

What are the serious side effects of Trimethoprim-Sulfamethoxazole?

Serious

Common(5 effects)
  • Stevens-Johnson Syndrome / Toxic Epidermal Necrolysis
  • Severe blood dyscrasias
  • Severe hyperkalemia
  • Hepatic necrosis
  • Severe hypersensitivity reactions

What drugs interact with Trimethoprim-Sulfamethoxazole?

  • Major
    Warfarin TMP-SMX inhibits CYP2C9 metabolism of warfarin, potentially doubling INR values. Cases of fatal bleeding have been reported. Monitor INR closely.
  • Major
    Methotrexate Both drugs interfere with folate metabolism. Combined use can cause severe pancytopenia and bone marrow suppression. Avoid combination if possible.
  • Major
    ACE Inhibitors / ARBs Combined hyperkalemia risk is significant, especially in elderly or renal-impaired patients. A large study found a 7-fold increased risk of sudden death in elderly patients taking TMP-SMX with ACE inhibitors.
  • Major
    Phenytoin TMP-SMX inhibits CYP2C9 metabolism of phenytoin, increasing phenytoin levels and risk of toxicity. Monitor phenytoin levels.
  • Moderate
    Dapsone Both drugs can cause methemoglobinemia and hemolytic anemia, particularly in patients with G6PD deficiency. Monitor closely if coadministration is necessary.
  • Moderate
    Metformin Trimethoprim inhibits renal excretion of metformin via OCT2, increasing metformin levels by up to 40% and potentially increasing lactic acidosis risk.
  • Major
    Spironolactone Severe hyperkalemia risk when combined with TMP-SMX. Monitor potassium closely or avoid combination.
  • Moderate
    Digoxin Trimethoprim can reduce renal clearance of digoxin by 20-30%. Monitor digoxin levels and clinical response.

View all drug interactions →

Can I eat certain foods or drink alcohol with Trimethoprim-Sulfamethoxazole?

Food: TMP-SMX can be taken with or without food. Taking it with food reduces GI side effects [1]. Ensure adequate fluid intake (at least 6-8 glasses of water daily) to prevent sulfonamide crystalluria in the kidneys.

Folate-Rich Foods: Since TMP-SMX interferes with folate metabolism, patients on prolonged therapy (such as Pneumocystis prophylaxis) may benefit from supplemental folic acid or leucovorin, though this is controversial as it may theoretically reduce antibacterial efficacy [2].

Alcohol: No absolute contraindication, but alcohol can worsen GI side effects and may impair immune function during active infection. Some sources report a rare disulfiram-like reaction (flushing, nausea) with the sulfamethoxazole component, though this is poorly documented [3]. Best to avoid alcohol during treatment.

Potassium-Rich Foods: Patients at risk for hyperkalemia should moderate intake of high-potassium foods (bananas, oranges, potatoes) during treatment, particularly if also taking ACE inhibitors or potassium supplements [5].

What is the typical dosage for Trimethoprim-Sulfamethoxazole?

Uncomplicated UTI: 1 DS tablet (160/800 mg) orally every 12 hours for 3 days [1]. This is first-line therapy for uncomplicated cystitis in areas where E. coli resistance rates are below 20%.

Complicated UTI / Pyelonephritis: 1 DS tablet every 12 hours for 10-14 days [1].

CA-MRSA Skin Infections: 1-2 DS tablets every 12 hours for 7-10 days [4]. Often used in combination with incision and drainage for abscesses.

Pneumocystis jirovecii Prophylaxis: 1 DS tablet daily or 1 SS tablet daily [1]. Standard of care for HIV patients with CD4 count below 200.

Pneumocystis jirovecii Treatment: 15-20 mg/kg/day (TMP component) divided every 6-8 hours for 21 days [1].

Renal Adjustment: CrCl 15-30 mL/min: reduce dose by 50%. CrCl <15 mL/min: not recommended [1].

Administration: Take with a full glass of water. Maintain adequate hydration throughout therapy.

How much does Trimethoprim-Sulfamethoxazole cost?

Generic TMP-SMX is one of the most affordable antibiotics available. A typical 3-day course of DS tablets for a UTI costs approximately $4-8 at most pharmacies [6].

Cost-saving strategies: - Generic is standard: Brand-name Bactrim and Septra have been largely discontinued. Virtually all prescriptions are filled with generic TMP-SMX, which is FDA "AB" rated as therapeutically equivalent - $4 generic lists: TMP-SMX DS is included on nearly all pharmacy $4 generic programs (Walmart, Kroger, Costco, etc.) - OTC alternatives are not available: TMP-SMX requires a prescription. Do not attempt to self-treat suspected UTIs with leftover antibiotics - Suspension for children: Generic oral suspension is available and similarly affordable at approximately $10-15 - Discount coupons: GoodRx and similar services can reduce costs to as low as $3-4 for a standard course

Is Trimethoprim-Sulfamethoxazole safe during pregnancy or breastfeeding?

Pregnancy (Category D — late pregnancy; C — early pregnancy): TMP-SMX should be avoided during the first trimester due to the antifolate effects of trimethoprim, which have been associated with neural tube defects in some epidemiologic studies [1][7]. Folic acid supplementation may mitigate this risk but does not eliminate it. TMP-SMX should also be avoided near term because sulfamethoxazole can displace bilirubin from albumin binding sites, increasing the risk of neonatal kernicterus (brain damage from bilirubin) [1].

Breastfeeding: Both components are excreted in breast milk. The AAP considers TMP-SMX compatible with breastfeeding for healthy, full-term infants [7]. However, it should be avoided in breastfeeding mothers of premature infants, G6PD-deficient infants, or jaundiced infants due to the risk of hemolysis and hyperbilirubinemia.

Contraindication: Do not use in infants under 2 months of age due to the risk of kernicterus [1].

Is there a generic version of Trimethoprim-Sulfamethoxazole?

Brand-name Bactrim and Septra have been largely discontinued by their original manufacturers, and virtually all TMP-SMX prescriptions in the United States are filled with generic equivalents [1]. Multiple generic manufacturers produce TMP-SMX in both single-strength (SS: 80/400 mg) and double-strength (DS: 160/800 mg) tablets, as well as oral suspension.

All generic versions are FDA "AB" rated as therapeutically equivalent to the original brand products. There is no clinical reason to seek out brand-name TMP-SMX, and pharmacies generally do not stock it.

The generic has been available for decades, and the drug is considered a commodity antibiotic with extremely stable pricing and universal availability.

For Caregivers

For caregivers monitoring a patient on TMP-SMX:

- Watch for allergic reactions: Sulfa allergies are common. Monitor for rash development, especially during the first 2 weeks. A mild rash should be reported to the doctor; widespread blistering or peeling skin requires emergency care. - Hydration: Ensure the patient drinks plenty of fluids (at least 6-8 glasses of water daily) to prevent kidney crystal formation. - Blood work monitoring: For patients on long-term therapy (e.g., Pneumocystis prophylaxis), regular CBC and metabolic panels are important to monitor for blood count changes and hyperkalemia. - Potassium awareness: If the patient takes ACE inhibitors, ARBs, or potassium supplements, watch for signs of hyperkalemia: muscle weakness, irregular heartbeat, fatigue. - Sun protection: Help the patient apply sunscreen and limit sun exposure, as sulfonamides increase photosensitivity. - Complete the course: Ensure all doses are taken as prescribed, even if symptoms improve early.

Frequently asked questions about Trimethoprim-Sulfamethoxazole

References

  1. [Regulatory] Bactrim (trimethoprim and sulfamethoxazole) [prescribing information]. Mutual Pharmaceutical Company, Inc. https://www.accessdata.fda.gov/drugsatfda_docs/label/2013/017377s068s073lbl.pdf Accessed 2026-02-15.
  2. [Clinical] Masters PA, O'Shea TA, Padmore RF, et al. Trimethoprim-sulfamethoxazole revisited. Arch Intern Med. 2003;163(4):402-410. https://pubmed.ncbi.nlm.nih.gov/12588198/ Accessed 2026-02-15.
  3. [Regulatory] Trimethoprim-Sulfamethoxazole. Drug Information. DailyMed, National Library of Medicine. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=c5978e58-1bff-4b9e-a258-4c05e523a940 Accessed 2026-02-15.
  4. [Clinical] Liu C, Bayer A, Cosgrove SE, et al. Clinical practice guidelines by IDSA for the treatment of MRSA infections. Clin Infect Dis. 2011;52(3):e18-e55. https://pubmed.ncbi.nlm.nih.gov/21208910/ Accessed 2026-02-15.
  5. [Clinical] Fralick M, Macdonald EM, Gomes T, et al. Co-trimoxazole and sudden death in patients receiving inhibitors of renin-angiotensin system: population based study. BMJ. 2014;349:g6196. https://pubmed.ncbi.nlm.nih.gov/25359996/ Accessed 2026-02-15.
  6. [Observational] Trimethoprim/Sulfamethoxazole pricing. GoodRx. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=c5978e58-1bff-4b9e-a258-4c05e523a940 Accessed 2026-02-15.
  7. [Regulatory] Trimethoprim/Sulfamethoxazole use during breastfeeding. Drugs and Lactation Database (LactMed). National Library of Medicine. https://pubmed.ncbi.nlm.nih.gov/30000499/ Accessed 2026-02-15.
  8. [Clinical] Hernandez-Diaz S, Werler MM, Walker AM, Mitchell AA. Folic acid antagonists during pregnancy and the risk of birth defects. N Engl J Med. 2000;343(22):1608-1614. https://pubmed.ncbi.nlm.nih.gov/11096168/ Accessed 2026-02-15.
  9. [Clinical] Gupta K, Hooton TM, Naber KG, et al. International clinical practice guidelines for the treatment of acute uncomplicated cystitis. Clin Infect Dis. 2011;52(5):e103-e120. https://pubmed.ncbi.nlm.nih.gov/21292654/ Accessed 2026-02-15.
  10. [Clinical] Ho JM, Juurlink DN. Considerations when prescribing trimethoprim-sulfamethoxazole. CMAJ. 2011;183(16):1851-1858. https://pubmed.ncbi.nlm.nih.gov/21989472/ Accessed 2026-02-15.

Written and fact-checked by PrescriptionDrugs.org Editorial Team

Last updated: