Omeprazole and Magnesium: Can You Take Them Together?

High: Consult Your DoctorAbsorption
Learn about each ingredient:OmeprazoleMagnesium

Quick answer

Long-term omeprazole use can lower body magnesium. The Prilosec label says low magnesium, with or without symptoms, has been reported rarely in people taking proton pump inhibitors for at least three months, in most cases after a year, and that serious cases involved tetany (muscle spasm), abnormal heart rhythm and seizures. The FDA issued a Drug Safety Communication about this class effect in 2011.

If you take omeprazole long-term, ask your doctor whether to check your magnesium level before and during treatment, especially if you also take a diuretic or digoxin, as the label suggests. The label says most people who developed low magnesium needed both magnesium replacement and stopping the PPI, so a supplement alone may not be enough; do not stop or change the medicine on your own. Watch for cramps, twitching, or palpitations.

Taking more than these two?Check your whole list for interactions. Free, no account.

What happens?

Omeprazole shuts down stomach acid, but its effect on magnesium happens downstream in the small intestine and builds up slowly over months to years rather than all at once.

1

Two uptake routes

Magnesium enters the body mostly through a passive, bulk pathway across the gut wall, plus a smaller fine-tuning amount through active TRPM6 and TRPM7 channels in the small bowel.

2

Active route impaired

Long-term acid suppression appears to interfere with the active TRPM6/TRPM7 transport, probably through changes in intestinal pH and how these channels work. This is a gradually acquired functional defect, not a simple gut-binding interaction.

3

Compensation can fail

In most people the passive bulk pathway picks up the slack and levels stay normal. In susceptible people it cannot keep up, so serum magnesium drifts down even on a normal diet, producing hypomagnesemia.

The <strong>FDA</strong> warned in <strong>2011</strong> that prescription PPIs can cause low magnesium, usually after more than <strong>a year</strong> of use but sometimes after only a few months.

Why is this important?

Low magnesium from long-term PPI use is not just a number on a lab report; in its severe form it can cause dangerous, occasionally life-threatening problems.

Serious symptoms

Severe hypomagnesemia can cause muscle spasms and twitching (tetany), abnormal heart rhythms including QT prolongation and torsades de pointes, and seizures.

Knock-on deficiencies

Severe cases can also drive down calcium and potassium in a way that will not correct until the magnesium itself is replaced.

Stacked drug risk

Risk rises considerably when omeprazole is combined with other magnesium-wasting drugs such as diuretics, digoxin, cisplatin, or aminoglycoside antibiotics. A PPI plus a diuretic in an older adult is a classic setup.

Supplements may not be enough

In a substantial share of severe cases, oral and even intravenous magnesium replacement is not enough on its own; levels normalize only after the PPI is reduced or stopped, which can take weeks.

Susceptibility varies between people on identical regimens, and genetic variation in TRPM6 is suspected of explaining part of that difference.

What should you do?

The practical fix is simple: separate the doses.

Maintain magnesium and monitor it with your doctor

Best practical schedule

Before any change in your PPI routine
If you are starting or have been on long-term omeprazole, ask your doctor whether a baseline serum magnesium check makes sense, especially if you also take a diuretic, digoxin, or another magnesium-depleting drug. Do not stop omeprazole on your own.
Every day while you take omeprazole
Take a well-absorbed oral magnesium supplement consistently, and stay alert for early symptoms. Ask your doctor or pharmacist which form fits your situation.
On an ongoing basis
If you remain on long-term omeprazole, ask about rechecking serum magnesium periodically, and sooner if symptoms appear or if you take diuretics or digoxin.

Important reminders

  • •Watch for muscle cramps, twitching, tremor, weakness, fatigue, palpitations, lightheadedness on standing, or numbness in the hands and feet.
  • •Well-absorbed forms such as magnesium glycinate or citrate are generally well tolerated.
  • •Magnesium oxide is poorly absorbed and more likely to cause diarrhea, so it is a poor primary choice.
  • •Never stop omeprazole abruptly, as it can cause rebound acid symptoms; plan any taper with your prescriber.
  • •Ask whether stepping down to an H2 blocker such as famotidine, or using the PPI only on demand, is appropriate if your reflux is well controlled.

If symptoms are progressing, do not wait, since severe deficiency can cause abnormal heart rhythms and seizures.

Which specific products are affected?

Many common Magnesium products can affect this interaction.

Prescription PPIs covered by the FDA warning

Omeprazole (Prilosec)Esomeprazole (Nexium)Lansoprazole (Prevacid)Dexlansoprazole (Dexilant)Pantoprazole (Protonix)Rabeprazole (AcipHex)Omeprazole with sodium bicarbonate (Zegerid)Naproxen with esomeprazole (Vimovo)

Magnesium supplement forms that help maintain levels

Magnesium glycinateMagnesium citrateMagnesium malateMagnesium lactateMagnesium chloride

Other sources

  • •Lower-dose over-the-counter PPIs used for the short labeled course were not implicated, but self-treating well beyond the labeled duration carries similar risk.
  • •In severe deficiency, intravenous magnesium is given in hospital, but the deficiency tends to recur unless the PPI is reduced or stopped.

