What Antibiotic Is Good for a UTI: First-Line Options

The three most recommended antibiotics for an uncomplicated urinary tract infection are nitrofurantoin, trimethoprim-sulfamethoxazole, and fosfomycin. These are considered first-line treatments because they work well against the bacteria that cause most UTIs, carry fewer side effects than stronger alternatives, and help preserve the effectiveness of broader antibiotics for more serious infections.

The Three First-Line Antibiotics

Nitrofurantoin is often the go-to choice. It’s taken twice a day for five days and works by disrupting multiple processes inside bacteria at once, interfering with their ability to make proteins, build cell walls, and produce energy. Because it attacks bacteria through several pathways simultaneously, resistance to nitrofurantoin has remained remarkably low even after decades of use. One limitation: it only concentrates in the urine, so it works for bladder infections but not for infections that have spread to the kidneys.

Trimethoprim-sulfamethoxazole (commonly sold as Bactrim) is taken twice a day for three days, making it the shortest standard course. It’s highly effective, but there’s a catch. In some communities, more than 20% of the bacteria causing UTIs have developed resistance to it. Your doctor may choose a different option if resistance rates in your area are high, or if you’ve taken it recently.

Fosfomycin is the simplest regimen of all: a single dose, taken once. That convenience makes it appealing, and studies have found it compares well to multi-day courses of other antibiotics for uncomplicated UTIs. The tradeoff is that it can be more expensive and isn’t always stocked at every pharmacy.

Why Stronger Antibiotics Aren’t Used First

You might wonder why doctors don’t just prescribe something powerful like ciprofloxacin. Fluoroquinolones (the class ciprofloxacin belongs to) are effective against UTI bacteria, but the FDA has specifically advised against using them for uncomplicated UTIs when other options exist. The reason is serious: fluoroquinolones carry risks of tendon rupture, muscle and joint problems, nerve damage, and central nervous system effects. These side effects can be disabling and, in some cases, permanent. For a straightforward bladder infection, the risks simply outweigh the benefits when safer antibiotics work just as well.

Fluoroquinolones and broader-spectrum antibiotics are typically reserved for complicated UTIs, where the infection has moved beyond the bladder or the patient has factors that make treatment harder.

Uncomplicated vs. Complicated UTIs

The antibiotic your doctor picks depends heavily on whether your UTI is “uncomplicated” or “complicated.” An uncomplicated UTI is a bladder infection in an otherwise healthy person, typically a woman without structural urinary tract issues. The first-line antibiotics above are designed for this scenario.

A complicated UTI involves signs that the infection may have spread beyond the bladder, such as fever, flank pain, or chills. Having a catheter, being pregnant, or having known urinary tract abnormalities also shifts the classification. Updated guidelines from the Infectious Diseases Society of America focus on symptoms visible at the point of care, particularly fever and vital sign changes, to make this distinction. When a UTI is complicated, doctors assess how sick you are, evaluate your risk for antibiotic-resistant bacteria, and consider whether you’ve recently taken certain antibiotics. If you’ve had a resistant infection in the past, your doctor will avoid the antibiotic that failed. If you’ve used a fluoroquinolone in the last 12 months, guidelines recommend choosing something different.

UTI Treatment During Pregnancy

Pregnancy changes the calculation significantly. UTIs are more common during pregnancy and more dangerous if left untreated, since they can progress to kidney infections and affect the pregnancy. But not every antibiotic is safe for a developing baby.

Penicillin-type antibiotics (like amoxicillin and ampicillin) and cephalosporins (like cephalexin) are generally considered safe throughout pregnancy. Nitrofurantoin is safe in the second and third trimesters but carries a small risk of cleft lip if used during the first trimester. Trimethoprim-sulfamethoxazole is typically avoided in late pregnancy. Tetracyclines are not used after the fifth week of pregnancy because they can affect fetal bone growth and tooth development.

Managing Pain While the Antibiotic Works

Antibiotics start killing bacteria quickly, but the burning and urgency of a UTI can linger for a day or two before you feel relief. Phenazopyridine is an over-the-counter urinary pain reliever that numbs the lining of the urinary tract. It’s not an antibiotic and won’t treat the infection itself, but it can make the first couple of days far more comfortable. It turns your urine bright orange, which is harmless but surprising if you’re not expecting it. It’s meant for short-term use only, typically no more than two days alongside your antibiotic.

Who Shouldn’t Take Nitrofurantoin

Because nitrofurantoin works by concentrating in the urine, it depends on your kidneys filtering it effectively. People with significantly reduced kidney function (specifically, a creatinine clearance below 60 mL per minute) should not take it. In those cases, the drug doesn’t reach high enough levels in the urine to kill bacteria, and it builds up in the blood instead, raising the risk of side effects. Your doctor can determine this with a simple blood test. If your kidney function rules out nitrofurantoin, trimethoprim-sulfamethoxazole or fosfomycin are the usual alternatives.

What to Expect From Treatment

Most people with uncomplicated UTIs notice symptom improvement within one to two days of starting antibiotics. It’s important to finish the full course even if you feel better sooner. Stopping early increases the chance that some bacteria survive and the infection returns, potentially with resistance to the antibiotic you were taking.

If your symptoms haven’t improved after two to three days on an antibiotic, or if they get worse at any point, that’s a sign the bacteria may be resistant to the drug you’re taking. A urine culture can identify exactly which bacteria are causing the infection and which antibiotics will work against it. Many doctors order a culture at the first visit as a backup, so results are ready if the initial antibiotic doesn’t do the job.