A magnesium urine test is helpful to healthcare professionals for assessing magnesium levels related to renal function. This assay helps in potential diagnosis of increased magnesium levels observed in case of Bartter’s syndrome, alcoholism, and transplant recipients on prednisone. Decreased magnesium levels are observed in Crohn’s disease.