What causes erectile dysfunction?

Medical doctor Dr. Rugilė Kančaitė
Reviewed By
Dr. Rugilė Kančaitė
Medical doctor Dr. Rugilė Kančaitė
Medical review by
Dr. Rugilė Kančaitė
Written by
Mojo's Research Team
Updated on
October 16, 2026
Published on
December 28, 2021
A heavily freckled white man lies naked in bed, a blanket covering his lower body.
Table of contents
Chevron down icon

There are many causes of erectile dysfunction (ED), including problems with blood flow, nerve signals, or hormones, and psychological causes like stress, anxiety, and depression. Certain medicines can also play a part, and these causes often overlap.

Some studies show that as many as 30% of men under 40 have had erection difficulties (Nguyen et al., 2017). A doctor can help work out what's behind yours and what to try next.

If you're not sure your symptoms point to ED at all, start by recognizing the symptoms of ED first.

The main types of ED

ED can come from several pathways, including psychological, vascular, neurological, and hormonal causes (Cleveland Clinic, 2023).

TypeWhat's happeningCommon examples
PsychogenicPsychological conditions (ones that affect your thoughts, feelings, or behavior) get in the way of an erectionDepression, anxiety, stress, fear of sex or intimacy, low self-esteem
VascularBlood flow to the penis gets reduced or blockedHeart disease, high blood pressure, high cholesterol, diabetes
NeurologicalNerve signals that trigger an erection get disruptedStroke, multiple sclerosis, spinal cord injury, diabetes
HormonalHormone levels shift and reduce desire or functionLow testosterone, high prolactin, thyroid problems

Source for this table: (Cleveland Clinic, 2023).

Does psychological stress cause ED?

It can. Performance anxiety can override the normal signals that lead to an erection. Dr. Shannon Chavez, a clinical psychologist who specializes in performance anxiety, calls this a nervous system problem. Once your body goes on high alert, it stops focusing on arousal and starts focusing on threat, and an erection becomes harder to reach.

Psychological factors are a common cause of ED. However, one review reported that as many as 87% of young men with ED also have a physical component, such as a blood flow, nerve, hormone, or medication-related cause (Nguyen et al., 2017). Psychological and physical causes often overlap, so it's worth seeing a doctor even if you think stress is behind it.

If you want to know more about this side of ED, read up on psychological ED treatment options.

Vascular and cardiovascular causes

Erections need healthy blood flow, so anything that narrows or blocks the blood vessels involved can get in the way. Heart disease, high blood pressure, high cholesterol, and diabetes are possible causes here.

The link works both ways. ED might be an early warning sign of cardiovascular disease, since the same blood vessels are affected in both (Yafi et al., 2016). Because of this link, official urology guidelines recommend checking for cardiovascular risk factors in any man who presents with ED (Burnett et al., 2018).

Stroke is a clear example of this connection. Studies suggest that men who have had a stroke have 3.32 times the relative risk of ED compared with men who haven't, and pooled studies put ED in stroke survivors between 32.1% and 77.8% (Zhao et al., 2021).

Hormonal causes

Hormones regulate many bodily functions, including desire and physical function, so a shift in the wrong direction can cause ED even when blood flow and nerve signals are working fine. Low testosterone can reduce both desire and erectile function. High prolactin can cause low libido and ED alongside symptoms like headaches. Thyroid problems can affect circulating sex hormone levels that may also reduce sexual function.

Because many hormonal causes are common and treatable, testosterone testing is recommended for every man who presents with ED, whatever his profile (Burnett et al., 2018).

Can medications cause ED?

Yes, several types of medication are linked to ED, though the risk and the reason vary by drug and the person taking it. Certain blood pressure medications, some antidepressants, opioid painkillers, and a handful of other drug classes appear on most clinical lists of medications linked to erectile problems. Medicines usually cause ED by affecting the hormone, nerve, or blood flow pathways above. Among blood pressure medicines, older beta-blockers are the ones most linked to ED, while others are neutral or may even help (Corona et al., 2024).

Selective serotonin reuptake inhibitors (SSRIs), a common type of antidepressant, are linked to sexual side effects, including problems with desire, arousal and erections, and orgasm (Nelson et al., 2026). If you think a medication is affecting your erections, don't stop taking it on your own. Talk to your doctor, who can go through your options with you.

What are the risk factors for ED?

Risk factors are things that make ED more likely. Recognized risk factors include age, smoking, diabetes, high blood pressure, high cholesterol, depression, obesity, and an inactive lifestyle, and many of them are also risk factors for heart disease (Burnett et al., 2018).

