Enjoy sex like you used to

Learn more

Can UTI Cause Erectile Dysfunction?

Dr. Felix Gussone

Reviewed by Felix Gussone, MD

Written by Erica Garza

Published 06/25/2022

Updated 04/30/2025

Urinating is one of the main ways the body removes waste, and going to the bathroom often might indicate you’re drinking enough water. However, frequent urination can also be a sign of a problem, like a urinary tract infection (UTI).

If you have a UTI (or think you might have one), you may be asking yourself, Can UTIs cause erectile dysfunction (ED) or affect my sex life in any way?

The short answer is that a urinary tract infection isn’t a typical cause of erectile dysfunction. But research shows there may be a connection between these two conditions.

If you’re dealing with ED and making more trips to the bathroom lately, keep reading to explore the connection. We’ll also go over what you can do to treat and potentially prevent both conditions.

Many factors — including common health conditions like UTIs and certain habits and lifestyle factors — can cause lower urinary tract symptoms (LUTS) like frequent urination.

UTIs are much more common in women — about 60 percent of women experience at least one in their lifetime. But around 12 percent of men will also have a UTI at some point.

Some health conditions that can cause lower urinary tract symptoms, like more trips to the bathroom, include:

  • Benign prostatic hyperplasia (BPH)

  • Urinary tract infections

  • Other kidney and urinary tract disorders

  • Sexually transmitted infections (STIs)

Get details below.

Benign Prostatic Hyperplasia (BPH)

BPH (an enlarged prostate gland) is a common medical condition. It often occurs in middle-aged and older men.

As the prostate grows, it may press on the urethra, thicken the bladder wall, and weaken the bladder. This can cause urinary retention, urgent or frequent urination, urinary incontinence, and other issues.

Urinary Tract Infections

Infections can develop in several places inside the urinary tract, including the bladder, kidneys, ureters, and urethra — the tube that empties urine from the penis. But most UTIs develop when bacteria enter the urethra.

UTIs can affect urination in various ways, like causing: 

  • Frequent or painful urine flow

  • Bloody urine or other urine abnormalities

  • A burning sensation when you pee

If you have a urinary tract infection, you may feel like you need to pee even if your bladder is empty.

UTI vs. STI

Some sexually transmitted infections (STIs) can feel similar to UTIs, with overlapping symptoms like burning during urination.

However, the causes are different. STIs are spread through sexual contact, while UTIs typically result from bacteria entering the urinary tract. Discharge from the penis may point to an STI, while a strong urge to urinate even when your bladder is empty is more common with a UTI.

If you think you might have an STI, contact your healthcare provider and get tested.

Other Kidney and Urinary Tract Disorders

Other disorders affecting the kidneys and urinary tract — such as kidney stones or overactive bladder (OAB) syndrome — may cause bladder control problems. This includes the need to urinate more frequently than normal.

Other medical conditions and habits that may affect your need to urinate include:

But is there a specific connection between an overactive bladder and erectile dysfunction? Can one cause the other? Keep scrolling for insight.

Can urinary problems cause erectile dysfunction? Neither frequent urination nor UTIs cause ED or other sexual function issues on their own.

However, some of the medical conditions mentioned above that may make you urinate often are associated with a higher risk of developing erectile dysfunction.

Lower Urinary Tract Symptoms and ED

For example, a 2008 study of over 350 aging males between 50 and 80 years old with lower urinary tract symptoms found that just over 68 percent experienced sexual dysfunction.

