Skip to content
S

Medically Reviewed By

Dr. Srinivas

MBBS, DCP, DNB Pathology

Pathology · Last reviewed: June 2026

Under our Editorial Policy & Medical Review Policy

Magnesium - 24 hours urine

Get reliable diagnostics, expert support, and a seamless booking experience with Focus Diagnostics.

PriceRs. 500
Book Now

About this test

Magnesium - 24 Hours Urine Test

The Magnesium - 24 Hours Urine test measures the total amount of magnesium excreted in all urine produced during a complete 24-hour period. It is used to evaluate how the kidneys handle magnesium and may help investigate abnormal magnesium levels, suspected renal magnesium loss, selected kidney disorders, nutritional or gastrointestinal causes of magnesium deficiency, and recurrent kidney stones.

Magnesium is an essential mineral involved in hundreds of enzyme-controlled processes. It supports normal muscle contraction, nerve signalling, heart rhythm, energy production, blood glucose regulation, protein synthesis, DNA production, and bone health. Approximately half to more than half of the body's magnesium is stored in bones, while most of the remainder is present inside cells and soft tissues. Less than one percent is found in circulating blood.

The kidneys play a major role in maintaining magnesium balance. They filter magnesium from the blood and reabsorb much of it according to the body's needs. When magnesium stores are low, healthy kidneys generally conserve magnesium by reducing urinary excretion. When magnesium intake or blood concentration is high, or when kidney reabsorption is impaired, urinary magnesium excretion may increase.

A serum magnesium test measures the concentration circulating in blood at a particular time, while a 24-hour urine test measures the amount eliminated during an entire day. Doctors may interpret the two tests together to determine whether an abnormal blood magnesium concentration could be related to inappropriate kidney loss, reduced intake, gastrointestinal loss, medication effects, or another medical condition.

The result must be evaluated with serum magnesium, kidney function, clinical symptoms, medicines, supplements, dietary intake, total urine volume, and collection completeness. One urinary magnesium result cannot independently diagnose a specific condition.

Benefits of the Magnesium - 24 Hours Urine Test

  • Measures total urinary magnesium excretion over a complete 24-hour period.
  • Helps assess whether the kidneys are conserving or losing magnesium.
  • Supports investigation of unexplained low serum magnesium.
  • May help differentiate renal magnesium loss from gastrointestinal loss or reduced intake.
  • Contributes to metabolic evaluation in patients with recurrent kidney stones.
  • May be interpreted with urinary calcium, citrate, oxalate, uric acid, sodium, and creatinine.
  • Provides a more integrated assessment than a single random urine magnesium measurement.
  • Supports monitoring of selected kidney, endocrine, gastrointestinal, or metabolic conditions.
  • May help evaluate the effect of medicines that influence renal magnesium handling.
  • Provides quantitative information for a personalised treatment or supplementation plan.

Clinical Indications and Applications

Investigation of Hypomagnesemia: Hypomagnesemia means that the magnesium concentration in blood is below the laboratory's reference interval. Causes may include reduced intake, prolonged diarrhoea, vomiting, malabsorption, alcohol use, uncontrolled diabetes, kidney loss, endocrine disorders, or medication effects. Urinary magnesium may help determine whether the kidneys are appropriately conserving magnesium.

Suspected Renal Magnesium Wasting: When blood magnesium is low but urinary magnesium remains inappropriately elevated, the pattern may suggest that the kidneys are losing magnesium. This can occur with certain kidney tubular disorders, inherited conditions, medicines, metabolic abnormalities, or recovery from kidney injury.

Gastrointestinal Magnesium Loss: Chronic diarrhoea, malabsorption, intestinal surgery, inflammatory bowel disease, or other gastrointestinal conditions can reduce magnesium absorption or increase loss. In such cases, the kidneys may respond by conserving magnesium, resulting in relatively low urinary excretion.

Medication-Related Magnesium Loss: Some medicines can influence magnesium balance or kidney handling. Examples may include certain diuretics, proton-pump inhibitors, antibiotics, chemotherapy medicines, immunosuppressants, and other treatments. Medication effects vary, and patients should not discontinue prescribed medicines without medical advice.

Kidney Stone Evaluation: Magnesium can interact with substances involved in urinary crystal formation. A 24-hour urine magnesium measurement may be included in a broader metabolic kidney-stone profile with urine volume, calcium, oxalate, citrate, sodium, uric acid, pH, and creatinine. It should not be interpreted independently when evaluating stone risk.

Hypermagnesemia: High blood magnesium is less common and may occur with reduced kidney function or excessive intake of magnesium-containing medicines, laxatives, antacids, or supplements. Urinary testing may contribute to specialist evaluation, although serum magnesium and kidney function are usually central.

Inherited Tubular Disorders: Certain rare inherited conditions can impair renal magnesium reabsorption. A doctor may use urinary magnesium with blood electrolytes, urinary calcium, acid-base studies, genetic testing, and family history when such a disorder is suspected.

