The most commonly prescribed antibiotics for a urinary tract infection are nitrofurantoin (sold as Macrobid), trimethoprim-sulfamethoxazole (sold as Bactrim), and cephalexin (a type of cephalosporin). A typical course lasts 3 to 7 days depending on the antibiotic chosen, and most people start feeling better within a few days of the first dose.
Which one you’re prescribed depends on the type of UTI, your health history, and local resistance patterns. Here’s what each option involves and what to expect.
First-Line Antibiotics for Simple UTIs
A “simple” or uncomplicated UTI means the infection is confined to the bladder, without fever or signs it has spread to the kidneys. This is the most common type, and it’s typically treated with one of three oral antibiotics.
Nitrofurantoin (Macrobid) is one of the most widely recommended options. The standard course is 100 mg taken twice daily for 5 days in women or 7 days in men. It works well against the bacteria that cause most UTIs, and resistance to it remains relatively low compared to other antibiotics. It does need to be taken with food to absorb properly and can cause nausea in some people.
Trimethoprim-sulfamethoxazole (Bactrim) has been a go-to UTI antibiotic for decades. When it works, the course is short: just 3 days. The catch is rising resistance. Guidelines from the European Association of Urology recommend it as a first choice only in areas where fewer than 20% of E. coli bacteria are resistant to it. In the U.S., resistance to this antibiotic now sits around 29%, which means many providers skip it unless a urine culture confirms the bacteria respond to it.
Cephalexin, a cephalosporin antibiotic, is another common choice, typically prescribed at 500 mg twice daily for 7 days. It’s a broader option that covers a wide range of bacteria and is often used when nitrofurantoin isn’t suitable.
The Single-Dose Option
Fosfomycin is an antibiotic that treats uncomplicated UTIs in a single 3-gram dose, taken as a powder dissolved in water. It’s convenient, but its clinical success rate is about 80%, which is comparable to a full course of nitrofurantoin. Some providers prescribe it when simplicity matters or when other antibiotics aren’t a good fit, but it’s not always the most effective choice for every patient.
Why Fluoroquinolones Are a Last Resort
Ciprofloxacin and levofloxacin (fluoroquinolones) are powerful antibiotics that can treat UTIs, but they carry serious risks. The FDA has placed its strongest warning on these drugs, noting that the side effects “generally outweigh the benefits” for uncomplicated UTIs when other options exist. Those side effects can involve tendons, muscles, joints, nerves, and the central nervous system, and in some cases the damage is permanent.
These antibiotics are now reserved for situations where other treatments can’t be used, or when the infection involves bacteria like Pseudomonas that don’t respond to standard options. On top of the safety concerns, resistance among E. coli to ciprofloxacin has climbed to nearly 26%, making it less reliable than it once was.
What Happens With Kidney or Complicated Infections
If the infection has moved beyond the bladder, causing fever, back pain, nausea, or chills, the treatment changes significantly. These complicated UTIs or kidney infections often require stronger antibiotics. For patients without signs of sepsis, guidelines recommend starting with a cephalosporin given intravenously or a fluoroquinolone. Patients showing signs of sepsis may need even broader coverage, including IV antibiotics that target resistant bacteria.
Complicated UTIs are also more common in people with structural issues in the urinary tract, catheters, or weakened immune systems. These situations almost always require a urine culture so the antibiotic can be matched to the specific bacteria causing the infection.
Antibiotics During Pregnancy
UTIs are common during pregnancy and always require treatment, since untreated infections raise the risk of complications. Safe options include nitrofurantoin, certain cephalosporins (like cephalexin), sulfonamides, and fosfomycin. The specific choice depends on the trimester, culture results, and how the bacteria respond to testing. Pregnant individuals are also screened for bacteria in the urine even without symptoms, since asymptomatic infections during pregnancy can still cause problems.
How Quickly Symptoms Improve
Most people notice burning and urgency start to ease within 1 to 3 days of starting antibiotics. Pain during urination often improves fastest. If you’re in significant discomfort while waiting for the antibiotic to kick in, your provider may also prescribe phenazopyridine (often sold as AZO Urinary Pain Relief in over-the-counter form or a prescription strength). This is a bladder analgesic that numbs the urinary tract lining, turning your urine bright orange in the process. It’s meant for short-term relief only, not as a standalone treatment.
Even after symptoms disappear, finishing the full course of antibiotics matters. Stopping early can leave behind bacteria that are harder to treat next time.
Why Antibiotic Resistance Changes the Equation
The reason your provider may choose one antibiotic over another comes down to resistance, meaning the bacteria have evolved to survive certain drugs. E. coli causes the majority of UTIs, and CDC surveillance data shows substantial resistance to some of the most commonly prescribed options: about 29% of E. coli samples resist trimethoprim-sulfamethoxazole, and roughly 26% resist ciprofloxacin. Around 14% of E. coli infections now involve strains carrying enzymes that confer resistance to multiple antibiotic classes at once.
This is why urine cultures are increasingly important, especially for recurrent infections or cases that don’t improve within a few days. A culture identifies the exact bacteria and tests which antibiotics will kill it, removing the guesswork. If your first antibiotic doesn’t seem to be working after 2 to 3 days, contact your provider. Switching to a better-matched antibiotic based on culture results usually resolves the infection quickly.

