Deep DiveRenal & Electrolytes5 min read

Hypomagnesemia & Hypermagnesemia

The electrolyte most often checked last — but it controls potassium and calcium repletion. Refractory hypokalemia or hypocalcemia means check magnesium first.

Listen to this Deep Dive9 min 54 sec
Hypomagnesemia & Hypermagnesemia
0:00/0:00

Magnesium is required for the Na-K-ATPase pump and for PTH secretion. Deficiency causes refractory hypokalemia and hypocalcemia that will not respond to repletion until magnesium is corrected. It is the electrolyte that makes other electrolytes work.

1 · Why Magnesium Gets Missed

Magnesium is the fourth most abundant cation in the body and the second most abundant intracellular cation. It is a cofactor for over 300 enzymatic reactions, including ATP synthesis, DNA replication, and protein synthesis. It is also essential for the function of the Na-K-ATPase pump — which means that magnesium deficiency directly impairs the ability to maintain normal potassium and calcium levels.

Despite its importance, magnesium is frequently not included in routine electrolyte panels and is often the last electrolyte checked when a patient has refractory hypokalemia or hypocalcemia. This is a clinical error. Hypomagnesemia should be on the differential for any patient with unexplained or refractory hypokalemia, hypocalcemia, or cardiac arrhythmia.

The serum magnesium is a poor reflection of total body stores — only about 1% of total body magnesium is in the extracellular space. A normal serum magnesium does not exclude intracellular magnesium depletion. Patients with chronic alcoholism, malnutrition, or prolonged diuretic use may have significant total body depletion with a serum level that appears normal or only mildly low.

2 · Hypomagnesemia — Causes and Clinical Consequences

Hypomagnesemia — a serum magnesium below 1.7 mg/dL — results from decreased intake, increased GI losses, increased renal losses, or redistribution.

Decreased intake is common in patients with poor nutrition, chronic alcoholism, and prolonged parenteral nutrition without adequate magnesium supplementation. Alcoholism causes hypomagnesemia through multiple mechanisms: poor intake, increased renal wasting (alcohol directly impairs tubular magnesium reabsorption), and GI losses from vomiting and diarrhea.

