Urinary Tract Infection (UTI) Treatment: Medication and Lifestyle Changes

See your doctor if you have UTI symptoms, such as needing to urinate more often, pain or burning when you urinate, and cloudy or discolored urine.
They can prescribe different kinds of antibiotics, depending on your individual circumstances, and recommend other treatments to help you feel better and keep UTIs from coming back.
Antibiotics
These are the most common types of antibiotics used to treat UTIs.
Nitrofurantoin
Trimethoprim-Sulfamethoxazole
This is a combination of two antibiotics called sulfonamides. It’s also known as co-trimoxazole or TMP-SMX. Brand names include Bactrim and Septra.
Fosfomycin
Penicillins
- Pivmecillinam (Pivya) is approved to treat uncomplicated UTIs caused by E. coli, Klebsiella pneumoniae, or Proteus mirabilis bacteria. Pivmecillinam is taken for three to seven days.
- Amoxicillin-clavulanate (Augmentin ES) combines a penicillin antibiotic with a drug to prevent resistance. It may be used to treat an uncomplicated UTI if a urine culture shows it’s the most effective drug.
- Ampicillin-sulbactam (Unasyn) is a combination drug that may be given intravenously for a complicated UTI.
Cephalosporins
- cefdinir
- cefepime
- cefiderocol (Fetroja)
- cefpodoxime
- ceftazidime-avibactam (Avycaz)
- ceftolozane-tazobactam (Zerbaxa)
- ceftriaxone
- cephalexin (Keflex)
Fluoroquinolones
The following are recommended for treating complicated UTIs:
Carbapenems
- imipenem or imipenem, cilastatin, and relebactam (Recarbrio)
- meropenem or meropenem and vaborbactam (Vabomere)
- ertapenem (Invanz)
Sulopenem Etzadroxil–Probenecid
Aminoglycosides
Gepotidacin
Foods You Shouldn't Eat When Treating a UTI

