What Antibiotic Works for a UTI: First-Line Options

For most uncomplicated urinary tract infections, nitrofurantoin is the go-to antibiotic. It works well against the bacteria that cause the vast majority of bladder infections, resistance rates remain relatively low, and a typical course lasts just five to seven days. But your specific prescription depends on factors like allergies, pregnancy, kidney function, and local resistance patterns in your area.

First-Line Antibiotics for Uncomplicated UTIs

An uncomplicated UTI means a bladder infection in an otherwise healthy person, without fever or signs that the infection has spread to the kidneys. Three antibiotics are most commonly prescribed as first-line options.

Nitrofurantoin is the most widely recommended choice. The extended-release form (often sold as Macrobid) is taken twice a day, typically for five days in women and seven days in men. It concentrates heavily in urine, which makes it effective right where the infection lives. It does need to be taken with food to reduce nausea, which is the most common side effect.

Trimethoprim-sulfamethoxazole (commonly known as Bactrim) is another well-established option. It’s taken twice daily, usually for three days in straightforward cases or up to 14 days for more involved infections. The catch is that bacterial resistance to this drug has climbed significantly in many regions. If local resistance rates exceed about 20%, your provider will likely choose something else.

Fosfomycin stands out because the entire treatment is a single dose: one packet of granules dissolved in water. International guidelines recommend it as a first-line option, and earlier studies reported cure rates between 77% and 95%. More recent data has been less encouraging. A prospective clinical trial found that fosfomycin cleared the infection in 58% of patients compared to 70% for nitrofurantoin. That convenience trade-off is worth knowing about.

When a Different Antibiotic Is Needed

Not everyone can take the first-line options. If you have a sulfa allergy, Bactrim is off the table. If your kidney function is significantly reduced, nitrofurantoin won’t concentrate in the urine well enough to work. In these situations, cephalexin (a type of penicillin-related antibiotic called a cephalosporin) is a common alternative, prescribed twice a day for about seven days. Its cure rates are slightly lower than nitrofurantoin, with one study showing a 60% sustained cure rate at six weeks compared to higher rates for first-line drugs, but it remains effective and well tolerated for many people.

Fluoroquinolones like ciprofloxacin are powerful antibiotics that work for UTIs, but they’re no longer considered appropriate for routine bladder infections. The FDA has flagged serious side effects including tendon damage, nerve problems, and joint pain. On top of that, overuse has driven up resistance: roughly 22% of UTI-causing E. coli strains tested in one FDA-reviewed study were resistant to fluoroquinolones. These drugs are now reserved for cases where the bacteria are resistant to everything else, or when there’s a specific risk factor like a recent hospitalization with IV antibiotics or a history of Pseudomonas infection.

How Quickly Symptoms Improve

Most people notice a real difference within 24 to 48 hours of starting antibiotics. The burning during urination and the constant urge to go typically ease first. If your infection has spread to the kidneys (marked by fever, back pain, or chills), improvement takes longer, usually three to seven days.

Even when you feel better quickly, finishing the full course matters. Stopping early can leave behind bacteria that are harder to kill, setting you up for a recurrent infection or contributing to antibiotic resistance. Guidelines emphasize keeping treatment as short as effective, which is why courses for uncomplicated UTIs have gotten shorter over the years. A five-day nitrofurantoin course, for instance, is shorter than what was standard a decade ago. Each extra day of antibiotics slightly raises the chance of side effects like yeast infections, digestive problems, or allergic reactions.

Complicated UTIs Need a Different Approach

A UTI is considered “complicated” when there are signs the infection has moved beyond the bladder or when something about your health makes it harder to treat. The key red flags are fever, flank pain, nausea, and abnormal vital signs. Having a urinary catheter also puts you in this category.

For complicated UTIs, antibiotic selection gets more individualized. Providers follow a step-by-step approach: first assessing how sick you are (especially whether sepsis is a concern), then looking at whether you’ve had resistant bacteria in past urine cultures, and finally considering the local resistance patterns at their hospital or clinic. The antibiotics used are often broader in spectrum and may be given intravenously before switching to oral pills once you’re improving. Treatment courses run longer than the standard five to seven days.

UTI Antibiotics During Pregnancy

UTIs are more common during pregnancy, and they’re taken more seriously because untreated infections raise the risk of preterm birth and kidney complications. The American College of Obstetricians and Gynecologists recommends a five-to-seven-day course of antibiotics for bladder infections in pregnant individuals. Even bacteria in the urine without symptoms (called asymptomatic bacteriuria, which normally wouldn’t be treated) gets a full antibiotic course during pregnancy when colony counts are high enough.

The safe options include nitrofurantoin, certain penicillin-family antibiotics, and fosfomycin. Sulfonamides like Bactrim can be used but are generally avoided near the end of pregnancy. The specific choice depends on urine culture results and the drug’s safety profile for each trimester. There’s no single preferred regimen backed by strong pregnancy-specific data, so the decision is tailored to culture sensitivity results.

Why Your Provider May Order a Urine Culture

For a first-time, straightforward UTI, many providers prescribe empirically, meaning they choose an antibiotic based on what’s most likely to work without waiting for lab results. But if you’ve had recurrent UTIs, a recent antibiotic course, or symptoms that don’t improve within two days of starting treatment, a urine culture becomes important. The culture identifies the exact bacteria causing your infection and tests which antibiotics can kill it. This takes about 48 hours to complete.

Resistance patterns vary by region, by hospital, and even between patients. An antibiotic that works perfectly for your neighbor’s UTI might be useless against the strain you’re carrying. If your symptoms aren’t improving within that 24-to-48-hour window, contact your provider. A culture result may already be available that allows them to switch you to something more targeted.