Metformin

What does metformin do, and what are its side effects?

Metformin likely reduces complications in overweight people with type 2 diabetes and delays diabetes onset, but often upsets the stomach and lowers vitamin B12.

Metformin is the usual first-choice tablet for type 2 diabetes6. It lowers blood sugar by reducing the glucose the liver makes, helping muscles take up glucose and acting in the gut5. In a 10-year trial in overweight people with new diabetes it cut diabetes-related deaths by 42%1, and in high-risk people it delayed diabetes2. Stomach upset is common6, B12 can fall10, and lactic acidosis cases almost always involve other risk factors13.

What you can do

  • On long-term metformin, ask when your B12 was last checked: after 13 years, low or borderline-low B12 affected 20.3% of metformin users versus 15.6% on placebo10.
  • If stomach upset is the problem, ask about the extended-release form: observational studies found less bloating and vomiting with it, though trials found a clear gain only for dyspepsia7,8.

Be careful if

  • Do not stop or restart metformin without your clinician, who weighs kidney function; one observational study of people with eGFR below 30 found worse outcomes in those who stopped16.
  • Kidney function matters: the US label lists an eGFR below 30 as a contraindication and calls for a kidney check at least once a year21.
How it works What it does in your body, in plain words 4 min

What it does in the body

Doctors have used metformin for decades, yet how it works is still debated. Long-term treatment improved how muscles dispose of glucose and reduced glucose production in the liver, although the liver effect has mostly been shown in animals and cells at higher doses than people take5. Proposed mechanisms include activating an energy-sensing enzyme called AMPK, partly blocking mitochondrial complex I, and effects in the gut such as raising the hormone GLP-1 (the hormone that GLP-1 medications act on)5. In the first big trial, metformin was also linked to less weight gain and fewer low-blood-sugar episodes than insulin or sulphonylurea tablets1.

The two landmark trials

The UK Prospective Diabetes Study (UKPDS 34) randomized 753 overweight adults with newly diagnosed type 2 diabetes to a diet-based conventional policy or to intensive control with metformin, and followed them for a median of 10.7 years1. The Diabetes Prevention Program (DPP) randomized 3,234 people without diabetes but with raised glucose to placebo, metformin (850 mg twice daily) or a lifestyle program aiming for at least 7% weight loss and 150 minutes of activity a week2. Its follow-up studies tracked most participants for 10 and then 15 years3,4. The results are laid out in the evidence section below.

Common side effects

Stomach and bowel symptoms are the best-known problem. A meta-analysis of 71 randomized trials found more abdominal pain, diarrhea and nausea with metformin than with comparison treatments6. Pooled real-world (observational) studies put diarrhea at about 7%, bloating about 6%, abdominal pain about 5%, vomiting about 2% and constipation about 1%, with wide uncertainty ranges7. Extended-release tablets looked gentler in those observational data7, and a trial meta-analysis found less bloating and diarrhea than the immediate-release form6. A separate meta-analysis of nine head-to-head trials found a clear gain only for dyspepsia, with other symptoms similar8. Women appear more affected: a 2026 meta-analysis found 85% higher odds of gastrointestinal side effects in women than in men9.

Vitamin B12

Metformin lowers vitamin B12 levels, and the effect grows with dose and time. Randomized trials pooled in one review showed lower B12 with metformin, with a larger fall at higher daily doses11, and a larger meta-analysis, mostly of observational studies and trials, found more than double the odds of B12 deficiency12. In the DPP and its follow-up, low or borderline-low B12 became more common than on placebo, and the authors suggested routine testing should be considered10. More on why this vitamin matters: vitamin B12.

Rare but serious: lactic acidosis and the kidneys

Metformin-associated lactic acidosis is a build-up of lactic acid that can be fatal, and the label carries a boxed warning about it21. Almost all reported cases involved other risk factors13; the sources used here give no incidence figure. Because the kidneys clear the drug, the US label lists severe kidney impairment (eGFR below 30) as a contraindication, does not recommend starting it when eGFR is 30 to 45, and calls for an eGFR check at least annually21. Observational data complicate the picture: people with kidney disease who stayed on metformin did better on average than those who stopped, but that is not proof and the lactic acidosis risk in stage 4 disease could not be ruled out15,16.

Recalls in 2020

