What Medicine to Take for a UTI: Antibiotics and More

The most effective medicine for a urinary tract infection is a prescription antibiotic, and the specific one your provider chooses depends on the type of bacteria involved and local resistance patterns. For an uncomplicated UTI (a bladder infection in an otherwise healthy person), symptoms typically start improving within a few days of starting the right antibiotic. There is also an over-the-counter pain relief option that can ease the burning while you wait for the antibiotic to work.

First-Line Antibiotics for Uncomplicated UTIs

Infectious disease guidelines recommend three antibiotics as first choices for a straightforward bladder infection: nitrofurantoin, trimethoprim-sulfamethoxazole (often called TMP-SMX or sold as Bactrim), and fosfomycin. These are preferred because they’re effective against the most common UTI-causing bacteria, they concentrate well in urine, and they cause fewer side effects than stronger alternatives.

Nitrofurantoin (Macrobid) is taken as a 100 mg capsule twice daily for five days. It kills the bacteria most commonly responsible for UTIs, including E. coli, which causes the majority of bladder infections. It works equally well against resistant and non-resistant strains of E. coli, and clinical studies show it performs on par with other first-line options. Some providers prescribe a seven-day course, which is also considered acceptable.

Trimethoprim-sulfamethoxazole (Bactrim) is taken for three days, making it the shortest multi-dose course available. However, it’s only recommended as a first choice if local resistance rates for E. coli are below 20%. In many regions, resistance to this antibiotic has climbed above 30%, which means it may not work reliably without a urine culture confirming the bacteria are susceptible. If your provider prescribes it, the standard course is three days, though studies have found that the majority of prescriptions are written for longer than necessary.

Fosfomycin is the simplest option: a single 3-gram dose dissolved in water and taken once. It works regardless of kidney or liver function. That convenience comes with a trade-off. For straightforward bladder infections it’s effective, but for anything more complicated, a single dose has a notably lower cure rate (around 57%) compared to multi-day regimens (around 82%).

Why Fluoroquinolones Are No Longer First Choice

Older prescribing habits sometimes led to fluoroquinolones like ciprofloxacin (Cipro) or levofloxacin (Levaquin) being used for simple bladder infections. The FDA now warns against this. These drugs carry a risk of disabling and potentially permanent side effects involving the tendons, muscles, joints, nerves, and central nervous system. Specific risks include tendon rupture, peripheral neuropathy (numbness or tingling in arms or legs), muscle weakness, joint pain, anxiety, depression, confusion, and hallucinations. Multiple side effects can occur together in the same person.

The FDA’s position is clear: fluoroquinolones should only be used for uncomplicated UTIs when no other treatment option exists. For the vast majority of bladder infections, one of the three first-line antibiotics above is both safer and equally effective.

Over-the-Counter Pain Relief

Phenazopyridine (sold as AZO or Uristat) is the one over-the-counter medication specifically designed for UTI symptoms. It works by numbing the lining of the urinary tract, which reduces the burning, urgency, and pain that make bladder infections so miserable. OTC tablets come in 95 to 99.5 mg strengths and are typically taken two at a time, three times a day.

The critical thing to understand is that phenazopyridine is not an antibiotic. It masks symptoms without treating the infection. You should not take it for more than two days without starting an antibiotic, because dulling the pain can delay proper treatment and allow the infection to spread. It will also turn your urine a vivid orange or red, which is harmless but can stain clothing and contact lenses.

How Quickly Antibiotics Work

Pain and burning tend to ease soon after starting an effective antibiotic, often within the first day or two. The full range of symptoms, including urgency and frequency, generally begins clearing up within a few days. Even when you feel better, finishing the entire prescribed course is important. Stopping early can leave surviving bacteria behind, increasing the chance the infection comes back or becomes resistant to that antibiotic.

Signs the Infection Has Spread

A bladder infection that moves upward to the kidneys becomes a more serious condition called pyelonephritis. The warning signs are distinct from a typical UTI: fever, chills, and pain in your lower back or side. A kidney infection is more likely to make you feel suddenly and noticeably sick compared to the gradual discomfort of a bladder infection. If you develop a fever alongside UTI symptoms, or if you experience sudden severe pain in your back or side, that warrants urgent medical attention. Signs of severe dehydration or sudden high fever with flank pain call for an emergency room visit.

Preventing Recurrent Infections

Some people deal with UTIs repeatedly, defined as two or more infections in six months or three or more in a year. For this group, a non-antibiotic preventive option exists: methenamine hippurate. This medication works by converting to formaldehyde in acidic urine, which stops bacteria from growing. It’s not an antibiotic, so it doesn’t contribute to resistance the way repeated antibiotic courses can.

Research shows methenamine hippurate is effective for short-term prevention in people with normal urinary tract anatomy. In studies, it reduced the risk of symptomatic UTIs by about 76% in that population. It does not appear to work well for people with structural abnormalities of the urinary tract or conditions affecting bladder nerve function. Your provider can help determine whether it’s a good fit based on your specific situation.