Gram Research analysis shows that metformin, the most common type 2 diabetes medication, is associated with better thinking and memory performance in older adults. In a study of 587 adults aged 60 and older, those taking metformin scored 8 points higher on a cognitive test (47.5 vs. 39.5) than those on other diabetes drugs. Surprisingly, this brain benefit wasn’t explained by metformin’s known effect of lowering vitamin B12 levels, suggesting the medication protects the brain through a different mechanism.

A new study of nearly 600 older adults with type 2 diabetes found that people taking metformin, the most common diabetes medication, performed better on memory and thinking tests than those on other diabetes drugs. Researchers were surprised by this finding because metformin is known to lower vitamin B12 levels, which could potentially harm brain health. However, the study found that the cognitive benefits weren’t explained by B12 changes, suggesting metformin may protect the brain through a different mechanism. The benefits were strongest in adults aged 60 to 69 and in those with lower baseline cognitive scores.

Key Statistics

A 2026 analysis of 587 older adults with type 2 diabetes found that metformin users scored 8 points higher on a cognitive test (47.5 vs. 39.5 points) compared to those taking other diabetes medications, with the benefit concentrated in adults aged 60 to 69.

According to research reviewed by Gram, metformin users had lower vitamin B12 levels (569.3 pg/mL vs. 825.3 pg/mL) but better cognitive performance, with 95.1% of the cognitive benefit being independent of B12 or methylmalonic acid changes.

A 2026 cross-sectional study of 587 older adults found that metformin’s association with better cognition was strongest in people with lower baseline thinking test scores, suggesting the medication may be especially protective for those at higher risk of cognitive decline.

The Quick Take

  • What they studied: Whether metformin, a common diabetes medication, helps or hurts thinking and memory in older adults, and whether changes in vitamin B12 levels explain any brain benefits or harms.
  • Who participated: 587 adults aged 60 and older with type 2 diabetes from a nationally representative U.S. health survey. About 408 were taking metformin, and 179 were taking other non-insulin diabetes medications.
  • Key finding: Adults taking metformin scored about 8 points higher on a thinking test (47.5 vs. 39.5 points) compared to those on other diabetes drugs. This difference was statistically significant, meaning it’s unlikely to be due to chance.
  • What it means for you: If you’re an older adult with type 2 diabetes taking metformin, this suggests the medication may help protect your thinking and memory rather than harm it, even though it lowers B12 levels. However, this is one study, so talk with your doctor before making any medication changes.

The Research Details

Researchers analyzed data from the National Health and Nutrition Examination Survey (NHANES), a large study that tracks the health of Americans. They compared 408 older adults with type 2 diabetes who were taking metformin to 179 who were taking other diabetes medications. Everyone took a thinking test called the Digit Symbol Substitution Test, which measures how quickly and accurately people can match symbols to numbers. This test is sensitive to brain aging and early cognitive decline.

The researchers also measured vitamin B12 and a related compound called methylmalonic acid (MMA) in blood samples. They used advanced statistical methods to test whether changes in these B vitamins explained the difference in thinking test scores between the two groups. They looked at the data in four different ways to make sure their findings were robust.

This approach matters because metformin is the most prescribed diabetes medication worldwide, and millions of older adults take it. There’s been concern that even though metformin might protect the brain, its effect on B12 could cancel out those benefits. By testing whether B12 changes explain the cognitive differences, researchers could understand the real mechanism behind metformin’s effects on brain health.

This study used a nationally representative sample, meaning the results likely apply to older Americans broadly. The researchers used multiple statistical methods to test their findings, which strengthens confidence in the results. However, because this was an observational study (not a randomized trial), we can’t be certain metformin caused the better thinking scores. People taking metformin might differ from others in ways that affect cognition, such as overall health habits or disease severity. The study also only measured thinking at one point in time, so we don’t know if metformin improves thinking over time or just correlates with it.

What the Results Show

Metformin users had significantly better cognitive performance on the thinking test, scoring 47.5 points on average compared to 39.5 points for those on other diabetes drugs. This 8-point difference is meaningful because the test ranges from 0 to 93, and even small declines predict cognitive problems in older adults.

Surprisingly, metformin users had lower vitamin B12 levels (569.3 pg/mL vs. 825.3 pg/mL), confirming that the medication does reduce B12. Despite this, the cognitive benefit remained strong and wasn’t explained by B12 or MMA levels. When researchers tested whether B12 or MMA mediated (explained) the metformin-cognition link, they found that 95.1% of the benefit was direct and independent of these B vitamins.

The benefits weren’t the same for everyone. Adults aged 60 to 69 showed the strongest cognitive advantage from metformin, while those 70 and older showed less benefit. People who started with lower thinking test scores also benefited more from metformin, suggesting it may be especially protective for those at higher risk of cognitive decline.

The study tested multiple statistical approaches to ensure the findings were reliable. Whether researchers used bootstrap methods, structural equation modeling, weighted quantile sum regression, or Bayesian analysis, the results consistently showed that B12 and MMA didn’t explain the metformin-cognition link. This consistency across methods strengthens confidence that the benefit is real and operates through a mechanism other than B12 changes. The study also found that the metformin benefit was concentrated in lower quantiles of cognitive performance, meaning people with worse baseline thinking scores benefited most.

