The most effective medicine for a UTI is a prescription antibiotic, and the one most commonly recommended as a first choice is nitrofurantoin, taken twice daily for five days. Over-the-counter products can ease symptoms like burning and urgency, but they won’t clear the infection itself. A UTI that goes untreated can spread to the kidneys, so getting the right antibiotic matters.
First-Line Prescription Antibiotics
For a straightforward, uncomplicated UTI (the kind that causes burning, frequent urination, and pelvic pressure), nitrofurantoin is the go-to antibiotic at most hospitals and clinics. The standard course is 100 mg twice a day for five days. It works well against the bacteria that cause most UTIs, and because it concentrates in the urine rather than spreading throughout your body, it tends to cause fewer side effects and less disruption to your gut bacteria.
If nitrofurantoin isn’t an option for you, alternatives include cephalexin (500 mg twice daily for five days) and amoxicillin-clavulanate (500/125 mg twice daily for five days). These belong to a broader class of antibiotics called beta-lactams. They work, but historically they’ve been considered second-line choices because relapse rates tend to be slightly higher, even when the bacteria test as susceptible. Your provider may still choose one of these if you have allergies or if your urine culture shows the bacteria respond better to them.
There is also a single-dose option called fosfomycin. You take one packet of granules dissolved in water, and that’s the entire course. A large meta-analysis found that single-dose fosfomycin produced equivalent clinical and microbiological outcomes compared to multi-day antibiotic regimens. It’s a convenient choice, though not every pharmacy stocks it and it can be more expensive.
Antibiotics Your Doctor Will Likely Avoid
Fluoroquinolones like ciprofloxacin and levofloxacin were once widely prescribed for UTIs, but the FDA now carries a boxed warning on these drugs, its most serious safety alert. The agency concluded that the risks of fluoroquinolones generally outweigh the benefits for uncomplicated UTIs when other treatment options exist. The potential side effects include damage to tendons, muscles, joints, and nerves, and some of these effects can be permanent. These drugs are now reserved for situations where no safer alternative will work.
Over-the-Counter Symptom Relief
While you’re waiting for antibiotics to kick in (most people feel better within one to two days of starting them), phenazopyridine can take the edge off. Sold under brand names like AZO Urinary Pain Relief, it’s a urinary analgesic that numbs the lining of your urinary tract. It relieves the burning sensation, urgency, and discomfort that make UTIs miserable.
Phenazopyridine is strictly a pain reliever. It does nothing to fight the bacteria causing your infection. It also turns your urine bright orange, which is harmless but can stain clothing and contact lenses. It’s meant for short-term use only, typically no more than two days, while your antibiotic takes effect. If you’re using it longer than that without a prescription antibiotic, the infection is still there and potentially getting worse.
Supplements and Natural Products
Cranberry products are the most popular natural approach, but the evidence is strongest for prevention rather than treatment. A clinical trial in women with recurrent UTIs found that taking 37 mg of cranberry proanthocyanidins daily (split into two doses) reduced the rate of new symptomatic infections by roughly 46% compared to a negligible dose. If you’re buying cranberry supplements, look for products standardized to at least 36 mg of PACs (proanthocyanidins) per day. Cranberry juice cocktails from the grocery store contain far less of the active compounds and a lot of added sugar.
D-mannose, a sugar found naturally in some fruits, has gained popularity as a UTI remedy. The idea is that it coats the bladder wall and prevents bacteria from sticking. Doses in studies have ranged from 200 mg up to 2 to 3 grams daily. However, a comprehensive Cochrane review concluded there is currently little to no reliable evidence to support using D-mannose to prevent or treat UTIs. The existing studies are small and of very low certainty. It’s unlikely to cause harm, but it shouldn’t replace antibiotics for an active infection.
Preventing Recurrent UTIs
If you get UTIs repeatedly (generally defined as two or more in six months, or three or more in a year), your provider may suggest a preventive strategy beyond just treating each infection as it comes. One option is methenamine hippurate, an oral medication taken twice daily (1 gram each dose, morning and evening) that works by converting to formaldehyde in acidic urine, which kills bacteria. It’s not an antibiotic, so it doesn’t contribute to antibiotic resistance. The catch is that your urine needs to be acidic (pH 5.5 or below) for it to work, so your provider may ask you to test your urine pH and possibly take vitamin C to keep it in the right range.
Low-dose preventive antibiotics are another option, typically taken at bedtime or after sexual intercourse if that’s a trigger. Some women are also given a prescription to keep on hand so they can start antibiotics at the first sign of symptoms without needing an office visit each time.
UTIs During Pregnancy
UTIs are common during pregnancy and require prompt treatment because untreated infections carry a higher risk of complications, including preterm labor. The American College of Obstetricians and Gynecologists lists nitrofurantoin, beta-lactam antibiotics (like amoxicillin or cephalexin), sulfonamides, and fosfomycin as options during pregnancy. The specific choice depends on culture results, how far along you are, and any allergies you have. If you have a beta-lactam allergy, your provider will assess the severity before choosing an alternative like a cephalosporin or aztreonam.
Pregnant individuals are also screened for asymptomatic bacteriuria (bacteria in the urine without symptoms), which is treated with antibiotics during pregnancy even when it wouldn’t be in non-pregnant adults, because it can progress to a kidney infection more easily.
How Long Treatment Takes
For a simple bladder infection, most antibiotic courses run five days. Fosfomycin is a single dose. Symptoms often improve within 24 to 48 hours, but finishing the full course matters to make sure the bacteria are fully cleared.
If the infection has reached the kidneys (causing back pain, fever, or chills), treatment is longer. Current guidelines suggest 5 to 7 days for fluoroquinolones and 7 days for other antibiotics in complicated UTIs, though some providers extend to 10 to 14 days depending on how you respond. Beta-lactam antibiotics used for kidney infections often require 10 to 14 days because of higher relapse rates with shorter courses.

