Diabetes and Erectile Dysfunction

Medical disclaimer: This article is for general educational purposes only and does not replace advice, diagnosis or treatment from a qualified healthcare professional. Never ignore professional medical advice or delay seeking it because of something you read here. If you think someone is having a medical emergency, call your local emergency number now (112 in the EU, 911 in the US, 999 in the UK).
By Marcin Goras, MPH (Emergency Medical Services)Published: Last reviewed: Reading time: ~11 min

Erectile dysfunction (ED) is one of the most common complications of diabetes: a meta-analysis of 145 studies found it affects about 52.5% of men with diabetes, who are around 3.6 times more likely to have it than men without diabetes. It results from damage to blood vessels and nerves, often with low testosterone, medicines and stress contributing. ED can be an early warning sign of heart disease, so it deserves a medical check-up. PDE5 inhibitors such as sildenafil and tadalafil are first-line treatment and work for many men, but they must never be combined with nitrate medicines.

Key facts at a glance

  • Kouidrat et al. (2017): ED prevalence 52.5% overall in men with diabetes; 37.5% in type 1 and 66.3% in type 2.
  • Men with diabetes are about 3.6 times more likely to have ED than men without diabetes.
  • ED may be an early sign of cardiovascular disease (Diabetes Canada).
  • PDE5 inhibitors (sildenafil, tadalafil, vardenafil, avanafil) are first-line, on demand or daily.
  • Contraindications include nitrate medicines, unstable angina and untreated cardiac ischaemia.
  • Men who don’t respond to PDE5 inhibitors should have a morning testosterone level checked.

How an erection works, and where diabetes interferes

An erection depends on a chain of events. Sexual arousal sends nerve signals to the penis, where blood vessels release nitric oxide. This relaxes the smooth muscle in the erectile tissue, allowing blood to flow in and become trapped, so the penis becomes firm. Diabetes can disrupt almost every link in the chain: nerve damage weakens the signals, damaged blood vessel linings release less nitric oxide, narrowed arteries reduce blood flow, and changes in the erectile tissue let blood leak out too quickly. Low testosterone and psychological factors can add to the problem. Because several mechanisms are often involved, ED in diabetes can be more persistent and respond less well to treatment than ED in men without diabetes.

Why diabetes causes erectile dysfunction

An erection depends on healthy nerves, blood vessels that can widen, and adequate hormones. Diabetes can affect all three:

  • Blood vessel damage (endothelial dysfunction): the arteries of the penis are small, so they often show damage before larger arteries in the heart. This is why ED can be an early warning of cardiovascular disease.
  • Nerve damage (autonomic neuropathy).
  • Low testosterone, which is more common in men with type 2 diabetes and obesity.
  • Medicines such as some blood pressure drugs and antidepressants.
  • Psychological factors: stress, depression, relationship strain and performance anxiety.
  • Other conditions that cluster with diabetes: high blood pressure, abnormal lipids, smoking, obesity, sleep apnoea.

What makes ED more likely?

Factor Effect
Longer duration of diabetes More nerve and blood vessel damage
Higher HbA1c Linked with more frequent and severe ED
Neuropathy and other complications Signals shared damage to nerves and small vessels
High blood pressure and cholesterol Damage the arteries that supply the penis
Smoking Damages blood vessels and worsens ED
Obesity and inactivity Linked with lower testosterone and vascular damage
Heavy alcohol use Impairs nerve function and arousal
Depression, anxiety, relationship stress Common contributors in men with and without diabetes
Some medicines Including certain blood pressure tablets and antidepressants

How common is it?

Group ED prevalence
All men with diabetes 52.5%
Type 1 diabetes 37.5%
Type 2 diabetes 66.3%
Kouidrat Y, et al. Diabetic Medicine 2017; meta-analysis of 145 studies. Diabetes Canada cites a lower estimate of about 34–45%; figures vary with definitions and populations.

ED as an early warning for heart disease

Because penile arteries are narrow, reduced blood flow can show up as ED years before symptoms of coronary artery disease. Diabetes Canada describes ED as a possible early sign of cardiovascular disease. If you develop ED, it is a good moment to review blood pressure, cholesterol, glucose and smoking, and to report any chest discomfort or breathlessness on exertion. See Diabetes and Heart Disease.

Could my medicines be involved?

Several commonly used medicines can contribute to erectile problems, including some older beta-blockers, thiazide diuretics, certain antidepressants, some anti-sickness and antipsychotic medicines, and medicines that lower testosterone. Don’t stop any prescribed medicine on your own, because many protect your heart and kidneys. Instead, tell your doctor when the problem started and ask whether an alternative might be suitable.

