The three first-line antibiotics for an uncomplicated UTI are nitrofurantoin, trimethoprim-sulfamethoxazole (TMP-SMX), and fosfomycin. Which one your doctor prescribes depends on local resistance patterns, your medical history, and whether you’re pregnant. Most uncomplicated UTIs clear within three to five days of treatment.
First-Line Antibiotics for Uncomplicated UTIs
An uncomplicated UTI means a bladder infection in an otherwise healthy person, without fever or signs that the infection has spread to the kidneys. Current guidelines from the American Urological Association recommend three options as first-line treatment:
- Nitrofurantoin: Taken twice daily for five days. This is one of the most commonly prescribed options because resistance rates remain relatively low. It works specifically in the urinary tract, which means it targets the infection without disrupting bacteria elsewhere in your body as much as broader antibiotics would.
- TMP-SMX (trimethoprim-sulfamethoxazole): Taken twice daily for three days, making it the shortest standard course. It’s highly effective, but only when local resistance rates stay below 20%. In some regions, the bacteria that cause UTIs have developed enough resistance that doctors avoid this one as a first choice.
- Fosfomycin: A single dose of 3 grams, mixed into water and taken once. It comes as an orange-flavored powder that you dissolve in about half a cup of cool water and drink immediately. The convenience of one dose is appealing, though it may be slightly less effective than a multi-day course for some patients.
Your doctor chooses among these based partly on something called a local antibiogram, which tracks how resistant the bacteria in your area are to each antibiotic. If resistance to TMP-SMX is high where you live, you’ll likely get nitrofurantoin instead.
Second-Line and Alternative Options
When first-line antibiotics aren’t a good fit, whether because of allergies, resistance, or side effects, doctors turn to alternatives. These include beta-lactam antibiotics like amoxicillin-clavulanate, cephalexin, and cefuroxime, typically prescribed for five days. Beta-lactams are considered slightly less effective for UTIs than the first-line options, which is why they’re held in reserve.
Fluoroquinolones (like ciprofloxacin and levofloxacin) were once widely prescribed for UTIs but are now reserved for situations where no other option works. The FDA has issued a boxed warning, its strongest safety alert, noting that fluoroquinolones carry risks of serious and potentially permanent side effects involving tendons, muscles, joints, and nerves. For a straightforward bladder infection, those risks generally outweigh the benefits when safer alternatives are available. You may still receive a fluoroquinolone for a complicated or kidney infection, but not for a routine case.
What Makes a UTI “Complicated”
A complicated UTI is one that involves more than just bladder symptoms. The key distinction is whether the infection shows signs of spreading beyond the bladder, particularly fever, which suggests kidney involvement. Other factors that make a UTI complicated include having a catheter, urological abnormalities, or being immunocompromised.
Treatment for complicated UTIs is longer and sometimes more aggressive. A complicated bladder infection typically requires five to seven days of antibiotics rather than three. If the infection has reached the kidneys (pyelonephritis), treatment extends to seven to ten days, sometimes longer depending on the antibiotic used. Patients with signs of sepsis, meaning the infection has triggered a dangerous whole-body response, may need intravenous antibiotics in the hospital before transitioning to oral treatment.
UTI Antibiotics During Pregnancy
UTIs are more common during pregnancy and carry higher stakes because untreated infections can lead to complications. The American College of Obstetricians and Gynecologists recommends treating pregnant patients with a five-to-seven-day course of antibiotics, which is slightly longer than the standard course for non-pregnant patients.
Safe options during pregnancy include nitrofurantoin, beta-lactam antibiotics, sulfonamides, and fosfomycin. The specific choice depends on the culture results and the trimester. Your OB will weigh the safety profile of each option for your stage of pregnancy, as some antibiotics that are fine in the second trimester are avoided near the end of pregnancy.
UTI Treatment in Children
Children with UTIs, particularly infants between 2 and 24 months with a fever, are treated for a longer course: seven to fourteen days total. Common oral options include cephalosporin antibiotics, amoxicillin-clavulanate, and TMP-SMX, with doses calculated by the child’s weight.
Children who appear very sick or can’t keep fluids down may need to start with IV antibiotics in the hospital. Most improve within 24 to 48 hours and can then switch to oral medication to finish the course at home.
How a UTI Is Confirmed
Before prescribing an antibiotic, your doctor will usually confirm the infection with a urine test. A urine culture identifies the specific bacteria causing the infection, and a count of at least 100,000 colony-forming units per milliliter is the standard threshold for confirming a bacterial UTI in a symptomatic patient. The culture also reveals which antibiotics that particular strain of bacteria is sensitive to, which helps your doctor pick the right one.
In practice, many doctors start you on a first-line antibiotic based on your symptoms and a quick in-office urine dipstick test, then adjust if the culture results (which take a day or two) show resistance to that antibiotic.
Preventing Recurrent UTIs With Low-Dose Antibiotics
For people who get three or more UTIs per year, low-dose antibiotic prophylaxis can reduce the frequency. This means taking a small daily dose of an antibiotic, not to treat an active infection, but to prevent bacteria from gaining a foothold. Common regimens include nitrofurantoin 50 mg daily, TMP-SMX at a reduced dose taken once daily or three times per week, or cephalexin 125 to 250 mg daily. Fosfomycin can also be used preventively, taken as a single 3-gram dose every 10 days.
Prophylaxis typically continues for three to twelve months. The catch: once you stop, UTI frequency tends to return to whatever it was before. Your doctor will reassess periodically to decide whether continued prophylaxis makes sense.
If your UTIs are consistently triggered by sexual intercourse, a different strategy works well. Taking a single dose of an antibiotic immediately before or after sex can prevent infection without requiring daily medication. Options for this approach include TMP-SMX, nitrofurantoin (50 to 100 mg), or cephalexin (250 mg).

