UTIs are treated with prescription antibiotics, and most uncomplicated infections clear up within three to five days of starting medication. The specific antibiotic your provider chooses depends on the type of bacteria involved, local resistance patterns, and whether the infection is straightforward or complicated. There are also over-the-counter options that help manage pain while the antibiotic works.
First-Line Antibiotics for Uncomplicated UTIs
Guidelines from the Infectious Diseases Society of America recommend three antibiotics as the top choices for a straightforward bladder infection in women:
- Nitrofurantoin: Taken twice daily for five days. It works well against the most common UTI-causing bacteria and has low resistance rates, making it one of the most reliable options.
- Trimethoprim-sulfamethoxazole (Bactrim, Septra): Taken twice daily for three days. This is a strong first choice, but only in areas where fewer than 20% of local bacteria are resistant to it. Your provider will know whether resistance is a concern in your region.
- Fosfomycin: A single 3-gram dose, taken just once. A meta-analysis of 10 randomized trials found that this one-dose treatment was just as effective at clearing infections as multi-day courses of other antibiotics. It’s a particularly convenient option if you have trouble sticking to a multi-day regimen.
These three are preferred because they’re effective, cause fewer side effects than stronger antibiotics, and are less likely to drive antibiotic resistance.
Second-Line Options
When first-line antibiotics aren’t suitable, whether due to allergies, resistance, or other factors, providers may turn to a class of antibiotics called beta-lactams. Cephalexin, taken twice daily for about five to seven days, is one common alternative. Amoxicillin-clavulanate is another. These are considered slightly less effective than first-line options for UTIs, which is why they’re held in reserve rather than used routinely.
Why Fluoroquinolones Are a Last Resort
Ciprofloxacin and levofloxacin belong to a class called fluoroquinolones. They’re powerful, but the FDA has determined they should not be used for uncomplicated UTIs when other options exist. The reason: they carry a risk of serious, sometimes permanent side effects involving tendons, muscles, joints, and nerves. Reported problems include tendon rupture, muscle weakness, peripheral nerve damage, anxiety, insomnia, and confusion. These side effects can appear together and may not resolve after stopping the medication.
Fluoroquinolones still have a role in complicated infections or when bacteria are resistant to everything else, but for a routine bladder infection, the risks outweigh the benefits.
Over-the-Counter Pain Relief
No over-the-counter product cures a UTI. However, phenazopyridine (sold as AZO Urinary Pain Relief and similar brands) can significantly reduce the burning and urgency while you wait for antibiotics to kick in. It’s taken three times a day after meals, and you can stop once symptoms improve. One thing to expect: it turns your urine red-orange or brown. This is harmless, but it will stain clothing and contact lenses, so plan accordingly.
Phenazopyridine is meant for short-term use only, typically no more than two days alongside an antibiotic. It masks symptoms without treating the infection, so using it without antibiotics can let a UTI worsen.
How Treatment Differs for Men
UTIs in men are less common and almost always treated as more complex than a simple bladder infection in women. The concern is that bacteria may involve the prostate or other structures. Because of this, men typically receive a longer course of antibiotics, usually seven days for an uncomplicated infection compared to three to five days for women. Nitrofurantoin and cephalexin are both used, with the duration extended to account for the higher risk of deeper tissue involvement.
If the infection involves the prostate, treatment can stretch to 14 days or longer, and the antibiotic choice shifts to drugs that penetrate prostate tissue more effectively.
UTI Medicine During Pregnancy
UTIs during pregnancy require prompt treatment because untreated infections can lead to complications like preterm labor. Nitrofurantoin is considered a reasonable first-line option for bladder infections in pregnant women due to its low resistance rates and effectiveness against common UTI bacteria. Fosfomycin and certain beta-lactams are also used.
There is some mixed data about a possible link between nitrofurantoin or trimethoprim-sulfamethoxazole and birth defects when taken in the first trimester, but the evidence is inconsistent and has methodological limitations. The American College of Obstetricians and Gynecologists states both are reasonable in early pregnancy if no appropriate alternatives are available. Your provider will weigh the risks of an untreated infection against any medication concerns.
Supplements for Prevention
If you get recurrent UTIs, certain supplements may help reduce how often infections return, though none replaces antibiotics for treating an active infection.
Cranberry products work by blocking E. coli, the most common UTI-causing bacterium, from sticking to the bladder wall. The active compounds responsible are called proanthocyanidins, or PACs. Research suggests you need at least 36 mg of PACs daily for a meaningful preventive effect, split between morning and evening. Some evidence indicates 72 mg per day may offer better protection. Most cranberry juice cocktails and many supplements fall short of this threshold, so check the label. Cranberry capsules or powders with standardized PAC content are generally more reliable than juice.
D-mannose, a sugar found naturally in some fruits, is another popular supplement for UTI prevention. It’s thought to work similarly to cranberry by preventing bacteria from adhering to the urinary tract lining, though clinical evidence is still being established.
Preventive Medication for Recurrent UTIs
For people who get multiple UTIs per year, providers sometimes prescribe methenamine hippurate as a daily preventive. It works differently from antibiotics: in acidic urine, it breaks down into formaldehyde, which kills bacteria nonspecifically. This means bacteria can’t easily develop resistance to it, a significant advantage over long-term low-dose antibiotics.
The catch is that methenamine only works when urine pH stays below 6. Some regimens include vitamin C (ascorbic acid) to help keep urine acidic enough. It’s not effective for treating active infections, but as a long-term prevention strategy, it offers an alternative to repeated antibiotic courses.

