provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeDrugsSide Effects

Can Medications Cause UTIs? Yes, and Here’s 9 Possible Culprits

Kristine Foley, PharmDJennifer Gershman, PharmD, CPh, PACS
Published on November 4, 2024

Key takeaways:

  • Urinary tract infections (UTIs) happen when bacteria grows in the lower urinary tract. There are many medications that can raise the risk of developing a UTI.

  • Some medications cause UTIs because they prevent the bladder from emptying completely. Examples include anticholinergics, such as oxybutynin (Oxytrol), and older antihistamines, such as diphenhydramine (Benadryl). Opioids, such as morphine (MS Contin), and some antidepressants, such as amitriptyline, can also have this effect.

  • Sodium-glucose cotransporter-2 (SGLT2) inhibitors, such as Jardiance (empagliflozin), cause your body to remove excess glucose (sugar) through your urine. Extra glucose attracts bacteria to the genital area, which can lead to a UTI.

A woman is using her smartphone to check information on a medication.
Worawee Meepian/iStock via Getty Images Plus

Urinary tract infections (UTIs) happen when bacteria or other germs grow in the urinary tract. They usually come with uncomfortable or painful symptoms, such as urgency or burning during urination. Typically, you’ll need to take an antibiotic to help clear the infection.

There are many risk factors that can increase your likelihood of developing a UTI. Sometimes, the culprit is in your medicine cabinet. But which medications are most likely to cause UTIs?

Medication-related UTIs at a glance

There are many medications that raise your risk of developing a UTI. But the ways they contribute to UTIs vary.

Search and compare options

Search is powered by a third party. By clicking a topic in the advertisement above, you agree that you will visit a landing page with search results generated by a third party, and that your personal identifiers and engagement on this page and the landing page may be shared with such third party. GoodRx may receive compensation in relation to your search.

Below is a table that provides a summary of nine notable types of medications that can cause UTIs. Though, keep in mind that this isn’t a comprehensive list of medications that can have this side effect.

Medication type

Example medications

Reason they can causes UTIs

Anticholinergics

• Oxybutynin (Oxytrol)

• Tolterodine (Detrol)

•  Benztropine

Can cause urinary retention (inability to fully empty the bladder)

First-generation antihistamines

• Diphenhydramine (Benadryl)

• Doxylamine (Unisom)

• Cyproheptadine

Can cause urinary retention

Sodium-glucose cotransporter-2 (SGLT2) inhibitors

• Jardiance (empagliflozin)

• Farxiga (dapagliflozin)

Increases the amount of glucose in urine, creating an environment where bacteria may grow more easily

Calcium channel blockers

• Amlodipine (Norvasc)

• Diltiazem (Cardizem)

• Verapamil (Verelan)

Can cause urinary retention

Antidepressants

• Amitriptyline

• Nortriptyline (Pamelor)

• Fluoxetine (Prozac)

• Sertraline (Zoloft)

Can cause urinary retention

Nonsteroidal anti-inflammatory drugs (NSAIDs)

• Diclofenac (Cambia, Cataflam)

• Ketoprofen

Can cause urinary retention

Opioid pain relievers

• Morphine (MS Contin)

• Fentanyl

Can cause urinary retention

First-generation antipsychotics

• Chlorpromazine

• Haloperidol (Haldol)

Can cause urinary retention

Immunosuppressants

• Prednisone (Rayos)

• Azathioprine (Imuran)

• Cyclosporine (Gengraf, Neoral, Sandimmune)

Lowers the immune system’s ability to fight infections

Keep reading to find out more about these nine medications known for causing UTIs.

1. Anticholinergic medications, such as oxybutynin

Anticholinergic medications, such as oxybutynin and benztropine, have the potential to cause UTIs. Anticholinergic medications block the actions of the chemical acetylcholine in the body. This can cause several side effects — known broadly as anticholinergic side effects — including urinary retention.

Urinary retention is when the bladder is unable to fully empty. Urinary retention can allow bacteria that’s usually removed when you urinate to multiply in the bladder. If there’s enough bacteria present in the bladder, a UTI can occur.

2. Older antihistamines, such as diphenhydramine

First-generation antihistamines, such as diphenhydramine and doxylamine, are another class of medications that can cause UTIs. These older antihistamines have anticholinergic effects. This means they can cause some of the same side effects as anticholinergic medications, including urinary retention.

