According to Gram Research analysis, taking metformin only when needed works just as well as taking it daily for preventing type 2 diabetes in women with prediabetes after gestational diabetes. A 2026 randomized trial of 376 women found that 11.5% taking intermittent metformin developed diabetes over three years compared to 11.1% taking it continuously—essentially identical rates. The as-needed approach also reduced vitamin B12 deficiency risk by 73%, suggesting it may be a safer, more flexible alternative when combined with lifestyle changes.

A new study of 376 women with prediabetes who had gestational diabetes during pregnancy found that taking metformin (a diabetes medication) only when needed worked just as well as taking it every day for preventing type 2 diabetes. Over three years, about 11% of women in both groups developed diabetes. The big bonus: women who took metformin only as needed had fewer vitamin B12 deficiency problems. Combined with lifestyle changes like diet and exercise, this “as-needed” approach could give women more flexibility while keeping them protected from diabetes.

Key Statistics

A 2026 randomized controlled trial of 376 women found that intermittent metformin (11.5% diabetes incidence) was non-inferior to continuous metformin (11.1% incidence) for preventing type 2 diabetes over three years in women with prediabetes after gestational diabetes.

Women taking metformin continuously experienced vitamin B12 deficiency at a rate of 13.5% compared to only 3.7% in the intermittent group, representing a 73% relative reduction in this common medication side effect.

Both the intermittent and continuous metformin groups showed similar improvements in weight loss, waist circumference, and blood sugar control, indicating that lifestyle intervention was the primary driver of diabetes prevention benefits.

The study met its pre-specified non-inferiority margin of 10 percentage points with an actual difference of only 0.4 percentage points between groups, providing strong evidence that as-needed metformin is an effective alternative to daily dosing.

The Quick Take

  • What they studied: Whether women with prediabetes and a history of gestational diabetes could take metformin only when their blood sugar got too high, instead of taking it every single day
  • Who participated: 376 women aged 18-45 years from three hospitals in China who had gestational diabetes during pregnancy and still had prediabetes 4-12 weeks after giving birth
  • Key finding: After three years, 11.5% of women taking metformin as needed developed type 2 diabetes compared to 11.1% taking it daily—essentially the same rate, meeting the study’s success criteria
  • What it means for you: If you have prediabetes after gestational diabetes, you might have the option to take metformin only when needed rather than daily, with similar diabetes prevention benefits and fewer side effects. However, this approach requires close monitoring with your doctor and should always be combined with lifestyle changes.

The Research Details

This was a randomized controlled trial, which is one of the strongest types of medical research. Researchers divided 376 women into two groups: one group took metformin every day without stopping, while the other group took it only when their blood sugar readings showed they needed it. All women also received lifestyle counseling about diet and exercise. The study lasted three years, and researchers tracked how many women in each group developed type 2 diabetes.

The “intermittent” group (taking metformin as needed) started with lifestyle changes alone. If their blood sugar stayed normal, they didn’t take metformin. If their blood sugar crept up into the prediabetic range, they started metformin. If their blood sugar improved back to normal, they stopped the medication. The “continuous” group started with lifestyle changes, and when that wasn’t enough, they began metformin and kept taking it throughout the study.

This design is important because it tests whether we can be smarter about medication use—taking it only when the body really needs it, rather than giving everyone the same treatment regardless of their current health status.

This research matters because gestational diabetes (diabetes during pregnancy) puts women at high risk for developing type 2 diabetes later in life. Metformin is a common prevention medication, but taking it daily can cause side effects like vitamin B12 deficiency. If an as-needed approach works just as well, women could avoid unnecessary medication while still staying protected. This could improve quality of life and reduce healthcare costs.

This study was well-designed with random assignment to groups, which reduces bias. It was conducted at multiple hospitals in China, making results more reliable. The study followed women for a full three years, which is long enough to see real differences in diabetes development. However, the study was open-label (participants knew which group they were in), which could introduce some bias. The researchers used clear, pre-specified success criteria before starting the study, which is a sign of good scientific practice.

What the Results Show

The main finding was that both approaches worked almost identically. In the intermittent group, 11.5% of women developed type 2 diabetes over three years. In the continuous group, 11.1% developed diabetes. The difference was only 0.4 percentage points, which is well within the study’s acceptable margin of 10 percentage points. This means the as-needed approach was “non-inferior”—it worked just as well as the daily approach.

Beyond diabetes prevention, the two groups showed similar improvements in other health measures. Both groups lost weight, reduced their waist circumference, and improved their blood sugar control. These improvements came mainly from the lifestyle intervention (diet and exercise changes), not from differences in how metformin was used.

The most important difference between groups was in side effects. Women taking metformin continuously had a vitamin B12 deficiency rate of 13.5%, while women in the intermittent group had only a 3.7% deficiency rate. This is a significant advantage for the as-needed approach, since vitamin B12 deficiency can cause nerve damage and other health problems if left untreated.

Secondary outcomes measured included how many women’s prediabetes completely went away (remission). Both groups showed similar remission rates, meaning the as-needed approach didn’t sacrifice long-term blood sugar control. Changes in body weight, BMI, waist circumference, and various blood sugar measurements were also similar between groups, confirming that the lifestyle intervention was the main driver of health improvements, not the metformin strategy.