Endocrine and Metabolic Conditions: Diabetes, parathyroid disorders, thyroid conditions, aldosterone-related disorders, and other metabolic problems may influence magnesium balance directly or through changes in kidney function and electrolyte handling.

Why Doctors Recommend This Test

Doctors recommend this test when they need to understand whether the kidneys are retaining or excreting an appropriate amount of magnesium. Serum magnesium alone cannot always reveal the underlying reason for an abnormal result because only a small fraction of total body magnesium is present in blood.

If serum magnesium is low, healthy kidneys should normally reduce magnesium excretion. Continued or excessive urinary loss in that situation may support renal magnesium wasting. Conversely, low urinary magnesium may be more consistent with inadequate intake or gastrointestinal loss, although clinical interpretation requires consideration of the complete medical picture.

A 24-hour collection is useful because magnesium excretion can vary during the day according to food intake, supplements, medicines, hydration, physical activity, and biological rhythms. Collecting all urine during a full day provides a measurement of total daily excretion.

The doctor may interpret the result with serum magnesium, serum calcium, potassium, phosphate, creatinine, estimated glomerular filtration rate, parathyroid hormone, vitamin D, and other tests. When kidney stones are being investigated, urinary calcium, citrate, oxalate, uric acid, sodium, pH, volume, and creatinine may also be required.

Preparation Before the Test

Follow the collection instructions supplied by Focus Diagnostics. The laboratory will provide an appropriate 24-hour urine container and explain whether a preservative is present or added during laboratory processing. Do not discard a preservative, rinse the container, or add any substance yourself.

Fasting is generally not required during the collection period. Maintain your usual diet and normal fluid intake unless your doctor provides specific instructions. For metabolic kidney-stone evaluation, the doctor may prefer testing while you follow your normal diet so the result reflects ordinary intake.

Inform the doctor about all prescription medicines, non-prescription medicines, diuretics, antacids, laxatives, nutritional supplements, herbal products, electrolyte preparations, and magnesium-containing products. Do not stop medication or supplementation unless the treating doctor instructs you to do so.

Tell the laboratory if you are menstruating, have a urinary tract infection, have visible blood in urine, or are unable to collect every specimen. Contamination or incomplete collection may make the result unreliable.

Choose a day when you can remain near collection facilities and collect every urine specimen for a full 24 hours. Ask the laboratory whether the container must be refrigerated or kept in a cool place. Follow those storage instructions throughout the collection.

How Is the 24-Hour Urine Sample Collected?

Select a convenient starting time, commonly after waking in the morning. At the chosen time, empty your bladder into the toilet and do not add that first urine to the container. Record the starting date and exact time.

After discarding the first specimen, collect every urine sample passed during the following 24 hours. This includes urine passed during the day, overnight, and during bowel movements. Use a clean collection aid if supplied and transfer the urine carefully into the main container.

At the same time on the next morning, empty your bladder and include this final specimen in the container. For example, if the first specimen was discarded at 7:00 AM on the first day, collect and include the urine passed at approximately 7:00 AM on the following day.

Keep the container securely closed and store it exactly as instructed. Do not allow urine to become contaminated with stool, menstrual blood, toilet paper, tap water, soap, disinfectant, or cleaning products.

If any urine is missed, spilled, or discarded accidentally, contact the laboratory. The collection may need to be restarted because missing one specimen can produce a falsely low 24-hour result. Do not extend the collection to compensate without laboratory guidance.

Return the complete collection promptly. The laboratory records the total urine volume, mixes the specimen, and analyses an aliquot. The total volume and collection duration are required to calculate magnesium excretion over 24 hours. Urine creatinine may be measured to help assess whether the collection is reasonably complete.

Normal Reporting Time

The report for the Magnesium - 24 Hours Urine test is generally available within 1 to 2 working days after submission of the complete specimen. Reporting may take longer if the collection details are incomplete, the sample requires repeat analysis, or the test is processed with a larger metabolic urine profile.

Patients should confirm the expected reporting time with Focus Diagnostics. The report may be delayed or rejected if the total urine volume, collection start and finish times, patient identification, or storage conditions are not documented correctly.

Who Should Consider This Test?

  • Patients with low serum magnesium requiring investigation of the underlying cause.
  • Individuals with suspected renal magnesium wasting.
  • Patients with recurrent kidney stones undergoing metabolic urine evaluation.
  • People with chronic diarrhoea, malabsorption, or gastrointestinal surgery.
  • Patients taking medicines that may affect magnesium balance.
  • Individuals with unexplained muscle cramps, tremors, weakness, or abnormal heart rhythm and documented magnesium abnormalities.
  • Patients with kidney tubular disorders or suspected inherited electrolyte conditions.
  • People with diabetes or endocrine conditions affecting electrolyte balance.
  • Patients receiving magnesium supplementation who require medically supervised assessment.
  • Individuals specifically referred by a nephrologist, endocrinologist, gastroenterologist, urologist, or physician.