Next up video playing in 10 seconds
Other Medications
In addition to antibiotics, your doctor may recommend medications to relieve UTI pain or help prevent future infections.
Phenazopyridine
“You can use urinary analgesics to reduce symptoms while waiting for results,” says Andrew Chen, MD, a urologist at Cedars-Sinai in Beverly Hills, California. Phenazopyridine (Pyridium) numbs the lining of the urinary tract to make urination more comfortable. It’s also available in over-the-counter (OTC) versions, like Azo, at lower strengths.
OTC Pain Relievers
Medicines like acetaminophen (Tylenol) and ibuprofen (Motrin) may also help control pain.
Methenamine
Vaginal Estrogen
Lifestyle Changes
- Drink plenty of water. Consuming at least six to eight 8-ounce glasses of water daily can help flush away UTI-causing bacteria, setting you up for a quicker recovery. Plus, the more you drink, the more you’ll have to urinate.
- Urinate often. Each time you empty your bladder, you’re helping to flush bacteria out of your system.
- Try heat. Applying a heating pad to your pubic area for 15 minutes at a time can help soothe the pressure and pain caused by UTI-related inflammation and irritation.
- Cut out certain irritants. Caffeine, alcohol, spicy food, raw onions, citrus fruits, carbonated drinks, artificial sweeteners, and nicotine can further irritate your bladder, making it more difficult for your body to heal.
Other lifestyle changes, like wiping front to back, urinating after intercourse, and increasing your intake of probiotic-rich foods, can help prevent future UTIs, says Talib.
What About Cranberry Juice?
Just keep in mind: “It’s best to check that it is 100 percent cranberry juice and to select a brand without added sugar,” recommends Dr. Chen.
The Takeaway
- Antibiotics are the main treatment for urinary tract infections.
- The choice of drug depends on factors including your overall health and the type of bacteria causing the infection.
- There are a number of prescription and over-the-counter medications you can take to feel better while the antibiotics start working.
- If your symptoms don’t improve after two or three days of treatment, call your doctor. You may need a different antibiotic.
- Gupta K. Patient Education: Urinary Tract Infections in Adults (Beyond the Basics). UpToDate. May 30, 2025.
- Bono MJ et al. Uncomplicated Urinary Tract Infections. StatPearls. February 21, 2025.
- Imam T. Bacterial Urinary Tract Infections. Merck Manual. January 2024.
- Urinary Tract Infections in Adults. Urology Care Foundation. October 2025.
- Mareș C et al. Update on Urinary Tract Infection Antibiotic Resistance—A Retrospective Study in Females in Conjunction with Clinical Data. Life. January 9, 2024.
- Recurrent UTI. Cleveland Clinic. January 28, 2025.
- Yeast infection (vaginal). Mayo Clinic. November 19, 2024.
- Squadrito FJ et al. Nitrofurantoin. StatPearls. May 29, 2023.
- Graseck A et al. Urinary Tract Infections in Pregnant Individuals. American College of Obstetricians and Gynecologists. July 20, 2023.
- Gill R et al. Acute Cystitis. StatPearls. November 8, 2025.
- Habak P et al. Urinary Tract Infection in Pregnancy. StatPearls. April 20, 2024.
- Kemnic TR et al. Trimethoprim Sulfamethoxazole. StatPearls. November 28, 2022.
- Fosfomycin. MedlinePlus. December 15, 2025.
- Lee H et al. Urinary Tract Infections. PSAP 2018 Book 1: Infectious Diseases. January 15, 2018.
- FDA Approves New Treatment for Uncomplicated Urinary Tract Infections. U.S. Food and Drug Administration. April 24, 2024.
- Amoxicillin and clavulanate (oral route). Mayo Clinic. February 1, 2026.
- Ampicillin and sulbactam (injection route). Mayo Clinic. February 1, 2026.
- Pandey N et al. Beta-Lactam Antibiotics. StatPearls. June 4, 2023.
- Sabih A et al. Complicated Urinary Tract Infections. StatPearls. December 7, 2024.
- Bui T et al. Cephalosporins. StatPearls. February 17, 2024.
- Sankar A et al. Association of Fluoroquinolone Prescribing Rates With Black Box Warnings from the US Food and Drug Administration. JAMA Network Open. December 1, 2021.
- Armstrong T et al. JMM Profile: Carbapenems: a broad-spectrum antibiotic. Journal of Medical Microbiology. December 10, 2021.
- FDA approves new treatment for uncomplicated urinary tract infections in adult women who have limited or no alternative oral antibiotic treatment options. U.S. Food and Drug Administration. October 24, 2024.
- Block M et al. Aminoglycosides. StatPearls. July 17, 2023.
- Blujepa (gepotidacin) approved by US FDA for treatment of uncomplicated urinary tract infections (uUTIs) in female adults and paediatric patients 12 years of age and older. GSK. March 25, 2025.
- Eastham J et al. Phenazopyridine. StatPearls. May 3, 2023.
- Anger J et al. Recurrent Uncomplicated Urinary Tract Infections in Women: AUA/CUA/SUFU Guideline (2025). American Urological Association. 2025.
- Urinary tract infection (UTI). Mayo Clinic. September 26, 2025.
- Foods and Drinks That Can Irritate Your Bladder. Cleveland Clinic. June 14, 2023.
- Gbinigie O et al. Cranberry Extract for Symptoms of Acute, Uncomplicated Urinary Tract Infection: A Systematic Review. Antibiotics. December 24, 2020.
- Williams G et al. Cranberries for Preventing Urinary Tract Infections. Cochrane Database of Systematic Reviews. November 10, 2023.

Christopher Wolter, MD
Medical Reviewer
Christopher Wolter, MD, is an assistant professor in urology at Mayo Clinic in Phoenix, Arizona. He has been in practice since 2008, specializing in the areas of urinary incontinence, pelvic organ prolapse, urologic reconstruction, urologic prosthetics, post prostate cancer survivorship, erectile dysfunction, neurourology and neuromodulation, and overall functional considerations of urogenital health.
Dr. Wolter has been heavily involved in urologic education. He spent the last 12 years heavily involved in resident education and leadership for his department, including the last eight years as urology residency program director. He currently serves as the director of urologic education for the preclinical and clinical rotations for the Mayo Clinic Alix School of Medicine Phoenix, Arizona, campus.
Wolter completed his undergraduate and medical education at the University of Illinois. He then completed his urology residency at Tulane University in New Orleans, followed by a fellowship in female pelvic medicine and reconstructive urology at Vanderbilt University in Nashville, Tennessee.

Holly Pevzner
Author
Holly Pevzner is a writer who specializes in health, nutrition, parenting, and pregnancy. She is currently a staff writer at Happiest Baby. Her work, including essays, columns, features, and more, spans a variety of publications, websites, and brands, such as EatingWell, Family Circle, Fisher-Price, Parents, Real Simple, and The Bump. Pevzner has written several monthly health columns, including for First for Women and Prevention magazines. She previously held senior staff positions at Prevention, Fitness, and Self magazines, covering medical health and psychology. She was also a contributing editor at Scholastic's Parent & Child magazine.