You get a kidney stone when your urine becomes supersaturated with stone-forming salts, most often calcium oxalate, so that crystals nucleate, grow, and aggregate faster than urine flow can carry them out. Dehydration concentrates those salts, while diet, gut absorption, and kidney handling set how much solute and promoter or inhibitor each liter of urine carries. A stone is not a single bad meal; it is a plumbing problem built from concentration and chemistry over weeks to months.

The short version hides the interesting part. Urine is a metastable solution: it routinely holds more calcium and oxalate than pure water would allow, because citrate, magnesium, and macromolecules like Tamm-Horsfall protein keep crystals from forming. Stones appear when that protection fails or the load outruns it. The sections below walk through nucleation and growth, the numbers that define risk, the exceptions that break the usual pattern, persistent myths, and the practical steps that change the chemistry.

Nucleation and crystal growth in supersaturated urine

Supersaturation is a ratio, not a verdict. The ion activity product of calcium and oxalate in a urine sample is compared with the solubility product of calcium oxalate under the same conditions. When the ratio exceeds 1, the urine is supersaturated; when it climbs past the formation product, spontaneous nucleation becomes likely. Between those two thresholds, crystals form only on existing surfaces, which is why a small retained particle or a patch of Randall plaque can seed a larger stone.

Nucleation is the bottleneck most people never hear about. In pure solution, ions must collide in the right geometry to form a stable nucleus, and that energy barrier is steep. Real urine lowers the barrier by supplying templates: uric acid crystals, cell debris, and calcium phosphate deposits on the renal papilla. A uric acid crystal is a near-perfect lattice match for calcium oxalate, so a patient with low urine pH can grow an oxalate stone on a uric acid foundation. This is one reason treating only the calcium side of the problem fails.

Growth and aggregation follow nucleation. Once a crystal exists, calcium and oxalate add to its surface, and crystals clump into aggregates that settle in the collecting system. Urine flow normally sweeps particles smaller than about 5 micrometers out of the kidney; aggregation is what pushes particles past the size where they stick. Inhibitors act at exactly these steps. Citrate binds calcium and reduces the free ion available for crystal surfaces. Magnesium interferes with growth. Macromolecules coat crystals and block aggregation. When any of these defenses drops, the same supersaturation produces more and bigger particles.

Retention is the final requirement. A crystal that never sticks passes in the urine and causes no symptoms. Stones form where flow is slow, where the papilla offers an attachment point, or where a prior stone leaves a pocket. The mechanism is therefore three-part: supersaturation supplies raw material, nucleation and aggregation build the particle, and retention keeps it long enough to grow. Any explanation that names only one step is incomplete.

The numbers that define stone risk

Urine volume is the strongest lever. A person producing 1 liter of urine per day concentrates solutes twice as much as someone producing 2 liters, and supersaturation scales with concentration. Clinical guidance commonly targets 2.5 liters of urine output per day for people with recurrent stones, which usually requires drinking roughly 3 liters of fluid depending on losses from sweat and diet. That target is not arbitrary: it is set to pull calcium oxalate supersaturation below the range where crystals aggregate.

Oxalate load matters, but less than most patients assume. Dietary oxalate contributes a variable share of urinary oxalate, often estimated around 10 to 20 percent in people eating mixed diets, with the rest produced by the liver and influenced by gut absorption. That is why spinach, rhubarb, and almonds raise urinary oxalate in some people more than others, and why a low-oxalate diet alone rarely fixes hypercalciuria.

Calcium intake is protective, not harmful, in most stone formers. Normal dietary calcium binds oxalate in the gut before it can be absorbed, lowering urinary oxalate. Restricting calcium below roughly 800 mg per day tends to raise stone risk rather than lower it, which is why the old advice to cut dairy has been reversed.

Urine pH shifts which salt dominates. Uric acid stones form when urine pH stays below about 5.5, because uric acid becomes poorly soluble in acid urine. Calcium phosphate stones form when pH rises above roughly 6.5, because phosphate speciation shifts toward the less soluble form. Infection with urease-producing bacteria can push pH above 7, producing struvite stones. One pH value can therefore point toward three different stone types.

Edge cases that break the usual pattern

Not every stone former is dehydrated or overfed. Several distinct pathways produce stones in people whose diet and fluid intake look unremarkable.

Primary hyperparathyroidism raises serum calcium and filters a larger calcium load into the urine, producing stones in a minority of affected patients. The stone is often the first sign, and parathyroid surgery can stop recurrence.

Enteric hyperoxaluria follows gastric bypass, extensive small bowel resection, or inflammatory bowel disease. Fat malabsorption binds calcium in the gut, leaving oxalate free to be absorbed in the colon, and urinary oxalate can rise sharply. These patients may need dedicated oxalate restriction and careful monitoring of kidney function.

Genetic hyperoxaluria is rare but severe. Primary hyperoxaluria results from enzyme defects in the liver that overproduce oxalate, and it can cause recurrent stones and kidney damage in childhood. It is worth suspecting when stones begin early, recur aggressively, or appear alongside kidney function decline.

Cystinuria is a transport defect in the proximal tubule that spills cystine into urine, where it is poorly soluble. It accounts for a small fraction of adult stones but a larger share of pediatric stones and often produces large, recurrent stones.