Health conditions

  • Diabetes. A review of 145 studies found that about half of men with diabetes (52.5%) have ED (Kouidrat et al., 2017).
  • High blood pressure. High blood pressure often goes hand in hand with ED and can help cause it (Burnett et al., 2018).
  • Depression. Depression and ED are closely linked in both directions (Liu et al., 2018). Read more about depression and erectile dysfunction.
  • Prostate cancer surgery. Surgery to remove the prostate is a known cause of ED. Across 268 studies, the share of men whose erections recovered ranged from 12% to 67%, depending on the type of surgery and the time since it (Moretti et al., 2024).

Lifestyle factors and recreational drugs

  • Smoking. In studies that followed men over time, current smokers had about 51% higher odds of ED than men who had never smoked (Cao et al., 2013).
  • Weight. In a review of 45 studies and over 42,000 men, men with obesity had 46% higher odds of ED than men at a typical weight, after accounting for other factors (Pizzol et al., 2020).
  • Alcohol. US health guidance lists drinking too much alcohol as something that may contribute to ED (NIDDK, 2024). Large reviews of long-term drinking habits show a less clear-cut picture, and because those studies are observational, they can't show whether alcohol itself raises or lowers risk (Li et al., 2021).
  • Recreational drugs. European urology guidelines list recreational drugs, including cocaine, heroin, and cannabis, as possible causes of ED (EAU, n.d.). For more on one of these, read about cocaine and erection problems.
  • Cycling. Long hours on a bike saddle can cause temporary numbness. The evidence linking cycling to ED is limited and conflicting, and moderate cycling seems to be a smaller risk than smoking, high blood pressure, or age (SMSNA, n.d.). If cycling is a big part of your life, read more on how cycling affects erectile function.

A healthier diet and more physical activity may improve erections in men who have ED alongside other health conditions (Burnett et al., 2018).

When ED points to something more serious

Persistent ED, especially in men under 40, is worth mentioning to a doctor rather than managing alone. It can be an early marker of cardiovascular or metabolic disease, and catching that early is far more important than the ED itself (Burnett et al., 2018).

Many men put this conversation off. One consumer survey found that 39% of men with ED never sought treatment for it (SingleCare, 2020). A GP visit can rule out or confirm a physical cause quickly, and it's the right first step if you haven't had one yet. Read more on how ED is diagnosed.

The Erection Reset's approach to psychological ED

A doctor can help diagnose any type of ED, including psychological ED, and can help with treatment. For psychological ED, that can include talk therapy or sex therapy.

The Erection Reset is Mojo's expert-led program, built by Dr. Shannon Chavez, and it's designed as a supportive tool for psychological ED. It's evidence-based and structured around understanding performance anxiety, retraining your response to sex, and rebuilding confidence step by step. It isn't a treatment for vascular, neurological, or hormonal ED, and it doesn't replace care from your doctor.

If you want to compare every option available to you first, see the full range of treatment options for erectile dysfunction.

FAQs

Can erectile dysfunction be reversed?
Chevron down icon

It might, yes. Psychological ED can improve once the underlying anxiety and thought patterns are addressed. Vascular, hormonal, and medication-related ED can often improve too, once the underlying cause is treated by a doctor.

Is erectile dysfunction normal in your 20s or 30s?
Chevron down icon

It's more common than most people assume. It's been suggested that up to 30% of men under 40 have experienced erection difficulties (Nguyen et al., 2017). Psychological causes are common in this age group, though many young men also have a physical component.

What is the most common cause of erectile dysfunction?
Chevron down icon

There isn't one single most common cause across all men. In older men, vascular causes are more frequent. In younger men, psychological causes make up a large share of cases, but that is not a rule (Nguyen et al., 2017).

Can anxiety alone cause erectile dysfunction?
Chevron down icon

It can. Performance anxiety can override normal arousal signals. Psychological and physical causes often overlap, though, so it's worth checking with a doctor.

Should I see a doctor for erectile dysfunction?
Chevron down icon

Yes, especially if ED is new, persistent, or happening alongside other symptoms. A doctor can rule out or confirm physical causes like vascular or hormonal issues, which is an important first step even if you suspect the cause is psychological (Burnett et al., 2018).

