You get magnesium from a wide range of everyday foods, including nuts, seeds, leafy greens, legumes, and whole grains. Most adults need between 310 and 420 mg of magnesium per day, depending on age and sex. Hitting that target through food alone is realistic if you know which sources pack the most per serving.
Best Food Sources of Magnesium
Seeds and nuts are the most concentrated food sources. Pumpkin seeds deliver roughly 150 mg per ounce, which alone covers about a third of most adults’ daily needs. Almonds and cashews each provide around 74 to 80 mg per ounce. Peanuts, whether eaten whole or as peanut butter, offer about 50 mg per serving.
Dark leafy greens are another strong category. A half-cup of cooked spinach contains around 78 mg, and Swiss chard is comparable. Beyond greens, black beans and edamame each supply roughly 60 mg per half-cup cooked serving. Brown rice and quinoa contribute 40 to 60 mg per cup, making them easy ways to accumulate magnesium over the course of a day.
Dark chocolate is a surprisingly useful source at about 50 mg per ounce. Avocados, bananas, and potatoes each add 30 to 45 mg per serving. Fatty fish like salmon and mackerel contribute modest amounts as well, typically 25 to 30 mg per three-ounce portion. No single food needs to do all the heavy lifting. A varied diet with a few of these foods at each meal adds up quickly.
How Much You Need by Age and Sex
The recommended daily amount shifts at several points in life. Children ages 1 to 3 need 80 mg, rising to 130 mg for ages 4 to 8, and 240 mg for ages 9 to 13. At puberty the numbers split: teenage boys need 410 mg, while teenage girls need 360 mg.
For adults, men 19 to 30 need 400 mg, increasing to 420 mg from age 31 onward. Women 19 to 30 need 310 mg, rising to 320 mg after 30. Pregnancy raises the target to 350 to 360 mg depending on age, and lactation holds steady at the non-pregnant recommendation. These numbers come from the NIH’s Recommended Dietary Allowances, which represent the intake sufficient for about 97% of healthy people.
Magnesium in Drinking Water
Food gets most of the attention, but your tap water contributes too. U.S. municipal water averages around 10 mg of magnesium per liter, meaning two liters a day provides about 5% of the daily value. That’s a small but free contribution. In some regions, particularly the Midwest and West where well water is more mineral-rich, concentrations can be much higher. At the upper end, tap water alone could supply roughly 23% of your daily magnesium. Mineral-rich bottled waters vary widely by brand, so checking the label is the only reliable way to know what you’re getting.
What Blocks Magnesium Absorption
Not all the magnesium you eat makes it into your bloodstream. Phytic acid, a compound found naturally in whole grains, legumes, and seeds, binds to minerals in your gut and reduces how much you absorb. One study measured this directly: adding phytic acid at levels naturally found in whole-wheat bread cut magnesium absorption roughly in half, from about 33% down to 13%. The effect was dose-dependent, meaning more phytic acid meant less absorption.
This doesn’t mean you should avoid whole grains or beans. These foods still deliver net magnesium because they contain so much to begin with. But if you rely heavily on these sources, a few preparation tricks help. Soaking beans and grains before cooking, fermenting bread with sourdough starter, and sprouting seeds all break down phytic acid and free up more magnesium for absorption. Eating magnesium-rich foods alongside vitamin C sources can also help offset some of the binding effect.
Very high calcium intake, heavy alcohol use, and certain medications (particularly proton pump inhibitors and some diuretics) can also reduce magnesium levels over time. Older adults absorb less magnesium from the gut and excrete more through the kidneys, which is one reason deficiency becomes more common with age.
Signs You’re Not Getting Enough
Early magnesium deficiency often looks vague: low appetite, nausea, fatigue, and general weakness. These symptoms overlap with dozens of other conditions, so they’re easy to dismiss. As the deficit deepens, more distinctive signs appear, including muscle cramps, twitching, and tremors. Severe deficiency can cause abnormal heart rhythms, which is a signal that the body’s electrical signaling is genuinely disrupted.
Subclinical deficiency, where blood levels are technically in range but tissue stores are low, is thought to be fairly common. Magnesium in the blood represents only about 1% of the body’s total supply, so standard blood tests can miss a real shortage. If you eat a diet heavy in processed foods and light on vegetables, nuts, and whole grains, your intake is likely below the recommended amount even if you feel fine day to day.
Supplements: Organic vs. Inorganic Forms
If food alone isn’t covering your needs, supplements are an option, but the type matters. Magnesium supplements come in two broad categories: organic forms (citrate, glycinate, malate) and inorganic forms (oxide, sulfate, chloride). Organic forms dissolve more easily and are generally better absorbed because their solubility is less affected by stomach acid levels. Inorganic forms, particularly magnesium oxide, pack more elemental magnesium per pill but are absorbed at lower rates.
Among organic forms, citrate is one of the most widely available and well-studied. Glycinate tends to be gentler on the stomach and is popular for evening use because of its association with relaxation. Magnesium oxide, despite lower absorption, remains common in over-the-counter products because it’s inexpensive and the higher dose per tablet partially compensates for the absorption gap.
The safe upper limit for supplemental magnesium (not counting food) is 350 mg per day for adults. Going above that doesn’t cause serious harm for most people, but it commonly triggers diarrhea, nausea, and abdominal cramping. Magnesium from food does not carry this risk because the gut absorbs it more gradually and the kidneys efficiently clear any excess. Absorption from supplements is also dose-dependent: smaller doses taken throughout the day are absorbed better than a single large dose.
Practical Ways to Boost Your Intake
The simplest strategy is adding one or two magnesium-dense foods to meals you already eat. A handful of pumpkin seeds on a salad or stirred into yogurt adds roughly 150 mg. Swapping white rice for brown rice or quinoa adds 40 to 60 mg per cup. Snacking on almonds or cashews instead of crackers adds another 75 to 80 mg.
Cooking methods matter less for magnesium than for some other nutrients because it’s heat-stable and doesn’t break down during cooking. However, boiling vegetables in large amounts of water can leach some magnesium out. Steaming or roasting preserves more. If you do boil greens, using the cooking liquid in soups or sauces recaptures what was lost.
For people who eat a reasonably varied diet with vegetables, nuts, and whole grains at most meals, supplementation is usually unnecessary. For those on restricted diets, older adults, or anyone experiencing persistent muscle cramps and fatigue, a modest supplement in an organic form can fill the gap efficiently.

