VitMode

PPIs and Magnesium and B12 Deficiency: What the FDA and Clinical Studies Show

Proton pump inhibitors (PPIs) — omeprazole, pantoprazole, esomeprazole, and others — are among the most widely prescribed drugs in the world and are considered safe for short-term use. With long-term, chronic use the picture is more complex: the FDA issued a formal warning about magnesium deficiency risk, and a large case-control study published in JAMA found a significantly increased risk of vitamin B12 deficiency. This isn't a reason to panic or to stop the drug on your own — it's a reason to know when it's worth asking for a follow-up test.

PZdr Piotr ZielińskiOctober 5, 202613 min read
Table of contents

A drug many of us treat as a harmless routine

Proton pump inhibitors (PPIs) — omeprazole, pantoprazole, esomeprazole, lansoprazole, and similar compounds — are one of the most widely prescribed drug classes in the world. They quickly and effectively suppress stomach acid secretion, making them the first-choice treatment for gastroesophageal reflux disease, stomach and duodenal ulcers, and prevention of mucosal damage in patients taking nonsteroidal anti-inflammatory drugs. Several are available over the counter at lower doses, which further reinforces the perception that this is a virtually risk-free drug — something you can take "just in case" for years without needing periodic monitoring.

That picture is largely accurate for short-term use — a few weeks or months of therapy rarely carries meaningful risk. The problem begins with chronic use lasting years, which in clinical practice happens more often than the original indications would suggest — we cover the mechanism and broader risks of long-term PPI use in our knowledge-base entry on proton pump inhibitors. This article focuses specifically on two well-documented consequences of that chronic use: magnesium deficiency, which became the basis for a formal FDA warning, and vitamin B12 deficiency, confirmed in one of the largest case-control studies on the topic.

Both deficiencies share a mechanistic common denominator — they depend on the same strongly suppressed level of stomach acid that is the therapeutic target of PPIs — but they differ meaningfully in strength of evidence, typical time to onset, and how they're detected. It's worth understanding both differences rather than treating "PPIs cause deficiencies" as one undifferentiated warning.

The FDA warning: magnesium and proton pump inhibitors

A formal FDA safety communication from March 2011

The U.S. Food and Drug Administration (FDA) issued a safety communication in March 2011 stating that low magnesium levels in the blood can be associated with long-term use of proton pump inhibitors. The warning was based on a review of 38 cases from the Adverse Event Reporting System (FAERS) and 23 published case reports. Among the clinically serious events reported were tetany, seizures, tremors, laryngospasm, atrial fibrillation, and abnormal QT intervals on ECG.

This is an important distinction: the FDA communication wasn't based on a single large randomized trial, but on a pooled analysis of reports and case descriptions — a weaker type of evidence than an RCT, but consistent and clinically serious enough to justify a formal regulatory warning. The FDA recommended that physicians consider checking magnesium levels before starting long-term PPI therapy in patients expected to be on the drug for extended periods, as well as in those taking digoxin, diuretics, or other magnesium-lowering drugs concurrently.

Proton Pump Inhibitors and Hospitalization with Hypomagnesemia: A Population-Based Case-Control Study

Moderate evidence

Zipursky J, Macdonald EM, Hollands S, et al. · PLoS Medicine · 2014

A population-based case-control study from Ontario, Canada, included 366 patients hospitalized with hypomagnesemia and 1,464 matched controls. Current PPI use was associated with a 43% higher risk of hospitalization for low magnesium (adjusted odds ratio 1.43; 95% CI 1.06–1.93). The risk was especially pronounced in patients also taking diuretics — which is practically relevant, since PPIs and diuretics are often prescribed together in older adults with multiple conditions.

View study

It's worth noting that not all observational studies on this topic agree — some smaller analyses found no significant association, and one study (Chowdhry et al., 2018) found no relationship between PPI use and hypomagnesemia regardless of dose or concurrent diuretic use. That's a typical situation for a rare but potentially serious side effect of a drug used by millions of people: the signal is real and strong enough for a regulator to act on, but not every study confirms it at the same magnitude.

What the large JAMA study on vitamin B12 found

The second, independent thread concerns vitamin B12. The most frequently cited evidence in this area is a large case-control study published in JAMA in 2013, which compared people with newly diagnosed B12 deficiency to people without such a deficiency in terms of prior exposure to acid-suppressing drugs.

Proton Pump Inhibitor and Histamine 2 Receptor Antagonist Use and Vitamin B12 Deficiency

Moderate evidence