In 2020 the FDA identified NDMA, an impurity, above the acceptable intake limit in some extended-release metformin lots, and manufacturers voluntarily recalled those products; the FDA reported that its testing had not shown NDMA in immediate-release products22. The FDA told patients on a recalled product to keep taking it until a clinician or pharmacist supplied a replacement22.

Metformin and COVID-19

Early in the pandemic metformin was tested against COVID-19. The main results were disappointing: the large COVID-OUT trial missed its primary outcome17, and ACTIV-6 found no faster recovery18. A prominent earlier metformin trial was retracted20. See also COVID-19.

Other uses

Related reading: Metformin for longevity, PCOS and berberine.

The evidence The studies, what they found, and how much to trust them 6 min · 22 sources

UKPDS 34 (1998): benefit in overweight people with diabetes

Of 4,075 people recruited to UKPDS, 753 overweight adults (mean age 53) with newly diagnosed type 2 diabetes were randomized to conventional policy, mainly diet alone (n=411), or intensive control with metformin aiming for fasting glucose below 6 mmol/L (n=342)1. Over a median of 10.7 years, median HbA1c was 7.4% with metformin versus 8.0%1. Compared with conventional treatment, metformin was associated with risk reductions of 32% for any diabetes-related endpoint (95% CI 13 to 47, p=0.002), 42% for diabetes-related death (9 to 63, p=0.017) and 36% for all-cause mortality (9 to 55, p=0.011)1. Metformin also did better than chlorpropamide, glibenclamide or insulin on any diabetes-related endpoint, all-cause mortality and stroke1.

One warning in the same paper is often missed. In a supplementary trial of 537 people already on maximum sulphonylurea, adding metformin was associated with a 96% increased risk of diabetes-related death (95% CI 2 to 275, p=0.039) compared with continuing the sulphonylurea alone1. An epidemiological analysis of 4,416 patients did not show an increased risk of diabetes-related death with the combination (risk reduction 5%, -33 to 32, p=0.78), and a combined analysis of both trials still favored metformin (19% fewer diabetes-related endpoints, 2 to 33)1. The trial applies to overweight people with diabetes, not to prevention.

DPP (2002) and DPPOS: delaying diabetes, not abolishing it

In the 2.8-year DPP (mean age 51, mean body-mass index 34.0, 68% women), diabetes incidence was 11.0, 7.8 and 4.8 cases per 100 person-years with placebo, metformin and lifestyle2. Metformin reduced incidence by 31% (95% CI 17 to 43) and lifestyle by 58% (48 to 66); about 13.9 people had to take metformin for three years to prevent one case, versus 6.9 in the lifestyle program2.

Group Cases per 100 person-years (DPP) 15-year cumulative diabetes
Placebo 11.02 62%4
Metformin 7.82 56%4
Lifestyle 4.82 55%4

After DPP ended, 88% of surviving participants (2,766 of 3,150) were followed. Once everyone was offered lifestyle support, incidence rates converged (5.9, 4.9 and 5.6 per 100 person-years for lifestyle, metformin and placebo), yet over 10 years diabetes was still reduced by 34% (24 to 42) with lifestyle and 18% (7 to 28) with metformin3. At 15 years the reductions were 27% (hazard ratio 0.73) and 18% (0.82), with "declining between-group differences over time"4. Microvascular complications at the end were not significantly different: 12.4% with placebo, 13.0% with metformin and 11.3% with lifestyle4. In short, metformin delayed diabetes but did not show a clear effect on complications in that follow-up4.

Vitamin B12

A systematic review of six randomized trials (6 to 208 weeks) found serum B12 lower with metformin by 53.93 pmol/L (95% CI -81.44 to -26.42), with a larger fall at 2,000 mg a day or more (-78.62) than below it (-37.99)11. A meta-analysis of 29 studies and 8,089 patients found an odds ratio of 2.45 (1.74 to 3.44) for B12 deficiency, with high heterogeneity12.

The DPP/DPPOS analysis gives the most useful absolute numbers10. Low B12 (at or below 203 pg/mL) was found in 4.3% of metformin users versus 2.3% on placebo at 5 years (p=0.02), and 7.4% versus 5.4% at 13 years (p=0.12). Low plus borderline-low B12 (at or below 298 pg/mL) was 19.1% versus 9.5% at 5 years and 20.3% versus 15.6% at 13 years. Each year of metformin use carried an odds ratio of 1.13 (1.06 to 1.20) for deficiency; anemia was more common with metformin but did not differ by B12 status, and neuropathy was more common in metformin users with low B1210.