This study builds on previous research showing that lifestyle changes (diet and exercise) are highly effective for preventing type 2 diabetes in women with gestational diabetes history. The new finding is that metformin can be used more flexibly than previously thought. Earlier studies typically used continuous metformin, but this research suggests that an as-needed approach might be equally effective while reducing medication exposure and side effects. This aligns with a growing trend in medicine toward personalized, flexible treatment strategies.

The study has several important limitations. First, it was conducted only in China, so results may not apply equally to women in other countries with different genetics or healthcare systems. Second, the study was open-label, meaning participants knew which group they were in, which could affect their behavior and reporting. Third, while 376 women is a reasonable sample size, the study had relatively few diabetes cases (about 42 total), which limits statistical power. The researchers themselves noted that a larger study with more diabetes cases would be needed to confirm these findings. Finally, the study only included women aged 18-45, so results don’t apply to older women.

The Bottom Line

For women with prediabetes after gestational diabetes, an as-needed metformin approach combined with lifestyle changes appears to be a reasonable option with strong evidence support. However, this should only be pursued under close medical supervision with regular blood sugar monitoring. Lifestyle changes (healthy diet, regular exercise, weight loss) remain the foundation of diabetes prevention and should be the first priority. The as-needed metformin approach may be particularly attractive for women concerned about vitamin B12 deficiency or medication side effects.

This research is most relevant to women aged 18-45 who had gestational diabetes during pregnancy and currently have prediabetes. Women who are concerned about long-term medication side effects, those with vitamin B12 deficiency risk, or those who prefer to minimize medication use may find this approach appealing. However, women with severe prediabetes or other risk factors for diabetes should discuss with their doctor whether continuous metformin might be better. This research does not apply to men or to people with type 2 diabetes already diagnosed.

The study followed women for three years, so that’s the timeframe over which benefits were measured. However, diabetes prevention is a long-term process. Women should expect to see improvements in blood sugar control within weeks to months of starting lifestyle changes, but the full benefit of preventing diabetes develops over years. Regular monitoring every 3-6 months is important to catch any changes in blood sugar status early.

Frequently Asked Questions

Can I take metformin only when I need it instead of every day?

A 2026 study of 376 women found that taking metformin only when blood sugar rises works as well as daily doses for preventing type 2 diabetes. However, this requires close monitoring with your doctor and regular blood sugar checks. Lifestyle changes remain essential regardless of medication approach.

What are the side effects of taking metformin continuously?

The most common serious side effect is vitamin B12 deficiency, which occurred in 13.5% of women taking metformin daily in this study. Symptoms include numbness, tingling, and fatigue. An as-needed approach reduced this risk to 3.7%, suggesting flexible dosing may be safer long-term.

How effective is lifestyle change alone for preventing diabetes after gestational diabetes?

Both groups in this study improved significantly through lifestyle changes (diet and exercise). The similar outcomes between intermittent and continuous metformin groups suggest lifestyle intervention is the foundation of prevention. Metformin appears to be a helpful addition but not a replacement for healthy habits.

How often do I need blood sugar checks if I take metformin as needed?

The study doesn’t specify exact monitoring frequency, but regular checks are essential to know when to start or stop metformin. Most doctors recommend checking fasting blood glucose at least monthly, with quarterly reviews to assess trends and adjust treatment as needed.

Does this study apply to women over 45 or men with prediabetes?

This study only included women aged 18-45 with prior gestational diabetes, so results may not apply to older women or men. Different populations may need different treatment approaches. Discuss with your doctor whether these findings are relevant to your specific situation.

Want to Apply This Research?

  • Track fasting blood glucose readings weekly and log metformin doses taken. Create alerts when blood glucose approaches prediabetic thresholds (100-125 mg/dL fasting) to prompt discussion with your doctor about starting or continuing metformin.
  • Use the app to log daily diet choices, exercise minutes, and weight. Set reminders for regular blood sugar checks and doctor appointments. Create a simple dashboard showing your three-month trend in blood glucose, weight, and waist circumference to visualize progress from lifestyle changes.
  • Establish a baseline of current blood glucose, weight, and waist circumference. Check blood glucose monthly and weight weekly. Review trends quarterly with your healthcare provider to determine if metformin is needed or can be discontinued. Track any symptoms of vitamin B12 deficiency (numbness, tingling, fatigue) and report to your doctor.

This research summary is for educational purposes only and should not replace professional medical advice. The findings apply specifically to women aged 18-45 with prediabetes after gestational diabetes. Before making any changes to metformin use or diabetes prevention strategy, consult with your healthcare provider. Individual results may vary based on genetics, lifestyle, and other health factors. This study was conducted in China and may not apply equally to all populations. Always work with your doctor to develop a personalized diabetes prevention plan.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: The efficacy of intermittent metformin plus lifestyle intervention for diabetes prevention in women with prediabetes and prior gestational diabetes: a randomized clinical, non-inferiority trial.BMC medicine (2026). PubMed 42443901 | DOI