Erectile Dysfunction and Diabetes: Causes, Treatment, Medicines, and Safety

This article explains why erectile dysfunction is more common in men with diabetes and outlines safe, evidence-based approaches to diagnosis and treatment.

Written by Dr. Albana Greca, MD, MMedSc, Family Physician

Medically reviewed by Dr. Ruden Cakoni, MD, Endocrinologist

Last reviewed: July 2026

Quick Answer

Erectile dysfunction, or ED, means repeated difficulty getting or keeping an erection firm enough for satisfactory sexual activity. It is common in men with diabetes because diabetes can affect blood vessels, nerves, hormones, mood, and cardiovascular health.

ED is treatable. The safest approach is to identify contributing causes, review cardiovascular risk and medicines, improve diabetes and lifestyle factors, and choose a proven treatment such as a PDE5 inhibitor, counseling, a vacuum erection device, penile injection therapy, or an implant. Never combine ED pills with nitrate medicines, recreational nitrites known as “poppers,” or riociguat.

The word impotence is still used by some people, but erectile dysfunction is the preferred medical term. ED is not a personal failure, and it is not an unavoidable part of aging or diabetes.

More than half of men with diabetes may experience ED, and diabetes substantially increases the risk compared with men who do not have diabetes. The problem may appear earlier and can be more difficult to treat when diabetes, blood pressure, cholesterol, smoking, kidney disease, neuropathy, obesity, or cardiovascular disease are not well controlled.

diabetes and erectile dysfunction

Why Diabetes Can Cause Erectile Dysfunction

An erection requires healthy blood flow, intact nerve signals, adequate hormone levels, sexual stimulation, and psychological comfort. Diabetes can interfere with several of these processes at the same time.

Blood-vessel damage

Long-term hyperglycemia, high blood pressure, abnormal cholesterol, smoking, and inflammation can damage the lining of blood vessels and reduce nitric-oxide signaling. The penile arteries may then be unable to increase blood flow sufficiently during arousal.

Autonomic and peripheral neuropathy

Diabetes can damage the nerves that coordinate erection and genital sensation. ED may occur alongside bladder symptoms, reduced awareness of bladder filling, retrograde ejaculation, digestive problems, or dizziness from diabetic autonomic neuropathy.

Low testosterone

Men with type 2 diabetes, obesity, or older age are more likely to have low testosterone. Low testosterone more often causes reduced sexual desire, fewer morning erections, fatigue, reduced muscle mass, or low mood. It may contribute to ED, but it is not the cause in every case.

Medicines and other health conditions

ED can be worsened by certain antidepressants, antipsychotics, blood-pressure medicines, opioids, antiandrogens, prostate treatments, and other drugs. Do not stop a prescribed medicine independently; alternatives or dose changes may be possible.

Other possible contributors include:

  • Coronary artery disease or peripheral artery disease
  • High blood pressure and abnormal cholesterol
  • Obesity and physical inactivity
  • Chronic kidney or liver disease
  • Sleep apnea
  • Depression, anxiety, stress, or relationship conflict
  • Peyronie’s disease or penile curvature
  • Pelvic surgery, radiation, or neurological disease
  • Alcohol or recreational drug use
  • Smoking

What symptoms may occur?

ED may involve:

  • Difficulty getting an erection
  • An erection that is not firm enough for sexual activity
  • Loss of firmness before sexual activity is completed
  • Reduced morning or spontaneous erections
  • Reduced genital sensation
  • Low sexual desire
  • Difficulty with ejaculation or orgasm

Sweating, a fast heart rate, or a slow heart rate are not typical defining symptoms of ED. They may indicate anxiety, hypoglycemia, autonomic neuropathy, heart disease, or another problem and should be assessed separately.

Can Erectile Dysfunction Be a Heart Warning?

Yes. ED and cardiovascular disease share many of the same risk factors, including diabetes, high blood pressure, abnormal cholesterol, smoking, obesity, and inactivity. In some men, vascular ED appears before symptoms of coronary artery disease.

This does not mean every man with ED has blocked heart arteries. It does mean the appointment should include a cardiovascular review, especially when ED is new, occurs without an obvious psychological trigger, or is accompanied by chest discomfort, shortness of breath, reduced exercise tolerance, leg pain with walking, or multiple cardiovascular risk factors.