Increased GI losses occur with prolonged diarrhea, malabsorption syndromes, and short bowel syndrome. Magnesium is absorbed primarily in the small intestine, so conditions that impair small intestinal absorption (Crohn's disease, celiac disease, surgical resection) cause magnesium deficiency.

Increased renal losses are caused by loop and thiazide diuretics (the most common cause in hospitalized patients), osmotic diuresis, hypercalcemia (which competes with magnesium for tubular reabsorption), and medications including cisplatin, amphotericin B, aminoglycosides, and — importantly — proton pump inhibitors. Long-term PPI use impairs intestinal magnesium absorption through a mechanism that is not fully understood but is a class effect.

The clinical consequences of hypomagnesemia include neuromuscular excitability (tremor, muscle cramps, tetany, seizures), cardiac arrhythmias (particularly torsades de pointes and other ventricular arrhythmias), and the downstream effects of refractory hypokalemia and hypocalcemia.

3 · Hypomagnesemia — Treatment

Mild asymptomatic hypomagnesemia (1.2–1.7 mg/dL) can be treated with oral magnesium supplementation. Magnesium oxide is the most commonly used oral form, but it has poor bioavailability and causes diarrhea at higher doses. Magnesium glycinate and magnesium citrate have better GI tolerability. Oral repletion is appropriate for outpatients and hemodynamically stable inpatients without active arrhythmia.

Moderate to severe hypomagnesemia (below 1.2 mg/dL), symptomatic hypomagnesemia, or hypomagnesemia with active cardiac arrhythmia requires IV magnesium sulfate. A typical dose is 2–4 g IV over 2–4 hours for moderate deficiency, with additional doses as needed based on repeat levels. For torsades de pointes, 2 g IV over 1–2 minutes is the immediate treatment.

Renal magnesium wasting limits the efficiency of IV repletion — a significant fraction of IV magnesium is excreted in the urine before it can be taken up by cells. Slow infusion rates improve cellular uptake. Repeat magnesium levels 4–6 hours after IV repletion to assess response, and plan for multiple rounds of repletion in patients with ongoing losses.

Address the underlying cause: stop or reduce the offending medication if possible, treat the GI condition, provide adequate nutritional support. In patients on chronic PPIs who develop recurrent hypomagnesemia, consider switching to an H2 blocker if clinically appropriate.

4 · Hypermagnesemia — Causes and Clinical Consequences

Hypermagnesemia — a serum magnesium above 2.2 mg/dL — is almost exclusively iatrogenic or due to renal failure. The kidney is highly efficient at excreting magnesium; hypermagnesemia in patients with normal renal function requires a substantial exogenous magnesium load.

The most common causes are: IV magnesium for eclampsia or preterm labor (therapeutic hypermagnesemia is intentional, but toxicity can occur); magnesium-containing antacids and laxatives (particularly in patients with renal impairment who cannot excrete the load); magnesium-containing enemas (Fleet enemas contain magnesium); and renal failure with normal or increased magnesium intake.

The clinical consequences of hypermagnesemia follow a predictable progression with rising magnesium levels. Mild hypermagnesemia (2.5–4 mg/dL) causes nausea, flushing, and headache. Moderate hypermagnesemia (4–7 mg/dL) causes hyporeflexia, somnolence, and hypotension. Severe hypermagnesemia (above 7 mg/dL) causes respiratory depression, cardiac conduction abnormalities (bradycardia, heart block), and cardiac arrest. Loss of deep tendon reflexes is an early clinical sign of toxicity and is used to monitor patients receiving therapeutic magnesium infusions.

5 · Hypermagnesemia — Treatment

The first step is to stop all magnesium-containing medications and supplements. In patients with normal renal function, the kidney will excrete the excess magnesium and levels will normalize over hours.

For symptomatic hypermagnesemia — respiratory depression, cardiac conduction abnormalities, hemodynamic instability — IV calcium gluconate is the immediate intervention. Calcium antagonizes the neuromuscular and cardiac effects of magnesium by competing for the same calcium channels. The typical dose is 1–2 g IV over 5–10 minutes, repeated as needed. This is a temporizing measure — it does not remove magnesium from the body.

Definitive treatment requires magnesium elimination. In patients with adequate renal function, IV fluids and loop diuretics can enhance renal magnesium excretion. In patients with renal failure or severe toxicity, hemodialysis is the most effective method of magnesium removal.

In patients receiving therapeutic magnesium infusions (for eclampsia or preterm labor), monitor deep tendon reflexes, respiratory rate, and urine output continuously. Loss of patellar reflex is the first sign of toxicity and should prompt dose reduction or discontinuation. Respiratory depression requires immediate calcium gluconate and supportive care.

Apply It · Patient Scenarios

CASE 1 — HYPOMAGNESEMIA

A 54-year-old man with alcoholic cirrhosis is admitted with confusion and tremor. Potassium is 2.8 mEq/L. He receives 80 mEq of oral potassium over 24 hours, but repeat potassium is 2.9 mEq/L — essentially unchanged. Magnesium was not checked on admission.

CLINICAL REASONING

Refractory hypokalemia despite aggressive repletion is the classic presentation of concurrent hypomagnesemia. Alcoholism causes magnesium depletion through multiple mechanisms. The magnesium must be checked and repleted — until it is corrected, the kidney will continue to waste potassium regardless of how much is given. IV magnesium sulfate 2–4 g should be given, followed by repeat potassium and magnesium levels.

CASE 2 — HYPERMAGNESEMIA

A 32-year-old woman at 34 weeks gestation with severe preeclampsia is receiving IV magnesium sulfate at 2 g/hour. After 6 hours, her deep tendon reflexes are absent and her respiratory rate is 10 breaths/minute.

CLINICAL REASONING

Loss of deep tendon reflexes and respiratory depression are signs of magnesium toxicity. Stop the magnesium infusion immediately. Give IV calcium gluconate 1–2 g over 5–10 minutes — calcium antagonizes the neuromuscular effects of magnesium and will restore reflexes and respiratory drive within minutes. Monitor closely and be prepared for respiratory support. Check serum magnesium level.

NOW CHANGE ONE DETAIL

Same patient as Case 1. Magnesium is 1.3 mg/dL. After IV magnesium repletion, potassium is now 3.2 mEq/L but calcium is 7.8 mg/dL (low) and the patient develops perioral numbness and a positive Chvostek sign.

UPDATED REASONING

Hypomagnesemia causes hypocalcemia through two mechanisms: impaired PTH secretion and impaired PTH action at the bone and kidney. The hypocalcemia will not respond to calcium supplementation until magnesium is corrected — and in this patient, magnesium repletion is still ongoing.

Continue magnesium repletion. Symptomatic hypocalcemia (tetany, seizures) requires IV calcium gluconate as a temporizing measure, but the definitive treatment is correcting the magnesium. This is the clinical demonstration of why magnesium must be checked and corrected before or concurrently with calcium and potassium repletion.

Understand It · The Nuance

Magnesium is the electrolyte that makes other electrolytes work. Its deficiency is underdiagnosed because the serum level is unreliable and it is not routinely checked — and its toxicity is underrecognized because the signs are nonspecific until they are severe.

Serum magnesium is a poor reflection of total body stores

Only about 1% of total body magnesium is in the extracellular space. A normal serum magnesium does not exclude intracellular magnesium depletion. Patients with chronic alcoholism, malnutrition, or prolonged diuretic use may have significant total body magnesium depletion with a serum level that appears normal or only mildly low.

Hypomagnesemia causes refractory hypokalemia and hypocalcemia

Magnesium is required for the Na-K-ATPase pump and for PTH secretion and action. Hypomagnesemia causes renal potassium wasting (refractory to potassium repletion alone) and impairs PTH release, leading to hypocalcemia that also does not respond to calcium supplementation until magnesium is corrected. Always check magnesium when potassium or calcium is refractory to repletion.

Proton pump inhibitors are an underrecognized cause

Long-term PPI use (typically more than 3 months) can cause hypomagnesemia through impaired intestinal magnesium absorption. This is a class effect. Patients on chronic PPIs — particularly those also on diuretics — are at risk. The hypomagnesemia often recurs after repletion if the PPI is continued.

Hypermagnesemia is almost exclusively iatrogenic or renal

The kidney is highly efficient at excreting magnesium. Hypermagnesemia in patients with normal renal function is rare and almost always requires an exogenous source — magnesium-containing antacids or laxatives, IV magnesium for eclampsia or preterm labor, or magnesium-containing enemas. In patients with renal failure, even normal magnesium intake can cause accumulation.

Calcium gluconate is the antidote for severe hypermagnesemia

Calcium antagonizes the neuromuscular and cardiac effects of magnesium. In severe hypermagnesemia with respiratory depression, cardiac conduction abnormalities, or hemodynamic instability, IV calcium gluconate is the immediate intervention while definitive treatment (stopping the magnesium source, dialysis if needed) is arranged.

Clinical Pearl: Loss of deep tendon reflexes is the earliest clinical sign of magnesium toxicity and is used to monitor patients receiving therapeutic magnesium infusions. Check reflexes before each dose or continuously during infusion.

Bottom Line

Check magnesium when potassium or calcium is refractory. Correct it before expecting repletion to work. For toxicity, stop the source and give calcium gluconate.

Serum magnesium is a poor reflection of total body stores — a normal level does not exclude depletion.

Refractory hypokalemia or hypocalcemia should prompt immediate magnesium check and repletion.

Long-term PPI use is an underrecognized cause — consider switching to H2 blocker if recurrent hypomagnesemia occurs.

Alcoholism causes magnesium depletion through poor intake, renal wasting, and GI losses.

Hypermagnesemia is almost always iatrogenic or due to renal failure — stop the source first.

Loss of deep tendon reflexes is the earliest sign of magnesium toxicity — monitor reflexes during therapeutic infusions.

Calcium gluconate is the immediate antidote for severe symptomatic hypermagnesemia — it antagonizes the neuromuscular and cardiac effects.

EVIDENCE & REFERENCES

  1. Swaminathan R. Magnesium metabolism and its disorders. Clin Biochem Rev. 2003;24(2):47–66. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1855626/
  2. Jahnen-Dechent W, Ketteler M. Magnesium basics. Clin Kidney J. 2012;5(Suppl 1):i3–i14. doi:10.1093/ndtplus/sfr163