Magnesium: The Forgotten Electrolyte That Runs the Others
Magnesium is the electrolyte nobody checks. It rarely appears on the routine panel, it hides inside cells where the blood level barely hints at the true deficit, and yet it quietly governs the two ions everyone does check — potassium and calcium. Miss it, and you chase a low potassium that refuses to correct and a low calcium that ignores your infusions, replacing bag after bag while the real culprit sits unmeasured. Learn one rule from this chapter and let it be this: when potassium or calcium won't come up, check the magnesium.
A 58-year-old man with a long history of alcohol dependence is admitted with vomiting and diarrhoea. His potassium is 2.9 mmol/L, so the team runs in intravenous potassium — one bag, then another. The next morning it is still 2.9. Frustrated, they give more, faster. It doesn't budge. Somewhere in the notes is a magnesium level that was never sent. When it finally is, it comes back at 0.4 mmol/L — profoundly low. His kidneys, starved of magnesium, are haemorrhaging potassium into the urine as fast as it is infused. Only once magnesium is replaced does the potassium finally climb. The whole ward round had been treating the symptom and ignoring the cause.
The master key: why magnesium runs the others
Magnesium is a cofactor for hundreds of enzymes and, crucially, for the pumps and channels that set the other ions. Every molecule of ATP the body uses is really Mg-ATP: magnesium is the ion that makes cellular energy work, which is why a deficit ripples so widely. Two consequences dominate the clinic. First, magnesium restrains renal potassium loss — it normally blocks a potassium channel (ROMK) in the distal nephron that leaks potassium into the urine. When magnesium falls, that brake is released and the kidney wastes potassium relentlessly. No amount of intravenous potassium keeps up, because it flows straight out again. This is the mechanism behind refractory hypokalaemia — a rule threaded through the whole Hypokalaemia chapter. Second, magnesium is required for the parathyroid gland to secrete PTH and for the tissues to respond to it; a low magnesium blunts PTH, so calcium falls too and resists replacement. One under-measured cation is therefore quietly setting both potassium and calcium.
Think of magnesium as the building's electrician, not the tenant. You keep re-stocking two flats — potassium and calcium — but the goods vanish overnight and the lights won't come on. The problem isn't the flats; it's that the electrician who keeps the wiring intact has walked off the job. Replace him — restore magnesium — and suddenly the deliveries stay put and the lights work. Fix the utility and the apartments look after themselves; keep restocking without him and you pour supplies into a building that can't hold them.
Hypomagnesaemia: the common, important one
Low magnesium comes from three routes: you lose it from the gut, you lose it from the kidney, or you never take it in. Gastrointestinal loss is the classic route: prolonged diarrhoea, malabsorption, and — a genuinely important drug cause students forget — long-term proton-pump inhibitors (omeprazole and its relatives), which impair intestinal magnesium absorption and are now a recognised cause of chronic hypomagnesaemia, cross-linking straight to the Gastrointestinal section. Renal loss is the other great source: loop diuretics (furosemide) and thiazides both increase urinary magnesium; alcohol and chronic alcoholism cause direct renal wasting (and go hand-in-hand with poor intake); and a roll-call of nephrotoxic drugs strips magnesium through the tubule — aminoglycosides (gentamicin), amphotericin B, cisplatin, and the calcineurin inhibitors (ciclosporin, tacrolimus). Finally, poor intake and refeeding: the starved or alcoholic patient starts depleted, and when feeding restarts the insulin surge drives magnesium into cells — one of the electrolytes that crashes in refeeding syndrome, alongside phosphate and potassium.
Here is the single highest-yield rule in the electrolyte chapters: unexplained hypokalaemia or hypocalcaemia that will not correct despite replacement should make you check — and replace — magnesium FIRST. Low magnesium is the hidden reason potassium keeps leaking out of the kidney and the reason PTH can't defend the calcium. Give magnesium and both often correct on their own. Chasing the potassium or calcium alone is like bailing a boat without plugging the hole.
What low magnesium looks like
Clinically, hypomagnesaemia mimics low calcium — and no wonder, since it often causes it. The dominant theme is neuromuscular excitability: tremor, muscle twitching, tetany, and in severe cases seizures. The membranes of nerve and muscle become unstable and fire too easily. The other danger is cardiac: magnesium stabilises the myocardium, and a deficit predisposes to arrhythmias — most famously a role in torsades de pointes, the polymorphic ventricular tachycardia that complicates a prolonged QT interval. This is a direct bridge to the Cardiovascular section, and it carries a treatment fact worth memorising: intravenous magnesium is the treatment for torsades de pointes regardless of the serum magnesium level, because it stabilises the ventricular membrane in the acute event. Because the blood level poorly reflects total-body stores, a normal serum magnesium does not exclude deficiency — treat the patient in front of you, especially the alcoholic or the refractory hypokalaemia.
Replacement is chosen by severity and by how sick the patient is. For mild or chronic deficiency, oral magnesium salts (magnesium glycerophosphate or magnesium oxide) are used — but their dose is capped by an unavoidable side effect: unabsorbed magnesium is an osmotic laxative, so pushing the dose causes diarrhoea (the very reason magnesium salts are sold as laxatives). For severe, symptomatic, or arrhythmic hypomagnesaemia, give intravenous magnesium sulfate; it is the definitive treatment when the patient is seizing, tetanic, or in torsades. And always remember the coupling: when you replace magnesium, recheck and replace the potassium and calcium it was dragging down.
GI loss: proton-pump inhibitors (omeprazole) with long-term use. Renal loss: loop diuretics (furosemide), thiazides, aminoglycosides (gentamicin), amphotericin B, cisplatin, calcineurin inhibitors (ciclosporin, tacrolimus). Contributing: alcohol/alcoholism (renal wasting plus poor intake). Treatment: oral magnesium salts (glycerophosphate/oxide) for mild-chronic, limited by diarrhoea; IV magnesium sulfate for severe, symptomatic, or arrhythmic disease — and IV magnesium for torsades de pointes whatever the level.
- Magnesium is Mg-ATP's cofactor and the brake on renal potassium loss and the driver of PTH — it runs K+ and Ca2+.
- Hypomagnesaemia causes refractory hypokalaemia (renal K wasting) and hypocalcaemia (blunted PTH).
- Causes: GI loss (diarrhoea, malabsorption, long-term PPIs), renal loss (loop/thiazide diuretics, alcohol, aminoglycosides, amphotericin, cisplatin, calcineurin inhibitors), poor intake/refeeding.
- Features mirror low calcium: neuromuscular excitability (tremor, tetany, seizures) and arrhythmias including torsades.
- The rule: low K+ or Ca2+ that won't correct → check and replace magnesium FIRST.
- Treat mild/chronic with oral salts (limited by diarrhoea); severe/arrhythmic with IV magnesium sulfate.
Hypermagnesaemia: rare, and almost always iatrogenic
High magnesium is far less common, because healthy kidneys excrete an excess with ease. It takes two things together: a kidney that can't clear it (renal failure) plus a magnesium load. The load is usually a drug — magnesium-containing antacids or laxatives given to a patient with poor renal function — or, importantly, therapeutic magnesium infused deliberately, most classically in obstetrics for the treatment of pre-eclampsia and eclampsia, cross-linking to the Obstetrics chapter. The features unfold as a descending, orderly loss of function as the level climbs: first the deep tendon reflexes disappear (an early, checkable warning sign), then respiratory depression, then hypotension and bradycardia, and finally cardiac arrest. Because reflexes go early, they are the bedside monitor during any magnesium infusion — losing them is the signal to stop.
The antidote is the ion magnesium spends its life antagonising: calcium. Management begins with the obvious — stop all magnesium — then support the circulation with fluids and promote excretion with a loop diuretic if kidney function allows, or dialysis in renal failure. But the specific antidote is intravenous calcium gluconate, which directly antagonises magnesium at the neuromuscular junction and the heart, buying time by reversing the paralysis and cardiac depression while magnesium is cleared. This is exactly the same calcium-versus-magnesium antagonism you meet in the treatment of magnesium toxicity during eclampsia therapy — a shared fact across the Obstetrics and Toxicology chapters. Magnesium and calcium are physiological rivals at the membrane, and here you deploy one to undo an overdose of the other.
- Hypermagnesaemia is rare and needs both renal failure AND a magnesium load (antacids/laxatives, or obstetric magnesium).
- Features descend in order: lost deep tendon reflexes → respiratory depression → hypotension/bradycardia → cardiac arrest.
- Reflexes disappear first, so they are the bedside monitor during any magnesium infusion.
- Antidote = IV calcium gluconate, which directly antagonises magnesium at the neuromuscular junction and heart.
- Also: stop magnesium, give fluids/loop diuretic, and dialyse in renal failure.
- Chasing refractory hypokalaemia with ever-more potassium while never checking magnesium — the potassium can't rise until magnesium is replaced.
- Trusting a "normal" serum magnesium to exclude deficiency — the blood level poorly reflects total-body stores, so treat the clinical picture.
- Continuing a magnesium infusion once deep tendon reflexes are lost — that is the warning sign of dangerous hypermagnesaemia; stop and be ready with IV calcium gluconate.
A patient with chronic alcohol dependence has a potassium of 2.8 mmol/L that has not risen despite two doses of intravenous potassium. What is the most appropriate next step?
- Magnesium is the under-measured master electrolyte: it brakes renal potassium loss and enables PTH, so it governs both potassium and calcium.
- Hypomagnesaemia (common) comes from GI loss (diarrhoea, malabsorption, long-term PPIs), renal loss (loop/thiazide diuretics, alcohol, aminoglycosides, amphotericin, cisplatin, calcineurin inhibitors), and poor intake/refeeding; it causes refractory low K+ and Ca2+, neuromuscular excitability and arrhythmias.
- The golden rule: potassium or calcium that won't correct → replace magnesium first; treat severe or arrhythmic cases (and torsades, whatever the level) with IV magnesium sulfate.
- Hypermagnesaemia (rare, iatrogenic/renal) descends from lost reflexes to respiratory depression to cardiac arrest; stop magnesium and give IV calcium gluconate as the antidote — the same calcium-versus-magnesium antagonism used in eclampsia.
- Rang & Dale's Pharmacology — Magnesium, calcium and the control of neuromuscular and cardiac excitability.
- Katzung — Basic & Clinical Pharmacology: agents affecting electrolyte balance; magnesium in arrhythmia and obstetrics.
- British National Formulary (BNF) — Magnesium salts; magnesium sulfate injection; treatment of hypomagnesaemia and hypermagnesaemia.
- NICE Clinical Guideline CG174 — Intravenous fluid therapy in adults in hospital (electrolyte assessment and replacement).
- UK Kidney Association — guidance on electrolyte disturbance and refractory hypokalaemia (the replace-magnesium-first principle).
- Ganong's Review of Medical Physiology — magnesium as an ATP cofactor and its role in membrane excitability and PTH secretion.

