Type 2 Diabetes and Erectile Dysfunction: Causes and Treatment

Written by
Bolt Pharmacy
Published on
23/2/2026

Type 2 diabetes and erectile dysfunction are closely linked, with men who have diabetes experiencing erectile problems more frequently and at younger ages than those without the condition. Chronic high blood glucose damages blood vessels and nerves essential for normal erectile function, whilst hormonal changes and psychological factors further contribute to the problem. However, erectile dysfunction is not inevitable with type 2 diabetes—many men maintain normal sexual function through good diabetes control and appropriate treatment. Recognising and addressing erectile dysfunction is important not only for quality of life but also as an early warning sign of cardiovascular disease, prompting comprehensive health assessment and management.

Summary: Type 2 diabetes causes erectile dysfunction primarily through blood vessel damage and nerve impairment from chronic high blood glucose, but the condition is treatable and often preventable with good diabetes control.

  • Erectile dysfunction affects men with type 2 diabetes more frequently and at younger ages than the general population due to vascular and nerve damage.
  • PDE5 inhibitors (such as sildenafil and tadalafil) are first-line treatments and are prescribable on the NHS for men with diabetes, subject to local policies.
  • Optimising blood glucose control to individualised HbA1c targets (typically 48–53 mmol/mol) can prevent or improve erectile function before irreversible damage occurs.
  • Erectile dysfunction may signal underlying cardiovascular disease and should prompt comprehensive cardiovascular risk assessment using tools like QRISK3.
  • Treatment options include oral medications, vacuum devices, alprostadil injections, testosterone replacement for confirmed hypogonadism, and psychological interventions.
  • Lifestyle changes—including weight loss, regular exercise, smoking cessation, and dietary improvements—directly support both diabetes management and erectile function.
60-second quiz
See if weight loss injections could be right for you
Answer a few quick questions to check suitability — no commitment.
Start the eligibility quiz
Most people finish in under a minute • Results shown instantly

Erectile dysfunction (ED)—the persistent inability to achieve or maintain an erection sufficient for satisfactory sexual activity—is a common complication affecting men with type 2 diabetes. Research indicates that ED is substantially more prevalent in men with diabetes than in the general population, and often develops at a younger age, though prevalence varies with age, diabetes duration and the presence of other health conditions.

The relationship between type 2 diabetes and erectile dysfunction is multifactorial and well-established in medical literature. Chronic hyperglycaemia (persistently elevated blood glucose levels) creates a cascade of physiological changes that directly impact erectile function. These include damage to blood vessels, impairment of nerve function, hormonal imbalances, and psychological factors—all of which can contribute individually or collectively to ED.

It is important to recognise that whilst type 2 diabetes substantially increases the risk of erectile dysfunction, the condition is not inevitable. Many men with well-controlled diabetes maintain normal erectile function throughout their lives. Furthermore, ED in men with diabetes is often manageable with appropriate medical intervention and lifestyle modifications.

The presence of erectile dysfunction should prompt a comprehensive cardiovascular assessment. NICE Clinical Knowledge Summaries (CKS) emphasise that ED may serve as an early marker of cardiovascular disease, which may precede coronary artery disease by several years. Your GP should assess your overall cardiovascular risk (for example, using the QRISK3 tool) when you present with ED. Addressing erectile dysfunction therefore represents not only an improvement in quality of life but also an opportunity to identify and manage broader health risks.

How Type 2 Diabetes Causes Erectile Dysfunction

The mechanisms by which type 2 diabetes leads to erectile dysfunction are complex and involve multiple physiological systems. Understanding these pathways helps explain why comprehensive diabetes management is essential for preserving sexual function.

Vascular damage represents the primary mechanism. Achieving an erection requires adequate blood flow to the penile tissues. Chronic hyperglycaemia damages the endothelium (inner lining) of blood vessels through a process called endothelial dysfunction, reducing the production of nitric oxide—a crucial molecule that facilitates vasodilation. Additionally, diabetes accelerates atherosclerosis (narrowing and hardening of arteries), which restricts blood flow to the penis. The small blood vessels supplying erectile tissue are particularly vulnerable to this microvascular damage.