Low testosterone

Low testosterone is more common in men with type 2 diabetes and obesity. It can cause low sex drive, ED, tiredness, low mood and loss of muscle. Diabetes Canada’s guidelines suggest measuring morning testosterone in men with diabetes who have symptoms suggestive of low levels, such as reduced libido or ED that doesn’t respond to treatment. Weight loss can raise testosterone in men with obesity. Testosterone treatment, when needed, is a specialist decision, as it has benefits and risks.

What to bring to the appointment

  • when the problem started and whether it came on gradually or suddenly;
  • whether you still have erections at night or on waking, which can help distinguish physical from psychological causes;
  • a list of all your medicines and supplements;
  • your recent HbA1c, blood pressure and cholesterol results if you have them;
  • any other symptoms, such as low sex drive, tiredness, chest pain on exertion or numb feet;
  • questions you’d like to ask, written down in advance.

What your doctor may check

  • A sexual health history; questionnaires such as the IIEF or SHIM.
  • Blood pressure, lipids, HbA1c.
  • Cardiovascular risk assessment before treatment, particularly before strenuous activity.
  • Morning total testosterone (before 11 am) if symptoms suggest low testosterone, or if PDE5 inhibitors don’t work.
  • A review of medicines.
  • Screening for sleep apnoea in men with obesity, type 2 diabetes and ED.

Diabetes Canada recommends that men with diabetes be asked about sexual function regularly, starting at diagnosis in type 2 diabetes. Many men don’t raise it themselves, so it’s worth bringing up.

Lifestyle changes really can help

Lifestyle changes are sometimes dismissed as weak treatment for ED, but evidence suggests otherwise. In a randomised trial by Esposito and colleagues, published in JAMA in 2004, men with obesity and ED who were helped to lose weight and increase physical activity saw significant improvements in erectile function, and about a third regained normal function after two years, compared with very few in the control group. The changes that help most:

  • losing excess weight;
  • regular physical activity;
  • stopping smoking;
  • cutting down on alcohol;
  • improving glucose, blood pressure and cholesterol control;
  • getting enough sleep, and treating sleep apnoea if present.

These changes also lower the risk of heart disease, which shares many of the same causes.

Treatments that don’t involve tablets

  • Vacuum erection devices: a cylinder placed over the penis draws blood in using a pump, and a ring at the base maintains the erection. They work for many men, including some who don’t respond to tablets.
  • Pelvic floor exercises: strengthening the muscles at the base of the penis has been shown to improve erections in some men, and a physiotherapist can teach the technique.
  • Psychosexual therapy, alone or with a partner.
  • Penile implants: a surgical option for men in whom other treatments haven’t worked; satisfaction rates are generally high, but infection risk is higher when glucose is poorly controlled.

A urologist can explain which options are suitable, and in what order to try them.

When to seek urgent help

  • an erection that lasts more than four hours, which needs emergency treatment to prevent permanent damage;
  • chest pain, breathlessness or dizziness during or after sexual activity;
  • sudden loss of vision or hearing after taking an ED medicine.

Treatment options

Step Treatment Notes
Foundation Glucose, blood pressure and lipid control; stop smoking; weight loss; exercise Statins may help erectile function
First-line PDE5 inhibitors: sildenafil, tadalafil, vardenafil, avanafil On demand or daily; men with diabetes may need higher doses; contraindicated with nitrates
Hormonal Testosterone therapy Only for men with symptoms and confirmed low levels; discuss cardiovascular and prostate monitoring
Second-line Vacuum devices, penile injections (alprostadil/PGE1), intraurethral alprostadil Vacuum devices may help PDE5 non-responders
Third-line Penile prosthesis Surgical option with high satisfaction
Support Psychosexual or couples counselling Helpful alongside other treatments
Diabetes Canada Clinical Practice Guidelines, Chapter 33.

Getting the most from PDE5 inhibitors

  • They require sexual stimulation to work.
  • Try several times at an adequate dose before deciding they don’t work.
  • Sildenafil works best on an empty stomach; tadalafil lasts up to about 36 hours.
  • Common side effects: headache, flushing, nasal congestion, indigestion.

The psychological side

