Diabetes is one of the strongest risk factors for erectile dysfunction. A meta-analysis of 145 studies (88,577 men, mean age 55.8) put the prevalence of ED in men with diabetes at 52.5% (95% CI 48.8 to 56.2) after adjusting for publication bias, with 37.5% in type 1 and 66.3% in type 2 diabetes, and men with diabetes had 3.62 times the odds of ED compared with healthy controls (95% CI 2.53 to 5.16) [1]. A review of the field reports a wider range of 35% to 90% and attributes the spread to differences in methods and populations [2]. Published prevalence depends on how ED was measured, so no single figure is your personal risk.
Is It Diabetes or Metformin Causing My ED? Short Answer
The sources reviewed do not settle this for any one man, and they do not support the claim that it is almost certainly diabetes and never metformin. Diabetes itself is clearly linked to ED: advancing age, longer duration of diabetes, poor glycemic control, hypertension, hyperlipidemia, a sedentary lifestyle, smoking and other diabetic complications were associated with diabetic ED in cross-sectional studies [2]. For metformin the evidence is thin and mixed. A large Taiwanese cohort found a slightly higher ED hazard in men who started metformin than in men who did not, but observational data like these cannot show that metformin caused the difference [3]. A randomized trial in men with obesity and low testosterone but no diabetes found no significant change in erectile function with metformin [4]. A 2021 review suggests a potential role for metformin against arteriogenic ED, and describes controversial and contradictory effects on testosterone synthesis and spermatogenesis [5]. The sources reviewed do not test stopping metformin as a treatment for ED. Do not stop a prescribed diabetes medicine without talking to the prescriber.
What's Your Prostate Risk Score?
Take ManCore's free 6-question risk assessment. Get your personal risk score, see which supplements are most relevant to your profile, and get a clear action plan — in under 2 minutes.
What Raises ED Risk in Diabetes
- •Associated factors: advancing age, duration of diabetes, poor glycemic control, hypertension, hyperlipidemia, a sedentary lifestyle, smoking and other diabetic complications [2]
- •In the Look AHEAD trial, among 373 overweight or obese men aged 45 to 75 with type 2 diabetes, 49.8% reported mild or moderate ED and 24.8% complete ED; ED was associated with age (odds ratio 1.05), baseline HbA1c (1.31), a history of hypertension (2.41) and metabolic syndrome (3.05), while cardiorespiratory fitness was protective (0.61) [6]
- •Diabetic ED is described as multifactorial, and as more severe and more resistant to treatment than ED without diabetes; the review notes that the relative importance of each factor is not clear [2]
- •Not found in the sources reviewed: how much of diabetic ED comes from blood vessel damage versus nerve damage, or an age at which ED appears earlier than in other men, so this page does not rank the mechanisms or give an age
ED as a Warning Sign for Heart Disease
In a cohort of 2,306 Chinese men with type 2 diabetes and no clinical evidence of cardiovascular disease, 26.7% had ED at baseline. Over about four years, coronary heart disease events occurred at 19.7 per 1,000 person-years in men with ED and 9.5 per 1,000 person-years in men without, and ED remained an independent predictor after adjustment (hazard ratio 1.58, 95% CI 1.08 to 2.30). The authors advise asking about ED to identify men who need a comprehensive cardiovascular assessment [7].
In one cohort of men with type 2 diabetes and no known cardiovascular disease, ED predicted later coronary heart disease events, so new ED is worth raising with a doctor as a prompt for a cardiovascular check, not only an ED-specific conversation.
What About Metformin Specifically?
- •Observational data: in the Taiwanese cohort of 261,838 men with new-onset type 2 diabetes, ED incidence was 488.10 per 100,000 person-years in men who started metformin and 455.89 in men who did not (intention-to-treat hazard ratio 1.077, 95% CI 1.026 to 1.130; per-protocol 1.350, 95% CI 1.264 to 1.441); the same analysis found lower hazards of prostatitis, benign prostatic hyperplasia and prostate cancer [3]
- •Randomized data: in 106 men aged 18 to 50 with obesity and low testosterone but no diabetes, a year of metformin, testosterone or both did not significantly change erectile function compared with placebo; metformin alone did not significantly raise total or free testosterone, while the combination did [4]
- •Review: a 2021 review suggests a potential role for metformin against arteriogenic ED but describes controversial and contradictory effects on testosterone synthesis and spermatogenesis [5]
- •Not found in the sources reviewed: a trial of stopping metformin to treat ED in men with diabetes, so no claim is made about that result
What Actually Helps
Lifestyle: in the Look AHEAD trial, a one-year intensive lifestyle program (average weight loss 9.9% versus 0.6% in the education group) was mildly helpful in maintaining erectile function in 306 men with type 2 diabetes who completed the year. The erectile function score rose from 17.3 to 18.6 in the lifestyle group and stayed flat in the control group (18.3 to 18.4; P = 0.04, or 0.06 after adjusting for baseline differences). The groups improved at similar rates (22% versus 23%), but fewer men in the lifestyle group worsened by one ED category (8% versus 20%) [8]. Medication: a Cochrane review of 8 randomized trials (976 men assigned to a PDE5 inhibitor and 741 to control; about 80% had type 2 diabetes) found that PDE5 inhibitors improved the IIEF erectile function domain by 6.6 points (95% CI 5.2 to 7.9) and made men 3.8 times as likely to report improved erections, although adverse reactions were more common (risk ratio 4.8) [9]. Malavige and Levy conclude that optimized glycemic control, management of associated conditions and lifestyle modification are essential in all patients, that maximal PDE5 inhibitor doses are often needed, and that transurethral prostaglandins, injections, vacuum devices and penile implants are options for men who do not respond or cannot use PDE5 inhibitors [2].
Testosterone in Men With Diabetes
A meta-analysis of 37 studies found that men with type 2 diabetes had significantly lower total testosterone than men without diabetes, and the association persisted after adjusting for age and body mass index (adjusted r = -0.568); similar results were seen when men with and without ED were analysed separately. In the small number of randomized trials of testosterone replacement, treatment was associated with lower fasting glucose, HbA1c, fat mass and triglycerides [10]. The abstract does not report effects on erections, so that question is not answered here.
What the Sources Do Not Cover
The sources reviewed do not quantify how much diabetic ED comes from blood vessel damage versus nerve damage, so this page does not rank the two. They also do not compare PDE5 inhibitor response in men with significant neuropathy, test insulin or other diabetes drug classes against erectile outcomes, or study diabetes drugs other than metformin, so no claims are made about those questions.
Related Reading
Tracking Blood Sugar and Erectile Function
Logging blood sugar trends alongside erectile function on the mancore dashboard helps identify whether glycemic control changes correspond to changes in sexual function over time. It is useful data to bring to a doctor's appointment.
Supplements for Long-Term Prostate Prevention
Super Beta Prostate Supplement
A daily prostate-maintenance formula combining pumpkin seed oil, beta-sitosterol, selenium, and zinc.
NOW Foods Pumpkin Seed Oil
Standardized pumpkin seed oil capsules for men building a preventive supplement routine.
Affiliate disclosure: ManCore earns a small commission on purchases made through these links at no extra cost to you.
Frequently Asked Questions
Does metformin lower testosterone?
In a one-year trial of 106 men with obesity and low testosterone but no diabetes, metformin alone did not significantly change total or free testosterone compared with placebo [4]. A 2021 review describes controversial and contradictory effects of metformin on testosterone synthesis and spermatogenesis [5].
Can ED be reversed if I get my diabetes under control?
The sources reviewed do not show reversal of established ED from glycemic control alone. In the Look AHEAD trial, a lifestyle program with about 10% weight loss was mildly helpful in maintaining erectile function over a year [8], and Malavige and Levy call optimized glycemic control, management of associated conditions and lifestyle change essential in all patients [2].
Does insulin therapy have a different effect on erectile function than oral diabetes medications?
The sources reviewed do not compare insulin with oral diabetes medicines for erectile outcomes. Poor glycemic control and longer duration of diabetes were associated with diabetic ED in cross-sectional studies [2], and those studies cannot separate the effect of a drug from the severity of the disease that led to it.
Can weight loss and exercise reduce ED risk in diabetic men independent of blood sugar control?
In the Look AHEAD baseline analysis, cardiorespiratory fitness was protective against ED (odds ratio 0.61) [6], and the one-year weight-loss trial was mildly helpful in maintaining erectile function [8]. Neither abstract says the benefit was independent of blood sugar control, so that is not claimed.
Should men newly diagnosed with diabetes get a baseline erectile function assessment?
The sources reviewed do not test a baseline assessment at diagnosis. They do show why asking is worthwhile: ED affected 52.5% of men with diabetes in a meta-analysis of 145 studies [1], and it predicted later coronary heart disease events in men with type 2 diabetes [7].
Do PDE5 inhibitors work as well in diabetic men?
A Cochrane review of 8 randomized trials found that PDE5 inhibitors improved erections in men with diabetes (IIEF erectile function domain up 6.6 points; relative risk 3.8 for reporting improved erections) [9]. Malavige and Levy describe diabetic ED as more resistant to treatment than ED without diabetes, with maximal doses often needed [2]. The Cochrane abstract does not compare response rates with men who do not have diabetes.
Does A1C level correlate with ED severity in diabetic men?
In the Look AHEAD baseline analysis, higher baseline HbA1c was associated with ED (odds ratio 1.31, 95% CI 1.05 to 1.63) [6], and poor glycemic control is listed among the factors associated with diabetic ED [2]. The abstracts do not report ED severity by HbA1c level.
Should diabetic men with new ED be screened for testosterone deficiency too?
Men with type 2 diabetes had lower testosterone than men without diabetes in a meta-analysis of 37 studies [10], and Malavige and Levy note that hypogonadism is commonly found in diabetes and may need identification and treatment [2]. Whether to test is a decision for the treating doctor.
Do other diabetes medications besides metformin have a clearer link to sexual side effects?
The sources reviewed did not examine other diabetes drug classes against erectile outcomes, so no comparison is made. If you suspect a specific medicine, ask the prescriber.
The Bottom Line
Diabetes is strongly linked to ED, and in men with type 2 diabetes ED predicted later coronary heart disease events [1] [7]. The evidence on metformin is mixed: one large observational cohort found a slightly higher ED hazard in men who started it, and a randomized trial in men without diabetes found no change in erectile function [3] [4]. Glycemic control, weight loss and fitness, and PDE5 inhibitors have the best support in the sources reviewed [2] [6] [8] [9].