Bactrim Side Effects: What to Expect and When to Call Your Doctor

April 6, 2026
Antibiotics
Featured Post

Your doctor just prescribed Bactrim for a UTI or skin infection, and now you're scanning the pharmacy printout wondering what you're in for. Fair enough — sulfamethoxazole-trimethoprim (the generic name behind Bactrim) is one of the most commonly prescribed antibiotics in the US, and like any antibiotic, it comes with a real list of potential side effects worth knowing about before you take your first dose.

Here's what actually happens to most people, what's rare but serious, and when you should pick up the phone and call your doctor.

At a glance

  • Bactrim (sulfamethoxazole-trimethoprim) most commonly causes nausea, vomiting, diarrhea, and skin rash
  • Serious but rare reactions include Stevens-Johnson syndrome, severe blood disorders, and liver or kidney damage
  • Most mild side effects resolve within a few days of finishing treatment
  • Older adults and people with kidney problems face higher risks and may need dose adjustments
  • Sun sensitivity is a real concern — you'll burn faster and easier while taking Bactrim
  • Always finish your full course even if side effects are mild, unless your doctor tells you to stop

What is Bactrim and what does it treat?

Bactrim is a combination antibiotic containing two active ingredients: sulfamethoxazole and trimethoprim. You might see it written as SMX-TMP on your prescription label, or dispensed as Bactrim DS (double strength, the 800/160 mg tablet that's become the standard adult dose).

It works by blocking two separate steps in how bacteria produce folic acid — a nutrient they need to multiply. By hitting bacteria at two points in the same pathway, Bactrim is effective against a wide range of infections.

Doctors most frequently prescribe it for:

  • Urinary tract infections (UTIs) — still one of the first-line choices for uncomplicated UTIs
  • Skin and soft tissue infections, including MRSA
  • Ear infections (otitis media) in children
  • Traveler's diarrhea
  • Pneumocystis jirovecii pneumonia (PJP) — both treatment and prevention, particularly in immunocompromised patients

Because it's available as an affordable generic, Bactrim remains a go-to antibiotic in clinics and emergency rooms across the country.

Common side effects of Bactrim

Most people who take a standard course of Bactrim will either have no side effects at all or experience mild symptoms that clear up on their own. The most frequently reported issues involve the GI tract and skin.

Stomach and digestive issues

Nausea is the side effect you're most likely to notice. It tends to hit within the first day or two of starting treatment and often improves as your body adjusts. Vomiting, diarrhea, and loss of appetite round out the typical GI complaints.

Taking Bactrim with food and a full glass of water helps. An empty stomach makes nausea worse for most people.

Skin rash

A mild, non-serious rash shows up in roughly 3-4% of people taking sulfamethoxazole-trimethoprim. It's usually flat, slightly itchy, and appears within the first week or two of treatment. This type of rash is generally not dangerous on its own — but it does warrant a call to your doctor, because rashes can occasionally be the first sign of a more serious allergic reaction (more on that below).

Headache and dizziness

Less talked about but not uncommon. Some people feel lightheaded or develop mild headaches during treatment. Staying well-hydrated helps, and these symptoms typically resolve after the antibiotic course ends.

Sun sensitivity (photosensitivity)

This one catches people off guard. Bactrim makes your skin significantly more sensitive to UV radiation. You can sunburn in a fraction of the time it would normally take — even on overcast days or through car windows.

Worth knowing: If you're taking Bactrim during summer months or spending any time outdoors, wear SPF 30+ sunscreen, a hat, and consider UV-protective clothing. The photosensitivity can persist for a few days after you finish the medication.

Serious side effects that need immediate attention

The side effects listed below are uncommon to rare, but they're serious enough that you should know the warning signs. If you experience any of these, contact your healthcare provider right away — or go to an emergency room if symptoms are severe.

Severe skin reactions (Stevens-Johnson syndrome and TEN)

Stevens-Johnson syndrome (SJS) and its more severe form, toxic epidermal necrolysis (TEN), are rare but potentially life-threatening reactions. Sulfonamide antibiotics like Bactrim are among the most common drug triggers for SJS.

Warning signs include: a spreading rash with blistering, painful skin that feels like a burn, peeling skin, sores appearing in or around the mouth, eyes, or genitals, and fever alongside the rash. These symptoms typically develop within the first two weeks of treatment.

This is a medical emergency. Stop taking Bactrim and get to an emergency room if you see blistering or widespread skin peeling.

Blood disorders

Bactrim can affect your bone marrow's ability to produce blood cells. The trimethoprim component interferes with folic acid metabolism — which is exactly how it kills bacteria, but in rare cases, it can impact your own blood cell production too.

Potential blood-related complications include:

  • Thrombocytopenia (low platelets) — unusual bruising, pinpoint red spots on skin, bleeding that won't stop easily
  • Leukopenia (low white blood cells) — increased susceptibility to infections, sore throat, fever
  • Megaloblastic anemia — fatigue, weakness, shortness of breath, pale skin

People with existing folate deficiency, those on certain other medications (like methotrexate), and older adults on prolonged courses face the highest risk. Your doctor may order blood work during longer treatment courses to catch these problems early.

Liver damage (hepatotoxicity)

Bactrim can cause drug-induced liver injury, though it's uncommon with standard-length courses. Symptoms to watch for: yellowing of the skin or whites of the eyes (jaundice), dark-colored urine, persistent nausea or vomiting, upper right abdominal pain, and unusual fatigue.

Cholestatic hepatitis — where bile flow from the liver gets blocked — has been reported in the medical literature with sulfonamide antibiotics.

Kidney problems

Trimethoprim can raise serum creatinine levels, which sometimes looks like worsening kidney function on blood tests even when the kidneys are fine (it blocks creatinine secretion in the kidney tubules without actually reducing filtration). However, actual kidney damage — including interstitial nephritis and crystalluria — can occur, particularly if you're not drinking enough fluids.

Important: Drink plenty of water while taking Bactrim. Adequate hydration reduces the risk of crystal formation in the kidneys and helps your body clear the drug efficiently. This is especially critical in hot weather or if you're physically active.

Hyperkalemia (high potassium)

Trimethoprim structurally resembles potassium-sparing diuretics, which means it can raise potassium levels in your blood. For most healthy adults on a short course, this isn't a concern. But it becomes significant if you're also taking ACE inhibitors, ARBs, potassium supplements, or spironolactone — or if you have kidney disease.

Symptoms of high potassium include muscle weakness, irregular heartbeat, numbness or tingling, and in severe cases, cardiac arrhythmias.

Clostridioides difficile (C. diff) infection

Like any antibiotic, Bactrim can disrupt the normal bacteria in your gut, potentially allowing C. difficile to overgrow. Symptoms include watery diarrhea (three or more times per day), fever, abdominal cramping, and in severe cases, bloody stool. C. diff can occur during treatment or even weeks after finishing the antibiotic.

If you develop persistent, watery diarrhea while on or after Bactrim, contact your doctor. Don't take anti-diarrheal medication like loperamide without medical guidance, as it can mask a worsening C. diff infection.

Side effects of Bactrim for UTI treatment

When Bactrim is prescribed specifically for a urinary tract infection, the standard course is usually 3 days for uncomplicated UTIs (sometimes 7-14 days for complicated ones). The shorter course means you're exposed to less of the drug, and side effects are generally milder and shorter-lived.

The most common complaints during UTI treatment are nausea and a mild skin rash. Because UTI courses are brief, serious side effects like blood disorders are exceedingly rare.

One thing to keep in mind: Bactrim resistance among UTI-causing bacteria has been climbing in some regions. If your symptoms don't improve within 2-3 days, your infection may be resistant to sulfamethoxazole-trimethoprim, and your doctor may need to switch antibiotics — this isn't a side effect of the drug, but it's worth knowing.

Bactrim side effects in women

Women take Bactrim more frequently than men, largely because UTIs are far more common in women. A few side effects have a particular relevance:

Vaginal yeast infections are a common secondary effect. Antibiotics disrupt the vaginal microbiome alongside gut bacteria, and Bactrim is no exception. If you're prone to yeast infections, talk to your doctor about whether a preventive antifungal makes sense during your course.

Pregnancy concerns: Bactrim is generally avoided during pregnancy, particularly in the first trimester (due to the folic acid antagonism that could theoretically affect fetal development) and near term (risk of neonatal jaundice and kernicterus). If you discover you're pregnant while taking Bactrim, contact your doctor — don't panic, but don't delay the conversation either.

Hormonal contraceptive interaction: There's an older concern that antibiotics reduce birth control pill effectiveness. The evidence for most antibiotics, including Bactrim, is weak — but some clinicians still recommend backup contraception during treatment, particularly because severe diarrhea or vomiting (potential side effects) can genuinely reduce oral contraceptive absorption.

Bactrim side effects in elderly patients

Older adults face meaningfully higher risks with Bactrim, and this is where the side effect profile gets more serious.

Hyperkalemia risk increases with age. Kidney function naturally declines over time, and many older adults take medications that also raise potassium (ACE inhibitors, ARBs, potassium-sparing diuretics). A 2023 study in JAMA Internal Medicine found that trimethoprim-containing antibiotics were associated with a notably higher rate of hyperkalemia-related hospital admissions in patients over 65 compared to other antibiotics.

Blood disorders are more likely. Older adults are more susceptible to the bone marrow suppression effects, especially if they have nutritional deficiencies or take other medications that affect folic acid metabolism.

Falls and confusion. Dizziness and lightheadedness — mild nuisances in younger patients — can lead to falls in elderly patients. Some case reports describe confusion and altered mental status, particularly at higher doses or in patients with impaired kidney clearance.

For caregivers: If an older family member is prescribed Bactrim, make sure their prescriber knows all their other medications — especially blood pressure drugs, diuretics, and potassium supplements. Dose adjustments based on kidney function can significantly reduce risk.

How long do Bactrim side effects last?

This depends on the side effect and the length of your treatment.

Mild GI symptoms (nausea, diarrhea, loss of appetite) typically resolve within 1-3 days after your last dose. Some people feel fine within 24 hours of stopping.

Skin rash from a mild, non-allergic reaction usually fades over 3-7 days after discontinuation. If the rash persists beyond two weeks or worsens, see your doctor.

Photosensitivity can linger for several days after finishing your course. Continue sun precautions for at least a week after your last pill.

Blood count changes, if they occurred, generally normalize within 1-3 weeks as your bone marrow recovers, though your doctor may want to verify with follow-up lab work.

Serious reactions (SJS, liver injury, severe blood disorders) have recovery timelines that vary widely based on severity and typically require medical management.

The bottom line: if you took a 3-day course for a UTI, most side effects should resolve within a few days. A 14-day course or prophylactic use over weeks or months carries a longer tail of potential effects.

Managing mild side effects

A few practical strategies that can make a standard course of Bactrim more tolerable:

For nausea: Take your dose with a meal and a full glass of water. Avoid taking it on an empty stomach. If nausea is significant, your doctor may be able to adjust timing or suggest an anti-nausea remedy.

For diarrhea: Stay hydrated with water and electrolyte solutions. Eat bland, binding foods (rice, bananas, toast). Avoid dairy and high-fiber foods until symptoms settle. Probiotics may help restore gut flora, though evidence is mixed — discuss with your pharmacist.

For sun sensitivity: This is mostly about prevention. Sunscreen (SPF 30+, reapplied every 2 hours outdoors), protective clothing, and avoiding peak sun hours (10am-4pm) are your best defenses.

For headaches: Over-the-counter acetaminophen is generally safe to use with Bactrim. Avoid ibuprofen or naproxen if you have kidney concerns, as combining NSAIDs with trimethoprim can increase the risk of kidney problems and hyperkalemia.

When to stop taking Bactrim and call your doctor

Contact your prescriber if you experience:

  • A rash that's spreading, blistering, or involves mucous membranes (mouth, eyes)
  • Fever that develops after starting the medication
  • Dark urine, yellowing skin, or persistent abdominal pain
  • Unusual bruising or bleeding
  • Severe or bloody diarrhea
  • Muscle weakness, irregular heartbeat, or numbness
  • Swelling of the face, lips, tongue, or throat (anaphylaxis — call 911)

Don't stop your antibiotic early without talking to your doctor first — incomplete courses can contribute to antibiotic resistance. But certain severe reactions do warrant immediate discontinuation, and your provider can make that call.

Bactrim drug interactions to know about

Several medications interact meaningfully with Bactrim:

Interacting Drug Concern What to Do
Warfarin (Coumadin) Bactrim increases warfarin levels, raising bleeding risk INR monitoring required; dose adjustment likely
Methotrexate Both drugs affect folic acid — compounded toxicity risk Avoid combination when possible; monitor blood counts closely
ACE inhibitors / ARBs Combined hyperkalemia risk with trimethoprim Monitor potassium, especially in elderly or those with kidney disease
Phenytoin (Dilantin) Bactrim can increase phenytoin levels Monitor phenytoin levels; watch for toxicity signs
Dofetilide Increased dofetilide levels; cardiac risk Combination is contraindicated
Sulfonylureas (glipizide, glyburide) Bactrim may enhance blood sugar-lowering effect Monitor blood glucose more frequently

Always bring a complete medication list — including over-the-counter drugs and supplements — to any appointment where an antibiotic is being prescribed.

Sulfa allergy and Bactrim

Bactrim contains sulfamethoxazole, a sulfonamide antibiotic. If you've had an allergic reaction to sulfa drugs in the past, Bactrim is generally off-limits. Reactions can range from mild rash to full anaphylaxis.

That said, "sulfa allergy" is sometimes listed in medical charts based on vague historical reactions. If you're unsure whether your allergy is genuine or what kind of reaction you had, it's worth discussing with your doctor. Not all drugs with "sulf" in the name are cross-reactive — for example, sulfasalazine and sumatriptan have sulfonamide structures but rarely cross-react with sulfonamide antibiotics.

A true, documented sulfa antibiotic allergy means Bactrim should be avoided. Your doctor has alternative antibiotics for nearly every condition Bactrim treats.

The bottom line

Bactrim is an effective, affordable antibiotic that works well for UTIs, skin infections, and several other conditions. Most people tolerate it with minimal side effects — nausea and mild rash are the most common complaints, and both tend to resolve quickly once treatment ends.

The serious side effects (Stevens-Johnson syndrome, blood disorders, liver and kidney damage, hyperkalemia) are rare but real, and they're more likely in certain populations: older adults, people with kidney disease, those on medications that raise potassium, and anyone with a folate deficiency. Knowing the warning signs means you can catch problems early.

Stay hydrated, take it with food, protect yourself from the sun, and finish your full course unless your doctor says otherwise. If something feels wrong, call your prescriber — that's exactly what they're there for.

Frequently asked questions

How long do Bactrim side effects last after stopping?

Most mild side effects like nausea, diarrhea, and headache resolve within 1-3 days after your last dose. Skin rashes may take up to a week to fully clear. Sun sensitivity can persist for several days after finishing treatment, so continue sun protection measures for at least a week. Serious side effects like blood count changes may take 1-3 weeks to fully normalize.

Is Bactrim safe for elderly patients?

Bactrim can be used in older adults, but extra caution is warranted. Elderly patients face higher risks of hyperkalemia (high potassium), blood disorders, and kidney-related complications — especially if they take ACE inhibitors, ARBs, or potassium-sparing diuretics. Dose adjustments based on kidney function are often necessary, and many geriatric specialists recommend closer monitoring with blood work during treatment.

What are the most common side effects of Bactrim for a UTI?

For a standard 3-day UTI course, the most frequently reported side effects are nausea, mild diarrhea, and occasional skin rash. Because the treatment duration is short, serious side effects are very rare with UTI-specific use. Taking the medication with food significantly reduces nausea for most people.

Can Bactrim cause a yeast infection?

Yes. Like most antibiotics, Bactrim can disrupt the balance of bacteria in the body, including vaginal flora, which may lead to a yeast infection. This is more common in women and in people taking longer courses. If you're prone to yeast infections, ask your doctor about preventive measures before starting your antibiotic course.

Should I avoid alcohol while taking Bactrim?

While Bactrim doesn't cause a disulfiram-like reaction the way metronidazole (Flagyl) can, alcohol isn't ideal during any antibiotic course. Alcohol can worsen nausea and GI side effects, may stress the liver (which is already processing the drug), and generally slows recovery. There's no strict prohibition, but most pharmacists recommend minimizing or avoiding alcohol until you've completed treatment.


This article is for informational purposes only and does not constitute medical advice. Always consult with a qualified healthcare provider for diagnosis and treatment. Pricing information is current as of the publication date but may change. Verify pricing directly before making purchasing decisions.