Diabetes and erectile dysfunction: why the two are connected

Blog featured image

Content

Nobody brings this up at a diabetes appointment. The conversation covers A1C, maybe feet, maybe eyes, and then time runs out. So here is the link between diabetes and erectile dysfunction, laid out properly. That includes the part that makes it worth raising with your doctor even if nothing else is bothering you.

Key takeaways

  • Erectile dysfunction is much more common in people with diabetes. A meta-analysis of 145 studies covering 88,577 men found a pooled prevalence of 52.5%, roughly 3.5 times the rate in men without diabetes.
  • The cause is usually a combination of blood vessel damage and nerve damage, not a psychological problem.
  • Diabetic neuropathy is one of the strongest single predictors, with a pooled odds ratio of 3.47.
  • ED can appear before other vascular problems are diagnosed. That makes it a useful early warning signal rather than just an inconvenience.
  • Treatment options exist and work in this population, though response rates are lower than in people without diabetes.

How an erection actually works, in one paragraph

An erection is a vascular event that needs an intact nerve signal.

Arousal triggers nerves in the pelvis to release nitric oxide into the tissue of the penis. Nitric oxide relaxes the smooth muscle lining the arteries there. Relaxed arteries let blood flow in, the tissue expands. That expansion compresses the veins that would otherwise let blood out. Pressure builds and holds.

That sequence needs three things working: healthy nerves to carry the signal, a healthy artery lining to produce nitric oxide, and vessels able to dilate. Diabetes can interfere with all three.

man getting blood sugar checked with a doctor

Why diabetes and erectile dysfunction are connected

Persistently elevated blood glucose damages the body in ways that converge on exactly the machinery described above.

Endothelial dysfunction. The endothelium is the single-cell lining inside every blood vessel. It is where nitric oxide is produced. High glucose impairs it. Less nitric oxide means less arterial relaxation, which means less blood flow. Researchers generally consider endothelial dysfunction the primary mechanism in type 2 diabetes.

Nerve damage. Diabetic neuropathy affects the autonomic nerves that carry the arousal signal to the pelvis. The signal to release nitric oxide weakens or fails to arrive. An umbrella review named diabetic neuropathy as one of the strongest predictors of ED in people with diabetes. Its pooled odds ratio was 3.27, ahead of traditional cardiovascular risk factors.

Advanced glycation end products and oxidative stress. Excess glucose binds to proteins and forms compounds that stiffen tissue and drive inflammation. Vessels lose flexibility.

Hormonal contribution. Lower testosterone is more common in men with type 2 diabetes. This can reduce libido and contribute separately.

The combination matters. When both the vascular supply and the nerve signal are affected at once, the resulting ED tends to be harder to treat than ED from a single cause.

What the research actually shows

The prevalence figures are consistent across large reviews. The exact number does depend on the group studied and on how ED was measured.

A systematic review and meta-analysis of 145 studies including 88,577 men reported a pooled ED prevalence of 52.5% among men with diabetes. Broken down by type, prevalence was 37.5% in type 1 diabetes and 66.3% in type 2. The rate was about 3.5 times higher than in men without diabetes.

A separate umbrella review of seven systematic reviews, covering 108,030 men with diabetes, put the pooled global prevalence higher, at 65.8%. The spread between these estimates is real and reflects genuine differences in the underlying study populations rather than a dispute about direction.

A meta-analysis of 66,925 people with diabetes identified which factors carry the most weight:

Factor Odds ratio for ED 95% confidence interval
Diabetic neuropathy 3.47 2.16 to 5.56
Diabetic retinopathy 3.01 Not reported here
Higher HbA1c 1.44 1.28 to 1.62
Longer diabetes duration 1.39 1.29 to 1.50

Read that table for what it says about timing. Microvascular problems elsewhere in the body, in the nerves and in the eyes, travel with ED. They share a cause.

The part worth taking to your doctor

The penile arteries are narrow, around 1 to 2 mm in diameter. The coronary arteries are wider. When a process is narrowing arteries throughout the body, the narrow ones show symptoms first.

This is why ED is increasingly discussed as an early clinical marker of heart and metabolic disease rather than only a quality-of-life issue. In men with type 2 diabetes it reflects the same endothelial dysfunction that underlies cardiovascular risk elsewhere.

Practically, new or worsening ED in someone with diabetes is a reason to have cardiovascular risk reviewed. It is not a reason to quietly order something online and hope. The symptom is information.

What can be done

This section is on purpose plain, because it deals with treatment and eligibility.

Glycemic control. Higher HbA1c is independently associated with higher ED risk. Improving glucose control does not surely reverse established vascular and nerve damage. But it addresses the ongoing driver.

Physical activity. In cross-sectional data from 462 men with diabetes, physically active people had clearly lower odds of sexual dysfunction than inactive people, with an adjusted odds ratio of 0.41. This is observational, so it cannot establish cause. But the association is consistent with the vascular mechanism.

Smoking cessation. Smoking independently damages the endothelium. In someone with diabetes, the two effects compound.

Medication review. Several commonly prescribed medicines, including some blood pressure treatments and some antidepressants, can contribute to erectile difficulty. This is a reason to review a medication list with a prescriber, never a reason to stop a medication on your own.

Prescription treatment. PDE5 inhibitors are the most common first-line drug option, and our comparison of tadalafil and sildenafil covers how the two differ. They work by preventing the breakdown of the signal that relaxes penile arteries. This amplifies whatever nitric oxide response is still present. A 2025 meta-analysis of 10 randomized controlled trials found they significantly improved erectile function in men with diabetes, with a relative risk of 2.91.

