
A urine magnesium test measures how much magnesium your kidneys excrete, usually over 24 hours. In a kidney stone evaluation, the result is useful because magnesium can bind oxalate and may make calcium oxalate crystals less likely to form. A low value can occur with low magnesium intake, poor intestinal absorption, chronic diarrhea, or other conditions that reduce magnesium availability. It is not, however, a stand-alone diagnosis or a simple “stone/no-stone” result. Stone risk depends on the whole urine environment, including calcium, oxalate, citrate, sodium, uric acid, pH, and especially urine volume. A clinician therefore interprets urine magnesium alongside the rest of a 24-hour stone-risk profile, the type of stone you have formed, your diet, medications, kidney function, and collection quality. The most useful result is one collected under your usual eating and drinking conditions and interpreted with the laboratory’s own reference interval.
- Low urine magnesium is commonly defined near less than 3.0 mmol/day (about 73 mg/day), but laboratory cutoffs vary.
- A 24-hour collection is preferred for kidney stone risk because a spot magnesium value changes with hydration and time of day.
- Low magnesium may reduce a natural brake on calcium oxalate crystallization, especially when urine oxalate is high.
- Magnesium supplements are not routine treatment for every stone former; the cause of a low result and kidney function matter.
- The result is most useful when read with urine calcium, oxalate, citrate, sodium, pH, uric acid, and volume.
Table of Contents
- What a urine magnesium test measures
- How the test is collected and interpreted
- What low and high urine magnesium can mean
- How magnesium affects kidney stone risk
- Common causes of low urine magnesium
- What to do after an abnormal result
- How urine magnesium fits the full stone workup
What a urine magnesium test measures
A urine magnesium test measures the amount of magnesium eliminated in urine during a defined period. For recurrent or high-risk kidney stone formers, that period is usually 24 hours because stone risk reflects the total daily load of minerals and other substances in the urine, not just a single moment.
Magnesium is an essential mineral involved in hundreds of cellular processes, but in stone disease its chemistry is especially relevant. In the intestinal tract, magnesium can bind some oxalate. In urine, magnesium may also interact with oxalate and influence crystal formation. These effects are one reason a low magnesium excretion can be considered an unfavorable finding in some calcium oxalate stone formers.
The test is rarely ordered alone. It is normally one part of a broader kidney stone urine test panel that measures promoters and inhibitors of crystallization. A typical 24-hour profile may include:
- urine volume;
- calcium;
- oxalate;
- citrate;
- uric acid;
- sodium and potassium;
- phosphorus;
- magnesium;
- creatinine, which helps assess collection completeness;
- urine pH; and
- calculated supersaturation values in many laboratories.
That context matters because magnesium does not act in isolation. A low magnesium value may be more meaningful when urine oxalate is high and calcium oxalate supersaturation is elevated. The same low value may carry less practical weight when urine volume is excellent, oxalate is low, citrate is high, and there is no history of calcium oxalate stones.
Urine magnesium also differs from a blood magnesium test. Blood magnesium reflects the concentration circulating at that moment and is tightly regulated. A person can have a normal blood magnesium level while urinary magnesium is relatively low because intake, absorption, kidney handling, and losses affect the two tests differently. For stone prevention, the 24-hour urine value helps describe the environment in which crystals are forming.
How the test is collected and interpreted
For stone risk, a 24-hour urine collection is the preferred method. The goal is to capture every urination over a full day while you are following your usual diet and fluid pattern. Changing your habits just for the test can make the result look better or worse than your ordinary exposure.
A common collection process is to discard the first morning urine, record that start time, collect all urine for the next 24 hours, and include the first morning urine at the same time the next day. The container may need refrigeration or a laboratory-supplied preservative. Follow the kit instructions because collection and storage methods vary.
Missing several voids can falsely lower the measured magnesium and other solutes. Collecting for longer than 24 hours can falsely raise them. Urine creatinine is often checked as a rough quality marker, although clinicians also consider body size, muscle mass, age, and whether the reported volume and timing make sense. If collection accuracy is doubtful, repeating the test is often more useful than building a treatment plan on a questionable number. A dedicated 24-hour urine collection error review can help explain why missed samples matter.
There is no single universal “optimal” magnesium target for every stone former. Current European guidance lists less than 3.0 mmol/day as hypomagnesuria, which is about 73 mg/day. Other clinical references use values around 80 mg/day as a practical lower boundary. Laboratories may report mmol/day, mg/day, or a different reference interval based on their method and population.
| Finding | General interpretation | What else to review |
|---|---|---|
| Below about 3.0 mmol/day | May be considered low in stone evaluation | Diet, diarrhea or malabsorption, oxalate, citrate, kidney function |
| Within the lab range | Usually reassuring, but not protective by itself | Overall stone profile and supersaturation |
| Above the lab range | Often reflects intake or supplements; significance depends on context | Kidney function, medications, supplement dose |
A stone specialist may request two 24-hour collections, especially during an initial metabolic evaluation, because diet and hydration vary from day to day. Follow-up testing is commonly done after diet or medication changes to see whether the urine chemistry actually moved in the intended direction.
What low and high urine magnesium can mean
A low urine magnesium result means less magnesium is being excreted over the collection period, but it does not identify the cause by itself. In stone formers, low urinary magnesium is sometimes called hypomagnesuria. It may reflect a low dietary supply, poor intestinal absorption, chronic gastrointestinal losses, or simply a day when magnesium intake was lower than usual.
The result should be interpreted against urine creatinine and volume. If the entire collection was incomplete, calcium, oxalate, citrate, sodium, uric acid, and magnesium can all look artificially low. A repeat collection may be the most appropriate next step.
Low magnesium becomes more relevant when it appears with other unfavorable findings. Examples include:
- High urine oxalate: less magnesium may be available to bind oxalate, while the oxalate load itself raises calcium oxalate supersaturation.
- Low urine citrate: two natural inhibitors of calcium crystal formation may be reduced at the same time.
- Low urine volume: even moderate amounts of calcium and oxalate become more concentrated.
- High urine calcium: more calcium is available to combine with oxalate or phosphate.
That is why clinicians often review the urine oxalate result and urine citrate result alongside magnesium rather than treating the magnesium number as a separate problem.
A high urine magnesium value is usually less clearly linked to kidney stone danger. It can occur with a magnesium-rich diet, magnesium-containing antacids or laxatives, or supplements. In people with normal kidney function, the kidneys can excrete a substantial magnesium load. The clinical concern changes when kidney function is reduced because magnesium can accumulate in the body even if urine measurements are difficult to interpret.
A high value should therefore not be viewed as a target to chase. More magnesium is not automatically better, and increasing supplementation without a reason can cause diarrhea, alter other urine findings, or become unsafe in advanced kidney impairment. The useful question is whether magnesium is low enough to matter within the person’s stone pattern and whether correcting the cause improves the overall urine profile.
How magnesium affects kidney stone risk
Magnesium is most relevant to calcium oxalate stones, the most common stone type. Calcium oxalate crystals form when urine becomes sufficiently supersaturated with calcium and oxalate. Magnesium can influence that process in several ways.
First, magnesium can bind oxalate in the gastrointestinal tract, reducing how much free oxalate is available for absorption. This effect is one reason magnesium taken with food has been studied more than magnesium taken at random times. Second, magnesium can form soluble complexes with oxalate in urine and may reduce the oxalate available to combine with calcium. Third, experimental work suggests magnesium can interfere with calcium oxalate crystal growth and aggregation. Some magnesium salts may also raise urinary citrate, another inhibitor of calcium crystallization.
These mechanisms are plausible and supported by observational data, but they do not mean magnesium supplementation prevents stones in everyone. Recent review evidence finds an inverse association between urinary magnesium and stone risk, while randomized treatment data remain limited and heterogeneous. Established prevention measures—adequate urine volume, appropriate sodium reduction, normal dietary calcium, treatment of hypocitraturia when indicated, and targeted therapy for hypercalciuria or hyperuricosuria—have a stronger clinical role.
The interaction with calcium and oxalate is especially important. Cutting dietary calcium too aggressively can leave more oxalate unbound in the gut, increasing absorption and urinary oxalate. For many calcium oxalate stone formers, maintaining normal food-based calcium at meals is more important than trying to eliminate every oxalate-containing food. The calcium oxalate stone risk profile is therefore best understood as a balance among several measurements rather than a search for one abnormal nutrient.
Supersaturation integrates many of these factors. A person can have a borderline-low magnesium result yet improve substantially if urine volume rises and oxalate or calcium falls. Conversely, “normal” magnesium does not cancel out very high calcium oxalate supersaturation. The chemistry of the whole urine sample determines how favorable the environment is for crystal formation.
Common causes of low urine magnesium
The most common explanation for low urinary magnesium is reduced magnesium reaching the body or the urine. A detailed diet and gastrointestinal history is often more revealing than another isolated blood test.
Low dietary intake can occur when a person eats few magnesium-rich foods such as legumes, nuts, seeds, whole grains, and green vegetables. However, stone formers should not respond by adding large amounts of high-oxalate foods indiscriminately. Some foods rich in magnesium also contain substantial oxalate. The practical goal is a balanced eating pattern tailored to the person’s urine oxalate and overall nutrition rather than a single-nutrient strategy.
Chronic diarrhea and malabsorption are particularly important. Diarrhea can lower magnesium through intestinal losses and can also lower urine citrate and urine volume. Fat malabsorption can increase oxalate absorption, creating a combination of low magnesium and high oxalate that is especially relevant to calcium oxalate stones. This pattern may occur after some bariatric procedures, in inflammatory bowel disease, chronic pancreatic disease, or other disorders that impair fat absorption.
Other contributors can include restrictive diets, heavy alcohol use with poor nutrition, and medications or gastrointestinal conditions that alter magnesium balance. Kidney handling also matters. Certain kidney disorders cause renal magnesium wasting, but in that situation urine magnesium can be inappropriately high relative to the body’s magnesium status rather than low.
When clinicians investigate a low value, they may look for related clues:
- serum magnesium, especially if deficiency is suspected;
- serum creatinine or eGFR to assess kidney function;
- potassium and bicarbonate when chronic diarrhea or acid-base problems are possible;
- urine oxalate and citrate;
- medication and supplement use;
- gastrointestinal symptoms or surgery history; and
- whether the collection was complete.
A low urine magnesium result is therefore a signal to look for the reason, not an automatic instruction to take magnesium. Correcting chronic diarrhea, improving diet quality, or treating malabsorption can be more important than simply increasing a supplement dose.
What to do after an abnormal result
The next step depends on the full pattern. If urine magnesium is mildly low but the collection looks incomplete, repeating the 24-hour test under normal conditions may be the best first move. If the result is repeatedly low, the clinician can decide whether diet, gastrointestinal disease, or another factor is responsible.
For many stone formers, the practical priorities remain the same even when magnesium is low:
- Raise urine volume. A common prevention target is at least 2.0–2.5 L/day, with some current guidelines recommending at least 2.5 L/day. Fluid needs are higher with heavy sweating, hot weather, or physical work.
- Keep sodium intake moderate. High sodium can increase urinary calcium and may make calcium stones more likely.
- Maintain normal dietary calcium. Calcium eaten with meals can bind oxalate in the gut. Very low calcium diets can raise urine oxalate.
- Address high oxalate selectively. If urine oxalate is high, focus on the biggest dietary sources, vitamin C supplements, and malabsorption rather than following an unnecessarily restrictive diet.
- Treat other major abnormalities. Hypercalciuria, hypocitraturia, very acidic urine, hyperuricosuria, or infection may have a larger effect on recurrence risk than magnesium alone.
Magnesium supplementation may be considered in selected people with persistent hypomagnesuria, enteric hyperoxaluria, or intolerance to other therapies. It should be individualized. Magnesium salts can cause diarrhea, which may be counterproductive by lowering urine volume and citrate. People with reduced kidney function need particular caution because impaired magnesium excretion can lead to high blood magnesium. Current European guidance specifically cautions against magnesium therapy in renal insufficiency.
If treatment is changed, repeat urine testing can show whether the intervention improved magnesium, oxalate, citrate, and supersaturation rather than relying on assumptions. A 24-hour urine magnesium test may also be useful when the clinical question extends beyond stones to mineral balance or kidney magnesium handling.
How urine magnesium fits the full stone workup
Urine magnesium is best viewed as one piece of a metabolic fingerprint. The goal of testing is not to normalize every number independently. It is to identify the few factors most responsible for supersaturation and recurrence in a particular person.
For someone with calcium oxalate stones, the highest-yield findings may be very low urine volume, high calcium, high oxalate, low citrate, or high sodium. Magnesium can refine that picture. If it is low together with high oxalate after intestinal surgery, the combination may point toward malabsorption. If magnesium is low but sodium and calcium are very high, sodium reduction and treatment of hypercalciuria may deserve priority. If all individual solutes look only mildly abnormal but calcium oxalate supersaturation is high, the integrated supersaturation result may better show the overall crystallization pressure.
Stone composition also matters. If a passed stone has not been analyzed, a kidney stone analysis can distinguish calcium oxalate from calcium phosphate, uric acid, struvite, cystine, and mixed stones. That information changes how urine pH, magnesium, and other measurements are weighted.
Repeat testing is often more informative than a single snapshot. Diet, sweat loss, travel, illness, and fluid intake can shift 24-hour values. Many guidelines recommend two collections for a detailed initial metabolic evaluation and repeat testing after preventive treatment begins. Once the urine profile is stable, periodic testing can help confirm that the changes are sustainable.
The key takeaway is that low urinary magnesium can be a meaningful calcium oxalate risk marker, especially when paired with high oxalate or gastrointestinal disease, but it is not an isolated treatment target. The most effective plan usually combines correct collection, stone analysis, full urine chemistry, and practical changes that improve the entire urinary environment.
References
- Metabolic evaluation for prevention of kidney stones – CARI Guidelines 2025 (Guideline)
- Nutrition therapy for the prevention of kidney stones – CARI Guidelines 2025 (Guideline)
- Metabolic Evaluation and Recurrence Prevention for Urinary Stone Patients: An EAU Guidelines Update 2024 (Review)
- 24-Hour Urinary Chemistries and Kidney Stone Risk 2024
- Magnesium and kidney stones: a concise narrative review 2026 (Review)
Disclaimer
This article provides general information about urine magnesium testing in kidney stone evaluation and is not a substitute for medical care. Reference ranges and treatment decisions vary by laboratory, stone type, kidney function, and other urine findings. Do not start magnesium supplements for stone prevention without discussing the dose and safety with a qualified clinician, especially if you have reduced kidney function.