Urgent Safety Warning

  • Call emergency services for chest pain, pressure, severe shortness of breath, fainting, or stroke symptoms.
  • Seek emergency care for an erection lasting four hours or longer. This is called priapism and can permanently damage erectile tissue.
  • Get urgent medical help for sudden vision loss or sudden hearing loss after an ED medicine.
  • Do not take nitrate medicine for chest pain after using a PDE5 inhibitor unless emergency clinicians specifically direct you. Tell them which ED medicine you took and when.

How Erectile Dysfunction Is Diagnosed

A diagnosis usually begins with a private medical, sexual, and mental-health history. The clinician may ask about:

  • When the problem started and whether it is gradual or sudden
  • Whether morning or masturbation erections remain present
  • Erection firmness and duration
  • Sexual desire, ejaculation, orgasm, pain, or penile curvature
  • Glucose control and diabetes duration
  • Cardiovascular symptoms and exercise tolerance
  • Medicines, supplements, alcohol, smoking, and recreational drugs
  • Depression, anxiety, stress, sleep, and relationship concerns

A short questionnaire such as the Sexual Health Inventory for Men, also called SHIM, may help measure severity and response to treatment.

Physical examination

The examination may include blood pressure, pulse, body composition, cardiovascular and neurological signs, genital examination, testicular size, penile curvature or plaque, and features suggesting low testosterone.

Blood tests

Tests are selected for the individual and may include:

  • HbA1c or fasting glucose
  • Cholesterol and triglycerides
  • Kidney and liver tests
  • Morning total testosterone when symptoms suggest deficiency
  • Repeat testosterone and related hormones if the first result is low
  • Thyroid testing or other tests when clinically indicated

Testosterone deficiency should not be diagnosed from one random afternoon test. Guidelines recommend symptoms or signs plus consistently low morning testosterone measurements.

Specialized testing

Most men do not need nocturnal erection testing, penile Doppler ultrasound, injection testing, or nerve studies at the first visit. These may be useful when the cause is unclear, vascular surgery is being considered, there is penile deformity, trauma, or poor response to treatment.

Treatment Options for Diabetes-Related ED

Treatment should match the cause, cardiovascular safety, medication list, patient preference, relationship goals, cost, dexterity, and tolerance for procedures. Many men use more than one approach.

1. Improve diabetes and cardiovascular health

Better long-term glucose management may help prevent further nerve and blood-vessel damage and may improve erections in some men. It cannot always reverse established damage, so specific ED treatment may still be needed.

Important steps include:

  • Work toward individualized glucose and HbA1c goals
  • Treat high blood pressure and abnormal cholesterol
  • Stop smoking
  • Increase physical activity when medically safe
  • Manage weight without extreme dieting
  • Treat sleep apnea
  • Limit excessive alcohol
  • Review medicines that may contribute to ED

See our guide to preventing diabetes complications and our current blood glucose guide.

2. PDE5 inhibitor medicines

Phosphodiesterase type 5 inhibitors are usually the first oral treatment offered when they are safe. Options include:

  • Sildenafil
  • Tadalafil
  • Vardenafil
  • Avanafil

These medicines improve the natural blood-flow response to sexual stimulation. They do not create sexual desire and do not automatically cause an erection without arousal.

How to improve the chance of success

  • Use the exact prescribed dose and timing.
  • Allow adequate time for the medicine to work.
  • Remember that a high-fat meal may delay some products, particularly sildenafil and vardenafil.
  • Use sexual stimulation.
  • Try the medicine on several separate occasions unless side effects or medical advice require stopping.
  • Ask about a dose or medicine change rather than assuming the entire class failed.

Men with diabetes may have a lower response rate than men without diabetes, but many still benefit. These medicines can be used long term when clinically appropriate; the old claim that they are unsuitable for prolonged use because of side effects was incorrect.

Common side effects

  • Headache
  • Facial flushing
  • Nasal congestion
  • Indigestion
  • Dizziness
  • Temporary visual color changes with some products
  • Back or muscle discomfort with tadalafil

Who must not use them?

PDE5 inhibitors must not be combined with:

  • Nitroglycerin, isosorbide, or any other nitrate medicine
  • Recreational amyl nitrite or nitrate products known as “poppers”
  • Riociguat

The combination can cause a dangerous fall in blood pressure. Additional caution may be needed with alpha-blockers, very low blood pressure, unstable heart disease, severe liver or kidney impairment, or medicines that change PDE5-inhibitor levels.