Lam JR, Schneider JL, Zhao W, Corley DA · JAMA · 2013

This case-control study included 25,956 patients aged 50 and older with newly diagnosed vitamin B12 deficiency and 184,199 control patients without such a deficiency, drawn from a large health care organization (Kaiser Permanente Northern California) between 1997 and 2011. Taking a PPI for 2 years or more was associated with a significantly higher risk of B12 deficiency (adjusted odds ratio 1.65; 95% CI 1.58–1.73). Higher doses (more than 1.5 pills a day) were associated with a stronger effect (OR 1.95) than lower doses (OR 1.63). Long-term use of H2 receptor antagonists (e.g. famotidine, ranitidine) was also associated with increased risk, though weaker than PPIs (OR 1.25).

View study

A large sample, but still an observational study

Moderate evidence

Nearly 26,000 cases of B12 deficiency is a very large number, giving the study substantial statistical power to detect even moderate effects. It's still a case-control study, though, not a randomized one — confounding factors can't be entirely ruled out (for example, people taking PPIs chronically may more often have other gastrointestinal conditions that independently impair B12 absorption). The dose-response relationship — a stronger association at higher doses, and a weaker association with H2RAs, which suppress stomach acid less strongly than PPIs — strengthens the case for a causal interpretation, though.

Why this happens at all — the mechanism

The mechanism behind both deficiencies stems from the same deliberate action of PPIs — strong, long-lasting suppression of hydrochloric acid secretion through irreversible blockade of the proton pump (H+/K+-ATPase) in the stomach's parietal cells. Because this blockade is irreversible, the effect lasts longer than the drug's own blood half-life would suggest — the body has to produce new proton pump molecules to restore acid secretion.

Vitamin B12 in food is bound to proteins, and its release — the first, necessary step of absorption — requires an acidic stomach environment and the action of pepsin, which itself needs low pH to be active. With strongly suppressed stomach acidity, this step is impaired even if the later steps of absorption (intrinsic factor, receptors in the terminal ileum) work normally. That differs from the B12 deficiency caused by metformin, which affects the final, calcium-dependent absorption step in the intestine rather than release of the vitamin from food — we cover that separately in our article on metformin and vitamin B12.

Magnesium is absorbed in the intestine through two mechanisms — passive paracellular diffusion and active transport via TRPM6/TRPM7 channels in the intestinal epithelium. The leading mechanistic hypothesis is that strong, chronic suppression of stomach acidity by PPIs may disrupt precisely this active, TRPM-channel-dependent step of intestinal magnesium absorption, though the exact molecular mechanism isn't yet fully established — unlike the relatively well-understood mechanism of B12 deficiency.

This isn't a reason to stop PPIs on your own

In patients with a clear medical indication (e.g. severe reflux disease, ulcers, NSAID prophylaxis), the benefits of continued treatment usually outweigh the risk of deficiencies, which are monitorable and reversible. Suddenly stopping PPIs after long-term use can also trigger a temporary rebound effect — increased acid secretion and a return of reflux symptoms — so any discontinuation or dose reduction should be planned together with a doctor.

Who is at the highest risk

Factors increasing the risk of magnesium or B12 deficiency with PPIs

  • Duration of use exceeding a year, and especially several years — risk increased with length of therapy in both studies, it wasn't a one-time effect
  • Higher daily PPI doses (more than 1.5 standard pills a day in the JAMA study was linked to a stronger effect on B12)
  • Concurrent diuretic use — in the Zipursky et al. study, hypomagnesemia risk was especially pronounced in this group
  • Concurrent digoxin use — low magnesium increases the risk of digoxin toxicity, one of the reasons for the FDA warning
  • Older age — the natural age-related decline in B12 and magnesium absorption adds to the drug's effect
  • Vegetarian or vegan diet — further deepens B12 deficiency risk independent of the PPI
  • Kidney disease — disrupts magnesium regulation and can mask or worsen deficiency symptoms

Check your profile

Wondering if your diet covers everything you need?

Instead of guessing, check your wider profile. Answer a few questions about your diet, lifestyle, sun exposure, and goals.

Takes about 2 minutesBased on scientific evidence

Recommendations take your answers and the strength of the scientific evidence into account. A supplement's popularity has no bearing on whether it gets recommended.

Symptoms easily blamed on something else

Myth

Muscle cramps, hand tremors, heart palpitations, or chronic fatigue in someone who has taken a PPI for years are probably "just stress" or a sign of aging, not something related to the reflux medication itself.

Fact