Sources

  1. Cao, S., Yin, X., Wang, Y., Zhou, H., Song, F., & Lu, Z. (2013). Smoking and risk of erectile dysfunction: Systematic review of observational studies with meta-analysis. PLoS ONE, 8(4), e60443. https://doi.org/10.1371/journal.pone.0060443
  2. Corona, G., Vena, W., Pizzocaro, A., Salvio, G., Sparano, C., Sforza, A., & Maggi, M. (2024). Anti-hypertensive medications and erectile dysfunction: Focus on β-blockers. Endocrine, 87(1), 11–26. https://doi.org/10.1007/s12020-024-04020-x
  3. European Association of Urology. (n.d.). EAU guidelines on sexual and reproductive health: Management of erectile dysfunction. https://uroweb.org/guidelines/sexual-and-reproductive-health/chapter/management-of-erectile-dysfunction
  4. Kouidrat, Y., Pizzol, D., Cosco, T., Thompson, T., Carnaghi, M., Bertoldo, A., Solmi, M., Stubbs, B., & Veronese, N. (2017). High prevalence of erectile dysfunction in diabetes: A systematic review and meta-analysis of 145 studies. Diabetic Medicine, 34(9), 1185–1192. https://doi.org/10.1111/dme.13403
  5. Liu, Q., Zhang, Y., Wang, J., Li, S., Cheng, Y., Guo, J., Tang, Y., Zeng, H., & Zhu, Z. (2018). Erectile dysfunction and depression: A systematic review and meta-analysis. The Journal of Sexual Medicine, 15(8), 1073–1082. https://doi.org/10.1016/j.jsxm.2018.05.016
  6. Moretti, T. B. C., Magna, L. A., & Reis, L. O. (2024). Erectile dysfunction criteria of 131,350 patients after open, laparoscopic, and robotic radical prostatectomy. Andrology, 12(8), 1865–1871. https://doi.org/10.1111/andr.13634
  7. National Institute of Diabetes and Digestive and Kidney Diseases. (2024). Symptoms and causes of erectile dysfunction. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
  8. Pizzol, D., Smith, L., Fontana, L., Caruso, M. G., Bertoldo, A., Demurtas, J., McDermott, D., Garolla, A., Grabovac, I., & Veronese, N. (2020). Associations between body mass index, waist circumference and erectile dysfunction: A systematic review and meta-analysis. Reviews in Endocrine and Metabolic Disorders, 21(4), 657–666. https://doi.org/10.1007/s11154-020-09541-0
  9. Sexual Medicine Society of North America. (n.d.). Is cycling a risk factor for erectile dysfunction? https://smsna.org/patients/did-you-know/is-cycling-a-risk-factor-for-erectile-dysfunction
  10. Burnett, A. L., Nehra, A., Breau, R. H., et al. (2018). Erectile dysfunction: AUA guideline. The Journal of Urology, 200(3), 633–641. https://doi.org/10.1016/j.juro.2018.05.004
  11. Cleveland Clinic. (2023). Erectile dysfunction (ED). https://my.clevelandclinic.org/health/diseases/10035-erectile-dysfunction
  12. Li, S., Song, J. M., Zhang, K., & Zhang, C. L. (2021). A meta-analysis of erectile dysfunction and alcohol consumption. Urologia Internationalis, 105(11–12), 969–985. https://doi.org/10.1159/000508171
  13. Nelson, C. J., Clayton, A. H., Lew-Starowicz, M., Balon, R., Eltantawy, W., Glina, F., & Kirana, P.-S. (2026). Psychiatric disorders, psychopharmacology and sexual dysfunction from the fifth International Consultation on Sexual Medicine (ICSM 2024). Sexual Medicine Reviews, 14(2), qeag017. https://doi.org/10.1093/sxmrev/qeag017
  14. Nguyen, H. M. T., Gabrielson, A. T., & Hellstrom, W. J. G. (2017). Erectile dysfunction in young men: A review of the prevalence and risk factors. Sexual Medicine Reviews, 5(4), 508–520. https://doi.org/10.1016/j.sxmr.2017.05.004
  15. SingleCare. (2020). Erectile dysfunction survey. https://www.singlecare.com/blog/news/erectile-dysfunction-survey/
  16. Yafi, F. A., Jenkins, L., Albersen, M., Corona, G., Isidori, A. M., Goldfarb, S., Maggi, M., Nelson, C. J., Parish, S., Salonia, A., Tan, R., Mulhall, J. P., & Hellstrom, W. J. G. (2016). Erectile dysfunction. Nature Reviews Disease Primers, 2, 16003. https://doi.org/10.1038/nrdp.2016.3
  17. Zhao, S., Wu, W., Wu, P., Ding, C., Xiao, B., Xu, Z., Hu, Y., Shen, M., & Feng, L. (2021). Significant increase of erectile dysfunction in men with post-stroke: A comprehensive review. Frontiers in Neurology, 12, 671738. https://doi.org/10.3389/fneur.2021.671738
Editorial standards

Mojo aims to provide useful wellbeing resources to its users; however, you should not solely rely on opinions or advice available on the Website or given by the Community. Always seek advice from a qualified medical doctor or other healthcare professional before acting.

About the experts

Medical doctor Dr. Rugilė Kančaitė
Dr. Rugilė Kančaitė
Medical doctor & women's health educator

A medical doctor and women's health educator, Rugilė helps women understand periods, pain, and intimate health without myth or stigma.

Learn more
Next arrow
When anxiety is part of the picture
Dismiss

Expert-led support for performance anxiety and sexual confidence, alongside care from your doctor.