Neuropathy (nerve damage) is another significant contributor. Diabetes can damage the autonomic nerves responsible for triggering the erectile response. This diabetic neuropathy impairs the nerve signals required to initiate and maintain an erection, even when blood flow is adequate. The prevalence of autonomic neuropathy varies with diabetes duration and glycaemic control.

Hormonal factors also play a role. Men with type 2 diabetes have higher rates of hypogonadism (low testosterone levels), which can reduce libido and contribute to erectile difficulties. Insulin resistance and obesity—common in type 2 diabetes—further disrupt hormonal balance.

Medications can contribute to ED. Some medicines used to treat other conditions—including certain antidepressants (e.g., SSRIs), some antipsychotics, and finasteride—may worsen erectile function and should be reviewed with your GP if ED develops.

Psychological factors should not be overlooked. The stress of managing a chronic condition, concerns about sexual performance, and depression (which occurs more frequently in people with diabetes) can all contribute to or exacerbate erectile dysfunction. These psychological elements often interact with physical factors, creating a cycle that perpetuates the problem.

Treatment Options for Erectile Dysfunction in Type 2 Diabetes

Effective treatments for erectile dysfunction in men with type 2 diabetes are available, and most men will respond well to one or more therapeutic approaches. Treatment should be individualised based on the severity of ED, overall health status, and patient preference.

Phosphodiesterase type 5 (PDE5) inhibitors represent the first-line pharmacological treatment for ED in diabetes. These medications—sildenafil, tadalafil, vardenafil, and avanafil—work by enhancing the effects of nitric oxide, thereby improving blood flow to the penis during sexual stimulation. Clinical trials demonstrate that PDE5 inhibitors are effective in many men with diabetes, though response rates may be lower than in non-diabetic men.

In England, NHS prescribing of PDE5 inhibitors is subject to eligibility criteria and local Integrated Care Board (ICB) policies. Generic sildenafil is usually the first-line option. Men with diabetes are generally eligible for NHS prescriptions, but you should discuss availability and any restrictions with your GP.

Important safety information for PDE5 inhibitors:

  • Contraindications: Do not use if you are taking nitrate medicines (commonly prescribed for angina) or riociguat (a medicine for pulmonary hypertension), as the combination can cause a dangerous drop in blood pressure.

  • Cautions: Use with care if you take alpha-blockers (for prostate or blood pressure), have significant cardiovascular disease (recent heart attack or stroke, unstable angina), severe liver impairment, very low blood pressure, or certain inherited eye conditions (e.g., retinitis pigmentosa). Sexual activity itself carries cardiovascular risk; your doctor will assess whether you are fit for sexual activity.

  • Interactions: Some medicines (e.g., certain antifungals, HIV protease inhibitors) can increase PDE5 inhibitor levels and require dose adjustment. Alcohol and high-fat meals may reduce effectiveness (particularly for sildenafil).

  • Dosing and use: These medicines require sexual stimulation to work. Sildenafil, vardenafil and avanafil are taken on demand (typically 30–60 minutes before activity; maximum once daily). Tadalafil is available as on-demand or once-daily low-dose options. Follow your doctor's instructions carefully.

  • Common side effects: Headache, flushing, indigestion, nasal congestion, and visual disturbances. Rarely, priapism (a painful erection lasting more than four hours) can occur—this is a medical emergency.

If you experience side effects from any medicine, you can report them via the MHRA Yellow Card scheme at yellowcard.mhra.gov.uk.

Vacuum erection devices offer a non-pharmacological option. These mechanical pumps create negative pressure around the penis, drawing blood into the erectile tissue. A constriction ring is then placed at the base to maintain the erection. Whilst effective, some men find these devices cumbersome.

Alprostadil can be administered by intracavernosal injection (self-injected into the penis) or intraurethral application (a small pellet inserted into the urethra). This approach can be effective when oral medications fail. Proper training is essential. Cautions include risk of priapism (especially in men with sickle cell disease, leukaemia or myeloma) and penile fibrosis with repeated use.