Magnesium oxide is a poor primary choice because of its low bioavailability.

The bottom line

Long-term omeprazole and other prescription PPIs can gradually lower magnesium by impairing active intestinal absorption, an effect the FDA formally warned about in 2011. It affects some people but not others, and severe cases can cause abnormal heart rhythm, tetany, and seizures, with risk highest alongside diuretics or digoxin. The label says that in most people who developed low magnesium, treatment needed both magnesium replacement and stopping the PPI.

Ask your doctor about periodic serum magnesium checks, and never stop omeprazole abruptly.

What happens when you take omeprazole with magnesium?

Omeprazole shuts down stomach acid production, but its effect on magnesium happens further downstream in the small intestine, and it builds up slowly rather than all at once.

  1. Magnesium enters the body by two routes. Most is absorbed by a passive, bulk pathway across the gut wall; a smaller, fine-tuning amount moves through active channels called TRPM6 and TRPM7 in the small bowel.
  2. Long-term acid suppression impairs the active route. Months to years of omeprazole appear to interfere with the active TRPM6/TRPM7 transport, probably through changes in intestinal pH and how these channels work.
  3. The passive route usually compensates. In most people the bulk pathway picks up the slack and magnesium stays normal despite the impaired active transport.
  4. In susceptible people it cannot keep up. When the passive route fails to compensate, serum magnesium drifts down even with a normal diet, producing hypomagnesemia.

This is not a simple absorption-blocking interaction like calcium or iron, where the supplement and drug bind in the gut. It is a gradually acquired functional defect in active magnesium uptake. Some people on a given regimen develop it; others on the same regimen for the same length of time never do, and genetic variation in TRPM6 is suspected of explaining part of that difference.

Why is this important?

In March 2011 the FDA issued a formal Drug Safety Communication warning that prescription PPIs can cause hypomagnesemia, usually after more than a year of use but sometimes after only a few months. The consequences can be serious: muscle spasms and twitching (tetany), abnormal heart rhythms including QT prolongation and torsades de pointes, and seizures. Severe cases can also drive down calcium and potassium in a way that will not correct until the magnesium itself is replaced.

The risk rises considerably when omeprazole is combined with other magnesium-wasting drugs: loop diuretics such as furosemide, thiazide diuretics such as hydrochlorothiazide, digoxin, the chemotherapy agent cisplatin, and aminoglycoside antibiotics. A PPI plus a diuretic in an older adult is a classic setup for severe hypomagnesemia.

One clinically important feature stands out: in a substantial share of severe cases, oral and even intravenous magnesium replacement is not enough on its own. Serum magnesium normalizes only after the PPI is reduced or stopped, which can take weeks.

What should you do?

Before any change in your PPI routine: If you are starting or have been on long-term omeprazole, ask your doctor whether a baseline serum magnesium check makes sense, particularly if you also take a diuretic, digoxin, or another magnesium-depleting drug. Do not stop omeprazole on your own.

Every day, while you take omeprazole: A supplement may help, but the label says that in most people who developed low magnesium, treatment needed both magnesium replacement and stopping the PPI. Forms such as magnesium glycinate or citrate are generally well tolerated; magnesium oxide is poorly absorbed and more likely to cause diarrhea. Ask your doctor or pharmacist which form and amount fit your situation, and stay alert for early symptoms: muscle cramps, twitching, tremor, weakness, fatigue, palpitations, lightheadedness on standing, or numbness in the hands and feet.

After any change, and on an ongoing basis: If you remain on long-term omeprazole, ask about rechecking serum magnesium periodically, sooner if symptoms appear or if you take diuretics or digoxin. If your reflux is well controlled, ask whether stepping down to an H2 blocker such as famotidine or using the PPI only on demand is appropriate. Any taper should be done with your prescriber, since stopping abruptly can cause rebound acid symptoms.

Which specific products are affected?

The 2011 FDA warning covered the prescription proton pump inhibitors as a class, including omeprazole (Prilosec), esomeprazole (Nexium), lansoprazole (Prevacid), dexlansoprazole (Dexilant), pantoprazole (Protonix), rabeprazole (AcipHex), omeprazole with sodium bicarbonate (Zegerid), and naproxen with esomeprazole (Vimovo). Lower-dose over-the-counter PPI products used for the short labeled course were not implicated in the original warning, but self-treating well beyond the labeled duration carries similar risk.

On the supplement side, ordinary oral magnesium supplements (glycinate, citrate, malate, lactate, chloride, and others) can help maintain levels; magnesium oxide is a poor primary choice because of low bioavailability. In severe deficiency, intravenous magnesium is given in hospital, but the deficiency tends to recur unless the PPI is reduced or stopped.

The science behind it

