Kidney stones form when dissolved minerals in your urine become so concentrated that they solidify into crystals, then clump together into hard deposits. This process can take anywhere from a few weeks to several years, depending on the type of stone and your individual risk factors. Understanding exactly how stones develop helps explain why certain habits, body types, and dietary patterns make some people far more vulnerable than others.
How Crystals Form in Your Kidneys
Your kidneys filter waste products out of your blood and dissolve them in urine. When the concentration of certain minerals rises too high, the urine becomes “supersaturated,” meaning it can no longer keep those minerals dissolved. At that point, tiny crystals begin to form inside the kidney’s narrow tubules.
Stone formation follows a predictable sequence. First, a crystal seed forms (a process called nucleation). Then that seed grows as more minerals attach to it. Multiple crystals clump together, and eventually the mass sticks to the wall of a kidney tubule, where it continues to grow. Your urine naturally contains inhibitors like citrate and certain proteins that are supposed to block this process at every stage. Stones develop when the balance tips: too many stone-promoting minerals, not enough inhibitors, or both.
The main promoters are calcium, oxalate, phosphate, and urate. The main inhibitors are citrate and several other compounds that bind to crystals and prevent them from growing or sticking together. Urine pH and total urine volume also play major roles. When any of these factors shifts in the wrong direction, stone formation accelerates.
The Most Common Types and How Fast They Grow
About 80% of kidney stones are calcium oxalate, formed when calcium and oxalate combine in urine. These tend to grow slowly, often taking months or even years to reach a size that causes symptoms. Uric acid stones, the second most common type, can form much faster, sometimes within weeks, particularly in people whose urine is consistently acidic (below a pH of 5.5). Struvite stones, which are linked to urinary tract infections, also grow rapidly and can become quite large.
Size matters for symptoms. A stone smaller than 2 millimeters may pass without you ever knowing it existed. Stones between 5 and 10 millimeters are the ones that typically cause the intense flank pain people associate with kidney stones, because they’re large enough to get stuck in the ureter (the tube connecting the kidney to the bladder).
Dehydration: The Biggest Single Factor
Low fluid intake is consistently the most direct driver of stone formation. When you don’t drink enough, your urine volume drops and the concentration of stone-forming minerals spikes. The American Urological Association recommends that anyone who has had a kidney stone drink enough fluid to produce at least 2.5 liters of urine per day. For most people, that translates to roughly 3 liters (about 100 ounces) of fluid daily, since some water is lost through sweat and breathing.
Water is the best choice, but the volume matters more than the source. If your urine is consistently pale yellow or nearly clear, you’re likely in a good range. Dark yellow urine is a reliable signal that your kidneys are working with too little fluid and your mineral concentrations are climbing.
Foods That Raise Your Risk
Oxalate is one of the primary stone-building compounds, and certain foods contain enormous amounts of it. Half a cup of cooked spinach delivers roughly 547 milligrams of oxalate, more than almost any other food. A cup of raw spinach has about 316 milligrams. An ounce of almonds contains around 72 milligrams, and a tablespoon of almond butter has about 42 milligrams. Other high-oxalate foods include beets, rhubarb, sweet potatoes, and Swiss chard.
This doesn’t mean you need to eliminate these foods entirely. Eating high-oxalate foods alongside calcium-rich foods (like dairy) actually helps, because calcium binds to oxalate in the gut before it ever reaches the kidneys. The combination reduces the amount of oxalate that ends up in your urine. Eating spinach in a salad alone delivers more oxalate to your kidneys than eating it alongside cheese or yogurt.
Animal Protein and Acid Load
Diets heavy in animal protein (red meat, poultry, fish, eggs) increase your stone risk through a less obvious mechanism. Metabolizing animal protein generates acid, and your body responds by pulling citrate out of the urine to help buffer that acid. Citrate is one of the kidney’s most important natural defenses against stones. It binds to calcium and prevents crystals from forming, growing, and clumping together. When citrate drops, the urine becomes supersaturated with calcium salts, and the conditions for stone formation improve dramatically.
High sodium intake compounds the problem. Excess salt increases the amount of calcium your kidneys excrete into the urine, raising the raw material available for stone construction.
Body Weight and Metabolic Risk
Carrying extra weight significantly raises your chances of forming stones. People with a BMI of 30 or higher are 86% more likely to develop kidney stones than people with a BMI under 25, based on a large national cross-sectional study. Even being overweight (BMI between 25 and 30) increases the risk by about 45%.
The connection is strongest in middle age. Adults between 40 and 59 with obesity face roughly double the stone risk compared to normal-weight peers. For younger adults (20 to 39), obesity raises the risk by about 51%, and for those over 60, by about 73%. The link between weight and stones likely involves several overlapping factors: higher levels of uric acid, more acidic urine, and greater excretion of calcium and oxalate.
Urine pH and Uric Acid Stones
Uric acid dissolves well in alkaline or neutral urine but becomes increasingly insoluble as urine turns acidic. People who consistently produce urine with a pH below 5.5 are at high risk for uric acid stone formation. This persistent acidity can result from obesity, type 2 diabetes, chronic diarrhea, or simply a genetic tendency toward acidic urine.
Unlike calcium oxalate stones, uric acid stones can sometimes be dissolved by raising urine pH, which is one reason identifying the stone type matters for treatment. If you’ve passed a stone, saving it for analysis gives your doctor a clearer picture of what’s driving the problem.
Who Gets Recurrent Stones
A first kidney stone is often not the last. A prospective study published in The Journal of Urology found that 10% of first-time stone formers had a recurrence within five years, and 22% had one within ten years. Those numbers climb higher for people who don’t make dietary or hydration changes after their first episode.
Several factors predict recurrence: a family history of stones, consistently low urine volume, high dietary oxalate or sodium, obesity, and certain medical conditions like gout or inflammatory bowel disease. People who form stones in both kidneys simultaneously or who produce multiple stones at once tend to have higher recurrence rates.
What Actually Prevents Stones
The most effective prevention strategies target the specific imbalances that cause crystallization. Drinking enough fluid to produce at least 2.5 liters of urine daily is the single most impactful change. Beyond hydration, reducing sodium intake lowers the amount of calcium in your urine. Getting adequate dietary calcium (from food, not supplements) binds oxalate in the gut and keeps it out of the kidneys. Moderating animal protein reduces the acid load that depletes citrate. Citrus fruits and juices, particularly lemon, can raise urinary citrate levels naturally.
One common misconception is that you should avoid calcium to prevent calcium stones. The opposite is true. Low-calcium diets actually increase stone risk because more dietary oxalate passes into the urine unbound. The goal is to eat calcium and oxalate together so they neutralize each other in the digestive tract rather than meeting in the kidney.

