The best medicines for an uncomplicated urinary tract infection are nitrofurantoin and trimethoprim-sulfamethoxazole (often called TMP-SMX or by the brand name Bactrim). These two antibiotics have been the top recommended treatments for years because they work well against the bacteria that cause most UTIs, carry relatively few side effects, and can clear an infection in as little as three days. You do need a prescription for both, so the first step is getting one from a doctor or urgent care provider.
First-Line Antibiotics for UTIs
About 80% of uncomplicated UTIs are caused by E. coli, and the antibiotics chosen as first-line options are the ones that knock out E. coli most reliably while keeping side effects low. Two stand out above the rest.
Nitrofurantoin is taken as 100 mg twice a day for five days. It works specifically in the urinary tract, which means it concentrates where the infection lives rather than flooding your whole body. E. coli resistance to nitrofurantoin remains remarkably low, hovering around 2%, which is why it has stayed a top pick for decades.
TMP-SMX is taken as one double-strength tablet twice a day for three days, making it the shortest standard course. It’s effective and well-tolerated, but there’s a catch: in some regions, E. coli resistance to this drug has climbed above 20%. If that’s the case where you live, your doctor will likely steer you toward nitrofurantoin instead.
The Single-Dose Option
Fosfomycin is a prescription antibiotic you take just once, a single 3-gram packet of powder mixed into water. It’s approved for uncomplicated bladder infections in women caused by E. coli, and clinical studies show a 95% success rate for acute uncomplicated cystitis. It’s particularly useful when other oral antibiotics won’t work due to resistant bacteria. The trade-off is that it tends to be less effective for complicated or recurring infections, where success rates drop to the 60% to 77% range.
Why Ciprofloxacin Is No Longer Recommended
If you’ve had a UTI before, you may remember being prescribed ciprofloxacin or another fluoroquinolone. That’s changed. The FDA has advised that the serious side effects of fluoroquinolones generally outweigh the benefits for uncomplicated UTIs when other options exist. Those side effects can involve tendons, muscles, joints, and nerves, and in some cases the damage is permanent. Fluoroquinolones are now reserved for situations where no safer alternative will work.
Over-the-Counter Pain Relief
Antibiotics kill the bacteria, but they won’t ease the burning and urgency right away. Phenazopyridine (sold as AZO or Uristat) is an over-the-counter pain reliever that numbs the lining of your urinary tract. The standard dose is 200 mg three times a day. It’s meant to bridge the gap between starting antibiotics and feeling better, not to replace treatment. Don’t take it for more than two days on your own, as it masks symptoms without addressing the infection. It will also turn your urine bright orange, which is harmless but worth knowing about before it surprises you.
How Quickly Antibiotics Work
Most people notice a significant improvement within 24 to 48 hours of starting antibiotics for a lower urinary tract infection. The burning during urination usually fades first, followed by the constant feeling of needing to go. If you have a kidney infection (fever, back pain, nausea), expect three to seven days before you feel meaningfully better. Finish your full course of antibiotics even if symptoms disappear early. Stopping short gives surviving bacteria a chance to regrow and potentially become resistant.
UTI Treatment During Pregnancy
UTIs are more common during pregnancy and more dangerous, since untreated infections can progress to kidney infections that threaten both mother and baby. The American College of Obstetricians and Gynecologists recommends nitrofurantoin, certain penicillin-type antibiotics, and fosfomycin as treatment options during pregnancy. Amoxicillin and ampicillin alone are generally avoided because E. coli resistance to them is high in most areas. Timing matters too: nitrofurantoin is typically avoided in the first trimester and near delivery, and TMP-SMX is avoided in the first trimester. Your OB will choose the safest option based on how far along you are and what the urine culture shows.
Preventing Recurrent UTIs
If you get three or more UTIs in a year, you may be a candidate for preventive strategies that go beyond treating each infection as it comes.
Low-dose daily antibiotics are the most studied approach. Options include a small nightly dose of nitrofurantoin (50 mg) or TMP-SMX, taken continuously for months. For women whose UTIs are clearly linked to sex, a single dose of an antibiotic taken right before or after intercourse can be just as effective without the need for daily medication.
D-mannose is a sugar supplement that some research supports for prevention. In clinical trials, a regimen of 1 gram three times daily for two weeks followed by 1 gram twice daily showed promise in reducing recurrent infections. D-mannose works by preventing E. coli from sticking to the bladder wall. It’s available without a prescription and is generally well-tolerated, though it’s not a substitute for antibiotics when you have an active infection.
Simple habits also help reduce recurrence: urinating soon after sex, staying well-hydrated, and wiping front to back. None of these are guaranteed fixes on their own, but combined with medical strategies they can meaningfully reduce how often infections come back.

