The kidney sets how much potassium the body keeps; in the later tubule, magnesium inside the cells presses on a potassium gate, so potassium leaks out slowly.The body sets how much potassium it keeps mainly by adjusting how much goes out in the urine. In the later part of the kidney tubule, cells carry a channel that lets potassium out into the urine, called ROMK. Magnesium ions (Mg²⁺) inside the cell press on this channel from the inside, so potassium leaks out slowly.
2. Low magnesium lifts the brake
When magnesium falls, that brake comes off and more potassium flows into the urine; taking potassium alone then means much of it leaks away the same way.A review points out that magnesium deficiency alone does not necessarily cause low potassium; potassium leaks heavily only when more sodium also reaches the later part of the kidney tubule, or when aldosterone (a hormone that makes the kidney keep sodium and release potassium) is high. By that mechanism, diuretics (water pills) send more sodium to exactly this stretch, so when they meet low magnesium, potassium is hardest to bring back up.
According to the US NIH Office of Dietary Supplements (NIH ODS), more than half of people with clinically significant low potassium might also be short of magnesium, and when both are low, both should be corrected together.
3. The parathyroids hold back PTH
When blood calcium drops, the parathyroid glands release a hormone that makes bone give up calcium and the kidneys keep more; severe magnesium deficiency stops that release.The hormone is parathyroid hormone (). Severe magnesium deficiency breaks this pathway at both ends, and the first end is the glands themselves: they fail to release PTH.
4. Bone and kidney barely respond
The that is released gets a weak response from bone and kidney, so blood calcium stays low; magnesium has to be restored first.In a study of 17 magnesium-deficient patients, rose quickly once magnesium was given (within 1 minute of an intravenous dose), yet blood calcium took about 4 days to return to normal; the authors read this as bone and kidney responding sluggishly to PTH.
So when low potassium or low calcium will not correct, think of magnesium. Correcting electrolytes is a doctor's job: which one to replace first, whether by mouth or by vein, and how much all depend on blood test results.
Mechanism
Magnesium · the potassium brake and the calcium signal