Can Sexually Transmitted Infections (STIs) cause Erectile Dysfunction (ED) and low libido?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 5, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

STIs Can Cause Erectile Dysfunction and Low Libido

Yes, sexually transmitted infections (STIs) can cause erectile dysfunction (ED) and low libido, particularly when they progress to more severe conditions like epididymitis or pelvic inflammatory disease. While the evidence specifically linking STIs to sexual dysfunction is limited in the provided guidelines, there are clear pathways through which these infections can impact sexual function.

Mechanisms by Which STIs Affect Sexual Function

  • STIs can cause direct inflammation of the genital tract, leading to pain during sexual activity which may contribute to erectile dysfunction and decreased libido 1
  • In men, untreated STIs can progress to epididymitis, which presents with testicular pain and swelling that can significantly impair sexual function 1
  • STIs that progress to more severe infections can cause systemic symptoms including fever and general malaise, which can reduce sexual desire 1
  • HIV infection and its treatments can affect hormonal balance, potentially leading to decreased testosterone levels which impacts both erectile function and libido 1

Specific STIs and Their Impact on Sexual Function

  • Chlamydia and gonorrhea infections in men can lead to urethritis and epididymitis, causing pain during sexual activity and erection 1
  • When STIs progress to pelvic inflammatory disease (PID) in women, the resulting pain and inflammation can significantly decrease sexual desire 1
  • HIV infection is associated with higher rates of sexual dysfunction, including both erectile dysfunction and decreased libido, due to both physiological and psychological factors 2
  • The psychological impact of being diagnosed with an STI can lead to anxiety and depression, which are known contributors to sexual dysfunction 2

Risk Factors and Associations

  • Men who experience erectile dysfunction may engage in riskier sexual behaviors, creating a potential cycle where ED leads to inconsistent condom use, which increases STI risk 3
  • Research shows that men who use ED medications have higher rates of STIs compared to non-users, suggesting a complex relationship between sexual function concerns and STI risk 4
  • Condom-associated erectile dysfunction is reported by approximately 37% of young men attending STI clinics, which may lead to inconsistent condom use and increased STI risk 3

Management Considerations

  • Early detection and treatment of STIs is crucial to prevent progression to conditions that may cause sexual dysfunction 1
  • For men experiencing erectile dysfunction related to STIs, treatment of the underlying infection should be the first priority 5
  • Counseling about safe sexual practices should accompany the prescription of ED medications, particularly for those with a history of STIs 4
  • A multidimensional approach addressing both the infection and any resulting sexual dysfunction provides optimal outcomes 2

Prevention Strategies

  • Consistent and correct condom use remains one of the most effective methods for preventing STIs and their potential impact on sexual function 1
  • Regular STI screening for sexually active individuals, especially those with multiple partners, can help detect infections before they progress to cause sexual dysfunction 1
  • For those experiencing condom-associated erectile dysfunction, proper education on condom use and fit may help reduce this problem and maintain protection against STIs 3

Important Caveats

  • Sexual dysfunction is multifactorial, and STIs are just one potential cause among many others including psychological factors, other medical conditions, and medications 1, 2
  • The relationship between STIs and sexual dysfunction may be bidirectional—sexual dysfunction may lead to risky sexual behaviors that increase STI risk, while STIs may exacerbate sexual dysfunction 2, 3
  • Treatment of sexual dysfunction in individuals with STIs should always include comprehensive STI testing and treatment before addressing the sexual function concerns 4

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.