Gastrointestinal effects

The 71-trial meta-analysis found higher risks of abdominal pain, diarrhea and nausea than comparators, and more bloating and diarrhea with immediate-release than extended-release tablets6. The 21-study observational meta-analysis reported pooled prevalences of diarrhea 6.9% (95% CI 3.8 to 12.3%), bloating 6.2%, abdominal pain 5.3%, vomiting 2.4% and constipation 1.1%, lower with extended release7. Nine head-to-head trials in 2,609 adults found immediate-release slightly better for HbA1c (mean difference 0.09 percentage points) and extended-release better only for dyspepsia (RR 0.58, 0.34 to 0.98)8. In seven studies of 7,968 people, females had odds of 1.85 (1.58 to 2.17) for these events9.

Lactic acidosis and kidney function

A systematic review of 559 published cases found that 97% had independent risk factors, and in people with kidney impairment the prescribed dose exceeded guidelines in 60% of cases, by about 1,000 mg a day on average13. A meta-analysis of 170 cases (44 studies, median age 68.5) reported mortality of 36.2% (95% CI 29.6 to 43.9) and noted that many patients may die with rather than from it because of coexisting sepsis or kidney failure14. Neither lactate nor pH predicted death well14.

In a 2026 meta-analysis of 12 observational studies in chronic kidney disease with type 2 diabetes, metformin use was associated with lower all-cause mortality (HR 0.76, 0.64 to 0.90) and end-stage kidney disease (HR 0.61, 0.49 to 0.76), no difference in major cardiovascular events, and a non-significant trend to more lactic acidosis in stage 4 disease (HR 1.93, 0.95 to 3.87); the authors rated the certainty very low15. A Hong Kong target-trial emulation of 33,586 metformin users with new eGFR below 30 found 22.3% stopped within six months; stopping was associated with higher MACE (HR 1.40, 1.29 to 1.52), end-stage kidney disease (1.52, 1.42 to 1.62) and death (1.22, 1.18 to 1.27), and lactic acidosis was not more frequent with continued use in a separate cohort of 3,235 (HR 0.94, 0.53 to 1.64)16. This is observational and prescriber-led, and the authors call for validation16.

COVID-19 trials

COVID-OUT randomized 1,431 adults aged 30 to 85 with overweight or obesity (1,323 analysed) within three days of a positive test. Metformin did not significantly reduce the primary composite of low oxygen, emergency visit, hospitalization or death (adjusted OR 0.84, 0.66 to 1.09; p=0.19), although a secondary outcome of emergency visit, hospitalization or death favored it (OR 0.58, 0.35 to 0.94)17. The ACTIV-6 trial of 2,991 adults (metformin titrated to 1,500 mg daily for 14 days) found no difference in time to sustained recovery (HR 0.96, 0.89 to 1.03; median 9 versus 10 days)18. A meta-analysis of three trials (1,869 patients) done to inform a World Health Organization guideline found little or no mortality effect (RR 0.76, 0.30 to 1.90, low certainty) and a possible reduction in long COVID (RR 0.6, 0.4 to 0.9) resting on a single trial with high risk of bias19. The TOGETHER metformin trial has been retracted, so it is not used here20.

How sure are we?

