Low magnesium: a hidden cause of cramps and low potassium
In short
Low blood magnesium is more common than many think, especially in people taking an acid-reducing drug (PPI) long term, diuretics, or drinking alcohol. It can cause cramps, fatigue and palpitations, and keep low potassium or calcium from correcting.
The tests that define it
What it is
Blood magnesium under about 0.70 mmol/L. Since most magnesium sits in bones and cells, the blood test can underestimate a shortage.
Signs
Cramps, tremor, fatigue, weakness, palpitations. In severe cases: arrhythmias, seizures.
Who should be tested, and how often
People on long-term PPIs, diuretics, some antibiotics or chemotherapy, alcohol use, chronic diarrhea, celiac or inflammatory bowel disease, poorly controlled diabetes.
Reading the numbers together
Low potassium that does not rise despite supplements suggests a magnesium shortage. Calcium can also fall when magnesium is very low.
What usually helps
Correct the cause (review whether a PPI is still needed, reduce alcohol, treat diarrhea), eat magnesium-rich foods (legumes, nuts, whole grains, leafy greens) and take a supplement if your doctor recommends it. Supplements can cause diarrhea; some forms are better tolerated.
When to see a doctor promptly
Seek care promptly for palpitations, marked weakness or muscle spasms. With kidney disease, do not take magnesium without medical advice.
In an emergency, call 911. For health advice in Québec, call Info-Santé 811.
Frequently asked questions
Can PPIs really lower magnesium?
Yes, especially after more than a year of use. Your doctor can check whether the medication is still needed or lower the dose.
Does magnesium help sleep or night cramps?
Studies are disappointing for cramps in most people. It helps mainly when a true shortage is documented.
Sources
Related tests
Reviewed by Dr Kourosh Lalavi, CCFP, ABOM · Last reviewed November 30, 2026
Educational information. Not a substitute for a visit with a clinician.
Want a doctor to go through your results with you?
The annual health review at Clinique Médicale Bina looks at your labs, your history and your goals, and turns them into a clear plan.
Book an annual review at Bina