Three antibiotics are considered first-line treatments for uncomplicated urinary tract infections: nitrofurantoin, trimethoprim/sulfamethoxazole (commonly known as Bactrim), and fosfomycin. Which one your provider prescribes depends on local resistance patterns, your allergy history, and whether you’re pregnant. Most uncomplicated UTIs clear within three to seven days of starting treatment.
First-Line Antibiotics for UTIs
Nitrofurantoin is one of the most commonly prescribed UTI antibiotics in the U.S. It works specifically in the urinary tract rather than throughout your whole body, which means it causes fewer side effects like yeast infections or digestive problems. The standard course is 100 mg twice a day for five to seven days. You take it with food to help your body absorb it and reduce nausea, which is the most common side effect.
Trimethoprim/sulfamethoxazole (Bactrim) has been a go-to UTI treatment for decades and has the shortest course of the three options: one tablet twice a day for just three days. There’s a catch, though. The bacteria that cause most UTIs, primarily E. coli, have developed significant resistance to this drug in many parts of the country. Guidelines recommend it only in areas where resistance rates stay below 20%, and resistance among common urinary bacteria across the U.S. now exceeds that threshold in many regions. Your provider may still prescribe it if a urine culture confirms the bacteria in your infection are susceptible.
Fosfomycin is the simplest option: a single 3-gram dose dissolved in water, taken on an empty stomach. That one-dose convenience makes it appealing, and research has found it comparable or even superior in compliance and efficacy to multi-day regimens. A large study found clinical efficacy around 95% for acute uncomplicated cystitis. The tradeoff is that it may be slightly less effective overall than a full course of nitrofurantoin, and it tends to cost more.
A Newer Option: Pivmecillinam
In April 2024, the FDA approved pivmecillinam (brand name Pivya) for uncomplicated UTIs in adult women. This antibiotic has been widely used in Scandinavian countries for years and targets E. coli, Proteus mirabilis, and Staphylococcus saprophyticus, the bacteria behind most bladder infections. Its approval gives providers another tool, particularly as resistance to older antibiotics continues to climb. Availability and insurance coverage are still catching up, so it may not be offered everywhere yet.
Why Cipro Is No Longer Recommended
Fluoroquinolones like ciprofloxacin (Cipro) and levofloxacin were once commonly prescribed for UTIs, but the FDA has placed its strongest safety warning on these drugs. They carry risks of tendon rupture, nerve damage, and joint problems, and these side effects can be permanent. An FDA advisory committee voted 20 to 1 against the benefits outweighing the risks for uncomplicated UTIs. These antibiotics are now reserved for situations where no safer alternative exists, such as certain complicated or drug-resistant infections.
What About Pain Relief While You Wait?
Antibiotics start working quickly, but burning and urgency can linger for a day or two. Phenazopyridine is an over-the-counter urinary pain reliever that numbs the lining of the bladder and urethra. It turns your urine bright orange, which is harmless but can stain clothing and contact lenses. It only treats symptoms and does not fight the infection itself, so it’s meant as a bridge alongside your antibiotic, not a replacement. Most providers recommend using it for no more than two days.
UTI Antibiotics During Pregnancy
UTIs are more common during pregnancy and always require treatment, since untreated infections can lead to kidney infections and complications. The American College of Obstetricians and Gynecologists lists nitrofurantoin, certain penicillin-type antibiotics (beta-lactams), sulfonamides, and fosfomycin as options, with the choice guided by culture results and the stage of pregnancy. Some of these carry timing restrictions. Nitrofurantoin is generally avoided in the first trimester and near delivery, and sulfonamides are avoided close to the due date. A urine culture is standard in pregnancy to confirm which antibiotic will work against the specific bacteria involved.
When UTIs Keep Coming Back
Recurrent UTIs, typically defined as two or more infections in six months or three in a year, sometimes call for a preventive antibiotic strategy. The American Urological Association outlines two main approaches.
Continuous low-dose prophylaxis involves taking a small daily dose of an antibiotic for several months to keep bacteria from gaining a foothold. Common regimens include nitrofurantoin at 50 to 100 mg daily or trimethoprim at 100 mg daily. Fosfomycin can also be used this way, dosed at 3 grams every 10 days.
If your UTIs are linked to sexual activity, post-coital prophylaxis is an alternative. You take a single low dose of an antibiotic right before or after intercourse. Options include a low-dose Bactrim tablet, nitrofurantoin 50 to 100 mg, or cephalexin 250 mg. This approach uses far less medication overall than daily prevention and works well for people whose infections follow a clear pattern.
Why a Urine Culture Matters
Providers often prescribe an antibiotic based on your symptoms and start treatment right away. But if your UTI doesn’t improve within two to three days, a urine culture becomes essential. The culture identifies the exact bacteria causing your infection and tests which antibiotics can kill it. This is especially important given rising resistance rates. What worked for your last UTI may not work for your next one, even if the symptoms feel identical. If you’ve had multiple UTIs or a recent course of antibiotics, ask for a culture upfront so your treatment is targeted from the start.