Yes, Bactrim is a sulfa drug. It contains sulfamethoxazole, a sulfonamide antibiotic, combined with trimethoprim. The FDA labels it explicitly as a “sulfonamide-containing product,” which matters if you have a known sulfa allergy or are being prescribed it for the first time.
What’s Inside Bactrim
Bactrim is a combination antibiotic with two active ingredients. The standard tablet contains 400 mg of sulfamethoxazole and 80 mg of trimethoprim. The double-strength (DS) version doubles both: 800 mg of sulfamethoxazole and 160 mg of trimethoprim. Sulfamethoxazole is the sulfa component, and it makes up the bulk of each dose.
The two drugs work together by blocking bacteria from making folic acid, which they need to build DNA and proteins. Sulfamethoxazole interrupts the first step of that process, and trimethoprim blocks the second. By hitting two steps in the same pathway, the combination is more effective than either drug alone.
What Bactrim Treats
Bactrim is FDA-approved for urinary tract infections, acute flare-ups of chronic bronchitis, and a specific type of pneumonia called Pneumocystis jirovecii pneumonia, which primarily affects people with weakened immune systems. It’s also widely used for that pneumonia as a preventive measure in immunosuppressed patients. Doctors frequently prescribe it off-label for skin and soft tissue infections, including those caused by MRSA, though that use isn’t formally listed in the FDA-approved indications.
Sulfa Allergy: How Common and What It Looks Like
Roughly 2% of the general population develops reactions to sulfonamide antibiotics that suggest an allergic mechanism. If you’ve never taken a sulfa drug before, it’s worth knowing what to watch for.
The most common symptoms are skin rash, hives, and itching. Other possible reactions include swelling in the hands, feet, mouth, or tongue, along with nausea, vomiting, diarrhea, or headache. Less common but more serious signs include difficulty swallowing, trouble breathing, muscle and joint aches, or a sore throat. Any difficulty breathing or swallowing warrants immediate medical attention.
In rare cases, sulfonamide antibiotics can trigger Stevens-Johnson syndrome (SJS), a severe skin reaction that starts with fever and flu-like symptoms, then progresses to painful, blistering skin that looks burned. SJS affects up to 10% of the body’s surface and carries a fatality rate between 1% and 5%. A more extreme version, toxic epidermal necrolysis, involves 30% or more of the skin and is fatal in about 25% of cases. These reactions are rare, but recognizing the early signs (fever followed by a spreading, painful rash with blistering) is important because early treatment improves outcomes.
Sulfa Allergy Doesn’t Mean All Sulfonamides
This is one of the most misunderstood parts of sulfa allergies. Many common medications contain a sulfonamide chemical structure but are not sulfonamide antibiotics. These include certain diuretics (water pills), some diabetes medications, and a common anti-inflammatory pain reliever called celecoxib. If you’re allergic to Bactrim or another sulfa antibiotic, you might assume you need to avoid all of these.
You don’t. According to Cleveland Clinic, there is no cross-reactivity between sulfonamide antibiotics and non-antibiotic sulfonamides. The key difference is structural: non-antibiotic sulfonamides lack a specific chemical group (called the arylamine group) that’s responsible for triggering allergic reactions to sulfa antibiotics. People with a confirmed allergy to Bactrim can take non-antibiotic sulfonamides without elevated risk compared to the general population.
You may notice that some drug labels still carry warnings about potential cross-reactivity with sulfa antibiotics. These warnings persist despite the evidence showing no actual cross-reactivity. If your medical records list a broad “sulfa allergy,” it’s worth clarifying with your provider that the restriction applies to sulfonamide antibiotics specifically, not to all drugs containing a sulfonamide structure. An accurate allergy label prevents you from unnecessarily avoiding medications you can safely take.
Other Names for the Same Drug
Bactrim is one brand name for the sulfamethoxazole-trimethoprim combination. You may also see it sold as Septra or simply labeled as “SMX-TMP” or “co-trimoxazole” in its generic form. All of these contain the same sulfa antibiotic at the same doses, so a sulfa allergy applies equally to any of them.

