Diabetes and Erectile Dysfunction: The Link Explained

Key takeaways
- A meta-analysis of 145 studies found ED in about 52% of men with diabetes, roughly 3.5 times the odds of men without it.
- High blood sugar damages the lining of blood vessels and the nerves that trigger erections, and type 2 diabetes often comes with low testosterone.
- ED in diabetes tends to start earlier, be more severe and respond less strongly to treatment, but PDE5 inhibitors still help many men.
- ED can be an early signal of vascular disease, so it is a reason to look at heart risk as well as blood sugar.
- Better glucose control, blood pressure and lipid management, weight loss and activity are part of treating ED, not separate from it.
Diabetes is one of the strongest risk factors for erectile dysfunction: a 2017 meta-analysis of 145 studies covering more than 88,000 men found ED in about 52% of men with diabetes, with roughly 3.5 times the odds seen in men without it. Over time, high blood sugar damages both the blood vessels and the nerves that erections depend on, and type 2 diabetes frequently travels with low testosterone, high blood pressure and excess weight, each of which adds to the problem.
The good news is that effective treatment exists, and the steps that protect erections are the same ones that protect the heart, kidneys and eyes. This guide explains how diabetes leads to ED, what a sensible evaluation includes, and how treatment works when diabetes is part of the picture.
How common is ED in men with diabetes?
Estimates vary widely between studies, from about a third to nine in ten, depending on age, how long someone has had diabetes, and how ED is measured. The 2017 meta-analysis in Diabetic Medicine gives the most robust overall figure: 52.5% overall, 37.5% in type 1 diabetes and 66.3% in type 2, after adjusting for publication bias. Studies with more participants who also had high blood pressure reported higher rates.
ED also tends to begin earlier. A 2009 review of diabetic ED in the Journal of Sexual Medicine noted that it is more severe and more resistant to treatment than ED in men without diabetes, and that it is associated with longer diabetes duration, poorer glucose control, high blood pressure, high cholesterol, smoking, inactivity and other diabetic complications.
Why does diabetes cause ED?
An erection is a blood-flow event triggered by nerves. Sexual stimulation causes nerves in the penis to release nitric oxide, which relaxes smooth muscle in the arteries and spongy erectile tissue so blood can flow in and be trapped. Diabetes interferes with several steps at once:
- Blood vessel damage: persistently high glucose injures the endothelium, the inner lining of blood vessels that produces nitric oxide. Less nitric oxide means less relaxation and less blood flow.
- Nerve damage: diabetic neuropathy can affect the nerves that start and maintain an erection, the same process that causes numbness in the feet.
- Hormones: low testosterone is common in men with type 2 diabetes and obesity and can lower desire and blunt the response to treatment.
- Companion conditions: high blood pressure, high cholesterol and excess weight each damage blood vessels further.
- Mood and stress: living with a chronic condition, and the worry that comes with sexual problems, can add a psychological layer.
ED as an early warning sign
The arteries of the penis are small, so they often show the effects of vascular disease before larger arteries do. For men with diabetes, who already carry higher cardiovascular risk, new ED is a reason to review blood pressure, cholesterol and overall heart risk, not only to treat the symptom. Our article on ED and heart health explains the evidence linking ED to later heart disease.
ED can also be the first noticeable symptom in men who do not yet know they have diabetes or prediabetes. That is why the American Urological Association guideline recommends a basic medical evaluation for every man with ED, and why blood sugar testing is usually part of it.
What should be checked?
A thorough evaluation combines history, a physical examination and a few targeted tests. Typical elements include:
- Hemoglobin A1c and fasting glucose, to confirm diabetes status and control.
- Lipids and blood pressure, as part of cardiovascular risk.
- Morning total testosterone, especially when desire is low or there are other symptoms of low testosterone.
- Kidney function, which affects how some medicines are handled.
- A review of medications, including blood pressure drugs, and of symptoms of nerve damage elsewhere in the body.
If you have not had these checked recently, a baseline lab panel covers most of them in one draw.
Does treatment work as well with diabetes?
PDE5 inhibitors such as sildenafil and tadalafil are the usual first-line medicines, and they work in many men with diabetes, though often less strongly than in men without it. In a randomized trial of 268 men with diabetes published in JAMA, 56% of men taking sildenafil reported improved erections after 12 weeks, compared with 10% on placebo. Men with longer-standing diabetes, more nerve damage or poorer control tend to respond less well.
When tablets are not enough, other options include penile injections, urethral medication, vacuum erection devices and, for some men, a penile implant. Our guide to ED treatment when pills don't work covers these. A prescriber sets the medicine, dose and timing based on your health, other medications and how you respond.
What you can do alongside treatment
Managing diabetes well is part of managing ED. Reviews of diabetic ED emphasize optimized glucose control, treatment of blood pressure and lipids, and lifestyle change for all patients. In practice that means:
- Working toward the A1c target agreed with your diabetes clinician.
- Losing weight if you carry excess weight; our article on GLP-1 weight loss and erectile function reviews what is known.
- Regular aerobic and strength exercise, which improves blood vessel function and insulin sensitivity.
- Stopping smoking, which compounds vascular damage.
- Keeping alcohol moderate.
- Talking with a partner, and considering counseling if worry about sex has built up.
Damage that has built up over years may not fully reverse, but improvements in blood sugar, weight and fitness can slow progression and help medication work better.
If you have diabetes and want to discuss ED treatment, our sexual health program begins with an online questionnaire that covers your diabetes medicines and heart history. A licensed provider decides whether medication is appropriate and which one fits, and will suggest in-person care when that is the safer route.
Common questions
Can diabetes cause erectile dysfunction?
Yes. Diabetes damages blood vessels and nerves involved in erections and is often accompanied by low testosterone and high blood pressure. More than half of men with diabetes have some degree of ED.
Is ED from diabetes reversible?
Partly, in some men. Better blood sugar control, weight loss, exercise and stopping smoking can improve erectile function, especially earlier in the disease. Long-standing nerve and vessel damage is less likely to reverse fully, but treatment can still be effective.
Do ED pills work for men with diabetes?
Often, though usually less strongly than in men without diabetes. In one trial, 56% of men with diabetes reported better erections on sildenafil versus 10% on placebo. Other treatments are available if tablets are not enough.
Is it safe to take ED medication with diabetes medicines?
Common diabetes medicines such as metformin, GLP-1 medications and insulin do not have major interactions with PDE5 inhibitors. Heart medicines matter more, especially nitrates. A provider reviews your full list.
Can ED be the first sign of diabetes?
It can. Some men learn they have diabetes or prediabetes after seeing a clinician about ED, which is why blood sugar testing is part of a standard ED evaluation.
Does type 1 or type 2 diabetes affect erections more?
In the 2017 meta-analysis, ED was more common in type 2 diabetes (about 66%) than type 1 (about 38%), partly because men with type 2 tend to be older and more likely to have high blood pressure, excess weight and low testosterone.
Should men with diabetes get their testosterone checked?
It is reasonable when ED comes with low desire, fatigue or other symptoms. Low testosterone is common in type 2 diabetes and can reduce the response to ED medication. Our article on low testosterone and ED explains how they connect.
Sources
- Kouidrat Y, Pizzol D, Cosco T, et al. High prevalence of erectile dysfunction in diabetes: a systematic review and meta-analysis of 145 studies. Diabet Med. 2017;34(9):1185–1192. Link (opens in a new tab)
- Malavige LS, Levy JC. Erectile dysfunction in diabetes mellitus. J Sex Med. 2009;6(5):1232–1247. Link (opens in a new tab)
- Rendell MS, Rajfer J, Wicker PA, Smith MD. Sildenafil for treatment of erectile dysfunction in men with diabetes: a randomized controlled trial. JAMA. 1999;281(5):421–426. Link (opens in a new tab)
- Burnett AL, Nehra A, Breau RH, et al. Erectile dysfunction: AUA guideline. J Urol. 2018;200(3):633–641. Link (opens in a new tab)
- National Institute of Diabetes and Digestive and Kidney Diseases (NIH). Diabetes, sexual, and bladder problems. Link (opens in a new tab)
- Thompson IM, Tangen CM, Goodman PJ, et al. Erectile dysfunction and subsequent cardiovascular disease. JAMA. 2005;294(23):2996–3002. Link (opens in a new tab)
This article is for general education and is not medical advice. Protocols described here require an online consultation with a licensed provider who will determine if a prescription is appropriate for you. Explore sexual health options or read the FAQ.




