Doctors Note Logo

Published on: 9/15/2026

Does long-term omeprazole use cause vitamin B12 or magnesium deficiency?

Yes, long-term omeprazole use can lead to low vitamin B12 and low magnesium, because reduced stomach acid impairs B12 absorption and prolonged use (typically a year or more) is linked to hypomagnesemia. Warning signs include fatigue, tingling or numbness in the hands and feet, memory changes, muscle cramps, tremors, or an irregular heartbeat. Risk depends on several factors, including how long you have taken the medication, your dose, your age, and whether you also take diuretics or metformin, so see below to understand more. Deficiency is not inevitable, and blood testing, dietary changes, supplements, or a lower dose can often correct it, but never stop a prescribed acid reducer without medical guidance.

If you are taking omeprazole and noticing fatigue, cramps, tingling, or heart rhythm changes, a free, instant, online symptom check can help you sort out which symptoms may be medication related and which may point to something else, so you know whether to request lab work, adjust your treatment, or seek urgent care.

Last reviewed for medical accuracy: 09/14/2026

answer background

Explanation

Omeprazole Side Effects: Long-Term Use and Risk of Vitamin B12 and Magnesium Deficiency

Omeprazole is a proton pump inhibitor (PPI) commonly prescribed for acid-related conditions such as gastroesophageal reflux disease (GERD), peptic ulcers, and Zollinger–Ellison syndrome. While generally well tolerated, long-term use has been linked to reduced absorption of certain nutrients—most notably vitamin B12 and magnesium. Understanding these potential omeprazole side effects can help you and your doctor make informed decisions about treatment and monitoring.

How Omeprazole Can Affect Nutrient Absorption

Omeprazole works by suppressing stomach acid production. Adequate gastric acid is essential for the digestion and absorption of various vitamins and minerals:

  • Vitamin B12
    • Acid helps release B12 from food protein so it can bind intrinsic factor and be absorbed in the small intestine.
  • Magnesium
    • Acidic conditions promote passive and active magnesium uptake in the gut.

When acid levels remain low over months or years, the body’s ability to absorb these nutrients may fall, potentially leading to deficiencies.


Vitamin B12 Deficiency and Long-Term Omeprazole Use

Mechanism

  • Reduced gastric acidity impairs the cleavage of B12 from dietary proteins.
  • Smaller amounts of B12–intrinsic factor complex reach the terminal ileum for absorption.

How Common Is It?

  • Most studies suggest a gradual decline in B12 stores after at least 2 years of continuous PPI therapy.
  • Estimated incidence ranges from 2% to 5% among long-term users, though individual risk varies.

Who’s at Higher Risk?

  • Adults over age 60
  • People with marginal B12 stores (vegetarians/vegans)
  • Those on high doses (≥20 mg daily) for more than 2 years
  • Individuals with conditions affecting intrinsic factor (e.g., pernicious anemia)

Signs and Symptoms

Early B12 deficiency symptoms may be subtle. Watch for:

  • Fatigue, weakness
  • Pale or jaundiced skin
  • Tingling or numbness in hands and feet
  • Poor balance or coordination
  • Mood changes, memory issues

Over time, untreated B12 deficiency can lead to irreversible nerve damage and anemia.


Magnesium Deficiency and Long-Term Omeprazole Use

Mechanism

  • The exact process isn’t fully understood, but chronic acid suppression seems to hinder magnesium transport channels in the intestine.

How Common Is It?

  • Hypomagnesemia (low blood magnesium) affects up to 5% of patients on long-term PPI therapy.
  • Cases often appear after a year or more of continuous treatment, especially at higher doses.

Who’s at Higher Risk?

  • Concurrent use of diuretics, certain chemotherapy agents, or other medications that deplete magnesium
  • Preexisting low magnesium levels
  • Poor dietary intake of magnesium
  • Alcohol misuse or gastrointestinal disorders (e.g., Crohn’s disease)

Signs and Symptoms

Magnesium deficiency can be serious if not addressed. Look for:

  • Muscle cramps or twitching
  • Fatigue, weakness
  • Loss of appetite, nausea, vomiting
  • Abnormal heart rhythms (palpitations)
  • Seizures in severe cases

Monitoring and Prevention Strategies

If you and your doctor decide that omeprazole remains the best option, consider these proactive steps:

  1. Baseline and Periodic Testing

    • Measure serum vitamin B12 and magnesium levels before starting therapy.
    • Repeat testing annually or sooner if symptoms arise.
  2. Dietary Measures

    • Include B12-rich foods: meat, fish, dairy, fortified cereals.
    • Add magnesium-rich foods: nuts, seeds, whole grains, leafy greens, legumes.
  3. Supplementation

    • Vitamin B12 oral supplements (500–1,000 µg daily) or intramuscular injections if levels are low.
    • Magnesium supplements (e.g., magnesium citrate or glycinate) as directed by your doctor.
  4. Dose and Duration Review

    • Use the lowest effective omeprazole dose for the shortest necessary duration.
    • Consider “on-demand” or intermittent PPI use when appropriate.
  5. Alternate Therapies

    • H2 receptor antagonists (e.g., ranitidine, famotidine) for mild to moderate cases.
    • Lifestyle and dietary changes: weight management, elevating the head of bed, avoiding trigger foods.