The strongest evidence is regulatory and observational rather than from large randomized trials. The FDA's 2011 Drug Safety Communication, drawn from adverse event reports together with cases from the published literature, documented hypomagnesemia after long-term PPI use, including cases where magnesium normalized only after the drug was stopped. A community-based observational cohort (Markovits et al., 2014, PMID 24771616) found an association between PPI use and hypomagnesemia, and a narrative review of PPI-induced hypomagnesemia (PMC4527261) summarizes the proposed TRPM6/TRPM7 mechanism. The mechanism remains a leading hypothesis rather than a fully proven pathway, and observational data cannot prove causation on their own; the regulatory signal and the consistency across reports are what anchor the warning.

Frequently Asked Questions

Does taking a magnesium supplement cancel out this risk?

Often it helps, but not always. For many people a well-absorbed oral magnesium supplement keeps levels normal. In severe cases, however, supplements (even intravenous) are not enough on their own and magnesium recovers only after the PPI is reduced or stopped.

How long do I have to take omeprazole before this matters?

Most reported cases appear after more than a year of use, but some have developed after only a few months. Susceptibility varies between people even on similar regimens.

What symptoms should make me call my doctor?

Muscle cramps, twitching or tremor, weakness, palpitations, lightheadedness, numbness in the hands or feet, and unexplained fatigue. Severe deficiency can cause abnormal heart rhythms and seizures, so do not wait if symptoms are progressing.

Does this happen with all acid-reducing drugs?

The FDA warning was specifically about prescription proton pump inhibitors as a class. H2 blockers such as famotidine are not implicated in the same way, which is one reason a doctor may consider them as an alternative.

Is the risk higher if I take other medications?

Yes. Diuretics (furosemide, hydrochlorothiazide), digoxin, cisplatin, and aminoglycoside antibiotics also lower magnesium, and combining them with a PPI raises the risk of significant hypomagnesemia.

Can I just stop omeprazole if my magnesium is low?

Do not stop it on your own. Abruptly stopping can cause rebound acid symptoms. Any reduction or taper should be planned with your prescriber, who can also arrange magnesium monitoring.

Key takeaways

  • Long-term omeprazole and other prescription PPIs can lower magnesium; the FDA formally warned about this in 2011.
  • The likely mechanism is impaired active intestinal magnesium absorption, which develops gradually and affects some people but not others.
  • Severe hypomagnesemia can cause abnormal heart rhythm, tetany, and seizures, and can drive down calcium and potassium too.
  • Risk is higher when combined with diuretics, digoxin, or other magnesium-wasting drugs.
  • The label says that in most people who developed low magnesium, treatment needed both magnesium replacement and stopping the PPI.
  • Ask your doctor about periodic serum magnesium checks and never stop omeprazole abruptly.

References

Primary evidence for this article. Always consult your healthcare provider for personal medical advice.

Related Interactions

Other interactions you should know about

Alcohol + Magnesium

moderate

Alcohol acts acutely as a magnesium diuretic, causing a prompt increase in urinary magnesium excretion. With regular heavy drinking, body magnesium stores can become depleted, and low magnesium is common in chronic alcohol-use disorder.

Levothyroxine + Magnesium

moderate

Taking magnesium too close to levothyroxine can modestly reduce how much of the thyroid medicine is absorbed, because magnesium can bind levothyroxine in the gut.

Vitamin D + Magnesium

synergy

Magnesium helps activate and support the function of vitamin D; low magnesium can reduce the effectiveness of vitamin D supplementation. This is a beneficial nutrient synergy rather than a harmful interaction.

Tetracycline + Magnesium

moderate

Magnesium can bind tetracycline in the gut and lower how much of the antibiotic is absorbed. In small human studies, a magnesium-aluminum hydroxide gel cut tetracycline bioavailability by 90% in 5 healthy subjects, and magnesium trisilicate sharply reduced its urinary excretion. No study of a modern magnesium supplement alone was found, and the tetracycline label, which names magnesium antacids, gives no number of hours to separate them.

Hydrochlorothiazide + Magnesium

moderate

Thiazide diuretics such as hydrochlorothiazide increase urinary magnesium excretion. In 9,820 adults in the Rotterdam Study, thiazide use was linked with lower serum magnesium and about three times the odds of low magnesium (odds ratios 3.14 and 2.74 for the two dose groups), mainly in people who had used them for more than 390 days; thiazides combined with a potassium-sparing diuretic showed no such link. Low magnesium also makes potassium hard to replace and can worsen muscle cramps and heart-rhythm risk.

Levofloxacin + Magnesium

moderate

Magnesium can bind levofloxacin in the gut and lower how much is absorbed. The levofloxacin label says antacids containing magnesium may substantially interfere with absorption and leave blood levels considerably lower than desired, and its Medication Guide extends the timing rule to supplements that have magnesium. No published numbers for levofloxacin with a magnesium supplement alone were found, so the size of the effect for supplements is unknown.

Disclaimer: This article is for informational purposes only and is not a substitute for professional medical advice. Always consult your healthcare provider before making changes to your supplement or medication routine. Pilora does not diagnose, treat, cure, or prevent any disease.

Check all your supplement interactions instantly

Try Pilora Free