Does Metformin Cause Impotence? The Real Risk

Metformin can contribute to erectile dysfunction in some men, though the relationship is more complicated than a simple yes or no. The World Health Organization’s causality assessment system classifies the link between metformin and sexual dysfunction as “probable,” and a large retrospective study found that men taking metformin had roughly 7 to 35 percent higher rates of erectile dysfunction compared to those not taking it. But here’s the twist: metformin also has properties that could theoretically protect erectile function. Understanding both sides helps explain why this drug affects men differently.

How Metformin Can Lower Testosterone

The most direct path from metformin to erectile problems runs through testosterone. In men with type 2 diabetes, three months of metformin therapy can reduce total testosterone, free testosterone, and bioavailable testosterone. One study found that men not taking metformin saw their total testosterone rise by about 1 nmol/L over three months, while men on metformin saw theirs drop by roughly 0.8 nmol/L. That’s a meaningful swing in opposite directions.

This testosterone-lowering effect appears to work against the hormonal improvements that normally come with better blood sugar control. When diabetes treatment brings glucose levels down, testosterone typically rises in response. Metformin seems to blunt or even reverse that rebound, keeping testosterone suppressed even as metabolic health improves. Lower testosterone directly reduces sex drive and can impair the physical mechanisms needed for erections.

Metformin Compared to Other Diabetes Drugs

The testosterone effect becomes clearer when you compare metformin to another common class of diabetes medication. In one study, men taking sulfonylureas (a different type of blood sugar drug) had significantly higher total testosterone, free testosterone, and sex drive scores than men on metformin. Erectile function scores were also meaningfully worse in the metformin group compared to both the sulfonylurea group and healthy controls. This suggests the effect on sexual function is specific to metformin rather than a general consequence of treating diabetes.

The Paradox: Metformin Can Also Help

What makes this topic confusing is that metformin has separate biological effects that should, in theory, improve erections. Achieving an erection depends heavily on blood vessel function, specifically the ability of blood vessels in the penis to relax and fill with blood. That relaxation is driven by a molecule called nitric oxide. Diabetes and obesity suppress nitric oxide production in penile tissue, which is one of the main reasons erectile dysfunction is so common in diabetic men.

Metformin appears to restore nitric oxide production. In animal studies, obese rats on high-fat diets had severely reduced levels of the enzymes that make nitric oxide in penile tissue. Metformin treatment brought those enzyme levels back to normal. Other animal research showed that metformin reversed erectile dysfunction caused by blood vessel constriction, restoring normal muscle tone in the erectile tissue and boosting nitric oxide activity. These findings have led researchers to suggest metformin could actually be useful for treating erectile dysfunction tied to poor blood vessel health.

So metformin pulls in two directions: it may lower testosterone (bad for erections) while improving blood vessel function (good for erections). The net effect likely depends on which mechanism dominates in a given person, which is why some men notice sexual problems on metformin while most do not.

How Common Is This Side Effect?

A large retrospective study tracking thousands of diabetic patients found that men taking metformin had an incidence rate of about 488 to 520 cases of erectile dysfunction per 100,000 person-years, compared to roughly 386 to 456 per 100,000 person-years among men not taking it. The increased risk ranged from about 8 percent higher in the broader analysis to 35 percent higher in the stricter per-protocol analysis, which only counted patients who consistently took the medication as prescribed.

Those numbers show a real but modest increase in risk. Metformin-induced sexual dysfunction is still considered rare, and it’s worth noting that diabetes itself is one of the strongest independent risk factors for erectile dysfunction. Separating the drug’s effect from the disease’s effect is genuinely difficult, which is why this side effect went under the radar for so long.

The Good News: It’s Reversible

In documented cases where metformin was identified as the likely cause of erectile dysfunction, sexual function recovered after the medication was stopped. This reversibility is a key feature. It suggests metformin doesn’t cause permanent damage to erectile tissue or hormonal systems. Instead, its effects on testosterone and sexual function appear to persist only as long as the drug is being taken.

There’s currently no published data establishing whether higher doses carry greater risk, though the testosterone-lowering mechanism would logically be dose-dependent. Case reports haven’t yet quantified that relationship.

What Matters More Than Metformin

For most men with diabetes, the biggest drivers of erectile dysfunction aren’t the medications but the underlying metabolic problems. Insulin resistance damages blood vessels through inflammation, oxidative stress, and reduced nitric oxide availability. High blood pressure compounds the damage. Obesity increases fat deposition that disrupts hormone balance. These factors stack on top of each other and collectively do far more harm to erectile function than metformin does.

European urology guidelines recommend lifestyle changes as a first-line approach alongside any erectile dysfunction treatment. That means addressing weight, exercise, smoking, blood pressure, and cholesterol. These modifications target the root vascular damage that causes most diabetes-related erectile dysfunction, regardless of which medication you’re taking.

If you’ve noticed a clear change in sexual function after starting metformin, the timing matters. A decline that coincides with starting or increasing the dose is worth discussing with your prescriber, since the effect is recognized and reversible. But stopping metformin without medical guidance creates its own risks, since uncontrolled blood sugar accelerates the very vascular damage that causes erectile dysfunction in the long run.