Does Metformin Cause Erectile Dysfunction

Medical Disclaimer

This article is for informational purposes only and does not constitute medical advice. Always consult your physician or a qualified healthcare provider regarding any medical condition or treatment.

Key Takeaways

  • The evidence does not support metformin as a direct cause of erectile dysfunction; most studies in men with type 2 diabetes show that metformin treatment is associated with stable or improved sexual function.
  • Erectile dysfunction is common in men with type 2 diabetes — affecting roughly 35 to 75 percent depending on age and disease duration — and is driven primarily by vascular damage and neuropathy from chronic hyperglycemia, not by metformin itself.
  • Some research suggests metformin slightly lowers total testosterone in men but the clinical significance is unclear; free testosterone and sex hormone-binding globulin changes are inconsistent across studies.
  • New-onset or worsening erectile function while taking metformin warrants evaluation for the more common contributors — uncontrolled glucose, hypertension, dyslipidemia, low testosterone, depression, sleep apnea, and concurrent medications.
  • PDE5 inhibitors (sildenafil, tadalafil) are well-tolerated when added to metformin and remain first-line pharmacologic treatment for erectile dysfunction in men with type 2 diabetes.

Metformin is the most prescribed oral diabetes medication in the world, and questions about its effect on sexual function are common. The short answer based on current evidence: metformin does not appear to directly cause erectile dysfunction. ED is highly prevalent in men with type 2 diabetes for reasons unrelated to metformin — primarily vascular and nerve damage from chronic hyperglycemia. This article walks through what the research shows, why ED is so common in diabetes, and how to evaluate new or worsening symptoms.

What the Evidence Shows

Several lines of research have looked at metformin and erectile function:

  • Observational studies of metformin users vs non-users. Most cohorts show similar or slightly better erectile function scores in metformin-treated men, attributed to glucose control rather than to metformin itself.
  • Small randomized comparisons. A handful of small trials have reported modest improvements in International Index of Erectile Function (IIEF) scores after several months of metformin therapy, particularly in men with metabolic syndrome.
  • Polycystic ovary syndrome (PCOS) studies. Most metformin sexual-side-effect research has been in women with PCOS, where data on libido and sexual function changes are mixed and generally reassuring.
  • FDA labeling. The metformin prescribing information does not list erectile dysfunction as a recognized side effect.

Why ED Is So Common in Men with Type 2 Diabetes

Cause Mechanism How Common
Vascular damage Atherosclerosis and endothelial dysfunction reduce blood flow to the penis Primary contributor; affects most men with long-standing T2D
Autonomic neuropathy Damage to nerves that signal blood vessel dilation Common in T2D with 5+ years duration
Low testosterone Insulin resistance and obesity suppress testosterone production Affects roughly 30 to 50 percent of men with T2D
Hypertension and lipid medications Beta blockers, thiazide diuretics, and others reduce erectile function Frequent overlap in T2D patients
Depression and anxiety Direct effects on libido and SSRI side effects Higher prevalence in T2D vs general population
Obstructive sleep apnea Reduces testosterone, increases sympathetic tone Underdiagnosed in T2D
Lifestyle factors Smoking, excess alcohol, poor sleep, sedentary behavior Common cumulative effect

An estimated 35 to 75 percent of men with type 2 diabetes experience ED at some point, with prevalence rising sharply with age and disease duration. Many men first notice symptoms after a diabetes diagnosis simply because they are paying closer attention to their health.

How Metformin Might Help, Not Hurt

  • Better glycemic control. Lowering A1C reduces the rate of microvascular damage. Better fasting and post-meal glucose translates to less oxidative stress in penile vasculature.
  • Improved insulin sensitivity. Insulin resistance is itself associated with erectile dysfunction; reducing it may improve endothelial function.
  • Weight loss. Modest weight loss is common on metformin and is consistently associated with improved erectile function and testosterone levels.
  • Possible vascular effects. Some preclinical research suggests metformin improves endothelial function through AMPK activation, which could indirectly support erectile function — though clinical evidence is preliminary.

Does Metformin Affect Testosterone?

This is where the evidence gets more nuanced.

  • Several studies have observed small decreases in total testosterone in men starting metformin, on the order of 50 to 100 ng/dL. The mechanism is unclear and the clinical significance debated.
  • Other studies show no change, or even slight increases attributed to weight loss reducing aromatization of testosterone to estradiol.
  • Free testosterone (the unbound, bioactive fraction) is more clinically relevant than total testosterone and is more variable across studies.
  • If sexual symptoms develop on metformin and low testosterone is suspected, an 8 a.m. fasting total testosterone, free testosterone, and sex hormone-binding globulin can be checked. Treatment for confirmed low testosterone is independent of metformin status.

If You Notice ED Symptoms on Metformin