Testosterone replacement therapy (TRT) may be appropriate for men with confirmed hypogonadism. Diagnosis requires two separate morning (before 11am) total testosterone tests showing low levels, along with symptoms of low testosterone (e.g., reduced libido, fatigue). Additional tests (LH, FSH, and sometimes prolactin) help identify the cause. TRT is mainly beneficial for low libido rather than ED itself. Monitoring (including haematocrit and PSA) is required during treatment. TRT should only be initiated under specialist supervision.

Psychological interventions, including cognitive behavioural therapy or psychosexual counselling, can be valuable, particularly when anxiety, depression or relationship issues contribute to ED.

Specialist options: If first- and second-line treatments fail, referral to urology may offer advanced options such as penile prosthesis surgery. Shockwave therapy is not routinely recommended in the UK outside research settings.

Managing Blood Sugar to Improve Erectile Function

Optimising glycaemic control represents a fundamental strategy for preventing and potentially improving erectile dysfunction in type 2 diabetes. Evidence suggests that better blood glucose management may lead to improvements in erectile function, particularly when intervention occurs before irreversible vascular or nerve damage has developed, though outcomes vary between individuals.

NICE guideline NG28 recommends individualised HbA1c targets for people with type 2 diabetes. A typical target is 48 mmol/mol (6.5%) for adults managed with lifestyle measures or a single drug not associated with hypoglycaemia (such as metformin). Where treatment includes medicines that carry a risk of hypoglycaemia (e.g., sulfonylureas or insulin), a target of 53 mmol/mol (7.0%) is more usual. Targets should be agreed with your healthcare team, taking into account your individual circumstances, comorbidities, and risk of hypoglycaemia. Achieving and maintaining good glycaemic control helps preserve endothelial function, reduces progression of neuropathy, and minimises further vascular damage.

Lifestyle modifications form the cornerstone of diabetes management and directly impact erectile function:

  • Weight loss: Reducing excess body weight improves insulin sensitivity, hormonal balance, and vascular health. Even modest weight reduction (5–10% of body weight) can yield significant benefits.

  • Regular physical activity: Exercise improves cardiovascular fitness, enhances endothelial function, and supports healthy testosterone levels. The UK Chief Medical Officers' guidelines recommend at least 150 minutes of moderate-intensity activity weekly for adults.

  • Dietary improvements: A balanced diet rich in vegetables, fruits, whole grains, and lean proteins supports both glycaemic control and vascular health. Dietary patterns such as the Mediterranean diet may offer cardiovascular benefits.

  • Smoking cessation: Smoking dramatically worsens vascular function and is a major independent risk factor for ED. Stopping smoking can lead to improvements in erectile function.

Medication optimisation is equally important. Some blood pressure medicines—particularly older thiazide diuretics and non-selective beta-blockers—may contribute to ED, whilst others (such as ACE inhibitors or angiotensin receptor blockers) are neutral or may even be beneficial. If you are concerned that a medicine is affecting your erectile function, discuss this with your GP; alternative agents may be available. Additionally, newer diabetes medicines (such as GLP-1 receptor agonists and SGLT2 inhibitors) can support weight loss and cardiovascular health, which may indirectly benefit erectile function.

When to Seek Medical Help for Erectile Dysfunction

Men with type 2 diabetes experiencing erectile dysfunction should not hesitate to seek medical advice. ED is a legitimate medical concern that warrants professional assessment, and early intervention often yields better outcomes. Healthcare professionals routinely address sexual health concerns as part of comprehensive diabetes care.

You should contact your GP if:

  • You experience persistent or recurrent difficulty achieving or maintaining erections sufficient for sexual activity

  • Erectile problems are causing distress or affecting your relationship

  • You notice a sudden change in erectile function (which may indicate a new medical problem)

  • You have concerns about your diabetes management or overall cardiovascular health

Seek urgent medical attention if:

  • You develop chest pain, breathlessness, or other cardiac symptoms during sexual activity

  • You experience a painful erection lasting more than four hours (priapism)—this is a medical emergency requiring immediate treatment

During your consultation, your GP will typically conduct a comprehensive assessment including a detailed medical and sexual history, review of current medications, physical examination (including blood pressure, BMI, and genital/cardiovascular examination), and relevant investigations. A validated questionnaire (such as the International Index of Erectile Function, IIEF-5) may be used to assess severity and monitor response to treatment.

