What Foods Deplete Magnesium in Your Body?

Several common foods and drinks can lower your magnesium levels, either by blocking absorption in your gut or by forcing your kidneys to flush magnesium out faster. The biggest culprits fall into a few clear categories: foods high in natural mineral-blocking compounds, alcohol, caffeine, high-sodium foods, and heavily processed foods stripped of their original mineral content.

How Foods Block Magnesium Absorption

Some foods contain natural compounds that grab onto magnesium in your digestive tract and form insoluble clumps your body can’t absorb. Two compounds do most of the damage: phytic acid and oxalic acid. They don’t remove magnesium you’ve already absorbed, but they prevent you from getting the magnesium that’s sitting right there in your meal.

Phytic acid is the main storage form of phosphorus in grains, legumes, seeds, and nuts. It binds magnesium (along with iron, zinc, and calcium) into an insoluble salt that passes through you unabsorbed. The highest concentrations show up in soy concentrates (up to 10.7%), rice bran (2.5 to 8.7 g per 100 g), wheat bran (2.1 to 7.3 g per 100 g), and maize germ (6.4 g per 100 g). Almonds, sunflower seeds, and most legumes also carry significant amounts. This doesn’t mean you should avoid these foods. They’re nutritious in other ways. But if you eat a diet heavy in whole grains, beans, and nuts without much variety, the cumulative effect on magnesium absorption adds up.

Oxalic acid works similarly. A study published in the British Journal of Nutrition compared magnesium absorption from meals served with spinach (high oxalate) versus kale (low oxalate), keeping the total magnesium content nearly identical. Absorption from the spinach meal was only 26.7%, compared to 36.5% from the kale meal. That’s roughly a 27% reduction in the magnesium your body actually takes in, just from the oxalate content of one vegetable. Other high-oxalate foods include rhubarb, beet greens, Swiss chard, sweet potatoes, and chocolate.

Alcohol Drains Magnesium Through Your Kidneys

Alcohol doesn’t just block absorption. It actively pushes magnesium out of your body. Ethanol acts as a magnesium diuretic, triggering a rapid increase in urinary magnesium excretion along with other electrolytes. This happens acutely, meaning even a single heavy drinking session causes measurable magnesium loss.

With chronic heavy drinking, the problem compounds. The body’s magnesium stores gradually deplete, and eventually urinary excretion actually drops, not because the situation has improved, but because there’s less magnesium left to lose. Regular moderate-to-heavy alcohol consumption is one of the most reliable dietary predictors of low magnesium status.

Caffeine and High-Sodium Foods

Caffeine increases renal excretion of magnesium, meaning your kidneys filter out more magnesium than they normally would. The effect is dose-dependent: a cup or two of coffee likely has a negligible impact, but people drinking large amounts of coffee, energy drinks, or caffeinated sodas throughout the day are increasing their body’s demand for magnesium without replacing it.

High-sodium foods create a similar problem. In animal studies, a high-salt diet increased daily urinary magnesium excretion more than fourfold compared to a normal-salt diet (2.74 mg versus 0.65 mg per 100 g of body weight). The mechanism involves shared transport pathways in the kidney’s filtering tubes: when your kidneys work harder to flush out excess sodium, magnesium gets swept along with it. Processed and packaged foods, fast food, cured meats, canned soups, and salty snacks are the primary sources of excess sodium for most people.

Refined and Processed Foods

Refining strips magnesium directly from food. When wheat is processed into white flour, the bran and germ (where most of the magnesium lives) are removed. White rice, white bread, and white pasta contain a fraction of the magnesium found in their whole-grain counterparts. The same applies to refined sugar, which contains essentially no magnesium compared to the molasses-rich forms it was derived from.

A diet built around processed foods creates a double problem. You’re not getting much magnesium from the food itself, and the high sodium and added sugars in those same foods increase the rate at which your kidneys excrete whatever magnesium you do have. Sugary soft drinks add caffeine and phosphoric acid to the mix, both of which can interfere with mineral balance.

How to Protect Your Magnesium Levels

You don’t need to eliminate high-phytate or high-oxalate foods. Simple preparation methods reduce their impact significantly. Soaking grains and legumes before cooking activates enzymes that break down phytic acid. Sprouting takes this further, and fermentation (as in sourdough bread or traditional fermented soy products like tempeh) breaks down even more. These are ancient food preparation techniques, and they exist precisely because humans figured out that unprocessed grains and beans were harder to get nutrition from.

For oxalates, cooking spinach and other high-oxalate greens and discarding the cooking water reduces oxalate content. Pairing high-oxalate foods with calcium-rich foods can also redirect some of the oxalate binding away from magnesium. Rotating your greens, rather than relying solely on spinach, helps as well. Kale, collard greens, and bok choy are all low-oxalate alternatives with good magnesium content.

The bigger picture matters more than any single food. A diet that’s mostly whole, minimally processed foods with moderate alcohol and caffeine intake will generally maintain healthy magnesium levels. The pattern that depletes magnesium fastest is the one many people default to: lots of refined grains, processed snacks, sugary drinks, and alcohol, with few leafy greens, nuts, or legumes to compensate.