med study partner

Articles & Guides › Articles › Renal, Urinary & Electrolytes

Potassium, calcium, phosphate and magnesium

How potassium shifts between cells and blood, how to recognize and treat hyperkalemia and why low magnesium keeps potassium low, how PTH and other causes of hypercalcemia are sorted out, and how phosphate disorders and tumor lysis syndrome arise.

Renal, Urinary & Electrolytes · 7 min read · Reviewed 2026-11-09

Potassium, calcium, phosphate and magnesium are each held within narrow limits because small changes alter how nerves and muscles fire. Potassium is mostly inside cells, so shifts across cell membranes can change the blood level quickly; calcium is controlled by PTH and vitamin D; and magnesium quietly affects both[1]. This article covers potassium shifts, hyperkalemia, hypokalemia and magnesium, hypercalcemia, and phosphate disorders including tumor lysis syndrome.

Key points

  • About 98% of potassium is inside cells. Insulin, beta-2 agonists and alkalosis shift it in; insulin deficiency, hyperosmolality, acidosis and cell lysis shift it out.
  • In DKA, serum potassium is often normal or high but total body potassium is low, so it falls sharply with insulin.
  • Hyperkalemia ECG: peaked T waves, then PR prolongation and lost P waves, then wide QRS and a sine wave. Give IV calcium first (it stabilizes the membrane but does not lower potassium), then insulin with glucose and beta-2 agonists, then remove potassium.
  • Hypokalemia does not correct until magnesium is replaced, because magnesium normally blocks ROMK.
  • Hypercalcemia: high PTH means primary hyperparathyroidism (or FHH if urine calcium is low); suppressed PTH means PTHrP, bone metastases or excess calcitriol.
  • Tumor lysis syndrome: high potassium, phosphate and uric acid with low calcium and kidney injury; prevent with fluids and allopurinol or rasburicase.

Potassium distribution and transcellular shifts

Where potassium lives

The body holds about 3,500 mEq of potassium, roughly 98% inside cells, kept there by the sodium-potassium pump. Because only about 2% is outside cells, small shifts change serum potassium a lot[1].

Shifts potassium into cellsShifts potassium out of cells
InsulinInsulin deficiency (DKA)
Beta-2 agonists (albuterol, epinephrine)Nonselective beta-blockers
AlkalosisAcidosis, especially nonorganic, such as from diarrhea
Rapid cell growth (B12 treatment, refeeding)Hyperosmolality (hyperglycemia, mannitol)
Cell lysis: rhabdomyolysis, tumor lysis, hemolysis
Digoxin toxicity; succinylcholine after burns or crush injury

The DKA example

In diabetic ketoacidosis, insulin deficiency and high osmolality move potassium out of cells, so serum potassium is often normal or high, while osmotic diuresis and vomiting have depleted total body potassium. Insulin drives potassium back into cells and can drop the level sharply, so insulin is held if potassium is below about 3.3 mEq/L and potassium is added once it falls toward 5[1].

Pseudohyperkalemia, from cells breaking down in the sample (hemolysis, a tight tourniquet or very high white cell or platelet counts), gives a high value with a normal ECG.

Hyperkalemia: causes, ECG and emergency treatment

Causes

Healthy kidneys excrete large potassium loads, so lasting hyperkalemia almost always involves reduced excretion: kidney failure, hypoaldosteronism (including type 4 RTA in diabetes) and drugs such as ACE inhibitors, ARBs, spironolactone, amiloride, trimethoprim (which blocks ENaC), heparin, NSAIDs and calcineurin inhibitors. Shifts out of cells and excess intake add to it[2].

ECG changes

Hyperkalemia makes the resting membrane potential less negative, and sustained depolarization inactivates sodium channels and slows conduction. Changes appear roughly in this order:

  1. peaked, narrow T waves;
  2. PR prolongation, then flattened and lost P waves;
  3. QRS widening;
  4. a sine-wave pattern;
  5. ventricular fibrillation or asystole.

The ECG does not always track the potassium level, so any change calls for urgent treatment.

Emergency treatment

StepTreatmentNotes
1. Stabilize the membraneIV calciumRaises the threshold potential; works in minutes; does not lower potassium
2. Shift potassium into cellsIV insulin with glucose; inhaled albuterol; bicarbonate if acidoticWorks in 15 to 30 minutes, lasts hours
3. Remove potassiumHemodialysis, loop diuretics, potassium bindersDefinitive

Offending drugs are stopped and the cause treated[1].

Hypokalemia and the role of magnesium

Causes and effects

Hypokalemia comes from gastrointestinal losses (diarrhea; vomiting, mainly through kidney losses driven by alkalosis and aldosterone), kidney losses (diuretics, hyperaldosteronism, Cushing syndrome, licorice, Bartter, Gitelman and Liddle syndromes, RTA types 1 and 2, amphotericin B, low magnesium), shifts into cells and, rarely, poor intake alone[3].

Low potassium hyperpolarizes cells, causing weakness, cramps, rhabdomyolysis in severe cases and ileus. The ECG shows U waves, flattened T waves and a long QT, with a higher risk of arrhythmia, especially with digoxin. Chronic hypokalemia causes nephrogenic diabetes insipidus.

Why magnesium matters

In principal cells, potassium leaves into the urine through ROMK channels, and magnesium inside the cell normally blocks ROMK. When magnesium is low, the block is lost and potassium keeps leaking out however much is given, so hypokalemia will not correct until magnesium is replaced[4].

