A measure of your urine's acidity or alkalinity over a full day that reveals which types of kidney stones your body is most likely to form.
If you have ever passed a kidney stone or want to understand your risk of forming one, this test gives you one of the most actionable pieces of information available. Urine pH (a measure of how acidic or alkaline your urine is over a 24-hour period) tells you whether the chemical environment inside your kidneys favors the growth of specific stone types. Different stones crystallize at different pH levels, so knowing your number points directly to both your risk and the intervention most likely to help.
The test is part of a standard 24-hour urine collection, which also measures calcium, oxalate, uric acid, citrate, sodium, potassium, and creatinine. The American Urological Association recommends this panel as the foundation of metabolic testing for anyone who forms kidney stones. But pH is the single analyte that most directly determines which crystal types can form in your urine.
The optimal window sits above 5.5 and below 6.5. Below that range, your urine is too acidic and favors uric acid and certain calcium oxalate crystals. Above it, your urine becomes too alkaline and promotes calcium phosphate crystallization. Staying within this corridor minimizes supersaturation for the most common stone types.
Think of urine pH as a dial that selects which minerals can fall out of solution. When the dial turns toward acid (below 5.5), uric acid becomes insoluble and begins to crystallize. Calcium oxalate, the most common stone component, also forms more aggressively in acidic conditions. The pathogenic form of calcium oxalate (called monohydrate) crystallizes with the greatest size and mass at a pH of 4.0 and the least at a pH of 8.0.
Turn the dial the other way, toward alkaline urine (above 6.5), and the risk shifts to calcium phosphate stones. Calcium phosphate supersaturation increases rapidly as urine pH rises from 6 to 7. Persistently alkaline urine can also signal infection with bacteria that produce an enzyme called urease (most commonly Proteus species), which can lead to a type of stone called struvite.
| Stone Type | pH Environment That Promotes It | Target Urine pH for Prevention |
|---|---|---|
| Uric acid | Acidic (below 5.5) | 6.0 to 6.5 |
| Calcium oxalate | Acidic | 5.5 to 6.5 |
| Calcium phosphate | Alkaline (above 6.5) | Avoid pushing above 6.5 |
| Cystine | Acidic to neutral | 7.0 |
| Struvite (infection stone) | Persistently alkaline | Treat underlying infection |
What this means for you: your pH result, combined with your stone history or stone analysis, tells you and your clinician exactly which direction to push your urine chemistry. A person forming uric acid stones needs to raise pH; a person forming calcium phosphate stones may need to lower it or at least avoid alkalinizing therapy.
If your 24-hour urine pH consistently sits below 5.5, the most likely explanation involves how your kidneys handle acid. Normally, your kidneys produce a substance called ammonium that acts as a buffer, neutralizing acid before it leaves the body. When that buffering system underperforms, your urine stays acidic regardless of what you eat.
The conditions most strongly linked to persistently acidic urine fall into a few groups:
Most people who form uric acid stones have low urinary pH rather than excessive uric acid production as their main risk factor. This is why the first-line treatment for uric acid stones is not a drug to reduce uric acid levels but rather potassium citrate to raise urine pH.
A 24-hour urine pH above 6.5, especially when paired with low citrate excretion (below 320 mg per day), raises concern for a condition called distal renal tubular acidosis, or dRTA. In dRTA, the kidney loses its ability to secrete acid into the urine, so pH stays inappropriately high. This creates a triple threat for calcium phosphate stone formation: high supersaturation of calcium phosphate, low citrate (a natural crystal inhibitor), and excess calcium excretion driven by chronic low-grade acidosis in the blood.
Among people who form calcium phosphate stones and have a urine pH above 6.0, roughly 35% are found to have dRTA. A milder form, called incomplete dRTA, is 1.8 times more common in women who form stones and predicts more frequent stone recurrences. If your pH is persistently above 6.5, further testing with an acid-loading challenge can determine whether dRTA is present.
Certain medications can also push urine pH into the alkaline range. Drugs that block an enzyme called carbonic anhydrase, including topiramate, acetazolamide, and zonisamide, cause alkaline urine and increase the risk of calcium phosphate stones. If you take any of these, monitoring your urine pH is especially important.
Because urine pH is the primary driver of uric acid stone risk and a major factor in calcium phosphate stone risk, shifting it in the right direction is one of the most effective things you can do to prevent recurrent stones.
Potassium citrate is the cornerstone pharmacological intervention. It works by providing an alkali load that raises urine pH. For uric acid stones, the AUA recommends using it to achieve a target pH of 6.0 to 6.5. For cystine stones, the target is higher at 7.0. The key caution: raising pH too high (above 6.5 in most people) can promote calcium phosphate stone formation, so monitoring with repeat 24-hour collections is essential.
Dietary modifications can also shift urine pH. Conservative dietary management has been studied as a method for normalizing 24-hour urine pH in stone formers. A diet high in fruits and vegetables tends to alkalinize urine, while diets heavy in animal protein tend to acidify it. Adjusting your diet is a reasonable first step, though for established stone formers, dietary changes alone may not achieve the precise pH targets that potassium citrate can.
Pioglitazone, a medication in the thiazolidinedione class used for insulin resistance, has been shown to improve urinary buffering capacity in uric acid stone formers by increasing ammonium excretion. This addresses the root cause of acidic urine in people with metabolic syndrome rather than simply adding external alkali. However, this remains a more specialized intervention best discussed with a clinician.
For people whose alkaline urine is the problem, thiazide diuretics may be used alongside cautious (or no) citrate therapy to reduce calcium excretion and manage calcium phosphate stone risk without further raising pH.