Even when ED has a physical cause, it almost always has an emotional impact. Worry about performance can make erections harder to achieve, creating a cycle of anxiety and avoidance. Depression and diabetes distress can lower desire. Relationship tension can build when the problem isn’t discussed. Psychosexual therapy, either alone or with a partner, can help, often alongside medical treatment. Many men find that simply talking about the problem openly reduces the pressure.

Talking with your partner

  • choose a calm moment, not straight after a difficult sexual experience;
  • explain that ED is a common medical complication of diabetes, not a sign of lost attraction;
  • share what you’re doing about it, such as seeing a doctor;
  • remember that intimacy isn’t only about penetrative sex;
  • consider attending an appointment together;
  • be patient: finding the right treatment can take time.

Other sexual problems in men with diabetes

  • Reduced sex drive, linked with low testosterone, tiredness, depression or high glucose.
  • Retrograde ejaculation: nerve damage can cause semen to pass backwards into the bladder instead of out of the penis, leading to a “dry” orgasm and cloudy urine afterwards. It isn’t harmful but can affect fertility.
  • Delayed ejaculation or reduced sensation, from nerve damage.
  • Genital thrush and balanitis, more common with high glucose and with SGLT2 inhibitor medicines.
  • Peyronie’s disease, a curvature of the penis caused by scar tissue, which appears to be more common in men with diabetes.

Talking about it

Many men find ED hard to raise, and many clinicians don’t ask. A few practical tips:

  • Mention it at the start of an appointment, not at the end.
  • Be specific: how long it has been happening, whether morning erections still occur, and whether desire has changed.
  • Bring a list of all your medicines.
  • Consider involving your partner; couples counselling can help.

Morning or night-time erections that still happen suggest the physical mechanism partly works and that psychological factors may play a larger role.

Older men

ED becomes more common with age in all men, and older men with diabetes often have several contributing factors, including vascular disease, neuropathy, multiple medicines and other health conditions. Sexual health remains important for quality of life at any age, and it is entirely appropriate to raise it with your doctor. Treatment choices may be influenced by heart health and other medicines, so a full review is worthwhile.

More about sexual health in women with diabetes

Women with diabetes may experience vaginal dryness, reduced sensation, pain during sex, recurrent thrush or urinary infections, and low desire, linked with nerve damage, blood vessel changes, hormonal shifts around menopause, high glucose and emotional factors. Lubricants, treatment of infections, pelvic floor physiotherapy and, where appropriate, hormone treatment can help. These problems are just as worth raising with a doctor as ED is for men.

Young men with type 1 diabetes

ED isn’t only a problem of older age. Young men with type 1 diabetes, particularly after many years of diabetes or with complications, can be affected. Many feel embarrassed to raise it with a diabetes team they have known since childhood. Diabetes teams are used to these conversations, and early assessment can identify treatable causes.

Sexual problems in women with diabetes

Women with diabetes can also experience sexual difficulties, including reduced desire, reduced lubrication, pain during sex and recurrent vaginal thrush. Contributing factors include nerve and blood vessel changes, high glucose, menopause, medicines and mood. These deserve the same open discussion with a healthcare professional.

Myths and facts

Myth Fact
“ED is just a normal part of getting older.” ED becomes more common with age, but it often has treatable causes, and in diabetes it can be an early sign of heart disease.
“It’s all in the mind.” In diabetes, physical causes are common, though psychological factors often add to them.
“Nothing can be done.” Lifestyle changes and several types of treatment help most men.
“Buying pills online is fine.” Unregulated products may be counterfeit or unsafe, especially with heart conditions or certain medicines.

Questions to ask your doctor

  • What is likely to be causing my ED?
  • Should my heart health, testosterone or medicines be checked?
  • What treatment options are suitable for me, and what are their pros and cons?
  • Would referral to a urologist or psychosexual therapist help?
  • How much could weight loss, exercise or stopping smoking help?

Frequently asked questions

Can erectile dysfunction from diabetes be reversed?

Sometimes it improves with better glucose control, weight loss, exercise, stopping smoking and treating low testosterone. Even when it doesn’t fully reverse, effective treatments are available.

Is Viagra safe for men with diabetes?

Generally yes, and PDE5 inhibitors are first-line treatment. They must not be taken with nitrates and are contraindicated with unstable angina or untreated cardiac ischaemia.

Why might sildenafil not work for me?

Common reasons include taking it with a heavy meal, not enough stimulation, too low a dose, too few attempts, or low testosterone. Talk to your doctor before concluding it doesn’t work.

Is ED a sign of heart problems?

It can be. ED may appear years before symptoms of coronary artery disease, so it is a reason to check your cardiovascular risk factors.

