Metformin treatment decreases the risk of developing type 2 diabetes mellitus in women with PCOS who exhibited impaired glucose tolerance at baseline. Diabetes mellitus and pregnancy
A total review of metformin use during pregnancy compared to insulin alone found good short-term safety for both the mother and baby, but unclear long-term safety. Several observational studies and randomized controlled trials found metformin to be as effective and safe as insulin for the management of gestational diabetes. Nonetheless, several concerns have been raised and evidence on the long-term safety of metformin for both mother and child is lacking. Compared with insulin, women with gestational diabetes treated with metformin gain less weight and are less likely to develop pre‐eclampsia during pregnancy. Babies born to women treated with metformin have less visceral fat, and this may make them less prone to insulin resistance in later life. The use of metformin for gestational diabetes resulted in smaller babies compared to treatment with insulin. However, despite initially lower birth weight, children exposed to metformin during pregnancy had accelerated growth after birth, and were heavier by mid-childhood than those exposed to insulin during pregnancy. This pattern of initial low birth weight followed by catch-up growth that surpasses comparative children has been associated with long-term cardiometabolic disease. Weight change
Metformin use is typically associated with weight loss. It appears to be safe and effective in counteracting  the weight gain caused by the antipsychotic medications olanzapine and clozapine.
Higher doses and prolonged use are associated with increased incidence of vitamin B12 deficiency, and some researchers recommend screening or prevention strategies. Lactic acidosis
Lactic acidosis almost never occurs with metformin exposure during routine medical care. Rates of metformin-associated lactic acidosis are about nine per 100,000 persons/year, which is similar to the background rate of lactic acidosis in the general population. A systematic review concluded no data exists to definitively link metformin to lactic acidosis.Metformin is generally safe in people with mild to moderate chronic kidney disease, with proportional reduction of metformin dose according to severity of estimated glomerular filtration rate (eGFR) and with periodic assessment of kidney function, (e.g., periodic plasma creatinine measurement). The FDA recommends avoiding the use of metformin in more severe chronic kidney disease, below the eGFR cutoff of 30 mL/minute/1.73 m2. Lactate uptake by the liver is diminished with metformin use because lactate is a substrate for hepatic gluconeogenesis, a process that metformin inhibits. In healthy individuals, this slight excess is cleared by other mechanisms (including uptake by unimpaired kidneys), and no significant elevation in blood levels of lactate occurs. Given severely impaired kidney function, clearance of metformin and lactate is reduced, increasing levels of both, and possibly causing lactic acid buildup. Because metformin decreases liver uptake of lactate, any condition that may precipitate lactic acidosis is a contraindication.