Yes, Septra and Bactrim are the same medication. Both are brand names for the antibiotic combination of sulfamethoxazole and trimethoprim, and they contain identical active ingredients in the same ratio. A prescription for one is interchangeable with the other.
Same Drug, Different Labels
Sulfamethoxazole and trimethoprim is the generic name shared by both Septra and Bactrim. The Mayo Clinic lists Bactrim, Bactrim DS, Septra, and Septra DS as U.S. brand names for the same combination antibiotic. The two ingredients work together to block bacteria from producing folic acid, which they need to grow and multiply. Neither drug has a unique formulation or special ingredient the other lacks.
One practical difference today: the Septra brand has been discontinued in all its forms (tablet, oral suspension, and injectable). Bactrim remains available as a brand name, and generic versions of sulfamethoxazole/trimethoprim are widely stocked at pharmacies. If you have an old Septra prescription, your pharmacist will typically fill it with a generic equivalent or Bactrim.
Available Strengths
Whether labeled Bactrim or Septra, this antibiotic comes in two standard tablet strengths:
- Regular strength: 400 mg sulfamethoxazole and 80 mg trimethoprim
- Double strength (DS): 800 mg sulfamethoxazole and 160 mg trimethoprim
The “DS” you often see on prescriptions simply means double strength. It’s the more commonly prescribed version for adults. The ratio between the two ingredients is always 5:1, sulfamethoxazole to trimethoprim, regardless of the brand or strength.
What This Antibiotic Treats
Sulfamethoxazole/trimethoprim is FDA-approved for a range of bacterial infections. Urinary tract infections are the most common reason it’s prescribed, targeting bacteria like E. coli and Klebsiella. It’s also approved for middle ear infections in children, flare-ups of chronic bronchitis, certain types of bacterial diarrhea (including traveler’s diarrhea and shigellosis), and a specific type of pneumonia called Pneumocystis jirovecii pneumonia that primarily affects people with weakened immune systems.
For people with HIV/AIDS or other immune-suppressing conditions, this antibiotic is frequently used as a preventive measure against Pneumocystis pneumonia, not just as a treatment after infection develops.
Sulfa Allergy Applies to Both
Because Septra and Bactrim contain the exact same ingredients, an allergy to one means an allergy to the other. Both contain sulfonamide, the chemical compound responsible for sulfa allergies. If you’ve ever had a reaction to either brand, to any generic version, or to any sulfa-containing antibiotic, that history applies across all of them.
People with HIV/AIDS may have increased sensitivity to sulfonamide medications, making reactions more likely. Skin reactions are the most well-known concern, and in rare cases these can become severe. If you’ve been told you have a sulfa allergy, make sure every prescriber and pharmacist has that on file.
Interaction With Blood Thinners
One important interaction to be aware of: sulfamethoxazole/trimethoprim directly interferes with warfarin (a common blood thinner), amplifying its anti-clotting effects. This raises the risk of dangerous bleeding. The antibiotic also kills beneficial gut bacteria that produce vitamin K, a nutrient your body uses for clotting. That secondary effect compounds the problem. If you take warfarin and need this antibiotic, your prescriber will likely monitor your clotting levels more closely during and after treatment.
Growing Resistance in UTI Treatment
While sulfamethoxazole/trimethoprim has been a go-to antibiotic for urinary tract infections for decades, bacterial resistance has become a significant issue. According to the Infectious Diseases Society of America, resistance rates among common urinary bacteria collected from outpatients across all U.S. regions now exceed the thresholds that guidelines previously considered acceptable for prescribing it as a first-line treatment. This doesn’t mean the drug never works for UTIs, but it does mean your provider may want to confirm through a urine culture that your specific infection will respond to it, rather than prescribing it automatically.