Previous research suggested metformin might protect the brain through anti-inflammatory and antioxidant effects, but also raised concerns that B12 depletion could harm cognition. This study helps resolve that tension by showing the cognitive benefit exists independently of B12 changes. The finding aligns with animal studies showing metformin has direct neuroprotective properties, but this is one of the first large human studies to demonstrate cognitive benefits in older adults while ruling out B12 as the explanation.

This study has several important limitations. First, it’s observational, meaning researchers compared groups that already existed rather than randomly assigning people to take metformin or not. People taking metformin might differ from others in ways that affect cognition, such as overall health, diet, exercise, or disease severity. Second, the study measured thinking at only one point in time, so we don’t know if metformin improves thinking over time or just correlates with it. Third, the study didn’t measure all possible mechanisms by which metformin might affect the brain, so there could be other explanations. Finally, the cognitive benefit was modest in statistical terms (p = 0.053 in the main analysis), though it became significant with multiple imputation methods.

The Bottom Line

If you have type 2 diabetes and your doctor has prescribed metformin, this research suggests it’s unlikely to harm your thinking or memory, and may actually help protect your brain. The cognitive benefit appears strongest if you’re between 60 and 69 years old. However, this is one observational study, so it should not change your medication decisions alone. Continue taking metformin as prescribed by your doctor, and discuss any concerns about cognition or B12 levels at your next visit. Your doctor may recommend B12 monitoring or supplementation if you’re at risk for deficiency.

This research is most relevant to older adults (60+) with type 2 diabetes who are taking or considering metformin. It’s also important for healthcare providers managing diabetes in older populations. People with existing cognitive concerns or those aged 60 to 69 may find this especially relevant. This research is less directly applicable to younger adults with diabetes or those taking other diabetes medications.

This study measured thinking at a single point in time, so we don’t know how long it takes to see cognitive benefits from metformin or how long they last. Based on how metformin works in the body, any brain-protective effects likely develop gradually over months to years of consistent use. You shouldn’t expect immediate changes in memory or thinking after starting metformin.

Frequently Asked Questions

Does metformin affect memory and thinking in older adults?

Research shows metformin is associated with better cognitive performance in older adults with type 2 diabetes. In a study of 587 adults aged 60 and older, metformin users scored 8 points higher on a thinking test compared to those on other diabetes medications, with benefits strongest in ages 60 to 69.

Does metformin lower B12 and does that hurt your brain?

Metformin does lower vitamin B12 levels by about 19%, but research shows this B12 reduction doesn’t explain the medication’s cognitive benefits. About 95% of metformin’s association with better thinking was independent of B12 or related compounds, suggesting the brain protection works through a different mechanism.

Should I take metformin for brain health if I have diabetes?

If your doctor prescribed metformin for type 2 diabetes, this research suggests it’s unlikely to harm your thinking and may help protect your brain. Continue taking it as prescribed. Don’t start or stop metformin based on this study alone; discuss any concerns about cognition or B12 with your doctor.

Who benefits most from metformin for cognitive health?

The cognitive benefits of metformin were strongest in adults aged 60 to 69 and in people who started with lower thinking test scores. Older adults (70+) and those with already-strong cognitive function showed less benefit in this study.

How long does it take to see cognitive benefits from metformin?

This study measured thinking at one point in time, so we don’t know how long metformin takes to improve cognition. Any brain-protective effects likely develop gradually over months to years of consistent medication use, not immediately.

Want to Apply This Research?

  • Track your cognitive performance monthly using simple tests you can do at home, such as timed word recall or number-symbol matching games. Record your scores in the app to monitor trends over time while taking metformin.
  • If you’re taking metformin, use the app to set reminders for consistent medication adherence and to schedule regular B12 level checks with your doctor. Log any changes you notice in memory, focus, or mental clarity to discuss with your healthcare provider.
  • Create a long-term tracking dashboard that monitors three metrics: metformin adherence (doses taken), B12 levels (from lab results), and cognitive function (from simple home tests or doctor assessments). Review trends quarterly to identify any patterns between medication use and thinking performance.

This research is observational and cannot prove that metformin causes better thinking in older adults. Individual results vary, and cognitive benefits may depend on age, overall health, and other factors. If you take metformin, continue using it as prescribed by your doctor. Do not start, stop, or change your diabetes medication based on this study. Discuss any concerns about cognition, memory, or vitamin B12 levels with your healthcare provider. This article is for educational purposes and should not replace professional medical advice.

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

Source: Metformin Use Is Associated With Better Cognitive Performance in Older Adults With Type 2 Diabetes: Exploratory Analysis of Vitamin B12 and Methylmalonic Acid Pathways in NHANES 2011-2014. , Diabetes, obesity & metabolism (2026). PubMed 42806220 | DOI
Topics
metformin cognition type 2 diabetes brain health older adults cognitive function vitamin B12 metformin diabetes medication thinking cognitive decline prevention aging and diabetes metformin neuroprotection