Does Metformin Affect Libido and How to Address It?

Metformin’s relationship with libido is genuinely two-faced: it can lower testosterone in men, which sometimes dampens sex drive, while in women with conditions like polycystic ovary syndrome (PCOS) or insulin resistance, it tends to improve sexual function across the board. The difference comes down to who is taking it and why. Because metformin is one of the most widely prescribed drugs in the world, even small effects on sexual health matter to millions of people, yet the topic rarely comes up in a prescriber’s office.

How Metformin Can Lower Testosterone in Men

One of the clearest hormonal effects of metformin in men is a reduction in testosterone. A controlled study of men with type 2 diabetes who were already on insulin found that after three months of metformin therapy, total testosterone and bioavailable testosterone both dropped compared to a control group that did not take metformin. The control group actually saw testosterone rise as their blood sugar improved, but the metformin group moved in the opposite direction.1PubMed Central. Effect of Metformin on Testosterone Levels in Male Patients With Type 2 Diabetes Mellitus Treated With Insulin In other words, metformin appeared to counteract the testosterone rebound that normally accompanies better glucose control.

The underlying biology offers a plausible explanation. Metformin activates an enzyme called AMPK in many tissues, including the cells in the testes that produce testosterone. When AMPK is switched on in these cells, it actively suppresses the molecular machinery responsible for making steroid hormones.2PubMed Central. A cell-autonomous molecular cascade initiated by AMP-activated protein kinase represses steroidogenesis This is not a side effect of metformin failing to do its job; it is an extension of the same energy-sensing pathway that makes metformin effective for blood sugar. The downside is that testosterone is a major driver of libido in men, and even a modest decline can be enough for some men to notice reduced desire or changes in sexual performance.

That said, not every man on metformin will experience this. Testosterone levels are influenced by body fat, sleep, stress, age, and the severity of diabetes itself. Many men with type 2 diabetes already have lower-than-average testosterone before they ever start metformin, so attributing a change in libido to the drug alone can be tricky.

Why Women with PCOS Often See the Opposite Effect

The picture flips for women, particularly those with PCOS. In PCOS, the ovaries and adrenal glands tend to overproduce androgens like testosterone, and insulin resistance makes the problem worse. Metformin tackles insulin resistance, which in turn lowers androgen levels. A six-month study of women with PCOS found that metformin treatment led to significant drops in testosterone and androstenedione, along with meaningful improvements in sexual desire, arousal, lubrication, orgasm, and satisfaction.3The Journal of Sexual Medicine. METABOLIC, HORMONAL AND SEXUAL PROFILE IN WOMEN WITH POLYCYSTIC OVARY SYNDROME BEFORE AND AFTER A SIX-MONTH TREATMENT WITH METFORMIN The same study showed improvements in body image and mental health scores, which likely fed into the sexual function gains as well.

A smaller study of women with PCOS and obesity found a similar pattern: total sexual function scores improved after metformin, with the most noticeable gains in lubrication and reduced pain during sex.4Advances in Sexual Medicine. Sexual Function in Patients with PCOS and/or Obesity before and after Metformin Treatment In these women, the high androgen levels that characterize PCOS do not translate into better libido. Instead, the hormonal chaos disrupts menstrual cycles, causes distressing symptoms like acne and excess hair growth, and often coexists with depression and poor body image. Bringing androgens down to a healthier range, while simultaneously improving metabolic health, creates conditions where sexual function can recover.

Insulin Resistance Itself Is a Libido Killer

It is easy to focus on metformin as the variable, but the conditions metformin is prescribed for can independently wreck sexual function. Insulin resistance damages blood vessels, promotes inflammation, and disrupts hormone signaling. A pilot study of women with diabetes and prediabetes found that women with diabetes had lower scores across every domain of sexual function compared to healthy controls, and that the degree of sexual impairment tracked closely with the severity of insulin resistance. After metformin treatment, sexual desire and satisfaction normalized in both the diabetes and prediabetes groups, and the improvements correlated with how much insulin resistance improved.5PubMed. Sexual Functioning and Depressive Symptoms in Women with Diabetes and Prediabetes Receiving Metformin Therapy: A Pilot Study

For men, the same dynamic plays out through erectile function. In a double-blind trial of non-diabetic men who had erectile difficulties and poor responses to sildenafil, adding metformin significantly improved erection scores over four months. The improvement tracked with a drop in insulin resistance.6PubMed. Addition of metformin to sildenafil treatment for erectile dysfunction in eugonadal nondiabetic men with insulin resistance These were men whose testosterone levels were normal; their problem was metabolic, and metformin addressed the root cause. This suggests that for men whose sexual difficulties stem primarily from insulin resistance and vascular damage rather than low testosterone, metformin may actually help.