These same symptoms — muscle cramps and tremors, paresthesia, heart rhythm disturbances, fatigue, and in severe cases seizures or tetany — are classic symptoms of magnesium or B12 deficiency. In a patient on long-term PPI therapy, especially combined with diuretics or a plant-based diet, it's worth considering a magnesium and B12 test rather than automatically attributing these symptoms to stress, aging, or the reflux itself.

An additional diagnostic complication is that magnesium deficiency tends to be linked with secondary calcium and potassium deficiency (low magnesium impairs parathyroid hormone secretion and increases renal potassium loss), which can produce a complex, overlapping clinical picture that's hard to attribute to a single cause without appropriate blood tests.

What to actually do

Practical takeaways for people on long-term PPIs

  • If you've been on a PPI for more than a year, it's worth asking your doctor at your next visit about periodic magnesium and vitamin B12 testing — this still isn't a routine part of most monitoring schedules
  • Anyone also taking diuretics or digoxin should treat magnesium monitoring as a priority, in line with the FDA's 2011 recommendation
  • New symptoms of muscle cramps, tremors, heart rhythm disturbances, or unusual fatigue are worth reporting to your doctor as a possible sign of deficiency, not just progression of your underlying condition
  • At each follow-up visit, ask whether continuing the PPI at the same dose is still necessary, or whether a lower dose or "as-needed" therapy could work
  • If a deficiency is confirmed, supplementation usually normalizes magnesium or B12 levels effectively without needing to stop the PPI, if the indication for taking it remains valid
  • Never stop a PPI abruptly after long-term use without consulting your doctor — because of the rebound effect, tapering under medical supervision is usually better

Limitations of this evidence

What this evidence doesn't prove

The 2011 FDA warning was based on adverse event reports and case descriptions, not a large randomized trial — a weaker type of evidence, though concerning enough to justify a formal safety communication. The JAMA study on B12, while very large, is a case-control study, not an RCT, so confounding factors can't be entirely ruled out. Not all observational studies on magnesium agree — some found no association with PPIs regardless of dose. Both deficiencies affect a relatively small proportion of all PPI users, not the majority of patients, and neither study is a basis for stopping the drug on your own without medical consultation.

QuestionShort answer
Do PPIs lower magnesium levels?Yes, confirmed by an FDA warning (2011) and a population-based study — risk higher with concurrent diuretics
Do PPIs lower vitamin B12 levels?Yes, a JAMA study of ~210,000 people: OR 1.65 after 2+ years of use, dose-dependent
Is this a reason to stop PPIs?Not on your own — the risk is monitorable and reversible; continuation is a decision for your doctor
Who is at highest risk?People on PPIs for more than a year, at higher doses, especially with diuretics or digoxin
How often should magnesium and B12 be tested?No single standard, but periodic testing after a year or more of therapy is reasonable for at-risk groups

PPIs and magnesium and vitamin B12 at a glance

Our editorial recommendation

PPIs remain one of the safest and most effective tools for treating reflux disease and ulcers — this article doesn't change that. What changes is that with long-term use, two specific, well-described deficiencies — magnesium and vitamin B12 — stop being a theoretical possibility and become something worth periodically asking about, especially in higher-risk groups. A formal regulatory warning like the FDA's, combined with a large clinical study, is more than a single anecdote from the internet — it's a signal strong enough to factor into routine care, without tipping into excessive worry about a drug that's simply necessary for many patients.

A drug taken for years without questions isn't always a drug that's safe for years — sometimes it's just a drug that hasn't been discussed with a doctor in years.

Dr. Piotr Zieliński, VitMode editorial team

Frequently asked questions

In the JAMA study on B12, significantly higher risk was associated with taking a PPI for 2 years or longer. In its magnesium warning, the FDA pointed to cases after at least 3 months of use, though most of the serious cases described involved much longer therapy, a year or more. Short-term, few-week use of a PPI isn't associated with significant risk in these studies.

The studies this article is based on didn't systematically distinguish between individual drugs in this class — the FDA warning applies to the entire proton pump inhibitor class, not one specific drug. The mechanism (strong suppression of stomach acidity) is shared by all PPIs, so there's no strong evidence that one particular drug in this group is meaningfully safer than others in this respect.

There's no evidence that supplementing magnesium or vitamin B12 weakens a PPI's effect on stomach acidity — these are independent mechanisms. Starting supplementation, especially at higher doses, is still worth discussing with a doctor, particularly if you're taking other medications.

