Omeprazole and Low Magnesium: Symptoms to Watch For

Long-term omeprazole (Prilosec) can cause low magnesium. Learn the FDA warning, symptoms like muscle cramps and irregular heartbeat, who is at risk, testing and treatment.

written by
Josh Ternyak
PUBLISHED ON
December 2, 2026

Of all the side effects linked to omeprazole, low magnesium is one of the least known and one of the most surprising. Most people never think about magnesium at all. Yet it keeps your muscles, nerves and heartbeat working properly, and when levels fall too low, the results can range from tiredness and cramps to an irregular heartbeat and seizures.

In 2011, the FDA warned that proton pump inhibitors (PPIs) like Prilosec can cause low magnesium when taken for a long time. This guide explains what that warning says, why it happens, the symptoms to watch for, who is most at risk, how it is tested and how it is treated.

The quick answer

  • Long-term PPI use can cause low blood magnesium, called hypomagnesemia. In most reported cases, it appeared after more than a year of use.
  • It is uncommon, but it can be serious: the FDA lists muscle spasms, irregular heartbeat and seizures.
  • People do not always have symptoms, so a blood test may be the only way to find it.
  • In about a quarter of cases the FDA reviewed, magnesium supplements alone did not fix it and the PPI had to be stopped.
  • People taking diuretics (water pills) or digoxin are at higher risk and should ask about monitoring.

What magnesium does in your body

Magnesium is involved in more than 300 enzyme systems in the body, including those that control muscle and nerve function, blood sugar and blood pressure, according to the NIH Office of Dietary Supplements (ODS). It also helps move calcium and potassium across cell membranes, a process that is important for nerve signals, muscle contraction and a normal heart rhythm.

An adult body holds about 25 grams of magnesium. Most of it is stored in bones and soft tissues, and less than 1% is in the blood. That makes magnesium tricky to measure, which we come back to below.

What the FDA warned about

In March 2011, the FDA issued a Drug Safety Communication stating that prescription PPI drugs may cause low serum magnesium levels if taken for prolonged periods of time, in most cases longer than one year (FDA alert via Drugs.com). Key points from the warning:

  • Low magnesium can lead to serious problems, including muscle spasm (tetany), irregular heartbeat (arrhythmias) and seizures.
  • Patients do not always have symptoms.
  • Treatment generally requires magnesium supplements.
  • In about one quarter of the cases reviewed, magnesium supplements alone did not raise levels, and the PPI had to be stopped.

Regulators in other countries reached similar conclusions. The UK's medicines regulator, the MHRA, reported that some cases occurred after just 3 months of PPI therapy, but most occurred after a year. In most cases, magnesium improved after replacement and stopping the PPI.

Low magnesium is now listed in the warnings section of omeprazole's prescribing information.

Why PPIs lower magnesium

When the FDA issued its warning, it said the exact mechanism was not known (Healio). Researchers now believe PPIs mainly reduce how well magnesium is absorbed from the gut, rather than causing the kidneys to lose it. A review in Gastroenterology Report notes that differences in the gut channels that absorb magnesium may explain why some people are much more affected than others.

This also explains a key feature of PPI-related low magnesium: it usually gets better once the PPI is stopped, and it often comes back if the PPI is restarted.

How common is it?

Severe cases are rare. The Gastroenterology Report review noted roughly 40 published case reports by 2014. But milder cases are likely missed, because the symptoms are vague and magnesium is not part of most routine blood tests. A review in Intestinal Research described patients who typically show up after years of stable PPI use with muscle, nerve or heart rhythm symptoms, and suggested many cases are under-recognized.

Symptoms of low magnesium

Symptoms often build slowly. Early signs can be easy to dismiss:

  • Loss of appetite
  • Nausea or vomiting
  • Tiredness
  • Weakness

As levels drop further, symptoms can include:

  • Muscle cramps, twitches or spasms
  • Numbness or tingling
  • Tremor
  • Irregular or fast heartbeat, palpitations
  • Personality or mood changes
  • Seizures

These lists are based on a summary of NIH magnesium information by Worst Pills, Best Pills and the FDA warning. A 2024 case report described a patient admitted to hospital 10 times with nausea, muscle twitching, cramps, weakness and heart rhythm changes linked to PPI-related low magnesium.

Low magnesium can drag down calcium and potassium too

Magnesium is needed for the parathyroid gland to work properly. Low magnesium can reduce parathyroid hormone, which can lead to low calcium, as noted in reports on the FDA warning (Managed Healthcare Executive). Low potassium can also occur alongside it. This is why doctors often check all three together.

Symptoms that need urgent care

Seek urgent medical help if you have a seizure, fainting, chest pain, a very fast or irregular heartbeat, or severe muscle spasms, especially in your hands, feet or face.

