Long-term use of proton-pump inhibitors, popular heartburn medications, can cause severe magnesium deficiency that triggers seizures and heart problems. According to Gram Research analysis, a 68-year-old man taking omeprazole 40 mg daily for 8 years developed dangerously low magnesium levels (0.32 mmol/L) that caused a seizure and abnormal heart rhythms. His magnesium levels only normalized after stopping the PPI and switching to famotidine, a different acid-reducing drug. People on long-term PPIs should get regular blood tests to monitor mineral levels.

A new case study warns that proton-pump inhibitors (PPIs), popular medications used to treat acid reflux and heartburn, may cause serious magnesium deficiencies with long-term use. According to Gram Research analysis, a 68-year-old man taking omeprazole for 8 years developed dangerously low magnesium levels that triggered seizures and heart rhythm problems. His magnesium levels wouldn’t improve even with treatment until he stopped taking the PPI and switched to a different medication. Doctors say this complication is often missed because patients and healthcare providers don’t suspect the heartburn drug as the cause. The case highlights why people on long-term acid-suppressing medications need regular blood tests to monitor mineral levels.

Key Statistics

A 2026 case report published in the Indian Journal of Pharmacology documented a 68-year-old man who developed severe magnesium deficiency (0.32 mmol/L) after 8 years of daily omeprazole 40 mg use, resulting in seizures and heart rhythm abnormalities.

The patient’s 24-hour urine magnesium was critically low at 12 mg per day, indicating the proton-pump inhibitor was causing his kidneys to lose magnesium rather than conserve it.

The patient’s heart showed a prolonged QT interval of 510 milliseconds with ventricular ectopy, dangerous electrical disturbances that can lead to life-threatening arrhythmias when magnesium is severely deficient.

Intravenous magnesium replacement failed to normalize the patient’s levels until omeprazole was discontinued and replaced with famotidine, demonstrating that stopping the PPI is essential for recovery.

The Quick Take

  • What they studied: Whether long-term use of proton-pump inhibitors (PPIs), a common heartburn medication, can cause dangerous drops in magnesium levels that lead to serious health problems.
  • Who participated: One 68-year-old man who had been taking omeprazole, a PPI medication, at a high dose (40 mg daily) for 8 years to treat acid reflux.
  • Key finding: The patient developed severe magnesium deficiency (0.32 mmol/L, far below the normal range) that caused seizures, muscle twitching, low calcium, low potassium, and abnormal heart rhythms. His magnesium levels only returned to normal after stopping the PPI and switching to a different acid-reducing medication called famotidine.
  • What it means for you: If you take a PPI medication long-term for heartburn or acid reflux, talk to your doctor about getting regular blood tests to check your magnesium, calcium, and potassium levels. Don’t stop taking your medication without medical guidance, but be aware that symptoms like muscle weakness, twitching, or irregular heartbeats could signal a mineral deficiency that needs attention.

The Research Details

This is a case report, meaning doctors documented the medical history and treatment of one patient to highlight an important warning. The 68-year-old man came to the hospital with a seizure after 8 years of taking omeprazole 40 mg daily. Doctors ran blood tests and found multiple mineral deficiencies: very low magnesium (0.32 mmol/L), low calcium (1.62 mmol/L), and low potassium (3.2 mmol/L). They also checked his heart with an electrocardiogram and found the QT interval was abnormally long (510 ms), which can lead to dangerous heart rhythms. A 24-hour urine test showed he was losing magnesium through his kidneys, suggesting the PPI was preventing his body from absorbing and retaining this mineral. Doctors tried giving him magnesium intravenously, but his levels wouldn’t improve until they stopped the omeprazole and switched him to famotidine, a different type of acid-reducing drug that doesn’t cause the same magnesium loss.

Case reports are important because they alert doctors to rare but serious side effects that might not show up in larger studies. This case matters because PPIs are prescribed to millions of people worldwide, often for years or decades. If even a small percentage of long-term users develop severe magnesium deficiency, that represents thousands of people at risk for seizures and heart problems. By documenting this case, doctors can now look for similar patterns in other patients and catch the problem earlier.

