Diet is one of the strongest modifiable risk factors for kidney stones. What you eat and drink directly changes the chemical composition of your urine, and when certain substances like calcium, oxalate, or uric acid become too concentrated, they crystallize into stones. About 80% of kidney stones are made of calcium oxalate, and nearly every component of that equation is influenced by dietary choices.
How Food Turns Into Stones
The basic process is straightforward: your kidneys filter waste from the blood into urine. When the urine becomes supersaturated with stone-forming minerals, crystals begin to form. Even moderate increases in urine supersaturation are associated with large jumps in stone risk. The foods you eat determine how much oxalate, calcium, uric acid, and other compounds end up in your urine, and how acidic or alkaline that urine is. Both factors matter.
The process isn’t just about what you eat over weeks or months. A single meal high in oxalate and low in calcium can cause a temporary surge of oxalate into the urine, briefly spiking supersaturation. That means dietary patterns and individual meals both play a role.
Oxalate: The Biggest Dietary Culprit
Oxalate is a natural compound found in many plant foods. When it reaches your kidneys, it can bind with calcium in the urine to form calcium oxalate crystals. The amount of oxalate you excrete in urine plays a direct role in whether stones develop.
Not all high-oxalate foods are created equal. Spinach is in a category of its own: half a cup of cooked spinach contains roughly 547 mg of oxalate. A cup of raw spinach has about 316 mg. Compare that to half a cup of canned beets at 76 mg, or an ounce of almonds at 72 mg. A tablespoon of almond butter contains about 42 mg. If you’re prone to stones, spinach and other extremely high-oxalate foods deserve the most attention.
Here’s where it gets counterintuitive: the solution isn’t to cut calcium from your diet. It’s actually the opposite.
The Calcium Paradox
For years, people with calcium oxalate stones were told to eat less calcium. That advice turned out to be wrong. Low-calcium diets actually increase stone risk, and doctors no longer recommend calcium restriction for stone prevention.
The reason comes down to what happens in your gut. When you eat calcium alongside oxalate-rich foods, the two bind together in the intestine and are eliminated as waste before they ever reach the kidneys. Humans typically consume far more calcium than oxalate each day (15 to 25 mmol of calcium versus 1 to 3 mmol of oxalate), so under normal conditions, most dietary oxalate gets locked up by calcium in the intestine and passes out in stool.
When calcium intake is low, that protective binding doesn’t happen. More oxalate stays in soluble form, gets absorbed through the intestinal wall, enters the bloodstream, and ends up in the urine. This is why eating calcium-rich foods at the same meal as high-oxalate foods is one of the most effective ways to reduce oxalate absorption. The key is getting calcium from food rather than supplements, which may not have the same timing benefit.
Salt Pushes Calcium Into Your Urine
Sodium has a direct, measurable effect on how much calcium your kidneys excrete. For every 2,300 mg of sodium you consume (roughly one teaspoon of table salt), your body pushes an extra 40 to 44 mg of calcium into the urine. That extra calcium raises the concentration of stone-forming minerals in your urine.
Most people consume well above 2,300 mg of sodium daily, often reaching 3,500 mg or more. The excess calcium excretion adds up. Reducing sodium intake is one of the more practical steps for lowering stone risk, particularly because so much dietary sodium comes from processed and restaurant foods rather than the salt shaker.
Animal Protein and Uric Acid Stones
Animal protein increases the risk of all types of kidney stones, not just uric acid stones. Meat, poultry, and fish raise calcium and uric acid levels in the urine while lowering two protective factors: citrate (a natural stone inhibitor) and urine pH. When urine becomes more acidic, uric acid crystals form more easily.
Portion control makes a meaningful difference. Keeping animal protein to about 3 ounces per meal, roughly the size of a deck of cards, and spreading protein intake across the day rather than loading it into one meal helps keep urine chemistry in a safer range. Eggs, nuts, and seeds are good alternative protein sources that don’t carry the same acid load. Fruits and vegetables actively raise urine pH, which works against uric acid crystal formation.
Sugar and Fructose
Added sugars, particularly fructose, are an underappreciated stone risk factor. In large studies following tens of thousands of men and women, those with the highest intake of sugar-sweetened non-cola drinks (which tend to be high in fructose) had an 89% higher risk of developing kidney stones compared to those with the lowest intake.
The connection works through at least two pathways. Sugar intake triggers an acute rise in urine calcium levels. Fructose metabolism also appears to increase oxalate production in the body, raising urine oxalate independent of what oxalate-containing foods you eat. This makes sugary drinks a double hit: they increase both calcium and oxalate in the urine.
Fluid Intake Is the Foundation
No dietary change matters as much as hydration. The goal is to produce more than 2 liters of urine per day, which typically means drinking about 2.5 to 3 liters of fluid. In clinical trials, people who maintained this urine output over three to five years had fewer stone recurrences and longer intervals before new stones formed compared to those who didn’t increase fluids.
Water is the best choice. Coffee and tea count toward fluid intake, though tea contains some oxalate. Sugary drinks work against you for the reasons above. A practical test: if your urine is pale yellow to nearly clear, you’re likely drinking enough.
Dietary Patterns That Lower Risk
Individual nutrients matter, but overall dietary patterns may matter more. The DASH diet, which emphasizes fruits, vegetables, whole grains, low-fat dairy, and limited sodium, has been studied extensively for stone prevention. People who followed a DASH-style eating pattern most closely had 40 to 45% lower risk of kidney stones compared to those who followed it least. That reduction held across men, older women, and younger women in large prospective studies.
The DASH pattern works because it addresses multiple stone risk factors simultaneously. It’s naturally high in calcium from dairy, rich in potassium and citrate from fruits and vegetables, moderate in protein, and low in sodium. Rather than obsessing over individual foods, shifting toward this overall pattern captures most of the benefit.
What This Means in Practice
Diet doesn’t just contribute to kidney stones. For many people, it’s the primary controllable factor. The changes that make the biggest difference are:
- Drink enough fluid to produce over 2 liters of urine daily
- Eat calcium-rich foods with meals rather than avoiding calcium or taking supplements between meals
- Reduce sodium from processed and restaurant foods
- Limit animal protein portions to about 3 ounces per meal
- Cut back on added sugars and fructose-sweetened beverages
- Be strategic with high-oxalate foods, especially spinach, and pair them with calcium sources
Genetics, body weight, and medical conditions also influence stone risk, so not every stone is purely dietary. But for most people, these changes represent the most direct path to prevention.

