Genital herpes does not directly cause erectile dysfunction (ED), but research links it to a higher risk of ED. The connection seems to be indirect: the herpes simplex virus (HSV) is associated with cardiovascular effects and, importantly, with psychological strain — anxiety, stress and reduced confidence — that can interfere with erections. Several studies since 2013 have found men with HSV are more likely to develop ED, though the relationship is complex and far from a simple cause-and-effect.
It is a reasonable worry for anyone with a herpes diagnosis, but the honest answer needs nuance. Understanding how an infection can relate to ED — physically and emotionally — helps separate real risk from fear.
What genital herpes is
Genital herpes is a sexually transmitted infection caused by the herpes simplex virus (HSV). It can cause blisters and sores on the genitals and anus, often beginning with a tingling, burning or itching sensation where the blisters will appear. In men the blisters usually affect the penis or anus, but can also affect the urethra, sometimes causing severe pain during urination.
What ED is
Erectile dysfunction is difficulty achieving or maintaining an erection suitable for sex. It has many possible causes, from physical conditions like heart disease and diabetes to psychological issues such as stress, anxiety and depression. That breadth matters here: an infection like herpes can feed into the psychological side of ED even when it does not damage the physical machinery of an erection.
| Pathway | How it may relate to ED |
|---|---|
| Psychological | Anxiety, stress, lower confidence |
| Cardiovascular link | Both HSV and ED tie to cardiovascular events |
| Prostate infection (some STIs) | Inflammation affecting erections |
| Direct physical cause | Not established for most STIs |
What the research shows
Research from as early as 2013 points to a significant correlation between HSV infection and the risk of ED, with infected men more likely to develop it. A 2019 case study described an 18-year-old man who experienced ED alongside other symptoms in the setting of a genital herpes infection, suggesting that in some individuals HSV may lead to complications that include ED. Mainstream coverage in 2017 also highlighted the link, bringing it to wider attention. Even so, correlation is not causation — a higher risk does not prove herpes directly causes ED.
The role of other STIs
HSV is not the only infection in the picture. Untreated HIV, gonorrhea, chlamydia and viral hepatitis can cause infections in the prostate gland, leading to inflammation and changes in prostate health that could affect erections. As some health sources explain, prostate infections from untreated STIs can affect the ability to achieve and maintain an erection. So leaving STIs untreated can, indirectly, contribute to ED.
Physical or psychological?
While HSV is associated with a higher risk of ED, most STIs do not appear to directly impair the ability to get an erection. Crucially, even infections that do not physically cause ED can significantly affect psychological wellbeing — including confidence in bed. So the relationship between STIs and ED is not only about physical changes but emotional ones too, and that emotional weight can be just as real.
The bottom line
Research suggests a possible link between genital herpes and an increased risk of ED, but it does not establish a direct causal relationship. The raised risk may reflect the broader effects of HSV and other STIs on cardiovascular health and psychological wellbeing, and not everyone with HSV will experience ED. If you have herpes and notice erection problems, the most useful step is to see a doctor, who can address the infection, the ED and any underlying factors together.
On painful sex linked to infections, read causes and symptoms of painful sex. On a hormonal angle, see does DHT cause ED. And for surgical causes, read life after prostate removal.
Frequently asked questions
- Can genital herpes cause ED?
- Not directly, but it is linked to a higher risk, largely through psychological strain and broader health effects.
- Will everyone with herpes get ED?
- No. The relationship is complex, and most people with HSV will not develop ED.
- Do other STIs affect erections?
- Some untreated STIs can cause prostate infections and inflammation that may affect erections; psychological effects also matter.
- What should I do?
- See a doctor to treat the infection and address any erection problems and underlying factors together.
For the full picture of causes and treatments, return to the erectile dysfunction and male sexual health hub.