Diabetes and Erectile Dysfunction: Why It Happens and What Helps

By the Medsmingle Team · Updated 13 November 2026

More than half of men with diabetes develop erectile dysfunction (ED), often 10 to 15 years earlier than men without diabetes. High blood sugar damages the nerves and blood vessels that erections depend on. Keeping your blood sugar, blood pressure and cholesterol on target can lower your risk, and a doctor can offer treatments.

How common is ED in men with diabetes?

Men with diabetes are more than three times as likely to develop ED as men without diabetes. More than half of men with diabetes will get ED, and it tends to start 10 to 15 years earlier than in other men.

Why does diabetes cause ED?

An erection needs healthy nerves to send signals and healthy blood vessels to carry blood into the penis. Over time, high blood sugar can damage both.

  • Nerve damage (diabetic neuropathy) can affect the nerves involved in erections.
  • Blood vessel damage can reduce blood flow to the penis.
  • Low testosterone is more common in older and overweight men with diabetes, and it may add to the problem.
  • Emotional health matters too. Stress, anxiety or low mood can make sex harder.

ED caused by physical damage usually comes on gradually, over months or years. Poorly controlled diabetes over a long time can make the damage worse.

Is it physical or psychological?

Morning or overnight erections do not rule out a physical cause. Physical and psychological factors can overlap, so a clinical assessment is still important.

What raises your risk?

If you have diabetes, ED is more likely if:

  • your blood sugar isn’t well controlled
  • you already have nerve damage
  • you have untreated high blood pressure or high cholesterol
  • you’re overweight or not physically active
  • you smoke or drink too much alcohol
  • you take certain medicines

How to lower your risk

  • Keep your blood sugar, blood pressure and cholesterol close to the targets your care team sets.
  • Stay physically active and keep to a healthy weight. Our guide to calorie deficits explains how to lose weight steadily.
  • Stop smoking.
  • Get help for emotional or mental health concerns.

Good diabetes management can reduce complication risk, but it does not guarantee reversal of existing nerve or blood-vessel damage.

What tests might a doctor do?

A doctor will usually start with a few questions to work out whether the cause is mainly physical or psychological. Tests can check whether blood flow to the penis is affected, and blood tests can show whether a hormone problem, such as low testosterone, is involved.

How is ED treated in men with diabetes?

A doctor may treat ED with medicine, change your diabetes care plan, or both. ED tablets need a prescription, and a doctor has to check they’re safe with your heart health and other medicines. They must never be taken with nitrate medicines for chest pain, such as nitroglycerin. Our guide to ED causes and treatment explains the options.

If tablets don’t work or aren’t suitable, other physical treatments include vacuum devices and surgery. If stress or anxiety plays a part, stress management, behavioral therapy and counseling can work well, particularly if your partner is involved.

If tests show low testosterone, a doctor may suggest a prescription gel, patch or injection. Testosterone may help when combined with good diabetes management, but it can carry serious risks and isn’t safe for everyone.

When to see a doctor

See your doctor as soon as you notice a change in your erections. Sexual problems can be a sign that your diabetes needs different management, so mention them alongside your other symptoms. Doctors are trained to talk about these problems, even if they feel awkward to raise.

Frequently asked questions

Can ED caused by diabetes get better?

It depends on the cause. Diabetes care supports overall health, but established damage may not reverse. A clinician can assess treatment options.

Can ED be a sign of diabetes?

Yes. Erection problems that keep happening can be a sign of an underlying condition, including diabetes, high blood pressure or high cholesterol, so it’s worth getting checked.

Does type 1 or type 2 diabetes cause ED?

Both can. In either type, high blood sugar over time can damage the nerves and blood vessels that erections depend on.

Are ED tablets safe if I have diabetes?

Only a doctor can say whether they’re safe for you, based on your heart health and the other medicines you take. Never take them with nitrate medicines for chest pain.

Sources

  • Diabetes, Sexual, & Bladder Problems, National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
  • Diabetes and erectile dysfunction, Better Health Channel, Victorian Government
  • Erection problems (erectile dysfunction), NHS
  • Sildenafil, MedlinePlus

About Medsmingle

Medsmingle (medsmingle.com) shares clear, plain-English information on medicines and everyday health. Explore more health guides and the latest articles, read about us, or contact our team with a question.

This article is for general information only and isn’t a substitute for advice from a doctor or pharmacist. Don’t start, stop or change a medicine without talking to a qualified healthcare professional.

Similar Posts