Medications and anatomy add further exceptions. Topiramate and other carbonic anhydrase inhibitors raise urine pH and can promote calcium phosphate stones. Indinavir and some other drugs can crystallize directly in urine. Medullary sponge kidney, ureteral strictures, and obstruction create the retention step even when chemistry is normal.

A counterintuitive detail deserves emphasis: some recurrent stone formers have normal 24-hour urine chemistries. Supersaturation depends on the interaction of multiple solutes, and a single value inside the reference range can still combine with others to produce crystals. Urine testing informs treatment but does not rule the mechanism in or out by itself.

Misconceptions that persist

The most durable myth is that calcium causes calcium stones. The evidence points the other way for dietary calcium: adequate intake lowers oxalate absorption and stone risk in most people. The distinction matters because patients who cut dairy often raise their oxalate load.

Another common belief is that hard tap water drives stones. Water hardness varies widely, but controlled comparisons have not shown hard water to be a consistent cause of stones in healthy adults, and fluid volume matters far more than mineral content. Drinking more water, hard or soft, generally reduces supersaturation.

Cranberry juice is often recommended for urinary tract health, but it does not dissolve existing stones and is not a treatment for stone disease. Its main role is in urinary tract infection prevention, a different problem.

Stones are sometimes described as sharp-edged objects that must be avoided by diet alone. In reality, small stones often pass without intervention, and larger stones may require procedures. Diet and fluid change recurrence risk; they do not reliably remove a stone already lodged in the ureter.

Finally, many people assume a stone means a lifelong low-oxalate sentence. Most stone formers benefit more from fluid volume, adequate calcium, and sodium restriction than from broad oxalate avoidance. Blanket restriction can reduce dietary variety without changing recurrence.

Practical actions and thresholds

The actions below target the mechanism, not just the symptom. Thresholds are general guidance for adults with calcium stones and should be adapted by a clinician to the individual's urine chemistry.

Drink enough to produce about 2.5 liters of urine daily; for most adults that means roughly 3 liters of fluid intake, adjusted for heat and exercise. Keep dietary calcium near 1,000 to 1,200 mg per day; do not restrict below about 800 mg without a specific reason. Limit sodium to about 2,300 mg per day, since high sodium raises urinary calcium. Moderate animal protein and oxalate-rich foods such as spinach, rhubarb, and nuts, especially if urine oxalate is high. Ask about a 24-hour urine collection if stones recur, to measure volume, calcium, oxalate, citrate, uric acid, and pH rather than guessing. Treat low urine citrate with dietary changes or, when appropriate, clinician-directed citrate supplementation; low citrate is a common and correctable inhibitor deficit.

Red-flag warnings that warrant urgent evaluation:

Fever with flank pain or shaking chills, which can signal infected obstructed urine. Severe pain uncontrolled by usual measures, or pain with vomiting and inability to keep fluids down. Blood in the urine with inability to pass urine. A single kidney, known kidney disease, or pregnancy with suspected stone symptoms.

Timeline table: what happens after a stone forms

Stage Typical timeframe What is happening
Crystal nucleation Hours to days Supersaturation allows crystal formation on a template or in bulk
Crystal growth and aggregation Days to weeks Solutes add to crystal surfaces; particles clump and enlarge
Retention in kidney Weeks to months Slow flow or an attachment point keeps the particle in place
Stone growth to symptomatic size Months to years Recurrent supersaturation episodes enlarge the stone
Passage into ureter Sudden Stone dislodges; pain begins as it obstructs flow
Spontaneous passage Days to weeks, size dependent Smaller stones pass; larger ones may require intervention

Limits of what the mechanism explains

The supersaturation model accounts for most calcium oxalate and uric acid stones, but it does not fully explain why some people with high supersaturation never form stones and others with modest values form many. Individual variation in inhibitors, crystal retention, and papillary anatomy likely fills that gap, and the details remain active research.

Urine testing has real limits. A single 24-hour collection reflects one day, and diet, hydration, and season all shift results. Reference ranges are population-based, not individual thresholds, so a value inside the range can still be relevant in context. The test guides treatment; it does not define disease.

Prevention evidence is strongest for fluid intake. Other interventions, including dietary patterns and medications, have supporting evidence but with smaller effect sizes and more variability across patients. That asymmetry is worth knowing: the simplest lever is also the best supported.

None of this constitutes a diagnosis or a treatment plan. A person with stones, especially recurrent stones, fever, or reduced kidney function, needs clinical evaluation. The mechanism explained here is what that evaluation is testing, and understanding it makes the conversation with a clinician more useful.

One more caveat is practical. Probiotic and supplement claims for stone prevention are common and mostly unproven; without reliable evidence, they should not replace fluid, dietary, and clinician-directed measures. The same caution applies to any product marketed as dissolving stones.

The throughline is concentration and chemistry. Stones form when urine carries more stone-forming salt than its inhibitors can manage, when a particle finds a place to stay, and when that cycle repeats often enough to grow something large. Changing fluid volume, calcium and sodium intake, and urine pH changes the chemistry at the source. That is why the most effective prevention is also the least exotic.