Which medications are associated with 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: October 17, 2026 • View editorial policy

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.

Medications Associated with Vitamin B12 Deficiency

Metformin is the most strongly and consistently associated medication with vitamin B12 deficiency, followed by proton pump inhibitors (PPIs) and H2 receptor antagonists (H2RAs), with several antiepileptic drugs also implicated.

Primary Offending Medications

Metformin (Strongest Evidence)

  • Metformin carries a 2.5-2.9 fold increased risk of B12 deficiency in elderly patients 1
  • The risk is dose-dependent and duration-dependent:
    • Higher doses (>1.5 pills/day) show greater association
    • Use for ≥2 years significantly increases risk
    • Risk rises substantially after 5 years of continuous use 2
  • The association persists even after adjusting for confounding factors 3
  • Metformin reduces serum B12 by 19-29% in diabetic patients 3

Clinical Pitfall: The MHRA has issued specific safety advice regarding metformin and reduced vitamin B12, yet monitoring recommendations remain inconsistent across guidelines 4. Don't wait for symptoms—periodic screening is justified in all long-term metformin users.

Acid-Suppressing Medications

  • PPIs: 2+ years of use increases risk 1.65-fold (OR 1.65,95% CI: 1.58-1.73) 5
    • Higher doses show stronger association
    • The effect is modest but consistent across studies 6
  • H2 Receptor Antagonists: 2+ years of use increases risk 1.25-fold (OR 1.25,95% CI: 1.17-1.34) 5

Both suppress gastric acid production, which is essential for cleaving B12 from dietary proteins.

Antiepileptic Drugs

The following AEDs are associated with reduced B12 or folate levels 4, 7:

  • Phenobarbital - directly lowers B12 levels
  • Pregabalin - associated with reduced B12
  • Primidone - lowers both B12 and folate
  • Carbamazepine, gabapentin, oxcarbazepine, phenytoin, topiramate (primarily affect folate, but can impact B12 indirectly through elevated homocysteine)

Important nuance: Valproate actually increases B12 levels compared to controls 7, making it an exception among AEDs.

Other Medications Listed in Guidelines

The NICE 2024 guideline 4 also identifies:

  • Colchicine - interferes with B12 absorption in the ileum

High-Risk Populations Requiring Vigilant Monitoring

When medications are combined with other risk factors, the risk compounds synergistically 3:

  • Elderly patients (>65 years)
  • Vegans/vegetarians on metformin or PPIs
  • Patients on multiple interacting medications
  • Those with concomitant pantoprazole use alongside metformin (adjusted OR 2.41) 2
  • Patients with autoimmune conditions, atrophic gastritis, or celiac disease already on these medications

Monitoring Algorithm

For metformin users specifically:

  1. Check baseline B12 before initiating therapy
  2. Recheck annually in all patients on metformin ≥1 year
  3. Recheck every 6 months if:
    • Duration >5 years
    • Dose >1.5 pills/day
    • Elderly (>65 years)
    • Vegan/vegetarian diet
    • Concomitant PPI/H2RA use

For PPI/H2RA users:

  • Consider B12 screening after 2+ years of continuous use, especially if high-dose

For antiepileptic drug users:

  • Screen B12 and folate at baseline and annually, particularly with phenobarbital, pregabalin, or primidone

Critical Caveat About Testing

While the 2024 NICE guideline 4 discusses active B12 (holotranscobalamin) as theoretically more accurate than total B12, either test is acceptable as first-line when clinical suspicion exists—the key is to actually test, not to delay testing while debating which assay to use. Active B12 costs 9 times more (£18 vs £2) with longer turnaround times, without definitive evidence supporting mandatory use over total B12.

The irreversible neurological damage from undiagnosed B12 deficiency far outweighs any theoretical advantage of one test over another 3. Use whichever test your laboratory offers readily, and confirm indeterminate results with methylmalonic acid (MMA) if needed 4.

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.