Should my testosterone be checked?

If you have symptoms such as low libido or fatigue, or if PDE5 inhibitors haven’t worked, a morning testosterone test is recommended.

At what age does diabetes cause erectile dysfunction?

It can happen at any adult age, but men with diabetes tend to develop ED earlier than men without diabetes, and the risk rises with the duration of diabetes and with complications.

Can better blood sugar control improve ED?

It may help, particularly early on, and it reduces further nerve and blood vessel damage. Combining glucose control with weight loss, exercise and not smoking gives the best chance of improvement.

Is it safe to have sex if I have heart disease?

For most people with stable heart disease, sexual activity is safe. If you have chest pain or breathlessness with mild exertion, see your doctor first. Never combine ED tablets with nitrate medicines.

Can diabetes affect fertility in men?

Yes, through ED, retrograde ejaculation and effects on sperm quality. If you are trying to conceive, discuss this with your doctor; treatments and fertility services can help.

Can ED be the first sign of diabetes?

Sometimes. Because ED can result from the blood vessel and nerve changes linked with high glucose, it can be the symptom that leads a man to see a doctor and get a diagnosis. Men with new ED should have their glucose and heart risk checked.

Does diabetes affect sex drive?

It can. Low testosterone, tiredness, high glucose, depression and relationship stress can all lower desire. Treating the underlying causes often helps.

Is erectile dysfunction in diabetes permanent?

Not always. Some men improve with better glucose control, weight loss, exercise and stopping smoking. Even when ED persists, most men find an effective treatment.

Can low blood sugar affect sexual performance?

Yes. Hypoglycemia can occur during or after sex, which is physical activity, and can cause weakness, sweating or confusion. If you use insulin or a sulfonylurea, check glucose beforehand and keep fast-acting sugar nearby.

Which doctor treats erectile dysfunction?

Start with your family doctor or diabetes team. They may refer you to a urologist, an andrologist, an endocrinologist if hormones are involved, or a psychosexual therapist.

Does cycling cause erectile problems?

Long hours on a narrow, hard saddle can compress nerves and blood vessels and has been linked with numbness and erectile problems in some cyclists. A well-fitted, padded or cut-out saddle and regular position changes reduce the risk; the overall health benefits of cycling are large.

Are herbal remedies for ED safe?

Many herbal ED products have little evidence, and some sold online have been found to contain hidden prescription drugs that can be dangerous, especially with heart medicines. Talk to your doctor before trying any supplement.

Can ED affect my mental health?

Yes. ED can lead to anxiety, low self-esteem, relationship strain and low mood. Seeking help early, and talking openly with your partner and doctor, often eases the emotional burden as well as the physical problem.

How common is ED in men with type 1 diabetes?

It is common, especially after many years of diabetes or when complications are present, although it tends to appear later than in type 2 diabetes. Young men with type 1 diabetes shouldn’t hesitate to raise it with their team.

ICD-10-CM codes: E11.69 – Type 2 diabetes mellitus with other specified complication; N52.1 – Erectile dysfunction due to diseases classified elsewhere. Codes are listed for reference only.

Sources

  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;34(9):1185–1192. doi:10.1111/dme.13403
  2. Diabetes Canada Clinical Practice Guidelines Expert Committee. Chapter 33: Sexual Dysfunction and Hypogonadism in Men With Diabetes. diabetes.ca
  3. National Institute of Diabetes and Digestive and Kidney Diseases. Diabetes, Heart Disease, & Stroke. niddk.nih.gov
  4. Pop-Busui R, Boulton AJM, Feldman EL, et al. Diabetic Neuropathy: A Position Statement by the American Diabetes Association. Diabetes Care. 2017;40(1):136–154. ACP summary
  5. American Diabetes Association Professional Practice Committee. 10. Cardiovascular Disease and Risk Management: Standards of Care in Diabetes—2026. Diabetes Care. 2026;49(Suppl 1). doi:10.2337/dc26-S010
  6. Esposito K, Giugliano F, Di Palo C, et al. Effect of lifestyle changes on erectile dysfunction in obese men: a randomized controlled trial. JAMA. 2004;291(24):2978–2984. doi:10.1001/jama.291.24.2978

About the author: Marcin Goras

Master of Public Health (MPH), specialization in Emergency Medical Services. Marcin writes evidence-based health content for patients and families, with a focus on recognising emergencies early and acting on current clinical guidelines.

Medically reviewed against the guidelines listed above on .

Related Posts