Skip to main content
All articles
Vitamins & Nutrients4 min read

Metformin and acid reflux drugs are medications that lower B12 and magnesium: what the evidence shows and when to test

Numia Care TeamOctober 23, 2026
A man cooking in a kitchen with fresh vegetables laid out on the counter

Yes: long-term metformin is linked to low vitamin B12, acid-reducing medications (proton pump inhibitors, or PPIs, and H2 blockers) are linked to low B12, and a year or more on a PPI has been linked to low magnesium. That's a reason to know your numbers, not to stop a medication.

BC's 2023 B12 guideline lists them as slow-acting risk factors, typically over 5 to 10 years. Numia Health, a physician-ordered, at-home blood testing service in Greater Vancouver, measures B12 and magnesium together on its Basic Nutrients panel.

Which medications are linked to low B12 or magnesium?

MedicationLinked toEvidence
MetforminLow B124.3% had low B12 at 5 years, against 2.3% on placebo (US Diabetes Prevention Program)
PPIs (omeprazole, pantoprazole and others)Low B1265% higher odds after 2+ years
H2 blockers (e.g. famotidine)Low B1225% higher odds after 2+ years
PPIsLow magnesiumReported after 1+ year; reversed after stopping (Health Canada)

In that US trial, each year of metformin use was linked to 13% higher odds of deficiency, about 1 in 5 metformin users were low or borderline-low at 5 years, and nerve problems (neuropathy) were more common in metformin users with low B12 (Aroda et al., 2016).

What do BC and Diabetes Canada say about testing?

BC's guideline, written for a publicly funded system that prioritises clinically indicated tests, doesn't support routine B12 testing without symptoms. Diabetes Canada lists a B12 test, "particularly with use of metformin," when nerve symptoms appear. The US trial's authors went further: routine B12 testing in metformin users "should be considered."

Real-world checks are uncommon: across 15 studies in a 2026 review, annual B12 testing generally reached fewer than 1 in 5 eligible metformin users, mostly prompted by symptoms (Parsonage et al., 2026). Health Canada has said PPI-related low magnesium "may be underdiagnosed." A Numia baseline gives you both numbers, and a retest shows the trend.

When should you see a physician now?

BC's guideline treats numbness, symmetric tingling, changes in how you walk and new memory or thinking problems (brain fog bloodwork) as red flags, warning that B12 deficiency "can cause preventable permanent injury." With these, see a physician promptly; a Numia panel is for baselines and tracking. Health Canada's magnesium cases included heart-rhythm problems, seizures and muscle spasms (tetany). Call 9-1-1 for a seizure, fainting, or a racing or irregular heartbeat.

Where does Numia fit?

Numia's Basic Nutrients panel measures B12 and magnesium with vitamin D, folate, zinc and iron markers, with no fasting needed. Instead of an appointment, lab visit, wait and follow-up, a licensed Canadian physician approves your requisition online in about 3 minutes, and a BC-licensed clinician does a 10-minute morning draw at home. Plain-English results arrive in the Numia app in 7 days, the Numia Companion, an AI that has read them, answers questions, and out-of-range results are physician-reviewed with next steps. An optional wellness consultation is available, and Numia is an HSA-eligible service. Numia sells testing, not treatment: any change to your medication stays with your prescriber.

Frequently asked questions

Does metformin cause B12 or magnesium deficiency?

Metformin is linked to low B12, especially with years of use. The magnesium link is observational only. Numia's Basic Nutrients panel measures both. Don't stop metformin on your own; talk to your prescriber.

Can acid reflux medication cause low B12 or low magnesium?

With long-term use, both links have been reported: two or more years of PPIs or H2 blockers with low B12 (BC says causation isn't established), and a year or more of PPIs with low magnesium.

Should I stop my PPI if my magnesium or B12 is low?

Not on your own. Health Canada reported magnesium returning to normal after PPIs were stopped, but whether to stop, switch or supplement is your prescriber's decision.

Sources9 references
  1. Aroda, V. R., Edelstein, S. L., Goldberg, R. B., Knowler, W. C., Marcovina, S. M., Orchard, T. J., Bray, G. A., Schade, D. S., Temprosa, M. G., White, N. H., Crandall, J. P., & Diabetes Prevention Program Research Group. (2016). Long-term metformin use and vitamin B12 deficiency in the Diabetes Prevention Program Outcomes Study. The Journal of Clinical Endocrinology & Metabolism, 101(4), 1754–1761. View source
  2. Bril, V., Breiner, A., Perkins, B. A., & Zochodne, D. (2018). Neuropathy (Chapter 31). In Diabetes Canada clinical practice guidelines. Diabetes Canada. View source
  3. Guidelines and Protocols Advisory Committee. (2023). Cobalamin (vitamin B12) and folate deficiency. BC Guidelines. British Columbia Ministry of Health. View source
  4. Lam, J. R., Schneider, J. L., Zhao, W., & Corley, D. A. (2013). Proton pump inhibitor and histamine 2 receptor antagonist use and vitamin B12 deficiency. JAMA, 310(22), 2435–2442. View source
  5. Mouchantaf, R. (2011). Proton pump inhibitors: Hypomagnesemia accompanied by hypocalcemia and hypokalemia. Canadian Adverse Reaction Newsletter, 21(3), 1–2. Health Canada. View source
  6. Numia Health. (n.d.). Basic Nutrients Panel. Retrieved September 25, 2026, from View source
  7. Numia Health. (n.d.). Home page. Retrieved September 24, 2026, from View source
  8. Parsonage, I., Wainwright, D., & Barratt, J. (2026). Vitamin B12 deficiency in long-term metformin use and clinician awareness: A scoping review. BMJ Open, 16(4), e113829. View source
  9. Waanders, F., Dullaart, R. P. F., Vos, M. J., Hendriks, S. H., van Goor, H., Bilo, H. J. G., & van Dijk, P. R. (2019). Hypomagnesaemia and its determinants in a contemporary primary care cohort of persons with type 2 diabetes. Endocrine, 67(1), 80–86. View source

Last updated October 23, 2026