Do not assume metformin is the cause. Evaluation should include:

  1. Glycemic status — current A1C and recent fasting glucose. Uncontrolled glucose is the most likely contributor.
  2. Blood pressure and lipid profile — uncontrolled hypertension and dyslipidemia accelerate vascular damage.
  3. Concurrent medications — particularly beta blockers, thiazide diuretics, SSRIs, finasteride, and opioids.
  4. Testosterone level — morning total and free testosterone, plus LH and FSH if low.
  5. Depression and anxiety screen — common, under-treated, and a major contributor.
  6. Sleep apnea screening — symptoms, partner observations, oximetry or formal sleep study.
  7. Lifestyle review — smoking, alcohol, exercise, sleep duration, relationship factors.

Treatment Options That Work Alongside Metformin

Treatment How It Works Notes
Sildenafil (Viagra) PDE5 inhibitor; lasts 4 to 6 hours Well tolerated with metformin; first-line
Tadalafil (Cialis) PDE5 inhibitor; lasts up to 36 hours Can be taken daily at low dose; well tolerated with metformin
Vardenafil, avanafil Other PDE5 inhibitors Similar efficacy and safety profile
Lifestyle changes Weight loss, exercise, smoking cessation Often produce meaningful improvement
Testosterone replacement For confirmed low testosterone with symptoms Discuss prostate, hematocrit, CV risk first
Vacuum erection device Mechanical engorgement Drug-free option
Intracavernosal injections Alprostadil or trimix into the penis For PDE5 inhibitor non-responders

When to Talk to Your Clinician

  • New or worsening erectile dysfunction
  • Loss of libido or low energy along with ED
  • Difficulty achieving or maintaining erections for more than 3 months
  • Premature ejaculation or other new sexual symptoms
  • Symptoms of depression or low motivation
  • Significant changes in mood, fatigue, or strength
  • Concerns about medication interactions with PDE5 inhibitors

What Does Cause ED in Diabetes

The cluster of causes — vascular damage, autonomic neuropathy, low testosterone, depression, sleep apnea, and other medications — accounts for the vast majority of ED in men with type 2 diabetes. Metformin sits in the middle of this list as the medication that is most likely to slowly improve the underlying drivers rather than worsen them. Looking at the actual pharmacology, the absence of an FDA label warning, and the consistent observational data, the conclusion is reassuring: metformin is not a recognized cause of erectile dysfunction.

For more on metformin and related topics, see our pages on does metformin lower A1C, metformin and weight loss, best time of day to take metformin, does metformin cause cancer, and our treatment hub. For broader context, see A1C levels and is prediabetes reversible. The NIDDK overview of diabetes and sexual problems is a good patient resource.

The Bottom Line

Metformin does not cause erectile dysfunction in any clinically meaningful way based on the evidence available. ED is common in men with type 2 diabetes for reasons that pre-date metformin therapy — vascular damage, neuropathy, low testosterone, depression, hypertension medications, and sleep apnea. New or worsening symptoms on metformin should prompt a workup of these underlying contributors rather than assumed drug attribution. PDE5 inhibitors and lifestyle changes remain effective and safe to use alongside metformin. Talk to your clinician about evaluation and treatment options.

Frequently Asked Questions

Does metformin cause erectile dysfunction?

There is no clear evidence that metformin directly causes erectile dysfunction. Most studies in men with type 2 diabetes find that metformin is associated with stable or improved sexual function, likely because better glucose control reduces the vascular and nerve damage that cause ED. The metformin prescribing information does not list erectile dysfunction as a recognized side effect.

Why do men on metformin sometimes report erectile dysfunction?

ED is common in men with type 2 diabetes regardless of treatment — affecting roughly 35 to 75 percent depending on age and disease duration. Men who develop or first notice ED after starting metformin are usually experiencing the underlying complications of diabetes itself (vascular damage, neuropathy) rather than a drug effect. Comorbidities like high blood pressure, depression, low testosterone, and sleep apnea contribute heavily.

Does metformin affect testosterone levels?

Some studies show metformin slightly lowers total testosterone in men with type 2 diabetes; others find no significant change. Free testosterone (the bioactive form) and sex hormone-binding globulin changes are inconsistent. If testosterone matters for symptoms, it is worth checking baseline morning total and free testosterone before attributing changes to metformin.

Can metformin improve erectile function?

Indirectly, yes. By lowering A1C and reducing the rate of microvascular damage, metformin can preserve or slowly improve the vascular and neural integrity that erections depend on. Weight loss associated with metformin and lifestyle change is also associated with improved sexual function. Some small studies have even reported direct improvements in erectile function scores on metformin therapy.

Sources

  1. American Diabetes Association. Standards of Care in Diabetes 2024. Diabetes Care 47(Suppl 1).
  2. National Institute of Diabetes and Digestive and Kidney Diseases. Diabetes, Sexual, and Bladder Problems. https://www.niddk.nih.gov/health-information/diabetes/overview/preventing-problems/sexual-bladder-problems
  3. U.S. Food and Drug Administration. Metformin Hydrochloride Prescribing Information. https://www.accessdata.fda.gov/drugsatfda_docs/label/