Doctors Note Logo

Published on: 9/13/2026

Does taking omeprazole every day lower my magnesium or vitamin B12?

Yes, long-term daily omeprazole use can lower both magnesium and vitamin B12, though the risk depends on how long you have been taking it, your dose, your diet, and other medications such as diuretics. Low magnesium (hypomagnesemia) usually appears after a year or more of use and may cause muscle cramps, tremors, irregular heartbeat, fatigue, or dizziness, while B12 deficiency develops more slowly and can cause numbness, tingling, weakness, memory changes, or a sore tongue. Because stomach acid is needed to absorb both nutrients, reduced acid production is the underlying reason these levels can fall. Several important factors, warning signs, and monitoring recommendations are outlined below, so review the complete answer rather than the summary alone before making any changes to your medication.

If you have been on omeprazole daily and are noticing cramps, tingling, unusual fatigue, or heart palpitations, it is worth clarifying whether a nutrient deficiency, your reflux itself, or something unrelated is driving your symptoms, since each points to a very different next step. A free, instant, online symptom check can help you organize what you are experiencing, see which possibilities fit best, and understand whether you should ask your doctor for magnesium or B12 blood testing.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Does daily omeprazole use lower my magnesium or vitamin B12?

Omeprazole is one of the most prescribed proton pump inhibitors (PPIs), commonly used to treat heartburn, gastroesophageal reflux disease (GERD) and stomach ulcers. Like all medications, it carries potential omeprazole side effects—among them, concerns about low magnesium (hypomagnesemia) and vitamin B12 deficiency when taken long-term. This guide reviews what the research shows, who’s most at risk, and practical steps you can take.


How omeprazole can affect nutrient absorption

Omeprazole works by blocking acid production in your stomach. Less acid can ease reflux symptoms, but stomach acid is also part of how your body:

  • Frees minerals (like magnesium) from food so they can be absorbed
  • Releases vitamin B12 from proteins in meat, fish and dairy

When acid production is suppressed over months or years, some people develop deficiencies.


Magnesium: why low levels can happen

Evidence and mechanisms

  • FDA warning (2011): Long-term PPI use (over 3 months) has been linked to serious hypomagnesemia.
  • Reduced absorption: Stomach acid helps dissolve magnesium salts. Lower acid may mean less magnesium uptake in the small intestine.
  • Uncertain exact pathway: Research suggests PPIs may also affect intestinal transport proteins for magnesium.

Who’s most at risk?

  • People on high-dose or very long-term omeprazole (over 6 months)
  • Those taking other medications that lower magnesium (e.g., diuretics)
  • Individuals with poor dietary intake of magnesium
  • Older adults, who naturally absorb less magnesium

Signs and symptoms of low magnesium

Mild hypomagnesemia may be symptom-free. More significant drops can cause:

  • Muscle cramps, tremors or weakness
  • Fatigue or general weakness
  • Heart rhythm changes (palpitations)
  • Numbness or tingling in hands and feet

Vitamin B12: why deficiency can occur

Evidence and mechanisms

  • Acid-dependent release: Vitamin B12 binds to food proteins and needs stomach acid to separate.
  • Intrinsic factor interaction: Once released, B12 attaches to intrinsic factor (a stomach protein) for intestinal absorption. Low acid may alter intrinsic factor activity.
  • Studies: Clinical trials and observational studies report lower B12 levels in people on PPIs for over 2 years, especially at higher doses.

Who’s most at risk?

  • Older adults (50+)—natural acid production declines with age
  • Vegans or vegetarians (less B12 in plant foods)
  • People on strict long-term PPI therapy (particularly >2 years)
  • Those with underlying digestive disorders (e.g., atrophic gastritis)

Signs and symptoms of B12 deficiency

B12 deficiency can be subtle at first, then progress to:

  • Fatigue or weakness
  • Pale skin (from anemia)
  • Numbness, tingling, or “pins and needles” in hands/feet
  • Balance problems or difficulty walking
  • Mood changes (irritability, depression)
  • Memory or concentration issues