That last point needs an honest qualifier. Because these medicines amplify an existing signal rather than creating one, they tend to be less effective when neuropathy and endothelial dysfunction are advanced. Response rates in diabetes are clearly lower than in people without it. Other options exist when first-line treatment does not work, and a clinician can walk through them.

Male doctor in blue scrubs holding clipboard

Safety and who should speak to a healthcare provider first

Speak with a licensed healthcare provider before starting any treatment for erectile difficulty, and above all if you:

  • Take nitrates in any form, including nitroglycerin. Combining nitrates with PDE5 inhibitors can cause a dangerous drop in blood pressure.
  • Take alpha-blockers for blood pressure or prostate symptoms
  • Have had a heart attack, stroke, or serious arrhythmia in the last six months
  • Have uncontrolled high or low blood pressure
  • Have severe liver or kidney disease
  • Have a history of non-arteritic anterior ischemic optic neuropathy
  • Have retinitis pigmentosa or another inherited retinal condition

Seek urgent medical care for an erection lasting more than four hours, or for sudden vision or hearing loss.

Frequently asked questions

Can diabetes cause erectile dysfunction?

Yes. Prolonged high blood glucose damages the blood vessel lining and the nerves that together produce an erection. Large reviews consistently find ED much more common in people with diabetes. Pooled prevalence is around 52.5%, roughly 3.5 times the rate seen without diabetes.

Is erectile dysfunction from diabetes reversible?

Partly, depending on what is driving it and how long it has been present. Improving glucose control, increasing physical activity, and stopping smoking address the ongoing damage. Established nerve and vessel damage is harder to reverse, which is why earlier attention matters.

At what age does diabetes start affecting erections?

There is no set age. Risk rises with how long you have had diabetes and with average blood glucose, rather than with age on its own. ED also tends to appear earlier in people with diabetes than in those without. That is why it is worth raising at any age rather than waiting.

Does metformin cause erectile dysfunction?

Metformin is not established as a cause of ED. Several other commonly prescribed medicines can contribute, including some blood pressure treatments and some antidepressants. Review your full medication list with a prescriber. Do not stop or change a prescribed medication on your own, since the underlying condition it treats still needs managing.

Do ED medicines work if you have diabetes?

They can. A 2025 meta-analysis of 10 randomized trials found PDE5 inhibitors significantly improved erectile function in men with diabetes. Response rates are lower than in men without diabetes. That is because these medicines amplify an existing nerve and vessel signal rather than replacing one.

Should I tell my doctor, or is this not a diabetes issue?

Tell them. Erectile dysfunction in diabetes travels with nerve, eye, and cardiovascular problems. It can appear before any of those are diagnosed. That makes it clinically useful information rather than an aside. Raising it may prompt a cardiovascular risk review you would not otherwise have had. This is the practical reason it matters.

The bottom line

Erectile dysfunction in diabetes is a vascular and neurological symptom of the same process being managed everywhere else in the body. It is common, and it is treatable in many cases. It also carries information about cardiovascular risk that is worth acting on.

To work out what fits your situation, see MyRocky’s ED treatment options or start an online assessment with a licensed Canadian prescriber.

Start an online assessment

References

  1. Kouidrat Y, Pizzol D, Cosco T, et al. High prevalence of erectile dysfunction in diabetes: a systematic review and meta-analysis of 145 studies. Diabetic Medicine, 2017. https://pubmed.ncbi.nlm.nih.gov/28477386/
  2. Hostnik E, et al. Erectile dysfunction in diabetes mellitus: a comprehensive narrative review of pathophysiology, genetic association studies and therapeutic approaches. Endocrinology, Diabetes & Metabolism, 2025. https://pmc.ncbi.nlm.nih.gov/articles/PMC12441930/
  3. Sexual Dysfunction in Diabetes. Endotext, NCBI Bookshelf. https://www.ncbi.nlm.nih.gov/books/NBK279101/

Disclaimer: This article is intended for informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult your healthcare provider with any questions about a medical condition or treatment.

Editorial Standards: At Rocky Health, we’ve made it our mission to support men and women with trustworthy, easy-to-understand medical and health information online. Read more about our editorial standards here.

Medically Reviewed By

Matthew Michael, R.Ph. PharmD

Matthew Michael, R.Ph. PharmD

Related Articles

Low testosterone symptoms: signs, causes, and how it is testedsexual health

September 17, 2026 • 4 mins read

Low testosterone symptoms: signs, causes, and how it is tested

Here is the awkward thing about low testosterone symptoms. Tired, low mood,...

Pelvic floor exercises for men: how they work and what they help

September 14, 2026 • 4 mins read

Pelvic floor exercises for men: how they work and what they help

Most articles about pelvic floor exercises for men tell you to squeeze, hol...

Does Cannabis Cause Erectile Dysfunction? What the Research Shows

September 8, 2026 • 4 mins read

Does Cannabis Cause Erectile Dysfunction? What the Research Shows

You’ve typed some version of this into a search bar late at night and...

Your path to better health begins here.

Get Started For Free
LegitScript approved

©2026 MyRocky Health Inc. All rights reserved. MyRocky Health Pharmacy Inc. & MyRocky Health Clinic Inc. are subsidiaries of MyRocky Health Inc.

ApplePay
VISA
MasterCard
Diabetes and erectile dysfunction: why the two are connected - MyRocky