Who is most at risk?

  • Long-term users: most cases occur after more than a year on a PPI.
  • People taking diuretics such as furosemide or hydrochlorothiazide, which can also lower magnesium.
  • People taking digoxin, a heart medicine. The FDA says this is especially important because low magnesium can increase the likelihood of serious digoxin side effects.
  • Older adults and people with other conditions that affect magnesium, such as gut diseases that reduce absorption.
  • People with low dietary magnesium or heavy alcohol use.

How low magnesium is tested

The most common test is a serum (blood) magnesium level. According to the ODS, normal serum magnesium is about 0.75 to 0.95 mmol/L, and hypomagnesemia is defined as below 0.75 mmol/L.

The ODS also notes a limitation: because most magnesium is inside cells and bones, blood levels do not perfectly reflect total body magnesium. A normal blood test does not completely rule out a mild shortage, but it is the standard starting point.

The FDA advised healthcare professionals to consider checking magnesium before starting a PPI in patients expected to take one for a long time, or who also take digoxin, diuretics or other drugs that can lower magnesium, and to check periodically during treatment.

How it is treated

  1. Magnesium supplements. These are the usual first step, according to the FDA. Severe cases may need magnesium through a drip in hospital.
  2. Reviewing the PPI. In about a quarter of FDA-reviewed cases, supplements alone were not enough and the PPI had to be stopped. The MHRA found that most cases improved after both magnesium replacement and stopping the PPI.
  3. Checking calcium and potassium, which may also need correcting.
  4. Considering an alternative for acid control. Your doctor may suggest a lower PPI dose, on-demand use, an H2 blocker or lifestyle changes. See How to stop taking omeprazole safely.

Do not start high-dose magnesium supplements on your own if you have kidney disease, because people with poor kidney function can build up too much magnesium. Too much supplemental magnesium can also cause diarrhea, which is a particular issue for people with IBS. Ask your doctor or pharmacist first.

Getting more magnesium from food

Food will not fix true PPI-related hypomagnesemia on its own, but a magnesium-rich diet is a sensible foundation. Good sources listed by the ODS include:

  • Green leafy vegetables such as spinach
  • Legumes such as beans and lentils
  • Nuts and seeds
  • Whole grains

The ODS notes that only about 30% to 40% of magnesium from food is absorbed, which is one reason gut absorption problems matter so much.

Should you stop omeprazole if you have low magnesium?

That decision should be made with your doctor. If you have a strong reason for long-term PPI use, such as Barrett's esophagus or a high risk of stomach bleeding, your doctor may keep you on it and treat the magnesium. If you do not have a clear ongoing reason, low magnesium is a good prompt to try stepping down. Remember that stopping suddenly can trigger rebound heartburn. See Who should NOT stop taking Prilosec and Rebound heartburn after stopping Prilosec.

Frequently asked questions

Does Prilosec OTC cause low magnesium?

The FDA's 2011 warning focused on prescription PPIs taken for long periods. OTC Prilosec is meant for 14-day courses, which makes this problem unlikely when it is used as directed. People who take OTC omeprazole every day for months or years are in a different situation and should tell their doctor.

How long does it take for magnesium to recover after stopping a PPI?

Case reports generally describe improvement once the PPI is stopped and magnesium is replaced, though the time varies. Your doctor will recheck your levels to confirm recovery.

Can I take a magnesium supplement with omeprazole?

Many people can, but check with your doctor or pharmacist first, especially if you have kidney disease, take other medicines, or have IBS with diarrhea, since magnesium can loosen stools.

Do magnesium-containing antacids help?

Antacids like milk of magnesia contain magnesium, but they are not a treatment for hypomagnesemia and can cause diarrhea. Do not use them as a supplement without medical advice.

Do H2 blockers cause low magnesium?

The FDA warning was about PPIs. H2 blockers such as famotidine have not been linked to this problem in the same way, which is one reason doctors sometimes switch patients to them.

The bottom line

Low magnesium is an uncommon but potentially serious side effect of long-term omeprazole use. It can be silent, or it can show up as cramps, weakness, tingling or heart rhythm problems. If you have been on a PPI for more than a year, especially with a diuretic or digoxin, ask your doctor whether your magnesium should be checked. For more, read our full guide to omeprazole side effects and the complete guide to Prilosec.

Sources

Medical note: This article is for education and does not replace advice from your doctor. Seizures, fainting, chest pain or a very irregular heartbeat need emergency care. Do not stop a prescribed medicine or start high-dose supplements without talking to your doctor.

bg
get started today

Ready to enjoy life without IBS?

Need assistance?
We’re here to provide support
Get Started
bg-leftright-cta

Reach out to us

hello@ibshope.org