This is a single case report, which is the lowest level of scientific evidence. However, the case is well-documented with clear lab values, heart rhythm recordings, and a clear cause-and-effect relationship (symptoms stopped when the drug was changed). The findings align with previous research showing that PPIs can reduce magnesium absorption. The main limitation is that one case cannot prove how often this happens or predict who is most at risk. This case should prompt larger studies but shouldn’t be considered definitive proof that all PPI users will develop this problem.

What the Results Show

The patient presented with a generalized seizure, which is a medical emergency. Blood tests revealed severe hypomagnesemia with a magnesium level of 0.32 mmol/L (normal is about 0.7 to 1.0 mmol/L). This low magnesium triggered a cascade of other problems: his calcium dropped to 1.62 mmol/L (corrected calcium, which accounts for protein levels), his potassium fell to 3.2 mmol/L, and his parathyroid hormone was abnormally low at 12 pg/mL. The parathyroid gland controls calcium regulation, so when magnesium is too low, the parathyroid can’t function properly, creating a secondary calcium deficiency. His heart showed signs of electrical disturbance with a prolonged QT interval of 510 milliseconds, which increases the risk of life-threatening arrhythmias. A 24-hour urine collection showed only 12 mg of magnesium per day, far below normal, indicating his kidneys were losing magnesium rather than conserving it. Importantly, when doctors gave him intravenous magnesium replacement, his levels didn’t improve. Only after discontinuing omeprazole and switching to famotidine did his magnesium levels normalize and his symptoms resolve.

The patient also experienced neuromuscular irritability, which includes muscle twitching and cramping, a classic sign of low magnesium. His low potassium and calcium, both triggered by the magnesium deficiency, contributed to his seizure risk. The prolonged QT interval on his heart rhythm strip is particularly concerning because it can degenerate into a dangerous arrhythmia called torsades de pointes, which can cause sudden cardiac death. The fact that his vitamin D and kidney function were normal ruled out other common causes of magnesium loss, making the PPI the clear culprit. The case demonstrates that PPI-induced magnesium deficiency doesn’t just cause one problem but creates a domino effect of mineral imbalances.

Previous research has established that PPIs can reduce magnesium absorption by up to 13 percent in some patients, but severe deficiency requiring hospitalization is considered rare. This case is notable because it shows that even with normal kidney function and normal vitamin D levels, severe deficiency can still develop with long-term high-dose PPI use. The finding that magnesium replacement alone didn’t work until the PPI was stopped is consistent with earlier reports suggesting that PPIs must be discontinued to fully resolve the deficiency. This case adds to growing evidence that long-term PPI use requires monitoring and that alternative medications should be considered when possible.

This is a single case report involving one patient, so we cannot determine how common this problem is or identify which patients are most at risk. The patient was taking a relatively high dose of omeprazole (40 mg daily) for a long time (8 years), so it’s unclear whether lower doses or shorter durations carry the same risk. The case doesn’t tell us whether the patient had any genetic factors or other conditions that made him more susceptible to magnesium loss. We don’t know if he had poor dietary magnesium intake, which could have worsened the problem. Finally, this case cannot prove that all patients on long-term PPIs need to stop their medication, as the benefits of acid suppression may outweigh the risks for many people. Larger studies are needed to determine the true incidence and risk factors for PPI-induced severe hypomagnesemia.

The Bottom Line

If you take a PPI medication (such as omeprazole, lansoprazole, or pantoprazole) daily for more than a few months, ask your doctor about baseline blood tests to measure magnesium, calcium, and potassium levels. Moderate confidence: Get these levels rechecked annually or if you develop symptoms like muscle weakness, twitching, irregular heartbeats, or seizures. High confidence: Do not stop taking your PPI without medical guidance, as acid reflux can cause serious complications. Instead, work with your doctor to explore alternatives like H2-receptor blockers (such as famotidine) if you have risk factors for magnesium deficiency. Moderate confidence: Ensure adequate dietary magnesium intake through foods like leafy greens, nuts, seeds, and whole grains, though diet alone may not prevent PPI-induced deficiency.

