What Antibiotic Treats a UTI? First-Line Options

The most commonly prescribed antibiotics for a straightforward urinary tract infection are nitrofurantoin, trimethoprim/sulfamethoxazole (often called Bactrim), and fosfomycin. Which one you’re prescribed depends on your local resistance patterns, your medical history, and whether you’re pregnant or have other complicating factors. Most uncomplicated UTIs clear up within three to seven days of starting treatment.

First-Line Antibiotics for Simple UTIs

Clinical guidelines recommend three antibiotics as the go-to choices for uncomplicated cystitis, which is the medical term for a bladder infection without complications:

  • Nitrofurantoin: Taken twice a day for five days (the extended-release form, 100 mg every 12 hours). This is one of the most frequently prescribed options because resistance rates remain relatively low.
  • Trimethoprim/sulfamethoxazole (Bactrim): Taken twice a day for three days. This shorter course makes it convenient, but it’s only recommended as a first choice in areas where fewer than 20% of UTI-causing bacteria are resistant to it. In many parts of the U.S., resistance has climbed past that threshold, so your provider may choose a different option.
  • Fosfomycin: A single 3-gram dose dissolved in water, taken just once. The one-and-done convenience is appealing, though it may be slightly less effective than the other two options and isn’t always easy to find at every pharmacy.

For most women with a straightforward bladder infection, one of these three will be the prescription. The choice often comes down to what bacteria are common in your area and which drugs they still respond to.

Why You Probably Won’t Get Ciprofloxacin

Fluoroquinolones like ciprofloxacin and levofloxacin used to be widely prescribed for UTIs. That’s changed significantly. The FDA has approved a boxed warning (the strongest safety warning on a drug label) stating that the serious side effects of fluoroquinolones generally outweigh the benefits for uncomplicated UTIs when other treatment options exist. Those side effects can involve tendons, muscles, joints, nerves, and the central nervous system, and some of these problems can be disabling or permanent.

Fluoroquinolones are now reserved for UTIs only when no alternative antibiotic is appropriate. If your infection is more severe or involves the kidneys, your provider may still consider them, but for a typical bladder infection, expect one of the first-line options instead.

When a UTI Is Considered Complicated

A “complicated” UTI involves factors that make the infection harder to treat. This includes UTIs in men, infections that spread to the kidneys (pyelonephritis), UTIs in people with structural abnormalities of the urinary tract, those with catheters, or infections in people with weakened immune systems. Pregnancy also changes the treatment approach.

Complicated UTIs typically require a longer course of antibiotics, sometimes different drugs, and occasionally intravenous treatment in a hospital before switching to oral pills to finish the course. The specific antibiotic is chosen based on urine culture results, which identify exactly which bacteria are causing the infection and which drugs will kill them.

UTI Treatment During Pregnancy

UTIs are common during pregnancy, and treating them promptly matters because untreated infections can lead to kidney infections and pregnancy complications. The American College of Obstetricians and Gynecologists lists nitrofurantoin, certain penicillin-type antibiotics (beta-lactams), sulfonamides, and fosfomycin as options depending on culture results and the stage of pregnancy.

For more serious infections during pregnancy, broader-spectrum antibiotics like ampicillin combined with gentamicin, or certain cephalosporins, may be used. If you have a penicillin allergy, your provider will assess the severity of that allergy before choosing an alternative. Cephalosporins are generally safe for people with mild penicillin allergies, while those at high risk for a severe allergic reaction need a different class of antibiotic entirely.

UTI Antibiotics for Children

Children with UTIs are typically started on trimethoprim/sulfamethoxazole, the same drug commonly used in adults. Alternatives include amoxicillin/clavulanate (Augmentin) and several cephalosporins like cephalexin (Keflex) and cefixime. Dosing for children is calculated based on body weight, which is why a pediatric prescription will look different from an adult one.

If your child is diagnosed with a UTI, completing the full course of antibiotics is important even if symptoms improve after a day or two. Stopping early increases the chance the infection comes back or that bacteria develop resistance.

Pain Relief While the Antibiotic Works

Antibiotics start working quickly, but the burning and urgency of a UTI can take a day or two to fully ease. Your provider may recommend phenazopyridine, an over-the-counter medication that numbs the urinary tract lining and relieves that painful burning sensation. It’s important to know that phenazopyridine is not an antibiotic. It does nothing to fight the infection itself. It only manages symptoms while you wait for the antibiotic to do its job. It also turns your urine a vivid orange, which is harmless but surprising if you aren’t expecting it.

Phenazopyridine is meant for short-term use only, typically no more than two days. By that point, the antibiotic should have reduced the bacterial load enough that the worst symptoms have faded on their own.

What to Expect During Treatment

Most people notice their symptoms improving within one to two days of starting antibiotics. The burning during urination usually eases first, followed by the constant urge to go. Even after you feel better, finish the full prescription. The bacteria causing your infection can survive in small numbers even after symptoms resolve, and cutting treatment short gives them a chance to rebound.

If your symptoms haven’t improved after two to three days on an antibiotic, contact your provider. This could mean the bacteria causing your infection are resistant to the drug you were given. A urine culture, if one wasn’t done initially, can identify the specific bacteria and reveal exactly which antibiotics will work. Your provider can then switch you to a more targeted option.

Drinking plenty of water during treatment helps flush bacteria from the urinary tract and can ease discomfort. Some people find that avoiding caffeine, alcohol, and spicy foods reduces bladder irritation while they recover.