Yes — both can lower vitamin B12, and the evidence is reasonably strong. Long-term metformin use is consistently linked to reduced B12 levels in roughly 10–30% of users, and months-to-years of acid-suppressing drugs (especially proton pump inhibitors and H2 blockers) can also lower B12, while occasional use of a simple antacid tablet is unlikely to matter.
How each drug interferes
Vitamin B12 in food is bound to protein. Stomach acid and the enzyme pepsin release it, after which it binds to intrinsic factor (a protein made by the stomach) and is absorbed in the last part of the small intestine, the ileum.
- Acid reducers. Proton pump inhibitors (omeprazole, esomeprazole) and H2 blockers (famotidine) cut acid production, so less B12 is freed from food. Observational studies find that two or more years of daily use raises the odds of B12 deficiency, though the absolute risk in any one person is modest. Occasional calcium- or magnesium-based antacids (the chewable kind) have a much weaker effect because they don't shut down acid for long.
- Metformin. This diabetes drug appears to interfere with the calcium-dependent step that lets the B12–intrinsic factor complex attach to the ileum wall. The effect grows with higher doses and longer use — most studies find meaningful drops after about 3–4 years. This is one of the better-established drug–nutrient interactions, and many diabetes guidelines now recommend periodic B12 testing for people on metformin.
Important nuance: supplemental B12 (from pills or fortified foods) is not protein-bound, so acid suppression barely affects it. Metformin, by contrast, affects absorption of both food and supplement B12.
What to watch for and what to do
Early deficiency can be silent. Later signs include fatigue, tingling or numbness in hands and feet, balance problems, a sore tongue, and memory or mood changes. Nerve symptoms can become permanent if ignored, so don't wait them out.
Practical steps:
- Don't stop a prescribed medication on your own — ask your doctor or pharmacist whether a B12 blood test makes sense, particularly after a few years of use.
- If levels are low or borderline, a supplement is usually the fix. Oral B12 works for most people; injections are reserved for severe deficiency or absorption failure.
- Folic acid supplements can mask the blood signs of B12 deficiency while nerve damage continues — another reason to let a clinician interpret results.
- A registered dietitian can help if you also avoid animal foods, since plant diets supply essentially no B12.
Food sources of B12 (USDA figures)
All amounts below are USDA data, per 100 g unless noted. Adults need about 2.4 µg a day.
| Food | B12 per 100 g | Per typical serving |
|---|---|---|
| Salmon, Atlantic, farmed, raw | 3.2 µg | 2.7 µg per 3 oz (85 g) |
| Egg, whole, raw | 0.89 µg | ~0.45 µg per large egg (~50 g) |
| Greek yogurt, plain, lowfat | 0.52 µg | 1.0 µg per 7 oz container (200 g) |
| Milk, whole, 3.25% with added vitamin D | 0.45 µg | ~1.1 µg per cup (244 g) |
Eating more of these foods helps a healthy person stay topped up, but if metformin is blocking absorption in the gut, food alone may not be enough — that's a case for testing and a targeted supplement.