When to Seek Help

Even minor symptoms can signal the start of a nutrient deficiency. Before things worsen:

If you experience severe symptoms—such as muscle spasms you can’t control, chest pain, fainting, or sudden neurological changes—seek medical attention immediately. Always speak to a doctor about anything that could be life threatening or serious.


Balancing Risks and Benefits

Omeprazole effectively relieves acid-related symptoms and promotes healing of ulcers. However:

  • Long-term therapy may increase the risk of vitamin B12 and magnesium deficiencies.
  • Regular monitoring and proactive nutritional support can minimize these risks.
  • Open communication with your doctor ensures you get the benefits of acid control without compromising overall health.

By staying informed and vigilant, you can continue to manage your digestive health while reducing the chance of nutrient shortfalls.


Talk with Your Doctor
Never adjust or stop omeprazole on your own. Discuss any concerns—especially persistent or worsening symptoms—with your healthcare provider. They can order the right tests, recommend supplements, or suggest safer long-term strategies tailored to your needs.

(References)

  • * Bradford GS, Taylor CT. Omeprazole and vitamin B12 deficiency. Ann Pharmacother. 1999 May;33(5):641-3. doi: 10.1345/aph.18199. PMID: 10369631.

  • * Sánchez DP, Guillén JJ, Torres AM, Sánchez FI. [Omeprazole for everybody?]. Aten Primaria. 2014 Jun-Jul;46(6):315-6. doi: 10.1016/j.aprim.2014.01.003. Epub 2014 Apr 1. PMID: 24697916; PMCID: PMC6983601.

  • * Shrimanker I, Bhattarai S. Electrolytes. 2026 Jan. PMID: 31082167.

  • * Gommers LMM, Hoenderop JGJ, de Baaij JHF. Mechanisms of proton pump inhibitor-induced hypomagnesemia. Acta Physiol (Oxf). 2022 Aug;235(4):e13846. doi: 10.1111/apha.13846. Epub 2022 Jun 14. PMID: 35652564; PMCID: PMC9539870.

  • * Kampuang N, Thongon N. Mass spectrometric analysis of TRPM6 and TRPM7 from small intestine of omeprazole-induced hypomagnesemic rats. Front Oncol. 2022;12:947899. doi: 10.3389/fonc.2022.947899. Epub 2022 Aug 29. PMID: 36110961; PMCID: PMC9468766.

  • * Mumtaz H, Ghafoor B, Saghir H, Tariq M, Dahar K, Ali SH, Waheed ST, Syed AA. Association of Vitamin B12 deficiency with long-term PPIs use: A cohort study. Ann Med Surg (Lond). 2022 Oct;82:104762. doi: 10.1016/j.amsu.2022.104762. Epub 2022 Sep 26. PMID: 36268318; PMCID: PMC9577826.

  • * Seah S, Tan YK, Teh K, Loh WJ, Tan PT, Goh LC, Malakar RD, Aw TC, Lau CS, Dhalliwal T, Kui SL, Kam JW, Khoo J, Tay TL, Tan E, Au V, Soh SB, Zhang M, King TF, Gani L, Puar TH. Proton-pump inhibitor use amongst patients with severe hypomagnesemia. Front Pharmacol. 2023;14:1092476. doi: 10.3389/fphar.2023.1092476. Epub 2023 Jan 30. PMID: 36794273; PMCID: PMC9922884.

  • * Choudhury A, Jena A, Jearth V, Dutta AK, Makharia G, Dutta U, Goenka M, Kochhar R, Sharma V. Vitamin B12 deficiency and use of proton pump inhibitors: a systematic review and meta-analysis. Expert Rev Gastroenterol Hepatol. 2023 May;17(5):479-487. doi: 10.1080/17474124.2023.2204229. Epub 2023 Apr 19. PMID: 37060552.

  • * Ansong S, Nwosu KU, Keke V, Rajoo S, Aboagye-Kumi M. Prolonged Proton Pump Inhibitor Use and Electrolyte Abnormalities: A Case Presentation and Literature Review. Cureus. 2025 Jul;17(7):e87795. doi: 10.7759/cureus.87795. Epub 2025 Jul 12. PMID: 40809666; PMCID: PMC12344600.

  • * Xiao Y, Fang J, Zhou Y, Zhou T. Detection and warning of drug-induced hypomagnesemia: a pharmacovigilance study of the FDA Adverse Event Reporting System. Magnes Res. 2024 Nov 1;38(2):56-69. doi: 10.1684/mrh.2025.0546. PMID: 41003544.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.