The three first-line antibiotics for a standard, uncomplicated urinary tract infection are nitrofurantoin (often sold as Macrobid), trimethoprim-sulfamethoxazole (Bactrim), and fosfomycin (Monurol). Most uncomplicated UTIs clear within three to five days of starting one of these, though the specific choice depends on local resistance patterns, your health history, and whether you’re pregnant.
First-Line Antibiotics for Uncomplicated UTIs
An uncomplicated UTI means a bladder infection in an otherwise healthy person, without structural abnormalities or complicating factors like a catheter. For these infections, three antibiotics sit at the top of the list:
- Nitrofurantoin (Macrobid): 100 mg twice a day for five days. This is one of the most commonly prescribed UTI antibiotics because resistance rates remain relatively low. It works specifically in the urinary tract and doesn’t disrupt your gut bacteria as much as broader antibiotics.
- Trimethoprim-sulfamethoxazole (Bactrim, Septra): One double-strength tablet twice a day for three days. This is effective and fast-acting, but it’s only recommended in areas where fewer than 20 percent of urinary bacteria are resistant to it. Your provider will typically know local resistance rates.
- Fosfomycin (Monurol): A single 3-gram dose, taken once. The convenience of one dose is appealing, though it’s generally considered slightly less effective than the other two options. It’s sometimes used when resistance is a concern with the other choices.
All three target the bacteria that cause UTIs through different mechanisms. Bactrim blocks bacteria from producing folate, a nutrient they need to grow. Nitrofurantoin directly kills bacteria in urine at the concentrations it reaches. Fosfomycin disrupts bacterial cell wall formation. Because they work differently, resistance to one doesn’t necessarily mean resistance to the others.
How Long Treatment Takes
Treatment length varies by antibiotic. Nitrofurantoin requires five days. Bactrim requires three. Fosfomycin is a single dose. These aren’t interchangeable timelines. A large Cochrane review pooling data from over 9,600 patients found that three-day courses worked just as well as longer courses (five to ten days) for uncomplicated bladder infections, with no difference in symptom improvement at short-term or long-term follow-up. That said, single-dose therapy performed worse than multi-day courses, which is why fosfomycin, despite being one dose, is sometimes viewed as a backup option.
Most people start feeling better within one to two days of starting antibiotics. Even so, finishing the full course matters. Stopping early can leave behind bacteria that are harder to treat next time.
When First-Line Options Don’t Work
If you’re allergic to first-line antibiotics, have resistant bacteria, or have had repeated UTIs, your provider may turn to second-line options. Fluoroquinolones like ciprofloxacin are effective against UTIs but come with a higher risk of serious side effects, including tendon damage and nerve problems. Guidelines now reserve them for situations where safer options aren’t suitable.
Beta-lactam antibiotics, a broad class that includes amoxicillin-clavulanate and some cephalosporins, are another alternative. They tend to be slightly less effective for UTIs than the first-line drugs, which is why they aren’t the default choice. Your provider will often order a urine culture to identify exactly which bacteria are causing the infection and which antibiotics will work against it, especially if a first round of treatment failed.
Antibiotics for Kidney Infections and Complicated UTIs
A complicated UTI is one that involves the kidneys (pyelonephritis), occurs alongside structural urinary tract problems, or develops in someone with a catheter or weakened immune system. These infections require different, broader-spectrum antibiotics and sometimes longer treatment.
For complicated UTIs without signs of sepsis, guidelines from the Infectious Diseases Society of America recommend starting with a third- or fourth-generation cephalosporin, piperacillin-tazobactam, or a fluoroquinolone. If sepsis is present, carbapenems may also be used. Many of these are given intravenously in a hospital setting at first, then switched to oral antibiotics once symptoms improve.
Treatment duration for complicated UTIs is typically five to seven days for fluoroquinolones and seven days for other antibiotics. Older guidelines recommended 10 to 14 days, but recent evidence supports shorter courses in patients who are responding well to therapy.
UTI Antibiotics During Pregnancy
UTIs during pregnancy need prompt treatment because untreated infections can lead to kidney infections and pregnancy complications. The American College of Obstetricians and Gynecologists recommends treating pregnant patients with a five-to-seven-day course of a targeted antibiotic, chosen based on urine culture results.
Safe options during pregnancy include nitrofurantoin, certain beta-lactam antibiotics, and fosfomycin. Amoxicillin or ampicillin alone should be avoided for empiric treatment because resistance rates among the most common UTI-causing bacteria (E. coli) are too high in most areas. Bactrim is sometimes used but has trimester-specific precautions. Your provider will choose based on culture results and how far along you are.
Common Side Effects
Nitrofurantoin is generally well tolerated, but nausea is the most frequent complaint, especially if taken on an empty stomach. Taking it with food reduces this significantly. Less common side effects include headache, dizziness, and drowsiness. In rare cases, long-term or repeated use can cause lung problems or nerve damage in the hands and feet. People with significant kidney impairment shouldn’t take it because the drug won’t concentrate properly in the urine and may build up elsewhere in the body.
Bactrim can cause nausea, rash, and sensitivity to sunlight. It’s not appropriate for people with certain blood disorders or severe kidney disease. Allergic reactions, while uncommon, can be serious. Because it contains a sulfonamide, anyone with a sulfa allergy needs a different option.
Fosfomycin tends to cause the fewest side effects overall. Diarrhea and nausea are the most common complaints, but they’re usually mild.
Antibiotics for Recurrent UTIs
Recurrent UTIs are defined as two or more bladder infections within a six-month period. For people stuck in this cycle, low-dose antibiotic prophylaxis is one option. This means taking a small dose of an antibiotic daily or after specific triggers (like sexual activity) to prevent infections from developing in the first place. The American Urological Association notes this approach can reduce the frequency of future UTIs, though it comes with the trade-off of prolonged antibiotic exposure and the potential for resistance.
Before starting preventive antibiotics, a urine culture from a recent infection helps identify which bacteria keep returning and which drugs they’re susceptible to. Some providers will also investigate whether an underlying structural issue is contributing to the pattern.

