Bactrim is a sulfonamide-based combination antibiotic that contains two active ingredients: sulfamethoxazole and trimethoprim. These two drugs work together to block bacteria from producing folate, a nutrient they need to grow and multiply. Bactrim is one of the most commonly prescribed antibiotics for urinary tract infections, and it covers a broad range of bacterial species.
How the Two Ingredients Work Together
What makes Bactrim unusual is that it combines two antibiotics that attack the same bacterial process at two different points. Sulfamethoxazole stops bacteria from making a precursor form of folate by mimicking a natural compound bacteria need for that step. Trimethoprim then blocks the next step, preventing bacteria from converting that precursor into the active form of folate they use to build DNA and proteins.
By hitting two consecutive steps in the same pathway, the combination is far more effective than either drug alone. Bacteria that might resist one of the drugs often can’t overcome both blocks at once. This synergistic design is why Bactrim has remained useful for decades, even as resistance to many other antibiotics has climbed.
What Bactrim Treats
Bactrim is FDA-approved for urinary tract infections caused by common bacteria like E. coli, Klebsiella, and Proteus species. It’s also approved for a type of pneumonia caused by the organism Pneumocystis jirovecii, which primarily affects people with weakened immune systems. A third approved use is shigellosis, a bacterial infection of the intestines that causes severe diarrhea.
Beyond its official approvals, doctors frequently prescribe Bactrim off-label for skin and soft tissue infections, including those caused by MRSA. It’s also sometimes used for certain ear infections, bronchitis, and traveler’s diarrhea. The FDA label notes activity against enterotoxigenic strains of E. coli, the bacteria most often behind traveler’s diarrhea.
One important gap: Bactrim should not be used for strep throat or other group A strep infections. It won’t fully clear the bacteria and therefore can’t prevent complications like rheumatic fever.
Which Bacteria It Covers
Bactrim has a reasonably broad spectrum that includes both gram-positive and gram-negative bacteria. On the gram-negative side, it covers E. coli, Klebsiella, Enterobacter, Proteus, Morganella, Shigella, and Haemophilus influenzae. On the gram-positive side, its primary target is Streptococcus pneumoniae, a common cause of sinus and lung infections. In clinical practice, it’s also widely used against Staphylococcus aureus, including methicillin-resistant strains.
Resistance is worth knowing about, especially for UTIs. In emergency department data tracking community-acquired urinary tract infections, about 26% of E. coli strains showed resistance to Bactrim. That means roughly one in four UTIs caused by E. coli may not respond to it. This is one reason your provider may order a urine culture before or alongside prescribing it, particularly if you’ve taken Bactrim recently or have recurrent infections.
Single Strength vs. Double Strength
Bactrim comes in two tablet strengths. The regular (single strength) tablet contains 400 mg of sulfamethoxazole and 80 mg of trimethoprim. Bactrim DS (double strength) contains 800 mg of sulfamethoxazole and 160 mg of trimethoprim. Both maintain the same 5:1 ratio between the two drugs. The DS tablet is the version most commonly prescribed for adults with UTIs and skin infections. Bactrim is also available in a liquid suspension, which is typically used for children.
Common Side Effects
The most frequently reported side effects are nausea, vomiting, loss of appetite, and skin rash. Because both ingredients interfere with folate metabolism, Bactrim can occasionally lower blood cell counts, particularly with longer courses. This is why it’s contraindicated in people who already have folate-deficiency anemia.
Allergic reactions deserve special attention. Sulfamethoxazole belongs to the sulfonamide drug class, and people with a sulfa allergy should not take Bactrim. Reactions can range from mild rash to severe skin conditions. If you’ve ever been told you have a sulfa allergy, make sure any prescribing provider knows before starting this medication.
Bactrim can also raise potassium levels in the blood. This effect is usually mild in healthy people but becomes significant if you’re taking blood pressure medications that also raise potassium, such as ACE inhibitors or potassium-sparing diuretics.
Notable Drug Interactions
If you take warfarin (a blood thinner), Bactrim directly intensifies its anti-clotting effects, which raises the risk of dangerous bleeding. Harvard Health Publishing notes that patients on warfarin who need Bactrim will typically require extra blood tests to monitor their clotting time during the antibiotic course.
Bactrim can also interact with certain blood pressure medications and diabetes drugs. The potassium-raising effect mentioned above is the main concern with blood pressure medications. For people on diabetes drugs, Bactrim can sometimes lower blood sugar more than expected.
Who Should Not Take It
Bactrim is contraindicated for infants under two months of age, people with severe kidney disease where kidney function can’t be monitored, those with significant liver damage, and anyone with a known allergy to sulfonamides or trimethoprim. People with a history of low platelet counts triggered by either ingredient should also avoid it. Pregnant women in their first trimester and those near delivery are generally advised against taking it because of potential effects on fetal folate metabolism and the risk of newborn jaundice.