Understanding the Test Results

The result is usually reported as total magnesium excreted during 24 hours, with a unit and laboratory-specific reference interval. The correct interpretation depends on serum magnesium, kidney function, dietary intake, medicines, supplements, total urine volume, and collection completeness.

Urinary Magnesium Within the Reference Interval: A result within the laboratory's reference interval indicates that the measured daily excretion falls within the expected range for that laboratory. It does not independently confirm normal total-body magnesium stores.

Elevated Urinary Magnesium: Increased urinary excretion may occur with high dietary or supplemental intake, certain medicines, renal tubular magnesium wasting, diabetes, endocrine disorders, or other medical conditions. When serum magnesium is low, inappropriately high urinary magnesium may suggest renal loss.

Low Urinary Magnesium: Low urinary excretion may reflect reduced magnesium intake, gastrointestinal loss, malabsorption, or an appropriate kidney response to magnesium depletion. It can also be affected by an incomplete collection.

Kidney Stone Interpretation: Urinary magnesium is only one component of stone-risk assessment. It must be evaluated with urine volume, calcium, oxalate, citrate, uric acid, sodium, pH, and creatinine, as well as stone composition and imaging findings.

The doctor may calculate fractional magnesium excretion using simultaneous blood and urine measurements in selected cases. This calculation differs from total 24-hour urinary excretion and should be performed and interpreted by a healthcare professional.

Clinical Limitations

Incomplete urine collection is a major limitation. Missing a specimen can produce a falsely low result, while collecting for longer than 24 hours can increase the calculated amount. Incorrect total volume, timing, storage, or contamination can also affect accuracy.

Diet, supplements, medicines, hydration, kidney function, gastrointestinal loss, and recent treatment can influence urinary magnesium. A single result may not represent long-term magnesium balance.

Serum magnesium can remain within its reference interval despite reduced total-body stores. Similarly, urinary magnesium alone cannot diagnose the cause of symptoms or determine total magnesium stored in bones and tissues.

Reference intervals and units vary between laboratories. Results should be interpreted using the information printed on the Focus Diagnostics report and not ranges obtained from unrelated sources.

Important Safety Information

Severe magnesium abnormalities may affect muscles, nerves, breathing, blood pressure, and heart rhythm. Seek prompt medical care for severe weakness, breathing difficulty, fainting, seizures, confusion, chest discomfort, or an irregular heartbeat.

Do not start, stop, or substantially increase magnesium supplements, antacids, laxatives, diuretics, or prescribed medicines based solely on this test result. Excess magnesium may be dangerous in people with reduced kidney function.

This information is intended for general education and does not replace diagnosis or advice from a doctor. Always discuss the Magnesium - 24 Hours Urine result with the referring healthcare professional.

Test FAQs

What is the Magnesium - 24 Hours Urine test?

It measures the total quantity of magnesium excreted in all urine collected during a complete 24-hour period.

Why is a 24-hour urine magnesium test performed?

It helps assess kidney handling of magnesium, investigate abnormal blood magnesium, evaluate possible renal magnesium loss, and support selected kidney-stone assessments.

Do I need to fast during the collection?

Fasting is generally not required. Maintain your usual diet unless your doctor provides specific dietary instructions.

Should I stop magnesium supplements before the test?

Do not stop supplements or prescribed medicines without medical advice. Inform your doctor about every magnesium-containing product you use.

How do I start the 24-hour urine collection?

Empty your bladder into the toilet at the chosen start time and record that time. Collect every subsequent specimen, including the final urine at the same time the next morning.

What should I do if I miss one urine specimen?

Contact the laboratory because a missed specimen can make the result inaccurate. You may need to restart the complete collection.

When will my Magnesium - 24 Hours Urine report be available?

The report is generally available within 1 to 2 working days after the complete specimen and collection details are submitted.

What can elevated urinary magnesium indicate?

It may occur with high magnesium intake, supplements, certain medicines, renal magnesium wasting, diabetes, or other metabolic conditions.

What can low urinary magnesium indicate?

It may reflect reduced intake, gastrointestinal loss, malabsorption, kidney conservation during magnesium depletion, or an incomplete collection.

Can this test diagnose the cause of kidney stones by itself?

No. It must be interpreted with urine calcium, oxalate, citrate, uric acid, sodium, pH, volume, creatinine, imaging, and clinical history.

Magnesium - 24 hours urine

Rs. 500

Book

Explore Related Tests & Services

Find Your Nearest Focus Diagnostic Centre Hyderabad

Popular Lab Tests in Other Cities

Book Your lab tests instantly

Accurate reports and home sample collection across Hyderabad

Book on Whatsapp