The Blood Vessel Factor

Erections depend heavily on healthy blood vessel function, and metformin has some favorable effects on the vascular system. A review of the evidence found that metformin improves endothelium-dependent vasodilation, the process by which blood vessels relax and allow increased blood flow, and also reduces overactive sympathetic nerve signaling.7PubMed Central. Effects of metformin on endothelial health and erectile dysfunction Both of these pathways matter for erectile function. In women, genital blood flow also plays a role in arousal and lubrication, so similar vascular improvements could contribute to the sexual function gains seen in the PCOS and diabetes studies.

This vascular benefit is one reason metformin’s net effect on sexual function is not simply “it lowers testosterone, so it’s bad.” For many people with metabolic disease, the blood vessel improvements and the resolution of insulin resistance outweigh any modest hormonal shift. The balance tips differently depending on the individual: a man who already has borderline-low testosterone may feel the hormonal drag more acutely, while a man whose main issue is vascular damage from years of high blood sugar may notice a welcome improvement.

The Vitamin B12 Connection

Long-term metformin use is well known to reduce vitamin B12 absorption, and B12 deficiency can cause a range of neurological symptoms that indirectly affect sexual function. A cross-sectional study of diabetic patients on metformin found that the vast majority reported at least one neurological symptom, with about 15% specifically reporting sexual dysfunction. Lower B12 levels were associated with more neurological symptoms overall.8Journal of Nutrition & Intermediary Metabolism. Vitamin B12 deficiency in diabetic subjects taking metformin: A cross sectional study in a Lebanese cohort B12 deficiency can cause peripheral neuropathy, affecting sensation in the extremities and genital area. It can also contribute to fatigue and mood changes, both of which suppress desire.

This pathway is often overlooked because B12 deficiency develops slowly, sometimes over years. A person might attribute declining libido to aging or stress when the real culprit is a correctable nutritional deficit caused by their medication. Periodic B12 testing for anyone on long-term metformin is a straightforward intervention that many guidelines recommend but not all practitioners consistently follow.

Rare but Real Individual Reactions

Most discussions of metformin and sexual function deal in trends and averages, but individual responses can be dramatic. A published case report described a man who developed erectile dysfunction two weeks after starting metformin. His sexual function returned to normal after the drug was stopped. To confirm the link, his doctors restarted metformin at a modest dose, and within two weeks he became impotent again. Stopping metformin a second time once again resolved the problem.9PubMed Central. Erectile dysfunction as a possible important side effect of metformin: A case report This kind of rechallenge test is considered strong evidence for a drug-reaction link in an individual patient.

Cases like this are uncommon, and they do not change the broader finding that metformin is generally tolerable for most users. But they do illustrate why blanket statements like “metformin doesn’t affect libido” are misleading. If you notice a sharp change in sexual function within weeks of starting metformin, the drug itself is worth considering as a cause, not just the underlying disease.

What to Do If You Suspect Metformin Is Affecting Your Sex Drive

The worst thing you can do is quietly stop taking metformin because you read something worrying online. Uncontrolled blood sugar is far more damaging to sexual function in the long run than any effect metformin might have. Instead, approach the situation methodically:

  • Talk to your prescriber: Sexual side effects are underreported because people feel awkward bringing them up. Your doctor cannot investigate what they do not know about. A simple conversation opens up options like dose adjustment, extended-release formulations that may be better tolerated, or switching to an alternative medication.
  • Get your levels checked: Ask for a testosterone panel if you are male and a vitamin B12 level regardless of sex. These two tests can quickly reveal whether there is a hormonal or nutritional factor that can be corrected independently of whether you stay on metformin.
  • Evaluate the bigger picture: Depression, poor sleep, relationship stress, other medications (blood pressure drugs and antidepressants are common culprits), and the metabolic disease itself all affect libido. Metformin may be the easiest thing to blame, but it might not be the main driver.
  • Consider timing: If sexual function was poor before metformin and has not changed, the drug is unlikely to be responsible. If there was a clear shift shortly after starting or increasing the dose, the connection is more plausible.

For men with confirmed low testosterone on metformin, the question of whether to add testosterone therapy sometimes arises. One pilot study looked at men with late-onset low testosterone who had been on both testosterone replacement and metformin, and then had to stop testosterone. The men who continued metformin after stopping testosterone had less decline in sexual function and hormonal levels than would otherwise be expected, suggesting metformin may partially buffer the loss of exogenous testosterone.10PubMed. Hypothalamic-pituitary-gonadal axis and sexual functioning in metformin-treated men after discontinuation of testosterone replacement therapy: A pilot study This is a small and specific finding, but it hints at a more complex interaction between metformin and male hormones than the simple “it lowers testosterone” narrative suggests.

