Where Does the Magnesium in Food Come From?

Magnesium in food originates in soil, where plants pull it up through their roots and incorporate it into their cells. Every green leaf, every seed, and every bean you eat carries magnesium that started as a dissolved mineral in the ground. Seeds and nuts are the most concentrated food sources, with a single ounce of pumpkin seeds delivering 156 mg, but magnesium shows up across a wide range of plant and animal foods.

How Magnesium Gets Into Plants

Magnesium dissolves in soil water as a charged particle. Plant roots absorb it partly through passive flow, pulled along with water as the plant transpires, and partly through active transport channels that move it against concentration gradients. Once inside the root, magnesium travels upward through the plant’s vascular system into leaves, stems, seeds, and fruit.

In leaves, magnesium plays a role you can literally see: it sits at the center of every chlorophyll molecule, the green pigment that captures sunlight for photosynthesis. About 15 to 35% of all the magnesium a plant absorbs ends up locked into chlorophyll. The rest goes to work as a helper molecule for over 300 different enzymes involved in energy production, protein building, and other cellular processes. This is why dark leafy greens are such reliable magnesium sources. The deeper the green, the more chlorophyll, and the more magnesium packed inside.

Seeds, Nuts, and Other Plant Powerhouses

Plants concentrate magnesium heavily in their seeds, making nuts and seeds the richest food sources per serving. Based on NIH data, here’s what common options provide per ounce or small serving:

  • Pumpkin seeds (roasted): 156 mg per ounce
  • Chia seeds: 111 mg per ounce
  • Almonds (dry roasted): 80 mg per ounce
  • Cashews (dry roasted): 74 mg per ounce
  • Peanuts (oil roasted): 63 mg per quarter cup

Leafy greens come next. A half cup of cooked spinach provides 78 mg, and the same amount of cooked Swiss chard delivers 75 mg. Collard greens are lower at around 25 mg per half cup, but still contribute meaningfully if you eat them regularly.

Legumes round out the plant-based heavy hitters. A cup of cooked black beans contains about 120 mg of magnesium, roughly 29% of the daily value. Lentils, chickpeas, and soybeans fall in a similar range.

Dark Chocolate and Cocoa

Cocoa beans are unusually rich in magnesium, and that carries through into dark chocolate. A 100-gram bar of dark chocolate with 90% cocoa solids contains around 252 mg of magnesium, covering about 67% of the European nutrient reference value. The key variable is cocoa percentage: milk chocolate contains far less because the cocoa is diluted with sugar and dairy. If you’re eating chocolate partly for its mineral content, aim for 70% cocoa or higher.

Meat, Fish, and Dairy

Animal foods contain magnesium, but in lower concentrations than seeds, greens, or legumes. A cup of cooked dark chicken meat provides about 35 mg. A serving of fish like yellowtail or bluefish lands around 50 to 55 mg per fillet. Lamb offers roughly 41 mg per four-ounce portion. Dairy is modest too, with a cup of sheep’s milk providing 44 mg. You can get meaningful magnesium from animal foods if you eat enough variety, but they work better as a supplement to plant-based sources than as your primary supply.

Your Tap Water Contributes Too

Drinking water is an overlooked source of magnesium, and the amount varies dramatically depending on where you live. Tap water from surface sources in North America ranges from essentially zero to 29 mg per liter. Groundwater sources tend to run higher, from 2 to 48 mg per liter, because the water has spent more time dissolving minerals from rock. Some commercially available mineral waters contain up to 130 mg per liter, which would make a noticeable dent in your daily needs just from hydration. If you live in an area with “hard” water, you’re getting more magnesium with every glass than someone drinking soft or heavily filtered water.

What Blocks Absorption

Not all the magnesium in your food makes it into your bloodstream. Your intestines absorb it through two pathways: passive diffusion between cells and active transport through them. Several compounds in food can interfere with this process. Phytates, found in whole grains and legumes, and oxalates, found in spinach and rhubarb, can bind to magnesium and reduce how much you absorb. High intakes of calcium, phosphorus, and iron also compete for absorption.

The practical fix is straightforward. Soaking, sprouting, or fermenting grains and legumes breaks down phytates and makes more magnesium available. Eating a varied diet rather than relying on a single high-magnesium food also helps, because you’re spreading your intake across different absorption scenarios. Certain food components actually improve uptake, including lactose, prebiotic fibers like inulin, and medium-chain fats found in coconut oil.

Modern Crops Have Less Than They Used To

One reason so many people fall short on magnesium is that the food supply itself has gotten less mineral-dense over time. Analysis comparing crops from 1936 to the late 1980s found a 35% decline in the magnesium content of common vegetables in Britain. Broader reviews covering the past 50 to 70 years estimate magnesium drops of 16 to 24% across fruits, vegetables, and food crops. Intensive farming, faster-growing crop varieties, and soil depletion all play a role. The spinach your grandmother ate likely contained more magnesium per bite than the spinach on your plate today.

This matters at a population level. NHANES survey data covering over 16,000 Americans found that 52.2% of the U.S. population ages four and older consume less magnesium from food than the estimated average requirement. Among adults specifically, the figure rises to about 61%. The average daily intake from food is 286 mg, which falls short for most adult men (who need 400 to 420 mg) and many adult women (who need 310 to 320 mg).

Putting It Together in Practice

If you’re trying to close a magnesium gap through food, the most efficient strategy is building meals around the highest-density sources. A tablespoon of pumpkin seeds on your oatmeal, a handful of almonds as a snack, a cup of black beans at dinner, and a side of cooked spinach gets you well past 300 mg before counting anything else you’ve eaten. Dark chocolate with 70% or higher cocoa makes a surprisingly effective dessert choice. Even your water contributes, especially if you choose a mineral-rich brand or happen to have hard tap water.

Variety matters more than obsessing over any single food. Because different magnesium sources come packaged with different absorption helpers and blockers, spreading your intake across seeds, greens, legumes, whole grains, and some animal protein gives your gut the best chance of absorbing what it needs.