What Meds Are Typically Prescribed for a UTI?

The most commonly prescribed medications for a UTI are nitrofurantoin, trimethoprim-sulfamethoxazole (TMP-SMX), fosfomycin, and cephalexin. Which one your doctor chooses depends on the type of infection, local antibiotic resistance patterns, and whether you’re pregnant or have other health conditions. Most uncomplicated UTIs clear up within three to seven days of starting antibiotics.

First-Line Antibiotics for Uncomplicated UTIs

An uncomplicated UTI is a bladder infection in someone who is otherwise healthy, with no fever or signs the infection has spread to the kidneys. These are the most common UTIs, and they’re treated with a short course of oral antibiotics.

Nitrofurantoin is one of the most frequently prescribed options. The extended-release form is taken twice daily, typically for five days in women and seven days in men. It works specifically in the urinary tract, which means it targets the infection directly while causing fewer disruptions to bacteria elsewhere in your body. Common side effects include nausea and headache, and taking it with food helps reduce stomach upset.

Trimethoprim-sulfamethoxazole (TMP-SMX), sold under brand names like Bactrim and Septra, is a three-day course taken twice daily. That shorter duration makes it convenient, but it’s only recommended as a first choice in areas where fewer than 20 percent of the bacteria causing UTIs are resistant to it. Your doctor or local clinic will know the resistance rates in your area. If you have a sulfa allergy, this one is off the table.

Fosfomycin is the simplest regimen: a single dose of 3 grams dissolved in water, taken once. That one-and-done approach is appealing, but it may not clear infections quite as reliably as a multi-day course. It’s sometimes chosen when resistance to other antibiotics is a concern.

Cephalexin, a type of cephalosporin antibiotic, is taken twice daily for seven days. It’s a solid option when other first-line choices aren’t suitable due to allergies or resistance.

Second-Line and Backup Options

When first-line antibiotics can’t be used, doctors have several alternatives. Amoxicillin-clavulanate combines a standard antibiotic with a compound that disables one of the key defenses bacteria use against it. This makes it effective against a wider range of bacteria than amoxicillin alone, which is why amoxicillin by itself is rarely prescribed for UTIs anymore. Amoxicillin-clavulanate is typically used as a second-line treatment when preferred options aren’t appropriate.

Fluoroquinolones like ciprofloxacin are powerful antibiotics that were once widely used for UTIs. That changed after the FDA approved updated labeling warning that their serious side effects, which can involve tendons, muscles, joints, nerves, and the central nervous system, generally outweigh the benefits for uncomplicated UTIs when other treatments are available. Some of these side effects can be disabling and permanent. Fluoroquinolones are now reserved for UTIs only when no other antibiotic will work, or for more serious infections.

Complicated UTIs Need a Different Approach

Not all UTIs are treated the same way. A “complicated” UTI is one where the infection shows signs of spreading beyond the bladder, particularly if you have a fever, flank pain, or chills suggesting kidney involvement. UTIs in people with catheters are also classified as complicated.

These infections typically require longer courses of antibiotics, sometimes different drugs, and occasionally IV treatment in a hospital. The antibiotic choice is usually guided by a urine culture, which identifies exactly which bacteria are causing the infection and which drugs will kill them. TMP-SMX and fluoroquinolones are more commonly used in this setting, where the benefits of stronger antibiotics more clearly justify the risks.

UTI Treatment During Pregnancy

UTIs are common during pregnancy and are always treated, even if they aren’t causing symptoms, because untreated infections raise the risk of complications. The American College of Obstetricians and Gynecologists lists nitrofurantoin, cephalexin and other beta-lactam antibiotics, sulfonamides, and fosfomycin as options for pregnant individuals, with the specific choice depending on culture results and how far along the pregnancy is.

For women who get recurrent UTIs during pregnancy, a low daily dose of nitrofurantoin or cephalexin is sometimes prescribed as a preventive measure for the remainder of the pregnancy.

Pain Relief While Antibiotics Work

Antibiotics start killing bacteria quickly, but it can take a day or two before you feel noticeably better. In the meantime, phenazopyridine (commonly sold over the counter as AZO) relieves the burning, urgency, and discomfort of a UTI. It’s a pain reliever that works directly in the urinary tract, not an antibiotic, so it treats symptoms without fighting the infection itself.

Phenazopyridine turns your urine bright orange or red, which is harmless but can stain clothing and contact lenses. It’s meant for short-term use only, typically no more than two days when taken over the counter. If your symptoms haven’t improved by then, the antibiotic should be taking over the job. Standard over-the-counter pain relievers like ibuprofen can also help with discomfort and are fine to use alongside your antibiotic.

Why Finishing the Full Course Matters

UTI symptoms often improve within one to three days of starting antibiotics, which can make it tempting to stop early. Finishing the prescribed course matters because bacteria that survive a partial treatment are the ones most likely to resist the antibiotic next time. This is a real problem: antibiotic resistance in UTI-causing bacteria has been climbing steadily, and it’s already limiting which drugs work in some regions.

If your symptoms haven’t improved after two to three days on antibiotics, contact your doctor. You may need a urine culture to confirm the bacteria causing your infection and switch to a drug it’s actually susceptible to. Recurrent UTIs, defined as two or more infections in six months or three in a year, may call for a different management strategy, including longer treatment courses or low-dose preventive antibiotics.