3. Testosterone treatment

Testosterone should be considered only when a man has compatible symptoms and consistently low testosterone confirmed with appropriate testing. It may improve desire and sometimes enhance the response to ED treatment in men with true hypogonadism.

Testosterone is not a general performance enhancer, not a treatment for normal aging, and not recommended as a way to improve glucose control in type 2 diabetes. It may reduce sperm production and is generally avoided when near-term fertility is desired.

Before treatment, clinicians review prostate risk, blood count, sleep apnea, heart failure, recent cardiovascular events, fertility plans, and other contraindications. Ongoing monitoring is required.

4. Psychological and relationship treatment

Anxiety, depression, performance fear, trauma, relationship conflict, or stress may contribute even when diabetes has caused physical damage. Counseling, cognitive behavioral therapy, or sex therapy can be used alone or with medical treatment.

Including a partner can be helpful when the patient agrees, but the patient should not feel pressured to disclose information or involve another person.

5. Vacuum erection device

A vacuum device uses a cylinder and pump to draw blood into the penis. A tension ring is then placed at the base to maintain the erection.

It avoids systemic drug interactions and can work when oral medicines do not. Possible disadvantages include bruising, numbness, discomfort, a cool-feeling penis, and interrupted spontaneity. The constriction ring should not remain in place longer than instructed.

6. Penile injections or urethral medicine

Alprostadil and combination injection medicines can create an erection by increasing penile blood flow. A clinician must teach the correct dose, sterile technique, injection location, and emergency plan.

Possible complications include pain, bleeding, fibrosis, and priapism. Urethral alprostadil is another option but may be less effective for some men.

7. Penile implant

An inflatable or malleable penile prosthesis can provide reliable erections when other treatments fail or when the patient prefers a definitive surgical option. Satisfaction rates are high after appropriate counseling.

Risks include infection, bleeding, device malfunction, erosion, and the need for future revision. Diabetes and poor glucose control may increase surgical infection risk, so preoperative optimization matters.

8. Vascular surgery

Penile arterial surgery is rarely used. It is most likely to help carefully selected younger men with a specific arterial injury. It is generally not effective for widespread diabetes-related vascular disease.

9. Shockwave, PRP, and stem-cell treatments

Low-intensity shockwave therapy may produce a modest benefit in some men with vasculogenic ED, but protocols and long-term outcomes remain uncertain. Platelet-rich plasma and stem-cell injections remain investigational and should not be marketed as proven cures.

Natural Remedies and Supplements

No herb, vitamin, mineral, or amino-acid supplement has been proven to reverse diabetic nerve or blood-vessel damage or replace established ED treatment.

Yohimbe

Yohimbe supplements are not recommended. Product content may be inaccurate, evidence of benefit is inadequate, and yohimbine has been linked with irregular heart rhythm, blood-pressure problems, heart attack, anxiety, and seizures.

Ginseng, L-arginine, vitamin D, and magnesium

Some studies report small improvements with particular products or combinations, but evidence is inconsistent and products are not standardized. L-arginine may lower blood pressure and can interact with nitrates, antihypertensive medicines, and other products. Vitamin D or magnesium should be replaced when deficient rather than promoted as universal ED treatment.

Be especially cautious with products sold online as “herbal Viagra” or “male enhancement.” They may contain undeclared prescription-drug ingredients or unsafe doses.

Review all supplements with a clinician or pharmacist and read our diabetes vitamins and supplement safety guide.

Diet and Exercise for Erectile Health

No single food treats ED. A Mediterranean-style or other heart-healthy eating pattern may support blood vessels, glucose, blood pressure, cholesterol, and body weight.

Prioritize:

  • Vegetables and whole fruit
  • Beans and lentils
  • Whole grains in appropriate portions
  • Fish, poultry, eggs, tofu, and other suitable proteins
  • Olive oil, nuts, seeds, and avocado
  • Water instead of sugary drinks

Regular aerobic activity and resistance exercise can improve vascular health and may improve erectile function. Strength training does not reliably “boost testosterone” enough to treat true hypogonadism, but it supports muscle, fitness, weight management, and insulin sensitivity.

Our diabetic meal-planning guide provides a practical plate method.

Can Erectile Dysfunction Be Prevented?

