Kidney stones form when certain substances in your urine become so concentrated that they crystallize and stick together. This process, called supersaturation, is the essential first step: when the concentration of a dissolved mineral exceeds what urine can hold in solution, crystals begin to appear. What happens next, and whether those crystals become a painful stone, depends on a chain of events involving your body chemistry, diet, hydration, and sometimes your genes.
How Crystals Become Stones
Stone formation unfolds in stages. First, supersaturation triggers nucleation, the moment tiny seed crystals form inside the kidney’s tubules. These microscopic crystals can then grow larger as more dissolved minerals deposit onto their surface. They also clump together through a process called aggregation. Finally, if the crystals attach to the lining of the kidney’s inner structures rather than washing out with urine, they have time to grow into a stone large enough to cause problems.
Your urine normally contains natural inhibitors that prevent this cascade. Citrate is one of the most important. It binds to calcium in urine, keeping it dissolved in a soluble complex and directly blocking crystal growth and aggregation. Magnesium and certain proteins also act as brakes on crystallization. Stones tend to form when the balance tips: either the stone-forming substances rise too high, the protective inhibitors drop too low, or both.
Calcium Oxalate: The Most Common Type
Roughly 80% of kidney stones are made of calcium oxalate. Their formation involves a particularly interesting mechanism. Tiny deposits of calcium phosphate accumulate in the tissue of the renal papilla, the area deep inside the kidney where urine collects before draining. These deposits, called Randall’s plaques, start small and buried beneath a protective layer of cells. Over time, the plaque grows and eventually breaks through that cell layer, becoming exposed to flowing urine. Once exposed, it acts as a seed surface where calcium oxalate crystals latch on, grow, and build into a stone.
Cell injury inside the kidney also plays a role. When the cells lining the kidney’s tubules are damaged, they trigger inflammation and produce proteins that actually promote crystal formation and adhesion. Certain bacteria in the urinary tract can further catalyze this process by altering urine chemistry in ways that favor mineral precipitation.
Why Uric Acid Stones Form
Uric acid stones account for a smaller but significant share of cases, and they have a different trigger: acidic urine. The major risk factor is a persistently low urine pH, typically below 5.5. At that acidity level, uric acid becomes far less soluble and crystallizes readily. People who form uric acid stones often maintain this low pH for 12 or more hours per day.
The underlying cause is usually a problem with how the kidneys handle acid. Normally, your kidneys produce ammonia to buffer acid and keep urine pH in a safe range. In many uric acid stone formers, this buffering system underperforms, leaving the urine stubbornly acidic. Conditions like diabetes, obesity, and metabolic syndrome are closely linked to this pattern because they shift the body’s acid-base balance.
Infection-Related Struvite Stones
Struvite stones are fundamentally different from the other types because they’re caused by bacterial infection. Certain bacteria, particularly Proteus mirabilis, produce an enzyme called urease that breaks down urea in urine into ammonia. This chemical reaction sharply raises urine pH, making it alkaline. In that alkaline environment, ammonium, phosphate, and magnesium ions combine to form struvite crystals.
These stones can grow rapidly and become very large, sometimes filling the entire interior of the kidney. They’re more common in people with recurrent urinary tract infections, especially those who use catheters or have structural abnormalities in the urinary tract.
Cystine Stones and Genetic Causes
A small percentage of stones are made of cystine, an amino acid that the kidneys normally reabsorb back into the bloodstream. In people with a genetic condition called cystinuria, mutations in specific transport genes prevent this reabsorption. The result is an abnormally high concentration of cystine in the urine. Because cystine is poorly soluble, especially in the acidic environment of the kidney’s collecting ducts, it precipitates into crystals that coalesce into stones.
Cystinuria is inherited and typically causes stones starting in childhood or early adulthood. People with this condition often form stones repeatedly throughout their lives.
Dehydration and Urine Volume
One of the simplest and most powerful factors is how much water you drink. Low fluid intake means concentrated urine, which pushes mineral levels closer to the supersaturation threshold. The American Urological Association recommends that all stone formers drink enough fluid to produce at least 2.5 liters of urine per day. For most people, that translates to roughly 3 liters (about 12 cups) of fluid daily, though the exact amount varies with climate, body size, and activity level.
This single factor matters regardless of stone type. Whether the culprit is calcium, oxalate, uric acid, or cystine, diluting the urine lowers the concentration of every stone-forming substance at once.
How Diet Drives Stone Risk
Several dietary patterns directly affect stone chemistry. High sodium intake is one of the most underappreciated. When you eat a lot of salt, your kidneys excrete more sodium, and calcium follows it out. Research shows a direct linear relationship between urinary sodium and urinary calcium: the more salt you consume, the more calcium ends up in your urine, raising supersaturation. Increasing potassium intake (from fruits and vegetables) has the opposite effect, helping to lower urinary calcium.
Oxalate is the other half of the calcium oxalate equation. Foods particularly high in oxalate include spinach, nuts, chocolate, brewed tea, beets, rhubarb, and potatoes. For most people, moderate consumption of these foods isn’t a problem. But in people who already have elevated urinary calcium or low citrate levels, a high-oxalate diet can tip the balance toward stone formation. Interestingly, eating calcium-rich foods alongside high-oxalate foods can help, because calcium binds oxalate in the gut before it ever reaches the kidneys.
High animal protein intake also contributes by increasing uric acid production and making urine more acidic, which raises the risk of both uric acid and calcium stones.
Metabolic Conditions That Increase Risk
Several medical conditions create the chemical environment stones need. Hyperparathyroidism is a classic example. When the parathyroid glands produce too much hormone, they pull calcium out of bones and into the bloodstream. The excess calcium eventually spills into the urine, sometimes reaching levels high enough to trigger crystallization.
Obesity and type 2 diabetes both promote uric acid stones by lowering urine pH. Inflammatory bowel disease and gastric bypass surgery can cause a spike in oxalate absorption from the gut, leading to hyperoxaluria. Chronic urinary tract infections set the stage for struvite stones. Even gout, through its association with elevated uric acid, increases stone risk.
Who Gets Kidney Stones
Men form kidney stones more often than women across all age groups. Globally, the largest gender gap appears in older adults, where men are roughly three times as likely to be affected. In younger populations, the disparity peaks in the late twenties. The reasons are partly hormonal (estrogen appears to have a protective effect) and partly related to differences in body size, diet, and muscle mass, which influence uric acid and calcium metabolism.
Stone disease affects populations worldwide, though rates vary significantly by region. Climate plays a measurable role: people living in hotter areas lose more fluid through sweat, producing more concentrated urine. Seasonal patterns confirm this, with stone episodes peaking in summer months.

