How Long Do You Take Bactrim for a UTI?

For a straightforward bladder infection in women, Bactrim is typically prescribed for 3 days. Men usually need a longer course of at least 7 days, and complicated or kidney-involved infections can require 7 to 14 days of treatment. Your specific duration depends on the type and severity of your infection, your sex, and whether the bacteria causing it are susceptible to the drug.

Standard Duration for Bladder Infections

A 3-day course is the standard for uncomplicated cystitis (a simple bladder infection) in otherwise healthy women. You’ll take one double-strength tablet twice a day for those three days. Each double-strength tablet contains 800 mg of sulfamethoxazole and 160 mg of trimethoprim, the two active ingredients that work together to stop bacteria from building the proteins they need to survive.

This short course works well because Bactrim concentrates heavily in urine, reaching the infection site directly. Most women notice relief from burning and urgency within just a few hours of the first dose, with significant improvement across all symptoms within two to three days. Even if you feel better after a day or two, finishing the full course matters to clear the infection completely and reduce the chance of resistance developing.

Why Men Take It Longer

UTIs in men are far less common and are generally considered complicated by default, largely because the prostate can harbor bacteria. The European Association of Urology recommends men take Bactrim for at least 7 days for a bladder infection. When a febrile UTI or acute prostatitis is suspected, the course may extend to 10 to 14 days. The IDSA doesn’t provide men-specific guidance, so treatment decisions often rely on clinical judgment and the severity of symptoms.

Complicated and Kidney Infections

If your infection has spread to the kidneys (pyelonephritis) or is classified as complicated due to structural abnormalities, catheter use, or other factors, the treatment window shifts. Updated 2025 IDSA guidelines suggest 7 days for non-fluoroquinolone antibiotics like Bactrim in complicated UTIs where you’re improving on therapy. Older protocols called for 10 to 14 days, but recent evidence supports shorter courses for most patients who respond well.

Some situations still call for the longer 10-to-14-day range. These include infections with kidney abscesses, complete urinary obstruction, recent urological surgery, or severe sepsis. Patients with weakened immune systems or chronic kidney disease may also need extended treatment. If bacteria have entered the bloodstream alongside the UTI, the guideline suggests 7 days as sufficient for most cases where clinical improvement is clear.

When Bactrim May Not Be the Right Choice

Bactrim only works if the bacteria causing your UTI are susceptible to it. The most common culprit, E. coli, has developed significant resistance to Bactrim in many communities. IDSA guidelines recommend that clinicians avoid prescribing it empirically (before culture results come back) in areas where local E. coli resistance exceeds 20%. In some regions, resistance rates have already surpassed that threshold, which is one reason Bactrim doesn’t appear on every hospital’s preferred treatment list.

If you’ve taken Bactrim for a UTI recently and it didn’t resolve, resistance is a likely explanation. A urine culture can confirm whether your specific bacteria will respond to the drug, and your provider can switch to an alternative if needed.

Bactrim is also not appropriate during pregnancy, particularly in the first trimester. The drug interferes with folic acid metabolism, which is critical for early fetal development. Epidemiologic studies have linked first-trimester exposure to an increased risk of neural tube defects, cardiovascular abnormalities, and other congenital malformations. If you’re pregnant or planning to become pregnant, other antibiotics are safer options for UTI treatment.

What to Do While Taking It

Hydration is more than general wellness advice with Bactrim. The drug can crystallize in urine that’s too concentrated, potentially causing kidney stones or crystal-related damage. Drink enough water throughout the day to keep your urine pale and your output steady. This is especially important in hot weather or if you tend to under-hydrate.

Bactrim can also cause photosensitivity, meaning your skin may burn more easily in the sun. This isn’t a universal reaction, but it’s worth being aware of if you’re spending time outdoors during your course.

Take each dose with a full glass of water, and try to space your two daily doses about 12 hours apart for consistent drug levels. If you miss a dose, take it as soon as you remember, but don’t double up to compensate.

When Symptoms Should Improve

Painful urination often eases within hours of the first tablet. Broader symptoms like frequency, urgency, and pelvic pressure typically resolve within two to three days. For a standard 3-day course, this means you should feel substantially better by the time you take your last dose.

If your symptoms haven’t improved after 48 hours, or if they worsen at any point with fever, back pain, or nausea, the antibiotic may not be effective against your particular bacteria. That’s a signal to contact your provider, who will likely order a urine culture if one wasn’t done initially and consider switching your antibiotic.