This case is most relevant to people taking PPIs long-term (more than 6 to 12 months), especially at higher doses. Older adults, people with kidney disease, those taking diuretics, and people with poor nutrition are at higher risk. People with a history of seizures, heart arrhythmias, or muscle disorders should be especially vigilant. Healthcare providers should consider this diagnosis in any long-term PPI user presenting with seizures, muscle symptoms, or heart rhythm problems. People taking PPIs short-term for acute heartburn are at much lower risk and don’t need to worry based on this single case.

Symptoms of severe magnesium deficiency can develop over months to years of PPI use, as the mineral gradually depletes. In this case, the patient took the medication for 8 years before developing a seizure. However, once magnesium levels drop severely, symptoms can appear suddenly. After stopping the PPI and receiving treatment, magnesium levels can normalize within days to weeks, though full symptom resolution may take longer depending on the severity of organ damage.

Frequently Asked Questions

Can heartburn medication cause low magnesium and seizures?

Yes, proton-pump inhibitors used long-term can cause severe magnesium deficiency. A 2026 case report documented a patient on omeprazole for 8 years who developed dangerously low magnesium (0.32 mmol/L) that triggered seizures and heart problems. Symptoms resolved only after stopping the PPI.

How long does it take for PPIs to cause magnesium deficiency?

Magnesium depletion from PPIs develops gradually over months to years. The documented case involved 8 years of daily use before severe deficiency and seizures occurred. However, individual risk varies based on dose, duration, diet, and other factors.

What are the symptoms of PPI-induced low magnesium?

Symptoms include muscle weakness, twitching, cramping, numbness, irregular heartbeats, and seizures in severe cases. The 2026 case report patient experienced neuromuscular irritability, seizures, and heart rhythm abnormalities from magnesium levels of 0.32 mmol/L.

Should I stop taking my PPI if I’m worried about magnesium deficiency?

Do not stop without medical guidance. Instead, discuss with your doctor about baseline blood tests for magnesium, calcium, and potassium. Your doctor may recommend switching to alternative medications like famotidine or adjusting your PPI dose based on your individual risk.

Magnesium supplements alone may not work if you continue taking the PPI. The documented case showed that intravenous magnesium replacement failed until the patient stopped omeprazole and switched to famotidine. Discontinuing the PPI is often necessary for full recovery.

Want to Apply This Research?

  • Log your PPI medication dose and frequency daily, and set monthly reminders to track any symptoms like muscle twitching, weakness, irregular heartbeats, or mood changes. Record the dates of any blood tests measuring magnesium, calcium, and potassium levels.
  • If you take a PPI, use the app to schedule a doctor’s appointment to discuss baseline mineral level testing. Set a reminder to ask about switching to an alternative medication like famotidine if you have risk factors. Track your dietary magnesium intake by logging magnesium-rich foods like spinach, almonds, pumpkin seeds, and dark chocolate.
  • Create a long-term tracking dashboard showing your PPI use duration, any symptoms of mineral deficiency, and lab results over time. Set annual reminders to request magnesium, calcium, and potassium blood tests. Flag any new symptoms like muscle cramps, twitching, or heart palpitations for immediate reporting to your healthcare provider.

This article describes a single case report and should not be interpreted as proof that all PPI users will develop magnesium deficiency. Proton-pump inhibitors remain safe and effective for most people when used as directed. However, people taking PPIs long-term should discuss mineral monitoring with their healthcare provider. Do not stop taking your PPI medication without medical guidance, as this could worsen acid reflux and cause other serious complications. If you experience symptoms like muscle weakness, twitching, irregular heartbeats, or seizures while taking a PPI, seek immediate medical attention and inform your doctor about your medication use. This article is for educational purposes and does not replace professional medical advice.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: Proton-pump inhibitor-induced severe hypomagnesemia presenting with seizure and functional hypoparathyroidism: A diagnostic challenge in long-term acid suppression therapy. , Indian journal of pharmacology (2026). PubMed 42969997 | DOI
Topics
proton-pump inhibitors magnesium deficiency omeprazole side effects long-term acid reflux medication seizures and heartburn drugs electrolyte imbalance heart rhythm problems PPI safety monitoring