Low magnesium follows alcohol use disorder, diarrhea, long-term proton pump inhibitors, diuretics, aminoglycosides, amphotericin B, cisplatin and Gitelman syndrome. It also causes low calcium, because magnesium is needed for PTH secretion and action. Torsades de pointes is treated with IV magnesium. High magnesium, usually from magnesium given in preeclampsia or antacids in kidney failure, abolishes tendon reflexes and then depresses breathing; calcium is the antidote.

Calcium regulation and hypercalcemia

Calcium in the blood

About 40% of serum calcium is bound to albumin and about 50% is ionized and active. Low albumin lowers total but not ionized calcium; add about 0.8 mg/dL for every 1 g/dL that albumin is below 4. Alkalosis increases calcium binding to albumin and lowers ionized calcium, which is why overbreathing causes tingling. PTH raises calcium through bone, distal tubule and calcitriol; calcitriol raises gut absorption; FGF23 lowers phosphate and calcitriol[5].

Symptoms

"Stones, bones, groans, thrones and psychiatric overtones": kidney stones and nephrogenic diabetes insipidus, bone pain, abdominal pain and constipation, polyuria, confusion, and a short QT interval.

Start with PTH

PTHCauseClues
High or inappropriately normalPrimary hyperparathyroidismUsually an adenoma; low phosphate; most common cause in outpatients
High or inappropriately normalFamilial hypocalciuric hypercalcemiaInactivating calcium-sensing receptor mutation; low urine calcium; benign; surgery does not help
SuppressedPTH-related peptideSquamous cell cancers of lung and head and neck, renal, bladder and breast cancer; most common cause in hospital
SuppressedBone metastases, myelomaOsteoclast activation by tumor cytokines
SuppressedExcess calcitriolSarcoidosis, tuberculosis, lymphoma
SuppressedOtherVitamin D toxicity, milk-alkali syndrome, thiazides, immobilization

Treating severe hypercalcemia

  1. IV saline, because patients are dehydrated from nephrogenic diabetes insipidus.
  2. Calcitonin, which works within hours but fades within 2 days.
  3. Bisphosphonates or denosumab, which take days but last weeks.
  4. Glucocorticoids for granulomatous disease or lymphoma; dialysis if severe.

Loop diuretics are used only after volume is restored[5].

Phosphate disorders and tumor lysis syndrome

High and low phosphate

High phosphateLow phosphate
Chronic kidney diseaseRefeeding syndrome (insulin drives phosphate into cells)
Tumor lysis, rhabdomyolysis, hemolysisAlcohol use disorder, DKA treatment
Phosphate enemasHyperparathyroidism and PTH-related peptide
HypoparathyroidismFanconi syndrome, FGF23 excess, vitamin D deficiency

High phosphate binds calcium, causing tissue calcification and low ionized calcium. Severe low phosphate depletes ATP and 2,3-BPG, causing weakness, breathing failure and hemolysis.

Tumor lysis syndrome

After chemotherapy for bulky, fast-growing cancers such as Burkitt lymphoma and acute leukemias, dying cells release their contents[6]:

  • High potassium, risking arrhythmia.
  • High phosphate, because lymphoblasts are rich in it.
  • Low calcium, as calcium phosphate precipitates, causing cramps, tingling and Chvostek and Trousseau signs.
  • High uric acid, from breakdown of nucleic acids.
  • Acute kidney injury, as uric acid and calcium phosphate crystallize in the tubules.

Prevention relies on IV hydration, allopurinol (which blocks new uric acid production) or rasburicase (which breaks down existing uric acid but is contraindicated in G6PD deficiency), treating hyperkalemia and limiting phosphate. Asymptomatic low calcium is not treated with calcium, which would worsen precipitation[7].

Common confusions

  • Calcium in hyperkalemia: it stabilizes the membrane by raising the threshold potential; it does not lower potassium.
  • Low aldosterone: causes high potassium, not low.
  • Primary hyperparathyroidism versus FHH: both have high calcium with high or normal PTH; urine calcium is low in FHH.
  • Low calcium in tumor lysis versus other causes: citrate after transfusion or low magnesium lower calcium too, but neither explains the high potassium, phosphate and uric acid.

References

  1. Palmer BF, Clegg DJ. Physiology and pathophysiology of potassium homeostasis. Adv Physiol Educ. 2016;40(4):480-490. doi:10.1152/advan.00121.2016 Link ↩
  2. Vanderah TW, ed. Katzung's Basic and Clinical Pharmacology. 16th ed. McGraw Hill; 2024. ↩
  3. Gennari FJ. Hypokalemia. N Engl J Med. 1998;339(7):451-458. doi:10.1056/NEJM199808133390707 Link ↩
  4. Huang CL, Kuo E. Mechanism of hypokalemia in magnesium deficiency. J Am Soc Nephrol. 2007;18(10):2649-2652. doi:10.1681/ASN.2007070792 Link ↩
  5. Hall JE, Hall ME. Guyton and Hall Textbook of Medical Physiology. 14th ed. Elsevier; 2021. ↩
  6. Howard SC, Jones DP, Pui CH. The tumor lysis syndrome. N Engl J Med. 2011;364(19):1844-1854. doi:10.1056/NEJMra0904569 Link ↩
  7. Cairo MS, Bishop M. Tumour lysis syndrome: new therapeutic strategies and classification. Br J Haematol. 2004;127(1):3-11. doi:10.1111/j.1365-2141.2004.05094.x Link ↩

Test yourself in the Question Bank · Listen to the podcasts