Alternatives if you're sulfa-allergic.
For most indications where a sulfa antibiotic โ usually TMP-SMX โ would be considered, alternatives exist. The right choice depends on the indication, local resistance, the patient's other conditions, and the severity of the documented allergy. This page lists therapeutic substitutes at a general level โ not specific regimens or doses.
- UTI
- Nitrofurantoin, fosfomycin, cephalosporins, fluoroquinolones (with stewardship caveats).
- MRSA skin/soft tissue
- Doxycycline, clindamycin, linezolid (specific situations).
- PCP prophylaxis
- Atovaquone, dapsone (with G6PD testing), aerosolised pentamidine.
- General principle
- The right alternative depends on indication, resistance pattern, and patient factors.
First, the question of whether you're actually allergic
Many "sulfa allergy" labels do not survive a careful history. The mislabelled allergy covers why most labels overstate risk. For non-severe past reactions, an honest reassessment with a clinician โ sometimes including referral for a structured allergy review โ can clarify whether avoidance is necessary at all. If the label is genuine and avoidance is appropriate, the alternatives below apply. If the label is wrong, removing it widens treatment options for the rest of the patient's life.
Uncomplicated urinary tract infection
For uncomplicated cystitis in non-pregnant adults, alternatives to TMP-SMX include:
Nitrofurantoin โ first-line in many guidelines; not effective for upper urinary tract or systemic infection; avoid in late pregnancy and in patients with low GFR.
Fosfomycin โ single-dose oral therapy; effective; expensive in some regions.
Cephalosporins (cefalexin for example) โ broader spectrum, considerations for stewardship and for penicillin-allergic patients.
Fluoroquinolones โ effective but generally not first-line for uncomplicated UTI in modern guidelines because of side-effect concerns and resistance pressure.
Beta-lactams (amoxicillin-clavulanate) โ depending on local resistance.
For pregnancy, choices are narrower; nitrofurantoin (avoid late), cephalosporins, and beta-lactams are commonly used. The decision belongs to the obstetric/prescribing team.
Pyelonephritis and complicated UTI
For pyelonephritis or complicated UTI, broader-spectrum agents are needed: ceftriaxone, fluoroquinolones, or others depending on local susceptibility data. TMP-SMX has historically been an oral option for pyelonephritis when isolates are susceptible; alternatives are well established.
MRSA skin and soft-tissue infection
Community-acquired MRSA infections are common, and TMP-SMX is one of several first-line oral options. Alternatives include:
Doxycycline โ generally well tolerated; avoid in young children and in pregnancy; some patients on doxycycline experience photosensitivity.
Clindamycin โ effective but with concerns about Clostridioides difficile; resistance varies.
Linezolid โ effective; expensive; specific situations (often after specialist input).
For deeper or more serious infections, parenteral options including vancomycin, daptomycin, and others are used.
Pneumocystis jirovecii pneumonia (PCP) prophylaxis
For PCP prophylaxis when TMP-SMX cannot be used, alternatives include:
Atovaquone โ generally well tolerated; expensive in some settings; absorption depends on fatty meals.
Dapsone โ effective; G6PD testing before starting (high-risk for hemolysis in G6PD deficiency); methemoglobinemia is a separate concern. More on G6PD.
Aerosolised pentamidine โ once monthly nebulised dosing; less effective for some scenarios; intolerance to aerosol is common; cannot be used in patients who cannot perform the inhaled procedure.
For PCP treatment, the options are similar but often parenteral (intravenous pentamidine, primaquine + clindamycin, atovaquone for milder disease). Choice is specialist territory. Sulfa and HIV covers the HIV context.
Toxoplasmosis
For toxoplasmosis treatment, the standard is sulfadiazine + pyrimethamine + folinic acid. Alternatives in sulfa-allergic patients include pyrimethamine + clindamycin + folinic acid, or atovaquone-based regimens. Specialist management, particularly in immunocompromised patients.
Ophthalmic infections
For bacterial conjunctivitis, where topical sulfacetamide has been a historical option, alternatives include topical fluoroquinolones (e.g. ciprofloxacin or moxifloxacin eye drops), aminoglycosides (gentamicin, tobramycin), or polymyxin/trimethoprim combinations. Topical sulfa is rarely the only option.
Burn care
For partial-thickness burns where silver sulfadiazine has been used, alternatives include silver-based dressings without sulfadiazine, hydrocolloid and foam dressings, and other topical antimicrobials. Modern burn care has shifted toward several of these alternatives in any case.
Diuretics
If a documented severe past sulfa antibiotic reaction makes use of furosemide or HCTZ uncomfortable for the prescriber:
For loop diuretic effect: ethacrynic acid is a non-sulfonamide loop diuretic. It has its own toxicity profile and is rarely chosen routinely, but it remains in formularies for this purpose.
For thiazide effect: there is no clean non-sulfonamide thiazide alternative. Other antihypertensive classes (ACE inhibitors, ARBs, calcium-channel blockers) are widely used. The general low cross-reactivity of HCTZ with sulfa antibiotic allergy means that switching away from HCTZ is rarely required for that reason alone. More on cross-reactivity.
Other indications
Diabetes โ many non-sulfonylurea options exist (metformin, SGLT2 inhibitors, GLP-1 receptor agonists, DPP-4 inhibitors, insulin, others).
Glaucoma โ beyond carbonic anhydrase inhibitors, alternatives include topical prostaglandin analogues, beta-blockers (timolol), alpha-2 agonists (brimonidine), and laser/surgical options.
Inflammatory bowel disease โ for patients with sulfa antibiotic allergy who would have considered sulfasalazine, sulfa-free 5-ASA agents (mesalamine, balsalazide, olsalazine) deliver the active anti-inflammatory without the sulfa moiety.
Pain and inflammation โ non-selective NSAIDs without a sulfonamide group are widely available as alternatives to celecoxib.