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:
- Glycemic status — current A1C and recent fasting glucose. Uncontrolled glucose is the most likely contributor.
- Blood pressure and lipid profile — uncontrolled hypertension and dyslipidemia accelerate vascular damage.
- Concurrent medications — particularly beta blockers, thiazide diuretics, SSRIs, finasteride, and opioids.
- Testosterone level — morning total and free testosterone, plus LH and FSH if low.
- Depression and anxiety screen — common, under-treated, and a major contributor.
- Sleep apnea screening — symptoms, partner observations, oximetry or formal sleep study.
- 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.
Related Reading
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.