What Has Magnesium in It? Top Foods and Sources

Magnesium is found in a wide range of everyday foods, with the richest sources being seeds, nuts, leafy greens, legumes, and whole grains. Most adults need between 310 and 420 mg of magnesium per day, and hitting that target is straightforward once you know which foods pack the most per serving.

Seeds and Nuts

Seeds and nuts are the most magnesium-dense foods you can eat. Pumpkin seeds lead the pack: a single 1-ounce handful of roasted, hulled pumpkin seeds delivers 150 mg of magnesium, roughly 35 to 48% of your daily needs depending on your age and sex. Chia seeds come in second at 111 mg per ounce. Flaxseeds and sunflower seeds are also solid choices, though a step below.

Among nuts, almonds top the list at 80 mg per ounce (about 23 almonds), followed closely by cashews at 72 mg per ounce. Brazil nuts, peanuts, and pecans contribute meaningful amounts too. Because nuts and seeds are calorie-dense, they work well as additions to meals rather than standalone snacks: toss pumpkin seeds on a salad, stir chia seeds into yogurt, or add almonds to oatmeal.

Leafy Greens

Cooked spinach is one of the best vegetable sources of magnesium, with 158 mg per cup. That single cup covers close to half the daily requirement for most adults. Swiss chard and beet greens perform similarly. Kale contains magnesium as well, though in smaller amounts than spinach or chard.

Cooking matters here, and not just because it concentrates the greens into a smaller volume. Boiling vegetables in water can wash away up to 60 to 70% of their mineral content, including magnesium, potassium, and iron. Steaming, sautéing, or microwaving retains far more. If you do boil greens, using the cooking liquid in a soup or sauce recaptures some of those lost minerals.

Legumes and Beans

A cup of cooked black beans contains 120 mg of magnesium. Kidney beans, chickpeas, lentils, and edamame fall in a similar range, generally between 70 and 120 mg per cooked cup. Legumes are especially useful because they’re inexpensive, shelf-stable, and easy to add to soups, grain bowls, tacos, and salads.

One thing to keep in mind: beans and lentils contain phytic acid, a compound that binds to minerals like magnesium and reduces how much your body actually absorbs. Soaking dried beans before cooking, sprouting them, or fermenting them (as in tempeh) breaks down some of that phytic acid and improves mineral absorption. Canned beans, which have been soaked and processed, have lower phytate levels than dry beans cooked without soaking.

Whole Grains

Brown rice, quinoa, oats, and whole wheat bread all contribute magnesium to your diet. A cup of cooked quinoa provides roughly 118 mg, and a cup of cooked brown rice about 84 mg. Whole grain breakfast cereals, especially those fortified with minerals, can add another 40 to 60 mg per serving.

Refining strips grains of their magnesium-rich bran and germ layers. White rice, white bread, and white pasta contain a fraction of the magnesium found in their whole grain counterparts. Swapping refined grains for whole grains is one of the simplest ways to boost your daily intake without changing what you eat, just the version of it.

Fish, Dairy, and Other Sources

Fatty fish like mackerel, salmon, and halibut provide moderate amounts of magnesium, typically 20 to 30 mg per 3-ounce serving. Yogurt and milk contribute around 30 to 40 mg per cup. Avocados deliver about 58 mg per fruit. Even a banana provides roughly 32 mg, and a medium baked potato with skin around 48 mg.

Dark chocolate with 70% cocoa or higher is often cited as a magnesium source, and it does contain a meaningful amount per ounce. It’s not a replacement for spinach or pumpkin seeds, but it means a small square after dinner is doing more for your mineral intake than you might expect.

How Much You Need

The recommended daily intake for magnesium varies by age and sex. Adult men aged 19 to 30 need 400 mg per day, rising to 420 mg after age 31. Adult women need 310 mg from ages 19 to 30 and 320 mg after 31. During pregnancy, the target increases to 350 to 360 mg. Children need less, ranging from 80 mg for toddlers up to 240 mg for preteens.

To put those numbers in perspective: a breakfast of oatmeal with chia seeds and a handful of almonds, a lunch with black beans and brown rice, and a dinner with sautéed spinach would easily clear 400 mg without any supplements. Most people who eat a varied diet with whole grains, vegetables, and nuts are close to meeting their needs already.

Getting More From the Foods You Eat

Not all the magnesium listed on a nutrition label ends up in your bloodstream. Two factors reduce how much you actually absorb: phytic acid (found in beans, grains, and seeds) and oxalic acid (found in spinach, rhubarb, and beet greens). These compounds bind to magnesium in the gut and carry some of it out before your body can use it.

This doesn’t mean you should avoid these foods. Spinach is still one of the best magnesium sources even after accounting for its oxalate content. But it does mean variety matters. Eating magnesium from multiple food groups, rather than relying on a single source, helps ensure you absorb enough overall. Pairing high-phytate foods with fermented or acidic ingredients (like lemon juice, vinegar, or yogurt) can also improve absorption.

Magnesium from food is generally better absorbed than magnesium from supplements, particularly inorganic supplement forms like magnesium oxide. If you’re getting your magnesium from a mix of whole foods, your body is already working with the most usable form available.