Why the Evidence Looks Different for Men and Women

The sex difference in metformin’s sexual effects is not random. It reflects the fact that men and women with metabolic disease face different hormonal starting points. Men with type 2 diabetes frequently have low testosterone to begin with, a condition sometimes called functional hypogonadism. Any additional testosterone-lowering effect from metformin, even a small one, can push levels further into symptomatic territory. Meanwhile, the vascular and metabolic improvements metformin provides may not fully compensate for that hormonal hit in every man.

Women with insulin-resistant conditions like PCOS, by contrast, tend to have excess androgens. Metformin’s androgen-lowering effect is therapeutic in this context, addressing symptoms that directly interfere with sexual health. On top of that, improvements in menstrual regularity, body weight, mood, and body image all create a more favorable environment for sexual desire and satisfaction. The pilot study of women with diabetes and prediabetes showed that even women without PCOS benefited sexually from metformin, with improvements that correlated with insulin resistance reduction.5PubMed. Sexual Functioning and Depressive Symptoms in Women with Diabetes and Prediabetes Receiving Metformin Therapy: A Pilot Study This points to insulin resistance itself as a central player in female sexual dysfunction, with metformin helping by treating the metabolic root.

The Sildenafil Combination and Metabolic Erectile Dysfunction

One of the more practical findings in this area involves men who do not respond well to erectile dysfunction medications like sildenafil on their own. The trial mentioned earlier found that adding metformin to sildenafil in non-diabetic men with insulin resistance produced significant improvements in erection quality starting at about two months, with continued gains at four months.6PubMed. Addition of metformin to sildenafil treatment for erectile dysfunction in eugonadal nondiabetic men with insulin resistance The men in the placebo group, who received sildenafil alone without metformin, saw no change. This suggests that for a subset of men, erectile dysfunction is fundamentally a metabolic problem masquerading as a purely vascular or psychological one, and addressing the metabolic dysfunction unlocks the benefit of the PDE5 inhibitor.

If you are a man taking sildenafil or a similar medication with disappointing results, and you have any features of metabolic syndrome (belly fat, high triglycerides, borderline blood sugar, high blood pressure), it may be worth discussing insulin resistance with your doctor. Metformin might not be the first thing that comes to mind in that context, but the evidence for a synergistic effect with ED medications is interesting enough to warrant the conversation.

When Metformin Is Prescribed Off-Label

Metformin is increasingly used beyond its original approval for type 2 diabetes. It is commonly prescribed off-label for PCOS, prediabetes, weight management, and sometimes as part of anti-aging regimens. People taking metformin for these indications may have different baseline hormone levels and different risk profiles for sexual side effects than the typical type 2 diabetes population. A younger woman taking metformin for PCOS has a very different hormonal context than a 60-year-old man taking it for diabetes alongside blood pressure and cholesterol medications.

The off-label context matters because the studies on metformin and sexual function were mostly conducted in specific disease populations. Applying findings from men with advanced type 2 diabetes to a healthy 35-year-old taking metformin for longevity purposes requires caution. There simply is not much data on how metformin affects libido in metabolically healthy people, and the hormonal effects observed in diabetic men may or may not apply in the same way to someone without the disease.

For women using metformin for PCOS management, the sexual function data is more encouraging, and the hormonal mechanism (reducing excess androgens) is well understood. But even here, individual variation matters. Some women with PCOS find that lowering their androgens too aggressively reduces desire, especially if they did not have the classic symptoms of androgen excess to begin with. Monitoring symptoms rather than just lab values is important.

Gastrointestinal Side Effects and the Indirect Mood Route

Metformin’s most common side effects are gastrointestinal: nausea, diarrhea, bloating, and abdominal cramping, particularly in the first few weeks. These symptoms are unpleasant enough on their own, but they also have a way of suppressing interest in sex indirectly. Feeling nauseated after dinner is not exactly an aphrodisiac. Chronic GI discomfort can also disrupt sleep, increase irritability, and generally lower quality of life in ways that take a toll on desire.

Extended-release metformin tends to cause fewer GI problems than the immediate-release version. Taking the medication with food also helps. For many people, GI symptoms fade after the first month or two as the body adjusts. But if they persist and coincide with reduced libido, it is worth recognizing the connection rather than attributing both symptoms to separate causes. Switching to the extended-release formulation or adjusting the dose schedule can sometimes resolve both the stomach issues and the bedroom ones.