Blood tests may include:

  • HbA1c (to assess diabetes control)

  • Fasting lipid profile

  • Morning (before 11am) total testosterone—if low, a repeat test is required to confirm hypogonadism, along with LH, FSH, and sometimes prolactin to identify the cause

  • Thyroid function (TSH) if clinically indicated

  • Urinalysis

Your GP will also assess your cardiovascular risk (for example, using the QRISK3 tool) and evaluate whether you are fit for sexual activity, particularly if you have known cardiovascular disease or symptoms such as angina.

Your GP can initiate treatment with PDE5 inhibitors (which are prescribable on the NHS for men with diabetes, subject to local policies) or refer you to specialist services if required. Specialist referral may be appropriate for:

  • Complex cases or treatment failure with first-line options

  • Confirmed hypogonadism requiring testosterone replacement (endocrinology referral)

  • Anatomical penile abnormalities or consideration of advanced treatments such as penile prosthesis (urology/andrology referral)

  • Significant psychological or relationship factors (psychosexual therapy or counselling)

  • Uncertainty about cardiovascular fitness for sexual activity (cardiology assessment)

Remember that addressing erectile dysfunction is an integral part of diabetes care, not a separate or optional concern. Open communication with your healthcare team enables comprehensive management that addresses both your metabolic health and quality of life.

Frequently Asked Questions

Why does type 2 diabetes cause erectile dysfunction?

Type 2 diabetes causes erectile dysfunction primarily through chronic high blood glucose damaging blood vessels and nerves essential for erections. This vascular damage reduces blood flow to the penis, whilst diabetic neuropathy impairs the nerve signals needed to trigger and maintain an erection, often compounded by hormonal imbalances and psychological stress.

Can improving my blood sugar levels help with erectile dysfunction?

Yes, optimising blood glucose control to individualised HbA1c targets (typically 48–53 mmol/mol) can prevent or improve erectile dysfunction, particularly before irreversible vascular or nerve damage develops. Better diabetes management preserves endothelial function, reduces neuropathy progression, and minimises further vascular damage that contributes to erectile problems.

What tablets can I take for erectile dysfunction if I have diabetes?

PDE5 inhibitors—sildenafil, tadalafil, vardenafil, and avanafil—are first-line treatments for erectile dysfunction in men with diabetes and are prescribable on the NHS, subject to local policies. These tablets enhance blood flow to the penis during sexual stimulation, though you must not use them if you take nitrate medicines for angina or have certain cardiovascular conditions.

Is erectile dysfunction with type 2 diabetes a sign of heart problems?

Erectile dysfunction can serve as an early marker of cardiovascular disease, often preceding coronary artery disease by several years. NICE guidance recommends comprehensive cardiovascular risk assessment (using tools like QRISK3) when men with diabetes present with erectile dysfunction, as the same vascular damage affecting penile blood flow also affects coronary arteries.

Can I get Viagra on the NHS if I have type 2 diabetes?

Yes, men with type 2 diabetes are generally eligible for NHS prescriptions of PDE5 inhibitors such as sildenafil (generic Viagra), subject to local Integrated Care Board policies. Your GP will assess your suitability, check for contraindications (such as nitrate use), and typically prescribe generic sildenafil as the first-line option.

What should I do if Viagra doesn't work for my diabetes-related erectile dysfunction?

If PDE5 inhibitors fail, discuss alternative treatments with your GP, including vacuum erection devices, alprostadil injections or urethral pellets, or referral to urology for specialist options. Your doctor will also review your diabetes control, medications that may worsen erectile function, and check for low testosterone, which may require separate treatment.


Disclaimer & Editorial Standards

The health-related content published on this site is based on credible scientific sources and is periodically reviewed to ensure accuracy and relevance. Although we aim to reflect the most current medical knowledge, the material is meant for general education and awareness only.

The information on this site is not a substitute for professional medical advice. For any health concerns, please speak with a qualified medical professional. By using this information, you acknowledge responsibility for any decisions made and understand we are not liable for any consequences that may result.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

Book a discovery call

and discuss your eligibility for the Fella Program

Book your free call