Kidney stones affect roughly 1 in 10 people in the United States at some point in their life, and the numbers have been climbing for decades — driven partly by diet, hydration habits, and rising rates of obesity. The good news is that nutrition is one of the most powerful, evidence-backed levers for preventing a first stone or a recurrence. This article walks through what large prospective studies and randomized trials actually show about calcium, oxalate, fluid intake, sodium, protein, and specific nutrients like magnesium and vitamin B6.
Quick Facts
- Low calcium diets backfire: counterintuitively, restricting dietary calcium tends to increase kidney stone risk rather than lower it, because less calcium is available in the gut to bind oxalate.
- Fluid intake is the single biggest lever: aiming for roughly 2.5–3 liters of fluid a day, enough to keep urine pale yellow, roughly halves recurrence risk in stone formers.
- Sodium and animal protein matter more than people expect: both increase urinary calcium excretion and lower urinary citrate, two changes that favor stone formation.
- Not all stones are the same: about 80% are calcium oxalate, but uric acid, struvite, and cystine stones exist too, and dietary advice differs somewhat by stone type.
- Sugar-sweetened beverages are an independent risk factor: cola and non-cola sugary drinks are linked to higher stone risk even after accounting for overall diet.
Why Diet Drives Stone Risk
Most kidney stones form when urine becomes supersaturated with stone-forming minerals — usually calcium and oxalate, sometimes uric acid — faster than natural inhibitors like citrate and magnesium can keep them dissolved. Nearly every major dietary factor that affects stone risk works through one of three mechanisms: changing how much oxalate or calcium ends up in the urine, changing urine volume, or changing the balance of stone inhibitors versus promoters.
The Calcium Paradox
For years, people with a history of stones were told to cut back on calcium. Large prospective cohorts overturned that advice. When dietary calcium is adequate, it binds oxalate in the intestine before either can be absorbed, so both are excreted together in stool rather than ending up concentrated in urine. Cutting calcium removes that buffer, letting more free oxalate reach the kidneys. Randomized trial data back this up directly: men with recurrent calcium oxalate stones who ate a normal-calcium diet (moderate in animal protein and salt) had roughly half the recurrence rate of those on a traditional low-calcium diet over five years.
Magnesium and Oxalate Binding
Magnesium forms a soluble complex with oxalate in the gut in a similar way to calcium, reducing the amount of free oxalate available for absorption and, downstream, for crystallization in urine. Stone formers tend to excrete less urinary magnesium than non-stone-formers, and some intervention studies show that magnesium (particularly taken alongside meals, when dietary oxalate is present) modestly increases urinary magnesium and citrate while reducing oxalate excretion. The evidence base is smaller and more mixed than for calcium, so magnesium is best thought of as a supportive factor rather than a stand-alone treatment.
Vitamin B6 and Oxalate Production
Vitamin B6 is a cofactor in the metabolic pathway that determines how much oxalate the body itself produces internally (as opposed to oxalate absorbed from food). In a 14-year prospective study of over 85,000 women, those with the highest B6 intake had roughly one-third lower risk of developing a kidney stone than those with the lowest intake. B6 deficiency is uncommon in people eating a varied diet, but the association is one reason clinicians sometimes check B6 status in recurrent stone formers with unexplained high urinary oxalate.
What the Evidence Actually Shows
Higher fluid intake reduces stone recurrence. Evidence level: Well-established. A five-year randomized trial found that patients instructed to drink enough water to produce about two liters of urine per day had a recurrence rate less than half that of a control group, and took longer to form a new stone when they did. This is one of the most consistently replicated findings in the field and underlies virtually every clinical guideline on stone prevention.
Adequate dietary calcium lowers risk; calcium restriction raises it. Evidence level: Well-established. Both large prospective cohorts and a direct randomized comparison show that normal dietary calcium intake (around 1,000–1,200 mg/day from food) is protective, while low-calcium diets increase recurrence. This applies to calcium from food; the picture for high-dose calcium supplements taken without food is less clear and is discussed below.
Reducing sodium and animal protein lowers recurrence risk. Evidence level: Well-established. The same five-year randomized trial that supported normal calcium intake paired it with moderate reductions in salt and animal protein, and the combined approach outperformed calcium restriction alone. High sodium intake increases urinary calcium excretion, and high animal protein intake increases uric acid and lowers citrate, so both changes push urine chemistry toward stone formation.
Sugar-sweetened beverages independently increase risk. Evidence level: Well-established. In a cohort of over 194,000 people followed for more than eight years, sugar-sweetened cola was associated with a 23% higher risk of stone formation and sugar-sweetened non-cola drinks with a 33% higher risk, compared with low consumption, even after adjusting for overall fluid intake and diet quality.
Magnesium and vitamin B6 supplementation modestly reduce oxalate-related risk. Evidence level: Promising. Observational data connect higher intake of both nutrients to lower stone risk, and small mechanistic studies support a plausible pathway (oxalate binding for magnesium, reduced endogenous oxalate production for B6). Randomized trial evidence for supplementation specifically, as opposed to dietary intake, remains limited, so these are reasonable adjuncts rather than proven substitutes for fluid and diet changes.
How to Eat and Drink to Lower Your Risk
Make Fluid Intake the Priority
Aim for a fluid intake that keeps urine consistently pale yellow, which for most adults with a history of stones means roughly 2.5–3 liters (about 10–12 cups) of total fluid per day, spread throughout the day rather than consumed all at once. Water is the best default; coffee, tea, and citrus drinks like lemonade (which supply citrate) are also associated with lower risk in observational data.
Keep Calcium Intake Normal, Not Restricted
Unless a clinician has specifically advised otherwise for a rare stone type, aim for the standard recommended calcium intake (about 1,000–1,200 mg/day) from dietary sources like dairy, fortified plant milks, or leafy greens, ideally eaten alongside oxalate-containing foods (such as spinach, nuts, or chocolate) so the two can bind together in the gut rather than travel to the kidneys separately.
Moderate Sodium and Animal Protein
Keeping sodium intake closer to 2,300 mg/day and moderating portions of red meat, poultry, and fish (rather than eliminating them) reduces the urinary calcium and uric acid load that drives stone formation. This pairs naturally with a diet built around vegetables, fruit, whole grains, and legumes.
Limit Sugar-Sweetened Drinks, Not Necessarily Oxalate Foods
Swapping sugary sodas and punches for water, coffee, tea, or citrus-flavored water addresses a clearly identified independent risk factor. By contrast, drastically cutting oxalate-rich foods like spinach, nuts, and chocolate is rarely necessary for most people and can mean giving up otherwise nutritious foods; it's generally reserved for people with confirmed high urinary oxalate on testing.
Safety and Who Should Be Cautious
Dietary approaches to stone prevention are generally very safe, but a few groups need individualized guidance rather than generic advice. People with a history of uric acid or struvite (infection) stones, cystinuria, chronic kidney disease, hyperparathyroidism, or inflammatory bowel disease should work with a physician or renal dietitian, since the ideal calcium, protein, and fluid targets can differ from the calcium-oxalate recommendations above. High-dose calcium supplements taken without food (as opposed to dietary calcium) have been linked to increased stone risk in some studies and are generally not recommended for stone prevention specifically.
ⓘ Anyone who has had more than one kidney stone, or a stone confirmed by imaging, should ask their doctor about a 24-hour urine collection. It identifies the specific mineral imbalances driving their stones and allows nutrition advice to be tailored rather than generic.
Frequently Asked Questions
Should I stop eating spinach and nuts if I've had a kidney stone?
Not necessarily. For most people with calcium oxalate stones, pairing these foods with a calcium source at the same meal is more effective than avoiding them altogether. Strict oxalate restriction is generally reserved for people who test as high oxalate excreters.
Is calcium supplementation safe if I've had a kidney stone?
Calcium from food appears protective. High-dose calcium supplements taken on an empty stomach have been associated with increased risk in some studies, so if supplementation is needed for bone health, taking it with meals and discussing the dose with a doctor is the more cautious approach.
How much water is actually enough?
Guidelines generally target enough fluid to produce about 2 to 2.5 liters of urine per day, which for most adults means roughly 2.5–3 liters of total fluid intake. A simple practical check is urine color: pale yellow generally indicates adequate hydration.
Do vitamin C supplements cause kidney stones?
Some observational data link high-dose vitamin C supplements (as opposed to vitamin C from food) to modestly increased stone risk in men, likely because excess vitamin C can be converted to oxalate. People with a stone history who take vitamin C supplements may want to discuss appropriate dosing with their doctor.
Are all kidney stones caused by the same dietary factors?
No. Most research (and most of this article) focuses on calcium oxalate stones, which make up about 80% of cases. Uric acid stones respond more to protein moderation and urine alkalization, while struvite stones are driven by infection rather than diet, and cystine stones require specialized management. A urine and stone composition analysis clarifies which factors apply.
Scientific References
- Curhan GC, Willett WC, Rimm EB, Stampfer MJ. "A Prospective Study of Dietary Calcium and Other Nutrients and the Risk of Symptomatic Kidney Stones." New England Journal of Medicine, 1993.
- Borghi L, Schianchi T, Meschi T, et al. "Comparison of Two Diets for the Prevention of Recurrent Stones in Idiopathic Hypercalciuria." New England Journal of Medicine, 2002.
- Borghi L, Meschi T, Amato F, Briganti A, Novarini A, Giannini A. "Urinary Volume, Water and Recurrences in Idiopathic Calcium Nephrolithiasis: A 5-Year Randomized Prospective Study." The Journal of Urology, 1996.
- Curhan GC, Willett WC, Speizer FE, Stampfer MJ. "Intake of Vitamins B6 and C and the Risk of Kidney Stones in Women." Journal of the American Society of Nephrology, 1999.
- Ferraro PM, Taylor EN, Gambaro G, Curhan GC. "Soda and Other Beverages and the Risk of Kidney Stones." Clinical Journal of the American Society of Nephrology, 2013.
- Liebman M, Costa G. "Effects of Calcium and Magnesium on Urinary Oxalate Excretion After Oxalate Loads." The Journal of Urology, 2000.
- Chen Z, Prosperi M, Bird VY. "Prevalence of Kidney Stones in the USA: The National Health and Nutrition Evaluation Survey." Journal of Clinical Urology, 2019.
Disclaimer
This article is for educational purposes only and does not constitute medical advice, diagnosis, or treatment. Kidney stones can result from many different underlying conditions, and dietary needs vary by stone type and individual health status. Always consult a qualified healthcare provider before making significant changes to your diet or supplement routine, particularly if you have a history of kidney stones, kidney disease, or any other medical condition.