Not to the same degree — the FDA warning and the studies described here concern chronic use of PPIs, which suppress acid secretion much more strongly and for much longer than on-demand antacids. H2 receptor antagonists (e.g. famotidine), also available over the counter, were associated with increased B12 deficiency risk in the JAMA study, but weaker than PPIs (OR 1.25 versus 1.65).

Yes, in most cases appropriate magnesium or vitamin B12 supplementation effectively normalizes levels and relieves symptoms, usually without needing to stop the PPI if the indication for taking it remains valid. The longer a deficiency goes undetected, the greater the risk that some of its consequences (e.g. neurological effects from long-term B12 deficiency) become harder to reverse — which argues for early detection.

Yes — a plant-based diet already carries B12 deficiency risk, since this vitamin occurs naturally almost exclusively in animal products. Combined with a PPI, which additionally impairs the release of B12 from food in the stomach, the risk compounds, making regular B12 monitoring especially warranted in this group — similar to the situation with metformin.

Pantoprazole is sometimes noted as having a somewhat lower potential for drug interactions (e.g. with clopidogrel) than omeprazole, but there's no solid evidence that it differs meaningfully from other PPIs in terms of magnesium or B12 deficiency risk with long-term use — the mechanism behind these two specific deficiencies is shared across the whole drug class.

Sources

PZ

dr Piotr Zieliński

Specialist physician in endocrinology, scientific consultant

Piotr has practiced endocrinology for more than fifteen years, mostly in male hormonal disorders and metabolic health. He joined VitMode as a scientific consultant because, as he jokes, he got tired of explaining the same testosterone questions at every appointment and decided to write the answers down properly, once. He reviews content on hormone therapy, supplement pharmacology and drug interactions, making sure articles never turn into encouragement to self-supplement in situations that genuinely need diagnostics and medical supervision. His professional motto — "evidence first, enthusiasm second" — has come up more than once with a patient who arrived with a supplement plan they found online.

Related articles

Kolorowe kapsułki suplementów ułożone na marmurowej powierzchni

Micronutrient Deficiencies: The Most Common Symptoms — A Practical Guide to Five Usual Suspects

Chronic fatigue, trouble concentrating, muscle cramps, or hair loss have dozens of possible causes — but five micronutrient deficiencies account for a surprisingly large share of such symptoms in the general population. This article is a practical guide to which deficiency is worth suspecting given which symptoms — not so you can diagnose yourself, but so you know exactly what to ask your doctor and which blood test to request first.

14 min

September 16, 2026

Szklanka wody, tabletki i termometr rzucające cień na marmurowym blacie

Diuretics and Potassium and Magnesium Deficiency: Why Monitoring Matters

Loop diuretics (furosemide) and thiazide diuretics (hydrochlorothiazide) are a cornerstone of treating high blood pressure and heart failure — effective, inexpensive, and used for decades. Their mechanism of action, increasing sodium excretion in urine, inevitably comes with potassium loss, and in the case of thiazides, magnesium loss too. A large clinical study (SOLVD) found that simply taking a non-potassium-sparing diuretic was associated with higher risk of arrhythmic death in heart failure patients — while potassium-sparing drugs didn't carry that risk. This isn't a reason to avoid diuretics, which save lives, but a strong argument for regular electrolyte monitoring.

13 min

October 5, 2026

Trzy brązowe butelki z tabletkami magnezu na jasnoróżowym tle

Which Magnesium Should You Choose? Glycinate, Citrate or Lactate — Comparing the Forms

The supplement shelf can be overwhelming: glycinate, citrate, lactate, oxide, chelate... We compare the most popular forms of magnesium for absorption, price, and what each one is actually best suited for.

10 min

August 18, 2026

Zbliżenie białych kapsułek wysypujących się z pojemnika na fioletowym tle

Magnesium Glycinate or Citrate for Sleep: What Does the Evidence Actually Say?

Search "magnesium for sleep" and you'll immediately land on a confident recommendation: glycinate, never citrate, because it "absorbs better" and "doesn't cause a laxative effect." The problem is that no study in healthy people with poor sleep has ever compared these two forms head-to-head — not for sleep quality, not for absorption. What looks like settled supplement wisdom is actually an evidence gap that marketing has filled with its own narrative.

11 min

August 23, 2026

Related knowledge base entries

Comments (2)

  • KW

    Kasia W. 2 weeks ago

    Very clearly explained, especially the interactions section — I hadn't seen it laid out this well anywhere else.

  • MT

    Marek T. a month ago

    Are you planning to update this with the newest study from this year? I saw an interesting meta-analysis.