And as mentioned above, urinary retention raises the risk of UTIs. Your risk of urinary retention may be even higher if you’re 65 or older. That’s one reason that experts recommend older adults avoid first-generation antihistamines.

Good to know: Newer antihistamines, such as loratadine (Claritin) and fexofenadine (Allegra), are much less likely to cause urinary retention. Switching to one of these could help lower your risk of UTIs. But speak with a healthcare professional before making the switch. There are some symptoms and conditions that first-generation antihistamines work better for.

3. SGLT2 inhibitors, such as Jardiance and Farxiga

SGLT2 inhibitors, such as Jardiance and Farxiga, are another medication class that can cause UTIs. In fact, more frequent UTIs is one of the most commonly reported SGLT2 inhibitor side effects. SGLT2 inhibitors are commonly taken for Type 2 diabetes. One of the ways they work is by removing excess glucose from the bloodstream through the urine.

But bacteria and other germs love glucose, because the nutrient helps them multiply. Urinating out extra glucose can attract these germs to your genitals, which can lead to various infections in that area, including UTIs. In rare cases, UTIs from SGLT2 inhibitors can become serious and even lead to hospitalization.

GoodRx icon

4. Calcium channel blockers, such as amlodipine and diltiazem

Calcium channel blockers, such as amlodipine and diltiazem, can also cause UTIs. This side effect isn’t common, but it’s still possible.

Calcium channel blockers can affect how the bladder muscles contract. Most often, people taking these medications experience increased urination. But in some cases, the bladder may not contract strongly enough. And this can cause urinary retention, raising the risk of UTIs.

5. Certain antidepressants, such as amitriptyline and fluoxetine

Some antidepressants can also cause UTIs. Tricyclic antidepressants (TCAs) and selective serotonin reuptake inhibitors (SSRIs) are two notable groups linked to this side effect. But the ways these medications cause UTIs are different.

TCAs, which include amitriptyline and nortriptyline, have anticholinergic effects on the body. Because of this, they can cause urinary retention. And this can lead to UTIs.

SSRIs, which include fluoxetine and sertraline, can also cause urinary retention. But this is caused by SSRIs’ effects on serotonin. Serotonin is a hormone involved in mood regulation. It also plays a role in how the bladder stores urine. SSRIs may interfere with how serotonin attaches to its receptors (chemical binding sites) in the bladder. And this may lead to urinary retention — and possibly UTIs.

6. NSAIDs, such as diclofenac

NSAIDs, such as diclofenac and ketoprofen, can also cause UTIs. NSAIDs work by blocking the actions of the prostaglandins. Prostaglandins are chemicals in the body that contribute to fever, pain, and inflammation.

Some prostaglandins help the bladder contract to empty urine. By blocking these chemicals, NSAIDs may cause the bladder to not contract as strongly as usual. And this could raise the risk of urinary retention, which may contribute to UTIs.

7. Opioid pain relievers, such as morphine

Opioid pain relievers, such as morphine and fentanyl, can cause UTIs because of how they affect the bladder. Opioids raise the risk of UTIs in a few different ways:

  • They have anticholinergic effects. Similar to many of the above medications, opioids can cause urinary retention because of this.

  • They affect how your bladder muscles contract. Opioids can cause your bladder muscles to contract less strongly than usual, which can cause urinary retention. This effect is seen most commonly with opioid epidurals.

  • They make it harder to realize your bladder is full. Opioids affect certain nerves that send signals to your brain telling you that you need to urinate. So your bladder may become fuller than usual.

8. First-generation antipsychotics, such as chlorpromazine

First-generation, or typical, antipsychotics, such as chlorpromazine and haloperidol, are another possible cause of UTIs. They balance levels of certain chemicals in the body to help treat mental health conditions such as schizophrenia.

Because of how they work, first-generation antipsychotics can cause a variety of side effects, including anticholinergic effects. This can cause urinary retention and, in turn, UTIs.

Good to know: Second-generation, or atypical, antipsychotics are less likely overall to cause anticholinergic effects. But some, such as clozapine (Clozaril), have a higher risk of these side effects than others.

9. Immunosuppressants, such as cyclosporine

Immunosuppressants, such as prednisone and cyclosporine, are medications that suppress (weaken) your immune system. These medications are necessary to prevent rejection for people who have received an organ transplant. They’re also a mainstay in the treatment of autoimmune disorders. But taking an immunosuppressant raises your risk of infections, including UTIs.

