For most people, magnesium supplements don’t cause kidney stones. People who take in more magnesium tend to form fewer of the common stones. One uncommon stone type does contain magnesium, but it is driven by urine infections rather than by what you swallow.1PubMed. Formation of struvite urinary stones and approaches towards the inhibition-A review The more real concerns with magnesium are the kidneys’ ability to clear it and an upset stomach.
What the Evidence Shows About Magnesium and Stone Risk
About three out of four kidney stones are calcium oxalate stones, hard crystals of calcium bound to oxalate, a compound found in foods like spinach, nuts and tea. So whether magnesium helps or hurts depends mainly on how it affects calcium oxalate.
Large studies point the same way. Over 14 years of tracking men, those with the highest magnesium intake had about 30% fewer stones than those with the lowest.2PubMed. Dietary factors and the risk of incident kidney stones in men: new insights after 14 years of follow-up Among male smokers, the highest intake came with roughly half the stone risk of the lowest.3PubMed. Nutrient intake and use of beverages and the risk of kidney stones among male smokers In postmenopausal women, stones appeared at about 3.1 per 1,000 women each year with high magnesium intake versus 3.9 with low intake.4Journal of the American Society of Nephrology. Dietary Magnesium Intake, Risk of Kidney Stone, and Survival in the Women’s Health Initiative (WHI) In those women, though, the benefit showed up mainly in people who also ate a lot of oxalate. With a low-oxalate diet, extra magnesium made little difference.4Journal of the American Society of Nephrology. Dietary Magnesium Intake, Risk of Kidney Stone, and Survival in the Women’s Health Initiative (WHI) Magnesium seems most useful when your diet is high in oxalate-rich foods.
Low magnesium status goes with more stones too. Adults with signs of magnesium depletion were more likely to have had kidney stones, with the most depleted about 40% more likely.5PubMed Central. Association between magnesium depletion score and the prevalence of kidney stones in the low primary income ratio: a cross-sectional study of NHANES 2007–2018 Depletion was not linked to stones coming back, though.5PubMed Central. Association between magnesium depletion score and the prevalence of kidney stones in the low primary income ratio: a cross-sectional study of NHANES 2007–2018 In 24-hour urine tests, more magnesium in urine goes with lower stone risk, but it matters less than urine calcium, how much you drink and citrate.6PubMed Central. 24-Hour Urinary Chemistries and Kidney Stone Risk
These studies sorted people into groups by how much magnesium they ate, then compared how many in each group developed stones. The “highest” group is simply the people whose diets were richest in magnesium. They usually eat more vegetables, beans, nuts and whole grains, so other habits in that diet could share some of the credit. The studies show a link rather than proof, and most of the magnesium came from food, not pills. Still, the direction is consistent across men, women and smokers, and no large study shows ordinary supplement doses raising stone risk in healthy people.
How Magnesium Helps Block Stones
Urine carries dissolved calcium and oxalate all the time. When there is too much of them, they clump into tiny seed crystals, and over weeks or months the seeds grow and stick together into a stone. Magnesium works at the start, by cutting the oxalate supply, and in the middle, by slowing seeds and growth.
In the gut, magnesium binds oxalate, forming a compound the body can’t absorb.7PubMed Central. Gut to Stone: The Woes of Malabsorption and Kidney Stone Growth Less oxalate reaches the blood and urine, leaving less to build calcium oxalate stones.7PubMed Central. Gut to Stone: The Woes of Malabsorption and Kidney Stone Growth Calcium does the same thing, which is why taking either with oxalate-rich meals makes sense.7PubMed Central. Gut to Stone: The Woes of Malabsorption and Kidney Stone Growth Cutting calcium from your diet to reduce stone risk can backfire, since food calcium helps keep oxalate from being absorbed.
This step happens only when magnesium and food meet in the gut. It can bind only the oxalate in the gut at that moment, so it has the most to do at meals with spinach, nuts or tea. A dose on an empty stomach does less, and a meal with very little oxalate gives it little to bind, which fits the finding that low-oxalate eaters gained little. Taking it with your largest meal is a simple way to use the effect. Binding changes how much oxalate gets into the blood; it doesn’t remove oxalate the body has already absorbed.
Magnesium that reaches urine pairs with oxalate in a form that stays dissolved, so calcium oxalate is less likely to crystallize.8Portuguese Journal of Nephrology & Hypertension. Magnesium supplementation to prevent recurrence of renal stones In kidney-like conditions, magnesium slows both how often crystals start and how fast they grow.9PubMed. Effects of magnesium on calcium oxalate crystallization It also raises urine citrate, a natural stone blocker.8Portuguese Journal of Nephrology & Hypertension. Magnesium supplementation to prevent recurrence of renal stones Magnesium and citrate together delay crystal formation more than either alone.10PubMed. Efficacy of Mixtures of Magnesium, Citrate and Phytate as Calcium Oxalate Crystallization Inhibitors in Urine
Can Magnesium Supplements Prevent Stones From Coming Back
The strongest result involves magnesium combined with potassium citrate. Over about three years, new stones formed in 64% of repeat stone formers on a placebo but only 13% of those taking potassium-magnesium citrate.11PubMed. Potassium-magnesium citrate is an effective prophylaxis against recurrent calcium oxalate nephrolithiasis These were people with a proven history of stones. The gap is large, but the pill also contains potassium citrate, so magnesium can’t take all the credit, and the result isn’t a promise for someone who has never had a stone.
Magnesium alone improves urine tests. In stone formers with high urine oxalate, both magnesium oxide and magnesium citrate lowered urine oxalate and stone-forming potential, with citrate working better.12PubMed. Effect of magnesium oxide or citrate supplements on metabolic risk factors in kidney stone formers with idiopathic hyperoxaluria: a randomized clinical trial
In stone formers with low urine magnesium, supplements raised it to target in 88% versus 58% with diet alone, and raised citrate.13PubMed. Magnesium Supplementation Increases Urine Magnesium and Citrate in Stone Formers With Hypomagnesuria In children with stones, adding magnesium to citrate therapy lowered urine oxalate, with blood magnesium staying within normal range.14PubMed Central. Evaluating the Effectiveness of Adding Magnesium Chloride to Conventional Protocol of Citrate Alkali Therapy in Children with Urolithiasis
Many of these trials measure urine instead of stones, because stones take months to form. Lower oxalate and higher citrate are known to track with fewer stones, so improved numbers are encouraging, though not the same as proven fewer stones.
If you have had stones, ask whether yours was analysed, since magnesium helps calcium oxalate stones specifically. Ask about a 24-hour urine test, which shows your oxalate, citrate and magnesium levels, and whether prescription potassium-magnesium citrate fits your case. Don’t swap prescribed citrate for an over-the-counter magnesium pill on your own.
Which Form and Dose to Choose
Magnesium citrate dissolves more easily and is absorbed better than magnesium oxide.15PubMed. Magnesium bioavailability from magnesium citrate and magnesium oxide In general, organic forms like citrate or glycinate are absorbed better than inorganic forms like oxide.16PubMed. Bioavailability of magnesium food supplements: A systematic review Absorption also depends on dose.17PubMed Central. Predicting and Testing Bioavailability of Magnesium Supplements For stones, citrate offers better absorption plus extra citrate in urine.
Oxide is common because it is cheap and holds a lot of magnesium by weight, but a smaller share of it is absorbed. Unabsorbed magnesium stays in the gut, so oxide is also the form more likely to loosen stools.
On a label, check “elemental magnesium” per serving, not the weight of the whole compound. The form is named, such as citrate, oxide or glycinate. Food sources like beans, nuts, whole grains and leafy greens count too.
The gut absorbs only about 30 to 40% of magnesium at normal intakes, so large doses should be split through the day rather than taken at once.18PubMed Central. Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults The standard US upper limit for adults is 350 mg a day of supplemental magnesium; don’t go above it without medical advice.
Struvite Stones Contain Magnesium but Come From Infection
Struvite stones are made of magnesium, ammonium and phosphate and are also called infection stones.1PubMed. Formation of struvite urinary stones and approaches towards the inhibition-A review Certain bacteria release an enzyme that breaks down urea into ammonia, pushing urine pH from around 7.2 up to about 8.19Nature Reviews Urology. Renal struvite stones—pathogenesis, microbiology, and management strategies In that alkaline urine, magnesium normally present combines with ammonium and phosphate, and stones grow quickly.19Nature Reviews Urology. Renal struvite stones—pathogenesis, microbiology, and management strategies Struvite crystals also inflame the urinary tract lining, which may help stones grow further.20PubMed. Magnesium ammonium phosphate hexahydrate (struvite) crystals induce macrophage extracellular traps, migrasomes and pyroptosis The trigger is infection, so treating the infection is the key, not cutting magnesium. Without bacteria that make urine alkaline and ammonia-rich, extra magnesium doesn’t push urine toward forming these stones.
Infection stones are more common in women because of more frequent urinary infections. People with catheters or bladder problems from nerve damage face higher risk. Repeated urinary infections plus flank pain deserve a doctor’s look.
Signs of a urinary infection include burning on urination, urgency, and cloudy or strong-smelling urine. Fever or back pain can mean the infection has reached the kidney.
Who Should Be Careful With Magnesium
In healthy people extra magnesium poses little risk, because the gut absorbs less and the kidneys pass more out.21Nephrology Dialysis Transplantation. Magnesium biology When filtering slows, the extra is not removed as quickly, so levels can rise over days or weeks of regular intake. That is why the same pill can be fine for one person and a concern for another. Dangerously high blood magnesium usually happens when weak kidneys meet high intake.22PubMed. Magnesium metabolism in health and disease Serious problems generally occur only when blood magnesium tops 3.0 mmol/L, roughly three times the normal level.23PubMed Central. Oral Magnesium Supplementation in Chronic Kidney Disease Stages 3 and 4: Efficacy, Safety, and Effect on Serum Calcification Propensity—A Prospective Randomized Double-Blinded Placebo-Controlled Clinical Trial
In people with moderate to severe kidney disease, a slow-release magnesium dose was safe for 8 weeks under monitoring, but longer use was not tested.23PubMed Central. Oral Magnesium Supplementation in Chronic Kidney Disease Stages 3 and 4: Efficacy, Safety, and Effect on Serum Calcification Propensity—A Prospective Randomized Double-Blinded Placebo-Controlled Clinical Trial With kidney disease, take magnesium only if your care team recommends it and checks your levels.
Your blood test may list “eGFR,” a score of how well your kidneys filter. A score under 60 for three months signals chronic kidney disease. If yours is low, mention any supplements to your doctor. Warning signs of excess magnesium include weakness, low blood pressure and confusion.
Some laxatives and antacids contain a lot of magnesium, and combining them with a supplement can add up quickly. People with weak kidneys should check the labels on these products.
A rare inherited disorder makes kidneys leak calcium and magnesium into urine, causing stones and low magnesium.24PubMed Central. Familial Hypomagnesemia, Hypercalciuria and Nephrocalcinosis with Novel Mutation Here magnesium replacement is part of treatment.25European Association of Urology. Guidelines – EAU Guidelines on Urolithiasis – Uroweb
Common Side Effects and How to Avoid Them
Very high doses can cause diarrhea, nausea and stomach cramps, which ease once the magnesium passes through.21Nephrology Dialysis Transplantation. Magnesium biology In children taking added magnesium, a few had loose stools but kept taking it.14PubMed Central. Evaluating the Effectiveness of Adding Magnesium Chloride to Conventional Protocol of Citrate Alkali Therapy in Children with Urolithiasis To reduce stomach upset, start low, take it with food and split doses.
Magnesium that isn’t absorbed stays in the intestine and draws water into it, which loosens the stool. It’s the same effect that makes some magnesium products work as laxatives, so it can be useful for constipation. It depends on dose and form, and many people find it settles when they lower the dose.
For stone-prone people, ongoing diarrhea drains fluid and can concentrate urine, and concentrated urine raises stone risk, undoing the benefit. Drink enough to keep urine pale yellow, and switch forms or lower the dose if loose stools persist. Repeated vomiting, dizziness or muscle weakness warrants stopping and calling a doctor.