We are moderately sure (confidence 3 of 5). Metformin delaying diabetes in high-risk adults is well supported by a large randomized trial with long follow-up2,4. The complication benefit in overweight people with diabetes rests mainly on one 753-person trial from 1998 with wide confidence intervals1; that paper also reported a higher diabetes-related death risk when metformin was added to a sulphonylurea1, and the DPP follow-up showed no complication difference4. We are also less sure about how much the prevention benefit lasts, since group differences narrowed over 15 years4. The rare-harm and kidney data are observational, so absolute risks there are uncertain15,16.

  1. Effect of intensive blood-glucose control with metformin on complications in overweight patients with type 2 diabetes (UKPDS 34). UK Prospective Diabetes Study (UKPDS) Group. UK Prospective Diabetes Study (UKPDS) Group. Lancet, 1998. PubMed 9742977 (opens in a new tab)
  2. Reduction in the incidence of type 2 diabetes with lifestyle intervention or metformin. Knowler WC, Barrett-Connor E, Fowler SE, Hamman RF, Lachin JM, Walker EA, Nathan DM, Diabetes Prevention Program Research Group. New England Journal of Medicine, 2002. PubMed 11832527 (opens in a new tab)
  3. 10-year follow-up of diabetes incidence and weight loss in the Diabetes Prevention Program Outcomes Study. Knowler WC, Fowler SE, Hamman RF, Christophi CA, Hoffman HJ, Brenneman AT, Brown-Friday JO, Goldberg R, Venditti E, Nathan DM, Diabetes Prevention Program Research Group. Lancet, 2009. PubMed 19878986 (opens in a new tab)
  4. Long-term effects of lifestyle intervention or metformin on diabetes development and microvascular complications over 15-year follow-up: the Diabetes Prevention Program Outcomes Study. Diabetes Prevention Program Research Group. Lancet Diabetes & Endocrinology, 2015. PubMed 26377054 (opens in a new tab)
  5. Metformin-mechanisms of its glycemia-reducing effect. Drewe J, Foretz M, Krähenbühl S. Pharmacological Reviews, 2026. PubMed 41389439 (opens in a new tab)
  6. Gastrointestinal adverse events of metformin treatment in patients with type 2 diabetes mellitus: A systematic review, meta-analysis and meta-regression of randomized controlled trials. Nabrdalik K, Skonieczna-Żydecka K, Irlik K, Hendel M, Kwiendacz H, Łoniewski I, Januszkiewicz K, Gumprecht J, Lip GYH. Frontiers in Endocrinology, 2022. PubMed 36187122 (opens in a new tab)
  7. Gastrointestinal adverse events of metformin treatment in patients with type 2 diabetes mellitus: a systematic review and meta-analysis with meta-regression of observational studies. Nabrdalik K, Hendel M, Irlik K, Kwiendacz H, Łoniewski I, Bucci T, Alam U, Lip GYH, Gumprecht J, Skonieczna-Żydecka K. BMC Endocrine Disorders, 2024. PubMed 39350158 (opens in a new tab)
  8. Metformin extended-release versus metformin immediate-release for adults with type 2 diabetes mellitus: A systematic review and meta-analysis of randomized controlled trials. Abrilla AA, Pajes ANNI, Jimeno CA. Diabetes Research and Clinical Practice, 2021. PubMed 33887354 (opens in a new tab)
  9. Sex differences in the risk of metformin-associated gastrointestinal adverse events: A systematic review and meta-analysis. Kumar A, Catalano A, Biamonte E, Pintaudi B, Nieminen P, Singh S. Diabetes Research and Clinical Practice, 2026. PubMed 42702238 (opens in a new tab)
  10. Long-term Metformin Use and Vitamin B12 Deficiency in the Diabetes Prevention Program Outcomes Study. Aroda VR, Edelstein SL, Goldberg RB, Knowler WC, Marcovina SM, Orchard TJ, Bray GA, Schade DS, Temprosa MG, White NH, Crandall JP, Diabetes Prevention Program Research Group. Journal of Clinical Endocrinology & Metabolism, 2016. PubMed 26900641 (opens in a new tab)
  11. Vitamin B12 status in metformin treated patients: systematic review. Liu Q, Li S, Quan H, Li J. PLoS ONE, 2014. PubMed 24959880 (opens in a new tab)
  12. The role of metformin on vitamin B12 deficiency: a meta-analysis review. Niafar M, Hai F, Porhomayon J, Nader ND. Internal and Emergency Medicine, 2015. PubMed 25502588 (opens in a new tab)
  13. The Association between Metformin Therapy and Lactic Acidosis. Kuan IHS, Savage RL, Duffull SB, Walker RJ, Wright DFB. Drug Safety, 2019. PubMed 31372935 (opens in a new tab)
  14. Do Patients Die with or from Metformin-Associated Lactic Acidosis (MALA)? Systematic Review and Meta-analysis of pH and Lactate as Predictors of Mortality in MALA. Blumenberg A, Benabbas R, Sinert R, Jeng A, Wiener SW. Journal of Medical Toxicology, 2020. PubMed 31907741 (opens in a new tab)
  15. Safety of metformin in chronic kidney disease and type 2 diabetes mellitus: a systematic review and meta-analysis. Patiño-Cardona S, Pascual-Morena C, Sequí-Domínguez I, Álvarez-Bueno C, Martínez-Martínez H, de Miguel-Brox M, Priego-Jiménez S, Martínez-Vizcaíno V. European Journal of Pharmacology, 2026. PubMed 41548682 (opens in a new tab)
  16. Clinical outcomes following discontinuation of metformin in patients with type 2 diabetes and advanced chronic kidney disease in Hong Kong: a territory-wide, retrospective cohort and target trial emulation study. Yang A, Shi M, Wu H, Lau ES, Cheung JT, Zhang X, Fan B, Chen T, Kong AP, Luk AO, Ma RC, Chan JC, Chow E. eClinicalMedicine, 2024. PubMed 38586590 (opens in a new tab)
  17. Randomized Trial of Metformin, Ivermectin, and Fluvoxamine for Covid-19. Bramante CT, Huling JD, Tignanelli CJ, Buse JB, Liebovitz DM, Nicklas JM, Cohen K, Puskarich MA, Belani HK, Proper JL, Siegel LK, Klatt NR, Odde DJ, Luke DG, Anderson B, Karger AB, Ingraham NE, Hartman KM, Rao V, Hagen AA, Patel B, Fenno SL, Avula N, Reddy NV, Erickson SM, Lindberg S, Fricton R, Lee S, Zaman A, Saveraid HG, Tordsen WJ, Pullen MF, Biros M, Sherwood NE, Thompson JL, Boulware DR, Murray TA, COVID-OUT Trial Team. New England Journal of Medicine, 2022. PubMed 36070710 (opens in a new tab)
  18. Metformin and Time to Sustained Recovery in Adults With COVID-19: The ACTIV-6 Randomized Clinical Trial. Bramante CT, Stewart TG, Boulware DR, McCarthy MW, Gao Y, Rothman RL, Mourad A, Thicklin F, Cohen JB, Garcia Del Sol IT, Ruiz-Unger J, Shah NS, Mehta M, Cardona OQ, Scott J, Ginde AA, Castro M, Jayaweera D, Sulkowski M, Gentile N, McTigue K, Felker GM, Collins S, Dunsmore SE, Adam SJ, Lindsell CJ, Hernandez AF, Naggie S. JAMA Internal Medicine, 2025. PubMed 40658388 (opens in a new tab)
  19. Metformin for covid-19: systematic review and meta-analysis of randomised controlled trials. Chowdhury SR, Islam N, Zhou Q, Hasan MK, Chowdhury MR, Siemieniuk RA, Agarwal A, Brignardello-Petersen R, Agoritsas T, Olav Vandvik P, Zeraatkar D, Guyatt G. BMJ Medicine, 2025. PubMed 40433308 (opens in a new tab)
  20. Retraction notice to Effect of early treatment with metformin on risk of emergency care and hospitalization among patients with COVID-19: the TOGETHER randomized platform clinical trial [The Lancet Regional Health-Americas Volume 6, February 2022, 100142]. Reis G, Augusto Dos Santos Moreira Silv E, Medeiros Silv DC, Thabane L, Milagres AC, Ferreir TS, Quirino Dos Santos CV, Dias de Figueiredo Neto A, Callegari ED, Monteiro Savassi LC, Campos Simplicio MI, Ribeiro LB, Oliveira R, Harari O, Bailey H, Forrest JI, Glushchenko A, Sprague S, McKay P, Rayner CR, Ruton H, Guyatt GH, Mills EJ. Lancet Regional Health - Americas, 2025. PubMed 41220597 (opens in a new tab)
  21. Metformin hydrochloride extended-release tablets: prescribing information (DailyMed label). U.S. National Library of Medicine, DailyMed (FDA-approved labeling). FDA-approved drug label, 2026. Source (opens in a new tab)
  22. FDA Updates and Press Announcements on NDMA in Metformin. U.S. Food and Drug Administration. FDA Drug Safety Communication, 2021. Source (opens in a new tab)

Every change to this page is tracked in version control. View edit history. If you have conflicting research, we want to hear about it.

Spotted something wrong or out of date? Suggest a change.

Weekly research digest

New topics and updated research, once a week when there's something new. How it works