Can antibiotics cause a UTI?

No, antibiotics don’t cause UTIs. Antibiotics are usually needed to treat UTIs. But overuse of these medications can cause antibiotic-resistant UTIs. If this happens, your next UTI may not be as easy to treat as the last one.

If you get UTIs often, antibiotic-resistance can make it harder to find a treatment that works well. In some cases, a prescriber may recommend taking an antibiotic, such as methenamine hippurate (Hiprex), daily to help prevent UTIs. But most people should limit taking antibiotics to help prevent resistance.

The bottom line

There are many medications that can cause urinary tract infections (UTIs). Anticholinergic medications, such as oxybutynin (Oxytrol), and older antihistamines, such as diphenhydramine (Benadryl), can cause UTIs by preventing the bladder from emptying fully. Calcium channel blockers, such as amlodipine (Norvasc), and some antidepressants, such as amitriptyline, can also have this effect.

Sodium-glucose cotransporter-2 (SGLT2) inhibitors, such as Jardiance (empagliflozin), can cause UTIs by removing extra glucose (sugar) through urine. Bacteria and other germs are attracted to the glucose, and this can lead to UTIs.

Speak with a healthcare professional if you think your medication may be causing UTIs.

why trust our exports reliability shield

Why trust our experts?

Kristine Foley, PharmD
Kristine Foley is a licensed pharmacist with over 13 years of community pharmacy experience. She earned her Doctor of Pharmacy degree from Rutgers University.
Christina Aungst, PharmD
Christina Aungst, PharmD, is a pharmacy editor for GoodRx. She began writing for GoodRx Health in 2019, transitioning from freelance writer to editor in 2021.
Jennifer Gershman, PharmD, CPh, PACS
Jennifer Gershman, PharmD, is a licensed pharmacist in Florida. She has worked in the pharmacy industry for more than 15 years and is currently a medical writer.

References

American Geriatrics Society Beers Criteria Update Expert Panel. (2023). American Geriatrics Society 2023 updated AGS Beers Criteria for potentially inappropriate medication use in older adults. Journal of the American Geriatrics Society.

Bono, M. J., et al. (2023). Uncomplicated urinary tract infections. StatPearls.

View All References (14)

Dobrek, L. (2023). Lower urinary tract disorders as adverse drug reactions - A literature review.  Pharmaceuticals.

Grzyb, C., et al. (2024). Urinary and gynecologic adverse events associated with SSRI use. Georgetown Medical Review.

Gunaydin, C., et al. (2018). Effects of nonsteroidal anti-inflammatory drugs at the molecular level. The Eurasian Journal of Medicine.

Jiang, S., et al. (2022). Sertraline-induced urinary retention reversed by mirtazapine in an adolescent. The Primary Care Companion for CNS Disorders.

Mallappallil, M., et al. (2017). What do we know about opioids and the kidney? International Journal of Molecular Sciences.

Moraczewski, J., et al. (2023). Tricyclic antidepressants. StatPearls.

Muench, J., et al. (2010). Adverse effects of antipsychotic medications. American Family Physician.

National Institute of Diabetes and Digestive and Kidney Diseases. (2019). Definition and facts of urinary retention.

National Institute of Diabetes and Digestive and Kidney Diseases. (2019). Urinary retention.

Purves, D., et al. (2001). Acetylcholine. Neuroscience, 2nd Edition. Sinauer Associates.

Salman, M., et al. (2017). Effect of calcium channel blockers on lower urinary tract symptoms: A systematic review. Biochemistry Research International.

Serlin, D. C., et al. (2018). Urinary retention in adults: Evaluation and initial management. American Family Physician.

U.S. Food and Drug Administration. (2022). FDA revises labels of SGLT2 inhibitors for diabetes to include warnings about too much acid in the blood and serious urinary tract infections.

Yang, H., et al. (2022). Risk of genital and urinary tract infections associated with SGLT-2 inhibitors as an add-on therapy to metformin in patients with type 2 diabetes mellitus: A retrospective cohort study in Korea. Pharmacology Research & Perspectives.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Subscribe and save.

Get prescription saving tips and more from GoodRx Health. Enter your email to sign up.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Browse medications

View All

Research prescriptions and over-the-counter medications from A to Z, compare drug prices, and start saving.