What Is Oxalate: Its Role in Kidney Stones and Diet

Oxalate is a naturally occurring compound found in many plants, in your body, and in your urine. It’s best known for one thing: binding to calcium to form crystals, which are the building blocks of the most common type of kidney stone. About 80% of kidney stones contain calcium oxalate. But oxalate itself isn’t inherently dangerous. It’s a normal part of metabolism, and most people process it without any trouble.

How Oxalate Works in the Body

Chemically, oxalate is a simple organic acid with just two carbon atoms. Plants produce it in large quantities, sometimes using it to store excess calcium or defend against being eaten. In some plants, oxalate makes up as much as 50% of the dry weight of certain organs.

Your body also produces oxalate on its own, primarily in the liver, as a byproduct of normal metabolism. This internally produced oxalate combines with whatever you absorb from food. Under normal conditions, most oxalate leaves the body through urine. A healthy amount is less than 40 milligrams per day in urine, with optimal levels below 25 milligrams.

Where Oxalate Shows Up in Food

Some foods contain dramatically more oxalate than others. Spinach is the standout: a single half-cup of boiled spinach contains roughly 547 milligrams, and even a cup of raw spinach has about 316 milligrams. By comparison, an ounce of oil-roasted almonds has around 72 milligrams, and a tablespoon of almond butter contains about 42 milligrams. Other well-known high-oxalate foods include rhubarb, beets, Swiss chard, and sweet potatoes.

For most people, eating high-oxalate foods is perfectly fine. The body handles it. But for people who form kidney stones, or who have certain gut conditions that increase oxalate absorption, these numbers start to matter.

How Oxalate Causes Kidney Stones

Kidney stones form when the concentration of certain substances in urine rises above the point where they can stay dissolved. For calcium oxalate, this threshold is called supersaturation. Interestingly, most people’s urine is at least somewhat supersaturated with calcium oxalate most of the time, whether they form stones or not. The difference comes down to how far past that threshold you go and whether other protective factors are in place.

When supersaturation gets high enough, free calcium and oxalate ions start clustering together into tiny crystals in a process called nucleation. Those crystals can then grow, clump together, and attach to structures inside the kidney. Over time, this buildup becomes a stone large enough to cause pain or block urine flow. The key point is that both calcium and oxalate levels in urine contribute. Reducing either one lowers the risk.

Why Eating Calcium Actually Helps

This is one of the most counterintuitive facts about oxalate: eating more calcium tends to reduce your risk of calcium oxalate stones, not increase it. The reason is straightforward. When you eat calcium-rich foods alongside oxalate-rich foods, the calcium binds to oxalate in your intestines before it ever gets absorbed. That calcium-oxalate complex passes through your digestive tract and leaves in your stool instead of reaching your kidneys.

Research confirms this works across a wide range of calcium intake. Studies using controlled diets with 250 milligrams of oxalate daily showed that increasing calcium from 400 to 1,000 milligrams significantly reduced urinary oxalate. The effect held up even at 2,000 milligrams of calcium daily. The practical takeaway: pair calcium-rich foods (yogurt, cheese, milk) with high-oxalate meals rather than eating them separately.

Your Gut Bacteria Play a Role

A specific gut bacterium called Oxalobacter formigenes breaks down oxalate in the colon, reducing the amount available for absorption into the bloodstream. People who carry this bacterium tend to have lower urinary oxalate levels. In one study, a single oral dose of the bacterium reduced urinary oxalate excretion after an oxalate-heavy meal, and the colonization persisted over time.

The problem is that this bacterium is sensitive to common antibiotics. Repeated courses of antibiotics can wipe it out, potentially leaving some people more vulnerable to absorbing excess oxalate. This is one reason researchers are exploring probiotic approaches, though no widely available supplement has been proven effective yet.

Cooking Reduces Oxalate Significantly

If you’re trying to lower your oxalate intake without giving up vegetables entirely, how you cook matters. Boiling is the most effective method, reducing soluble oxalate by 30 to 87% depending on the vegetable. The oxalate leaches into the cooking water, so discarding that water is essential. Steaming is less effective, cutting soluble oxalate by only 5 to 53%. Baking, at least for potatoes, showed no oxalate reduction at all.

So boiling spinach and draining the water removes a substantial portion of its oxalate, while eating it raw or lightly steamed keeps most of it intact.

Primary Hyperoxaluria: The Genetic Extreme

Most people who worry about oxalate are thinking about kidney stones, but a rare genetic condition called primary hyperoxaluria causes the body to overproduce oxalate internally, regardless of diet. There are three types. Type 1 is the most severe, with kidney stones often appearing in childhood or early adulthood and the potential for kidney failure at any age. Type 2 follows a similar pattern but progresses more slowly. Type 3 typically causes stones in early childhood, though fewer cases have been studied.

In advanced cases, the kidneys can no longer keep up with oxalate clearance. Oxalate levels in the blood rise, and calcium oxalate crystals begin depositing in tissues throughout the body, a condition called systemic oxalosis. This can damage bones (causing fractures), blood vessel walls, and other organs. Primary hyperoxaluria is rare, but it illustrates what happens when oxalate metabolism goes seriously wrong.

Practical Steps to Manage Oxalate Levels

For people with a history of calcium oxalate stones, the National Kidney Foundation recommends drinking 2 to 3 quarts of fluid daily, enough to produce at least 2.5 liters of urine. Water, coffee, and lemonade all count. Soda and grapefruit juice are the exceptions to avoid.

Beyond hydration, the most effective dietary strategies are eating calcium with meals (not between meals), boiling high-oxalate vegetables and discarding the water, and being aware of which foods carry the heaviest oxalate loads. You don’t need to eliminate oxalate entirely. The goal is keeping urinary oxalate in a range where crystals are less likely to form and grow, ideally below 25 milligrams per day.