Not every case can be prevented, but risk can often be reduced by:

  • Managing glucose without frequent severe highs or lows
  • Treating blood pressure and cholesterol
  • Stopping smoking
  • Staying physically active
  • Maintaining a healthy weight when appropriate
  • Limiting heavy alcohol use
  • Treating sleep apnea, depression, and anxiety
  • Reviewing medicines when symptoms begin
  • Attending routine kidney, heart, nerve, and eye screening

ED can occasionally be the reason undiagnosed diabetes or cardiovascular disease is discovered. Persistent symptoms should not be self-treated without a medical review.

How to Discuss ED With Your Doctor

You can begin with a direct sentence such as:

“I have been having difficulty getting or maintaining an erection for the past ___ months. Could we review whether diabetes, circulation, nerves, hormones, or my medicines might be contributing?”

Before the appointment, write down:

  • When the problem started
  • Whether it occurs every time or only sometimes
  • Whether morning erections are present
  • Changes in desire, ejaculation, pain, or curvature
  • Current medicines and supplements
  • Recent HbA1c, blood pressure, and cholesterol results
  • Chest symptoms or exercise limitations
  • Your treatment preferences and concerns

The discussion is confidential. ED is a common medical issue, and clinicians are trained to address it without judgment.

Doctor’s Note

When a man with diabetes reports ED, I do not assume the cause is only blood sugar. I review cardiovascular symptoms, blood pressure, cholesterol, kidney function, neuropathy, medicines, sleep, mood, sexual desire, and testosterone symptoms. The goal is not simply to prescribe a pill—it is to identify health risks and choose a treatment that is both effective and safe.

Most Asked Questions

Can better blood sugar control reverse ED?

It may improve erections and can reduce further nerve and blood-vessel injury, especially when ED is early. Established neuropathy or vascular disease may not fully reverse, so additional treatment is often needed.

Which ED medicine works best for men with diabetes?

No single PDE5 inhibitor is best for everyone. Choice depends on duration of action, timing, food effects, side effects, kidney and liver function, other medicines, cost, and preference.

Why did sildenafil not work?

Common reasons include incorrect timing, a heavy meal, too little stimulation, inadequate dose, only one attempt, severe vascular or nerve damage, low testosterone, anxiety, or an unsafe interaction that limits dosing. Ask for a structured review rather than increasing the dose independently.

Can I take tadalafil every day?

Daily low-dose tadalafil is an option for selected men and may also help urinary symptoms. It still must not be combined with nitrates or riociguat, and kidney, liver, blood-pressure, and interaction risks need review.

Does ED mean I have low testosterone?

No. Low testosterone is one possible contributor, particularly with low desire or fewer morning erections, but vascular disease, neuropathy, medicines, and psychological factors are more common.

Can ED medicines cause a heart attack?

PDE5 inhibitors are generally safe for many men with stable cardiovascular disease, but sexual activity and treatment must be assessed when heart disease is unstable. The dangerous interaction is combining a PDE5 inhibitor with nitrates or related nitric-oxide donors.

Is diabetic ED permanent?

Not always. Many men improve with risk-factor treatment, correct use of oral medicine, counseling, devices, injections, or an implant. Response depends on the underlying causes and severity.

Educational safety note: This page does not diagnose ED or prescribe an ED medicine, testosterone, injection, supplement, or device. Cardiovascular health, current medicines, nitrate use, blood pressure, kidney and liver function, and personal treatment goals must be reviewed individually.

Related Resources

References

  1. American Diabetes Association. Comprehensive Medical Evaluation and Assessment of Comorbidities: Standards of Care in Diabetes—2026.
  2. American Diabetes Association. Retinopathy, Neuropathy, and Foot Care: Standards of Care in Diabetes—2026.
  3. NIDDK. Diabetes, Sexual, and Bladder Problems.
  4. NIDDK. Erectile Dysfunction.
  5. NIDDK. Diagnosis of Erectile Dysfunction.
  6. NIDDK. Treatment for Erectile Dysfunction.
  7. American Urological Association. Erectile Dysfunction Guideline.
  8. European Association of Urology. Management of Erectile Dysfunction.
  9. Endocrine Society. Testosterone Therapy for Hypogonadism Guideline.
  10. National Center for Complementary and Integrative Health. Yohimbe: Usefulness and Safety.
  11. U.S. Food and Drug Administration. Sildenafil Prescribing Information.