Platform
Company
Electrolytes
Review status
Currently under review
Pending specialist review and validation.
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.
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.
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 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.
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.
Recent intake of high magnesium foods, supplements, or magnesium-containing antacids can raise urinary magnesium. Low dietary intake or fasting can lower it.
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.
Reduced kidney function may lower urinary magnesium excretion, while certain tubular disorders can increase losses. Interpreting results requires knowledge of your kidney health.
Vomiting, diarrhea, and malabsorption decrease urinary magnesium because the kidneys try to conserve it. After repletion therapy, urinary excretion may temporarily rise.
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.
References