How acid reducers change absorption
Stomach acid helps release and absorb several nutrients, so medicines that suppress acid — especially proton pump inhibitors (PPIs) like omeprazole, esomeprazole, and lansoprazole — can reduce the absorption of some nutrients over time [1][2].
Vitamin B12
Stomach acid frees B12 from food so it can be absorbed. NIH notes that PPIs and other acid-suppressing drugs can reduce B12 absorption from food, and long-term use is associated with lower B12 status [1]. (Interestingly, B12 in supplements is less dependent on stomach acid, so a supplement can help when needed.) See vitamin B12 deficiency risk.
Magnesium
NIH reports that prescription PPIs 'can cause hypomagnesemia when taken for prolonged periods (typically more than a year)' [2]. The FDA has also issued a safety communication on low magnesium with long-term PPI use. Severe cases can affect the heart and muscles, so this isn't trivial.
The bigger picture
- Metformin is another medicine linked to lower B12 over time — see [nutrient depletion from medications](/learn/nutrient-depletion-from-medications).
- Don't stop a prescribed acid reducer on your own; many people need them. The point is monitoring and replacement when appropriate, not abrupt discontinuation.
Practical guidance
- If you take a PPI long-term, ask your provider whether B12 and magnesium should be checked periodically.
- Replace under guidance if levels are low, rather than self-prescribing high doses.
- Tell your provider about supplements and acid reducers together, since the interaction is about long-term status, not a single dose.