What Antibiotics Treat a UTI: Simple to Complicated

Most uncomplicated urinary tract infections are treated with one of three first-line antibiotics: nitrofurantoin, trimethoprim-sulfamethoxazole, or fosfomycin. These clear the infection within a few days for the vast majority of people, though the specific drug your provider chooses depends on your local resistance patterns, allergies, and whether the infection is straightforward or complicated by other factors.

First-Line Antibiotics for Simple UTIs

A “simple” or uncomplicated UTI means a bladder infection in an otherwise healthy person with no structural abnormalities in the urinary tract. These infections are almost always caused by E. coli, and three antibiotics remain the go-to options.

Nitrofurantoin (Macrobid) is one of the most commonly prescribed UTI antibiotics. The standard course is 100 mg twice daily for five days, though some providers extend it to seven days. It works by damaging bacterial DNA and cell proteins through multiple pathways at once, which is partly why bacteria have had a hard time developing resistance to it. The catch is that nitrofurantoin only concentrates in the bladder, so it works well for lower UTIs but cannot treat kidney infections.

Trimethoprim-sulfamethoxazole (Bactrim, Septra) blocks two steps in the process bacteria use to make folate, which they need to grow and reproduce. A typical course for a bladder infection is one double-strength tablet (160/800 mg) every 12 hours for three days. It’s effective and inexpensive, but resistance rates have climbed in many regions. Your provider may skip it if local resistance exceeds about 20%.

Fosfomycin (Monurol) is the simplest option: a single 3-gram dose dissolved in water, taken once. That convenience makes it appealing, though it tends to be slightly less effective overall than a full course of nitrofurantoin or trimethoprim-sulfamethoxazole. It’s a good choice when you need a one-and-done treatment or when the bacteria causing your infection are resistant to other options.

A Newer Option: Pivmecillinam

The FDA approved pivmecillinam in 2024 as a first-line oral treatment for uncomplicated UTIs in women. This isn’t actually a new drug globally. It’s been widely used in Europe and Canada for over 30 years, where it’s built a strong safety record. Bacterial resistance rates remain remarkably low, between 1% and 6%, which is unusual for an antibiotic that’s been around that long. If your provider mentions it, it’s a well-established medication that’s simply new to the U.S. market.

Second-Line Options

When first-line drugs can’t be used, whether because of allergies, resistance, or side effect concerns, providers turn to broader-spectrum antibiotics. These include certain cephalosporins like cefpodoxime and cefdinir, which belong to a class of drugs that kill bacteria by disrupting their cell walls. They work well but are considered second-line because using broader antibiotics when narrower ones would do contributes to resistance over time.

Fluoroquinolones like ciprofloxacin and levofloxacin were once widely prescribed for UTIs, but that has changed significantly. The FDA issued an updated boxed warning stating that the serious side effects of fluoroquinolones generally outweigh the benefits for uncomplicated UTIs when other treatment options exist. Those side effects can affect tendons, muscles, joints, nerves, and the central nervous system, and in some cases the damage is permanent. Fluoroquinolones should be reserved for situations where no other antibiotic will work.

How Complicated UTIs Change the Picture

A UTI is considered “complicated” when something beyond the infection itself is at play: a kidney infection, an abnormal urinary tract, a catheter, a weakened immune system, or pregnancy. Complicated UTIs typically require longer courses of antibiotics, often 7 to 14 days instead of 3 to 5. The choice of drug also shifts. Nitrofurantoin, for instance, only reaches effective levels in the bladder, so it’s not used for kidney infections. Providers often start with broader-spectrum antibiotics and then narrow the choice once urine culture results come back showing exactly which bacteria are involved and which drugs will kill them.

For highly resistant infections, particularly those caused by difficult gram-negative bacteria, specialized antibiotics exist. These are reserved for cases where standard drugs fail and are typically given in a hospital setting.

UTI Treatment During Pregnancy

UTIs are more common during pregnancy and carry higher risks, including preterm labor, so they’re treated more aggressively. The American College of Obstetricians and Gynecologists recommends a 5 to 7 day course of antibiotics for both bladder infections and asymptomatic bacteria found in urine cultures. Options considered appropriate during pregnancy include nitrofurantoin, certain penicillin-type antibiotics, sulfonamides, and fosfomycin, though the specific choice depends on culture results and the stage of pregnancy. Some antibiotics that are fine outside of pregnancy carry risks during certain trimesters, so your provider will factor timing into the decision.

Why Urine Cultures Matter

For a first, straightforward UTI, many providers prescribe empirically, meaning they choose an antibiotic based on what’s most likely to work without waiting for lab results. That’s reasonable because the overwhelming majority of simple UTIs are caused by E. coli, and first-line drugs handle it well.

But if your symptoms don’t improve within two to three days, if you get recurrent infections, or if your UTI is complicated, a urine culture becomes essential. The culture identifies the exact bacteria and tests which antibiotics can kill it. This prevents weeks of trial and error and ensures you’re not taking a drug the bacteria have already evolved to resist. If your provider orders a culture, results usually take 24 to 48 hours.

What to Expect During Treatment

Most people notice symptom relief within one to two days of starting antibiotics, though it’s important to finish the full course even after you feel better. Stopping early increases the chance that surviving bacteria bounce back, potentially with resistance to the drug you just took.

Common side effects vary by antibiotic. Nitrofurantoin can cause nausea, especially on an empty stomach, so taking it with food helps. Trimethoprim-sulfamethoxazole occasionally causes rashes or stomach upset. Fosfomycin’s single-dose format means side effects are brief if they occur at all, typically mild diarrhea. If you develop hives, difficulty breathing, or severe diarrhea on any antibiotic, contact your provider promptly, as these can signal an allergic reaction or a secondary infection.