Updated: January 17, 2026
Alternatives to Sulfamethoxazole/Trimethoprim If You Can't Fill Your Prescription
Author
Peter Daggett

Summarize with AI
- When Might You Need an Alternative to TMP-SMX?
- Alternatives for UTIs (Urinary Tract Infections)
- Nitrofurantoin (Macrobid, Macrodantin)
- Ciprofloxacin (Cipro) and Other Fluoroquinolones
- Fosfomycin (Monurol)
- Alternatives for Skin and Soft Tissue Infections (MRSA)
- Alternatives for PCP (Pneumocystis Pneumonia) Prophylaxis
- How to Get an Alternative Prescription
Can't find Bactrim (TMP-SMX) at your pharmacy? Explore clinician-recommended alternatives to sulfamethoxazole/trimethoprim for UTIs, skin infections, and more.
Sulfamethoxazole/trimethoprim (TMP-SMX, Bactrim, Septra) is one of the most versatile antibiotics available — but it's not always the right choice or the most available option. Whether you have a sulfa allergy, your pharmacy is out of stock, or TMP-SMX isn't working for your infection, there are several well-established alternatives. Always discuss medication changes with your doctor or pharmacist before switching.
When Might You Need an Alternative to TMP-SMX?
Sulfa allergy or trimethoprim allergy — the most common reason to avoid TMP-SMX entirely
Local pharmacy is out of stock or can't fill the specific form (e.g., oral suspension)
Bacterial resistance — TMP-SMX resistance in E. coli UTIs is around 15–25% in some U.S. regions, making culture-guided therapy important
Pregnancy or near-term neonates — TMP-SMX is contraindicated in first trimester and near delivery
Renal or hepatic impairment — requires dose adjustment or alternative
Significant drug interactions (e.g., warfarin, methotrexate, dofetilide)
Alternatives for UTIs (Urinary Tract Infections)
TMP-SMX is a first-line choice for uncomplicated UTIs, but resistance rates have been rising in many communities. The IDSA recommends considering local resistance patterns before prescribing. Here are the main alternatives:
Nitrofurantoin (Macrobid, Macrodantin)
Nitrofurantoin is a leading first-line alternative for uncomplicated UTIs and is specifically recommended for women. It works only in the urinary tract and is not appropriate for kidney infections. Typical dosing is nitrofurantoin monohydrate/macrocrystals (Macrobid) 100 mg twice daily for 5–7 days. It has fewer drug interactions than TMP-SMX and is safe for patients with sulfa allergies. It should be avoided in patients with significant kidney impairment (CrCl <30 mL/min).
Ciprofloxacin (Cipro) and Other Fluoroquinolones
Ciprofloxacin is effective for UTIs, including complicated cases and kidney infections, but current guidelines recommend reserving fluoroquinolones for infections where other options are unsuitable. The FDA has issued safety warnings about fluoroquinolones due to risk of tendon rupture, peripheral neuropathy, and aortic aneurysm. They are not a first-line alternative for simple UTIs but are appropriate for more serious infections when other drugs are contraindicated.
Fosfomycin (Monurol)
Fosfomycin is a single-dose oral antibiotic approved for uncomplicated UTIs in women. One 3-gram packet mixed with water is taken as a single dose. It's convenient and has a good safety profile, making it useful for patients with allergies or drug interactions. However, it's not active against all UTI-causing organisms and is primarily used for E. coli and Enterococcus faecalis infections.
Alternatives for Skin and Soft Tissue Infections (MRSA)
TMP-SMX is a key treatment for community-acquired MRSA skin infections. Alternatives include:
Doxycycline: A tetracycline antibiotic effective against MRSA skin infections. 100 mg twice daily for 5–14 days. Avoid in children under 8 and in pregnancy.
Clindamycin: Effective against many MRSA strains; however, inducible resistance (D-zone test positive) can be an issue. Check local resistance patterns.
Linezolid: Reserved for serious MRSA infections when oral alternatives are exhausted; expensive and not typically first-line.
Alternatives for PCP (Pneumocystis Pneumonia) Prophylaxis
TMP-SMX is the preferred drug for PCP prophylaxis in immunocompromised patients. If a patient cannot tolerate it, alternatives include:
Dapsone: 100 mg daily orally. Check for G6PD deficiency before use as it can cause hemolytic anemia. Often used for sulfa-allergic patients.
Atovaquone: 1500 mg daily with food. Good tolerability but less effective than TMP-SMX. Expensive.
Aerosolized pentamidine: 300 mg monthly via nebulizer. Less effective than oral options but useful for patients who cannot tolerate oral agents.
How to Get an Alternative Prescription
If you need a switch, contact your prescribing provider (or a telehealth service) and explain why you need an alternative — whether it's stock availability, side effects, or allergy. Many providers can call in an alternative prescription the same day. Telehealth platforms like Teladoc, MDLive, and others can often see you within hours.
If your prescription is correct but you simply can't find it at a local pharmacy, medfinder can help you locate which nearby pharmacies have it in stock. See also our guide on why TMP-SMX can be hard to find.
Frequently Asked Questions
For uncomplicated UTIs in adults, nitrofurantoin (Macrobid) 100 mg twice daily for 5–7 days is the most commonly recommended first-line alternative. Fosfomycin (Monurol) as a single 3-gram dose is another convenient option. Fluoroquinolones like ciprofloxacin are effective but are generally reserved for more serious cases due to their side-effect profile.
Standard amoxicillin alone is not recommended for UTIs because E. coli resistance rates are over 30% in many areas. However, amoxicillin-clavulanate (Augmentin) may be an option in certain situations. Always have a urine culture done when possible so the antibiotic is matched to the actual bacteria causing your infection.
If you have a sulfa allergy, avoid sulfamethoxazole/trimethoprim entirely. For UTIs, nitrofurantoin is a safe, effective alternative. For MRSA skin infections, doxycycline is commonly used. For PCP prophylaxis, dapsone (if G6PD normal) or atovaquone are standard alternatives. Always tell your doctor and pharmacist about your sulfa allergy.
Yes. Doxycycline 100 mg twice daily is a well-established alternative to TMP-SMX for community-acquired MRSA skin infections. Both drugs have similar efficacy for mild-to-moderate skin and soft tissue infections. Doxycycline should be avoided in children under 8 years old and during pregnancy.
TMP-SMX (Bactrim) is the preferred first-line PCP prophylaxis. If a patient cannot tolerate it, the main alternatives are dapsone 100 mg daily (requires G6PD testing), atovaquone 1500 mg daily with food, or aerosolized pentamidine 300 mg monthly. Each has different efficacy and side-effect profiles, so discuss with your HIV provider.
Medfinder Editorial Standards
Medfinder's mission is to ensure every patient gets access to the medications they need. We are committed to providing trustworthy, evidence-based information to help you make informed health decisions.
Read our editorial standardsPatients searching for Sulfamethoxazole/Trimethoprim also looked for:
More about Sulfamethoxazole/Trimethoprim
30,237 have already found their meds with Medfinder.
Start your search today.





