Laboratory and Diagnostic Testing for Hypomagnesemia
Measure serum magnesium concentration as the primary screening test, recognizing that a normal serum level does not exclude intracellular magnesium deficiency, which is the physiologically relevant compartment. 1
Initial Laboratory Panel
When evaluating hypomagnesemia, obtain the following tests simultaneously:
- Serum magnesium (total serum magnesium is the standard measurement despite free magnesium being physiologically active) 2
- Serum calcium (ionized and total, pH-corrected)
- Serum phosphorus
- Parathyroid hormone (PTH) - critical because hypomagnesemia causes functional hypoparathyroidism and PTH resistance 1, 3
- Serum potassium - hypomagnesemia frequently coexists with hypokalemia 4, 5
- Serum creatinine and eGFR - to assess renal function 1
The concurrent measurement of calcium and PTH is essential because inadequate intracellular magnesium results in PTH resistance (magnesium is a cofactor for adenylate cyclase), and you will find inappropriately normal or low PTH despite severe hypocalcemia. 1, 3
Determining the Etiology: Renal vs. Gastrointestinal Loss
To identify whether hypomagnesemia is due to renal wasting versus gastrointestinal losses, calculate:
Fractional Excretion of Magnesium (FEMg)
- FEMg < 2% indicates appropriate renal conservation → suggests gastrointestinal losses (malabsorption, diarrhea, short bowel syndrome) 4
- FEMg > 2% in the setting of hypomagnesemia with normal kidney function indicates renal magnesium wasting 4
24-Hour Urine Collection
Obtain 24-hour urine for:
- Magnesium excretion - important because significant magnesium deficiency may develop despite normal serum magnesium concentration 6
- Calcium excretion - helps differentiate causes of renal wasting 1
- Creatinine - validates collection adequacy
- Oxalate and citrate - if renal complications suspected 1
Urinary Calcium-Creatinine Ratio
This distinguishes specific tubular disorders:
- Hypercalciuria with renal magnesium wasting suggests: Bartter syndrome, loop diuretics, or familial renal magnesium wasting with nephrocalcinosis 4
- Hypocalciuria with renal magnesium wasting suggests: Gitelman syndrome or thiazide diuretics 4
Additional Diagnostic Tests Based on Clinical Context
For Suspected Malabsorption/Short Bowel Syndrome:
- Sodium and water balance assessment - hypomagnesemia often accompanies sodium depletion and secondary hyperaldosteronism 7
- Stool output volume (if jejunostomy or high-output stoma present)
- Vitamin D levels (25-OH vitamin D) - should be normalized as tissues other than kidneys can synthesize 1,25(OH)₂D 1
For Cardiac Manifestations:
- Electrocardiogram (ECG) - assess for QT prolongation and arrhythmias, particularly if serum magnesium < 1.2 mg/dL 1, 8, 9
- Cardiac monitoring if symptomatic or significant hypocalcemia present 1
For Skeletal Complications:
- Bone turnover markers
- Bone mineral density (DXA) with trabecular bone score (TBS) if available 1
For Neurologic Symptoms:
- Brain CT or MRI if neuropsychiatric symptoms present, especially with duration > 5 years 1
- Electroencephalography if seizures suspected 9
For Renal Complications:
- Renal ultrasound or abdominal imaging - assess for nephrocalcinosis, nephrolithiasis, or structural abnormalities 1, 4
Critical Diagnostic Pitfalls
Do not rely solely on serum magnesium - intracellular deficiency is significant even when serum levels appear normal 1, 6
Always check magnesium when evaluating severe hypokalemia (K+ ≤ 2.5 mmol/L) - reflex testing increases diagnosis from 7.7% to 69.3% 5
Recognize that hypomagnesemia impairs PTH secretion and causes PTH resistance - you cannot correct hypocalcemia without first correcting magnesium 1, 3
In short bowel patients, correct water and sodium depletion first - secondary hyperaldosteronism increases renal magnesium and potassium losses 7, 6
Do not confuse serum versus plasma magnesium values - this leads to serious diagnostic errors and underdiagnosis 10
Symptom Threshold
Most patients remain asymptomatic until serum magnesium falls below 1.2 mg/dL (< 0.5 mmol/L), at which point life-threatening ventricular arrhythmias may occur 8, 4. However, symptoms can manifest at higher levels depending on the rate of decline and concurrent electrolyte abnormalities.