LUTS are symptoms affecting the lower urinary tract’s ability to store and empty urine, such as:

  • Urinary hesitancy

  • Urgency or frequency

  • Dribbling

  • Nocturia (getting up to pee often throughout the night

These symptoms all tend to occur more often in older men.

A 2013 review also found overwhelming evidence connecting erectile dysfunction and LUTS. The review noted that patients struggling with ED and/or urinary problems may also be suffering from other health conditions like hypertension (high blood pressure), type 2 diabetes, obesity, and low testosterone.

How BPH Symptoms and Treatments May Affect Sexual Function

Studies also suggest that prostate diseases like BPH and prostate cancer could cause lower urinary tract symptoms and affect sexual activity.

Pain related to prostatitis (prostate inflammation) may contribute to sexual dysfunctions like erectile dysfunction and ejaculatory issues. Meanwhile, BPH can impair erectile function by affecting muscle tone in the prostate, bladder, and penis.

Treatments for BPH may also cause sexual issues as a side effect, including alpha-blockers, 5-alpha reductase inhibitors (5ARIs), and prostate surgery.

Poorly controlled diabetes, kidney disease, nerve damage, obesity, drinking too much, and smoking — which are all potential causes of lower tract urinary symptoms — are also risk factors for erectile dysfunction.

Though there’s not a direct link between having a UTI and ED, you should talk to your healthcare provider about treatment if you’re experiencing one or both of these conditions.

UTIs and ED can have multiple causes and could be linked to other serious health issues like diabetes, high cholesterol, and heart disease. So there’s a chance the two conditions can be diagnosed and treated together.

If you’ve recently noticed you urinate more frequently than before, get medical advice from a healthcare professional. They’ll typically ask about your symptoms and medical history. Let them know if you’ve experienced issues with frequent or excessive urination before and if the issues were caused by a specific medical condition.

A urologist (someone who specializes in urology or urinary tract health) may also perform tests, such as a:

  • Urinalysis

  • CT scan of your abdomen

  • Kidney ultrasound

  • Clean-catch urine culture

A clean-catch urine culture can identify bacteria causing a UTI and determine the best antibiotic treatment. Besides antibiotics, UTIs can be treated with pain-relieving medication.

A provider may recommend several different treatment options for ED, including medications, therapy, or a combination of both.

ED Medication

Effective ED treatments include medication known as phosphodiesterase type 5 inhibitors — or PDE5 inhibitors for short. They relax blood vessels to help increase blood flow to the penis, leading to firmer erections.

ED treatments include:

If you’re dealing with both erectile dysfunction and BPH, tadalafil is the only option FDA-approved to treat both conditions.

Learn more about how these medications work and other ways to increase blood flow to your penis in our guide.

Therapy and Lifestyle Changes

Psychological causes of ED can include daily stress from work, relationship problems, or mental health issues like depression. Even sexual performance anxiety can result in ED and other issues that affect your sex life.

A potential solution for psychological ED is psychotherapy or “talk therapy.” Several types of therapy can help you overcome any anxiety or stress that comes up in the bedroom.

Making healthy lifestyle changes can also improve ED symptoms and overall well-being, like following a healthy diet, getting adequate sleep, exercising regularly, and lowering stress levels.

If you’ve started to urinate more often than you used to, your first thought is probably, Where’s the closest bathroom? After that, you may think, Will this affect my sex life?

So, can UTIs cause erectile dysfunction? Here’s what we know:

  • Frequent urination can be a sign of a UTI or other health conditions. UTIs, prostate enlargement, kidney disease, and nerve disorders can all lead to more frequent bathroom trips.

  • Neither frequent urination nor UTIs cause ED directly, but they’re linked. Some of the medical conditions and lifestyle habits that cause lower urinary tract symptoms are associated with a higher risk of ED.

  • Help is available. Antibiotics and pain relievers can treat UTIs, and ED is treated with prescription medication, therapy, and healthy lifestyle changes.

If you’re struggling with a sexual health issue like ED, premature ejaculation (PE), or low libido, you don’t have to let it affect your quality of life. Get advice from a healthcare professional on our men’s health platform today to see which treatments are available.

18 Sources

  1. American Medical Association (AMA). (2025). What doctors wish patients knew about UTI prevention. https://www.ama-assn.org/delivering-care/public-health/what-doctors-wish-patients-knew-about-uti-prevention#
  2. Dhaliwal A, et al. (2023). PDE5 inhibitors. https://www.ncbi.nlm.nih.gov/books/NBK549843/
  3. Hatzimouratidis K. (2014). A review of the use of tadalafil in the treatment of benign prostatic hyperplasia in men with and without erectile dysfunction. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4054509/
  4. Kirby M, et al. (2013). Erectile dysfunction and lower urinary tract symptoms: a consensus on the importance of co-diagnosis. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3748789/
  5. Lepor H. (2005). Pathophysiology of lower urinary tract symptoms in the aging male population. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1477625/
  6. Ma C, et al. (2021). Global research trends on prostate diseases and erectile dysfunction: a bibliometric and visualized study. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7908828/
  7. Mehraban D, et al. (2008). Sexual dysfunction in aging men with lower urinary tract symptoms. https://ojs3.sbmu.ac.ir/urolj/index.php/uj/article/view/35
  8. Miller J, et al. (2016). Does instruction to eliminate coffee, tea, alcohol, carbonated, and artificially sweetened beverages improve lower urinary tract symptoms?: A prospective trial. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4799659/
  9. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). (n.d.). Bladder infection (urinary tract infection—uti) in adults. https://www.niddk.nih.gov/health-information/urologic-diseases/bladder-infection-uti-in-adults
  10. National Institute of Diabetes and Digestive and Kidney DIseases (NIDDK). (2018). Diabetes, sexual, & bladder problems. https://www.niddk.nih.gov/health-information/diabetes/overview/preventing-problems/sexual-bladder-problems
  11. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). (n.d.). Prostate enlargement (benign prostatic hyperplasia). https://www.niddk.nih.gov/health-information/urologic-diseases/prostate-problems/enlarged-prostate-benign-prostatic-hyperplasia
  12. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). (2017). Symptoms & causes of erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
  13. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). (2017). Treatment for erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/treatment
  14. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). (n.d.). Urologic diseases. https://www.niddk.nih.gov/health-information/urologic-diseases
  15. Ng M, et al. (2022). Benign prostatic hyperplasia. https://www.ncbi.nlm.nih.gov/books/NBK558920/
  16. Sabih A, et al. (2023). Complicated urinary tract infections. https://www.ncbi.nlm.nih.gov/books/NBK436013/
  17. Urology Care Foundation. (2023). What is benign prostatic hyperplasia (BPH)?. https://www.urologyhealth.org/urology-a-z/b/benign-prostatic-hyperplasia-(bph)
  18. Yafi F, et al. (2016). Erectile dysfunction. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5027992/
