What medications can cause vitamin B12 deficiency?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: September 23, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Medications That Cause Vitamin B12 Deficiency

Metformin and proton pump inhibitors (PPIs) are the primary medications that cause vitamin B12 deficiency, with long-term use of these medications requiring regular monitoring of B12 levels to prevent potentially irreversible neurological complications.

Metformin

Metformin is strongly associated with vitamin B12 deficiency through several mechanisms:

  • Mechanism: Interferes with calcium-dependent ileal absorption of vitamin B12 1
  • Risk factors:
    • Duration of use (risk increases significantly after 4 years of treatment) 1
    • Higher doses (>1.5 pills daily) 1
    • Elderly patients 1

The FDA drug label for metformin explicitly acknowledges this risk, stating: "In metformin hydrochloride tablets clinical trials of 29-week duration, a decrease to subnormal levels of previously normal serum vitamin B12 levels was observed in approximately 7% of patients" 2.

Proton Pump Inhibitors (PPIs)

PPIs such as omeprazole, pantoprazole, and lansoprazole can cause B12 deficiency:

  • Mechanism: Reduced gastric acid impairs the release of B12 from food proteins, which is essential for absorption 1, 3
  • Risk factors:
    • Duration of use (especially >4 years) 3
    • Dose-dependent effect (higher doses increase risk) 1
    • Elderly patients 4

The FDA drug label for lansoprazole states: "Low vitamin B12 levels in the body can happen in people who have taken lansoprazole delayed-release capsules for a long time (more than 3 years)" 5.

H2-Receptor Antagonists

H2-blockers (such as ranitidine) can also cause vitamin B12 deficiency:

  • Mechanism: Similar to PPIs, they reduce gastric acid production needed for B12 absorption 3
  • Risk: About 50% of patients on prolonged acid suppression therapy (including H2-blockers) were found to be either "deficient" or "insufficient" in serum vitamin B12 levels 4

Clinical Implications and Monitoring

For Metformin Users:

  • Diabetes Care guidelines recommend monitoring vitamin B12 levels in patients taking metformin long-term 1
  • Specifically: "For those taking metformin long term, monitoring for vitamin B12 deficiency should be considered" 1
  • Measurement of B12 levels should be done:
    • Annually for hematologic parameters 2
    • Every 2-3 years for vitamin B12 levels 2

For PPI/H2-Blocker Users:

  • Consider monitoring B12 levels after 3-4 years of continuous use 3, 6
  • Patients on PPIs for >4 years showed a significant 30% decrease in B12 levels 6

Prevention and Management

  1. For patients on metformin:

    • Consider prophylactic B12 supplementation for high-risk patients
    • Monitor B12 levels annually, especially after 4 years of use 1
  2. For patients on PPIs/H2-blockers:

    • Consider adding acidic beverages during meals to enhance B12 absorption 7
    • Periodic monitoring of B12 levels, especially after 3 years of use 5
  3. Treatment options when deficiency occurs:

    • Oral supplementation (1500-2000 mcg daily) is effective for most patients 8
    • Intramuscular administration may be preferred for severe deficiency or neurological symptoms 9

High-Risk Populations Requiring Closer Monitoring

  • Elderly patients (>75 years) 8
  • Patients on metformin >4 months 8
  • Patients on PPIs >12 months 8
  • Vegans or strict vegetarians 8
  • Patients with malabsorption disorders 8
  • Patients with gastric or small intestine resections 8
  • Patients taking both metformin AND a PPI (combined risk)

Warning Signs of B12 Deficiency

Monitor for symptoms including:

  • Fatigue
  • Peripheral neuropathy
  • Cognitive changes ("brain fog")
  • Depression
  • Ataxia
  • Megaloblastic anemia 9

Early detection and treatment are crucial as untreated vitamin B12 deficiency may cause permanent degenerative lesions of the spinal cord 8.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.