Monitoring and prevention

  1. Discuss duration and dose
    • Review with your doctor whether you need continuous omeprazole or if stepping down to a lower dose/alternative therapy is possible.

  2. Periodic blood tests
    Serum magnesium and serum B12 levels can identify subclinical deficiencies before severe symptoms occur.
    • Your healthcare provider can recommend how often to test based on your risk factors.

  3. Dietary sources

    • Magnesium-rich foods:
      • Leafy greens (spinach, Swiss chard)
      • Nuts and seeds (almonds, pumpkin seeds)
      • Whole grains (brown rice, oats)
    • Vitamin B12-rich foods:
      • Lean meats (beef, poultry)
      • Fish and shellfish (salmon, tuna, clams)
      • Dairy products (milk, yogurt, cheese)
    • If you follow a vegetarian or vegan diet, you may need fortified foods (cereals, plant milks) or supplements.
  4. Supplements when needed
    • If tests show low magnesium or B12, your doctor may recommend:

    • Oral magnesium supplements or, in severe cases, intravenous magnesium
    • High-dose oral B12 or monthly B12 injections
  5. Lifestyle considerations
    • Avoid excessive alcohol—can worsen magnesium loss.
    • Maintain a balanced diet rich in fruits, vegetables and lean proteins.
    • Stay hydrated; adequate water intake supports overall mineral balance.


When to seek help

If you experience any of the following, speak to a healthcare professional promptly:

  • Persistent muscle cramps, tremors or severe weakness
  • New or worsening numbness/tingling in your hands or feet
  • Signs of anemia (pale skin, extreme fatigue, shortness of breath)
  • Heart palpitations or irregular heartbeat
  • Sudden mood, memory or balance changes

For non-urgent concerns or symptom guidance, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.


Balancing benefits and risks

Omeprazole can be a highly effective way to manage acid-related conditions. For most people, short-term use (weeks to a few months) carries minimal risk of nutrient deficiencies. Risks increase with higher doses and long-term therapy:

  • Short term (up to 8 weeks): Low risk for magnesium or B12 issues
  • Medium term (3–12 months): Some may start to show mild lab changes
  • Long term (>1–2 years): Greater likelihood of clinically significant deficiencies

Work with your doctor to find the lowest effective dose and duration. If long-term therapy is unavoidable, plan a strategy for monitoring and nutritional support.


Key takeaways

  • Omeprazole side effects can include reduced absorption of magnesium and vitamin B12 when used long term.
  • Who’s at higher risk? Older adults; high-dose or prolonged users; those on certain diuretics or with poor diets.
  • Monitor with periodic blood tests; adjust dose or consider alternative treatments when possible.
  • Diet and supplements can help maintain healthy magnesium and B12 levels.
  • Act early on any new symptoms such as muscle cramps, numbness or fatigue.

Always speak to your doctor about any serious or life-threatening concerns. They can tailor testing and treatment to your individual needs and ensure safe, effective management of your condition.

(References)

  • * Puri PK, Lountzis NI, Tyler W, Ferringer T. Hydroxychloroquine-induced hyperpigmentation: the staining pattern. J Cutan Pathol. 2008 Dec;35(12):1134-7. doi: 10.1111/j.1600-0560.2008.01004.x. Epub 2008 Aug 23. PMID: 18727667.

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

  • * Koyyada A. Long-term use of proton pump inhibitors as a risk factor for various adverse manifestations. Therapie. 2021 Jan-Feb;76(1):13-21. doi: 10.1016/j.therap.2020.06.019. Epub 2020 Jul 9. PMID: 32718584.

  • * Dries LS, Haefliger R, Seibert BS, de Lima AG, Cardoso CO, Perassolo MS. Cognition, oxidative stress and vitamin B12 levels evaluation on patients under long-term omeprazole use. J Pharm Pharmacol. 2022 Apr 20;74(4):547-555. doi: 10.1093/jpp/rgab001. PMID: 33793790.

  • * Nightingale JMD. How to manage a high-output stoma. Frontline Gastroenterol. 2022;13(2):140-151. doi: 10.1136/flgastro-2018-101108. Epub 2021 Mar 22. PMID: 35300464; PMCID: PMC8862462.

  • * 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.

  • * Su J, Chen L, Song N, Li X, Huang J, Duan P. Auricular Point-Pressing With Bean Plus Esomeprazole Magnesium in Relieving Gastrointestinal Dysfunction. Altern Ther Health Med. 2022 Nov;28(8):16-22. PMID: 35839117.

  • * 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.

  • * Teixeira RA, Thue PS, Lima ÉC, Grimm A, Naushad M, Dotto GL, Dos Reis GS. Adsorption of Omeprazole on Biobased Adsorbents Doped with Si/Mg: Kinetic, Equilibrium, and Thermodynamic Studies. Molecules. 2023 Jun 6;28(12). doi: 10.3390/molecules28124591. Epub 2023 Jun 6. PMID: 37375145; PMCID: PMC10302240.

  • * 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.