Create Account

One Health helps you track and understand your health simply.

Create Account

One Health helps you track and understand your health simply.

Urine 24 Hour Magnesium

Electrolytes

24-hour urinary magnesium24h U-MgMagnesium, urine 24-hourU Mg 24h

Review status

Currently under review

Pending specialist review and validation.

What it shows

The 24 hour urine magnesium test measures how much magnesium your kidneys excrete over a full day. Magnesium is an essential mineral that supports nerve and muscle function, heart rhythm, and bone health. Because kidney handling of magnesium varies during the day, collecting all urine for 24 hours provides a more complete picture than a single spot sample.

This test is often ordered together with a blood magnesium test. Looking at both helps your care team understand whether a magnesium problem is related to intake and absorption in the gut or to the way the kidneys conserve or lose magnesium.

Why it matters

Your clinician may order this test if you have symptoms that could be related to magnesium imbalance, such as muscle cramps, weakness, tremor, seizures, or abnormal heart rhythms. It helps distinguish kidney magnesium wasting from losses due to low intake, vomiting, diarrhea, or malabsorption.

The test can also be part of kidney stone risk evaluation and is useful when monitoring medicines that influence magnesium balance, including diuretics, certain chemotherapy drugs, calcineurin inhibitors, or long-term acid suppression. Results can guide treatment choices, nutrition plans, and the need for further evaluation of kidney or digestive health.

Understanding your results

Your result will be interpreted alongside your symptoms, blood magnesium, kidney function, and other electrolytes. A higher than expected daily excretion may indicate that the kidneys are losing magnesium, which can occur with some medications, inherited tubular disorders, or certain hormonal conditions. A lower than expected excretion, especially when blood magnesium is low, may suggest inadequate intake or poor absorption in the gut.

Hydration, how completely the collection was performed, and recent diet can affect results. If results are unexpected, your provider may repeat the collection, compare with a spot urine test standardized to creatinine, or order related tests such as calcium and potassium. Management can include adjusting medicines, treating gastrointestinal losses, and optimizing dietary intake with guidance from your care team.

Reference ranges

35 mmol/d
All sexes
0 days – 150 years

Reference intervals vary by laboratory, analyzer, methodology, population, and units. The ranges shown here are for education only. Always interpret your results against the reference interval printed on your own lab report.

Factors that could impact Urine 24 Hour Magnesium

  • Collection completeness

    Missing any urine during the 24 hour period or starting or stopping at the wrong time can significantly underestimate the result. Keep the container cool and follow storage instructions.

  • Diet and supplements

    Recent intake of high magnesium foods, supplements, or magnesium-containing antacids can raise urinary magnesium. Low dietary intake or fasting can lower it.

  • Medications

    Loop and thiazide diuretics, aminoglycosides, cisplatin, amphotericin B, and calcineurin inhibitors can increase kidney magnesium losses. Long-term proton pump inhibitors reduce absorption, often leading to lower urinary magnesium.

  • Kidney function

    Reduced kidney function may lower urinary magnesium excretion, while certain tubular disorders can increase losses. Interpreting results requires knowledge of your kidney health.

  • Gastrointestinal losses

    Vomiting, diarrhea, and malabsorption decrease urinary magnesium because the kidneys try to conserve it. After repletion therapy, urinary excretion may temporarily rise.

  • Hydration and physical stress

    Very high fluid intake can dilute urine and heavy exercise or sweating can shift magnesium balance. Although totals are summed over 24 hours, extreme conditions can still influence results.

2026

References

  1. McGill University Health Centre. (2015, June 22). Urine 24 Hour Magnesium (Task CD 317710). Laboratory reference ranges.
  2. Pearle, M. S., Goldfarb, D. S., Assimos, D. G., Curhan, G., Denu-Ciocca, C. J., Matlaga, B. R., Monga, M., Penniston, K. L., Preminger, G. M., Turk, T. M. T., & White, J. R. (2014). Medical management of kidney stones: AUA guideline. Journal of Urology, 192(2), 316–324. External link
  3. Elin, R. J. (2010). Assessment of magnesium status. Clinical Chemistry, 56(8), 1186–1197. https://doi.org/10.1373/clinchem.2010.147280 External link