Editorial Standards

Hims & Hers has strict sourcing guidelines to ensure our content is accurate and current. We rely on peer-reviewed studies, academic research institutions, and medical associations. We strive to use primary sources and refrain from using tertiary references. See a mistake? Let us know at [email protected]!

This article is for informational purposes only and does not constitute medical advice. The information contained herein is not a substitute for and should never be relied upon for professional medical advice. Always talk to your doctor about the risks and benefits of any treatment. Learn more about our editorial standards here.

Felix Gussone, MD

Education

Other Certificates & Certifications

Specialties & Areas of Focus

  • General Practice

Previous Work Experience

  • Manager, Medical Content & Education - Ro, 2021–2024 

  • Senior Health Editor - Medium, 2019–2021

  • Associate Medical Producer - NBC News, 2015–2019

  • Production Assistant - CNN, 2015

Media Mentions & Features

Why I Practice Medicine

  • Dr. Gussone discovered his passion for creating medical content and educating the public about health while working with CNN’s Dr. Sanjay Gupta. He realized that the media could deliver essential health information to millions, surpassing the reach of one-on-one care in a clinical setting.

Hobbies & Interests

  • Scuba diving, traveling, cinema, and perfume making

LinkedIn

Read more

Related Conditions

Erectile Dysfunction Erectile Dysfunction
Erectile dysfunction is a condition in which you have trouble getting or keeping an erection firm enough for satisfying sex. Erectile dysfunction affects as many as 30 million men in the United States.
Premature Ejaculation Premature Ejaculation
Premature ejaculation (PE) is a sexual dysfunction characterized by a short ejaculatory latency, a perceived lack of control about the timing of ejaculation, and distress and interpersonal difficulty related to ejaculating too quickly.
Low Testosterone Low Testosterone
Low testosterone or testosterone deficiency, also known as hypogonadism, is a condition in which patients develop symptoms such as low sex drive, erectile dysfunction (ED), and fatigue because the body doesn’t produce enough testosterone.
Retrograde Ejaculation Retrograde Ejaculation
Though many men don’t like to talk about it, ejaculation problems are very common. Some of the most common issues include premature, delayed, or retrograde ejaculation.
Pelvic Floor Dysfunction Pelvic Floor Dysfunction
Your pelvic floor is a lot like plumbing in your home: you never really think about it unless something goes wrong..
Anorgasmia Anorgasmia
When you think of male sexual dysfunction, concerns like erectile dysfunction (ED) or premature ejaculation (PE) probably come to mind first. But there’s another sex-related issue that’s more common in men than you might expect: difficulty orgasming.
Put yourself in good hands

Hims connects you with doctor-trusted products so you can have your best sex ever