Most adults need between 310 and 420 mg of magnesium every day, and the easiest way to hit that number is by building a few magnesium-rich foods into your regular meals. Seeds, nuts, leafy greens, legumes, and whole grains are the top sources, and a single ounce of pumpkin seeds alone delivers 150 mg, more than a third of most people’s daily target.
How Much You Actually Need
Your recommended daily intake depends on your 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 from 31 onward. During pregnancy, the target increases to 350 to 360 mg depending on age. These numbers are set by the National Institutes of Health and haven’t changed in recent updates.
Most people fall short without realizing it. Magnesium isn’t part of standard blood panels, so a mild shortfall can go unnoticed. You won’t necessarily feel dramatic symptoms from being slightly low, but over time, inadequate intake is linked to muscle cramps, poor sleep, and difficulty managing blood sugar. Severe deficiency is a different story, potentially causing irregular heart rhythms, persistent muscle spasms, and dangerously low calcium and potassium levels. The good news is that getting enough from food is straightforward once you know where to look.
Seeds and Nuts: The Highest Sources
If you want the most magnesium per bite, start with seeds. Pumpkin seeds (hulled and roasted) pack 150 mg per ounce, which is roughly a small handful. Chia seeds come in at 111 mg per ounce. Even a single tablespoon of whole flaxseed adds 40 mg. Stirring any of these into yogurt, oatmeal, or a smoothie is one of the simplest dietary upgrades you can make.
Nuts are close behind. Roasted almonds provide 80 mg per ounce, cashews give you 72 mg, and dry-roasted peanuts offer 49 mg. A trail mix combining pumpkin seeds with almonds and peanuts could easily supply 200 mg or more in a single snack. Nut butters count too, though check labels for added oils and sugars that displace the actual nut content.
Leafy Greens and Vegetables
Cooked spinach is the standout green, delivering 78 mg in just half a cup. Swiss chard is nearly as rich at 75 mg per half cup. Collard greens are lower at 25 mg per half cup but still contribute meaningfully when they’re part of a larger meal. The key detail here is “cooked.” Cooking concentrates greens dramatically, so a half cup of cooked spinach represents far more leaves than a half cup of raw spinach. You’ll get more magnesium from a sautéed side dish than from a light salad.
Other vegetables contribute smaller amounts that add up across a full day of eating. Broccoli, edamame, and potatoes with the skin on all contain moderate magnesium. Think of vegetables as your supporting cast rather than your main source.
Legumes and Whole Grains
Black beans, chickpeas, and lentils are reliable mid-range sources, generally providing 40 to 60 mg per half-cup serving. They’re especially useful because they tend to appear in large portions. A full cup of black beans in a burrito bowl or soup doubles that contribution effortlessly.
Whole grains matter more than refined ones. When grains are processed into white flour, much of the magnesium-containing bran and germ is stripped away. Brown rice, quinoa, oats, and whole wheat bread all retain significantly more magnesium than their refined counterparts. A bowl of oatmeal in the morning, a sandwich on whole grain bread at lunch, and brown rice at dinner can collectively add over 100 mg to your daily total without any special effort.
What Helps and Hurts Absorption
Eating magnesium-rich food is only half the equation. Your body also has to absorb it, and several factors influence how well that happens.
Phytic acid, found naturally in whole grains, seeds, legumes, and some nuts, can reduce how much magnesium (along with iron, zinc, and calcium) your body takes in from a meal. This doesn’t mean you should avoid these foods. They’re still net positive sources of magnesium. But simple preparation techniques break down much of the phytic acid: soaking beans or grains overnight, cooking thoroughly, sprouting seeds, and fermenting (as in sourdough bread) all help. Spreading your magnesium-rich foods across multiple meals rather than concentrating them in one sitting also reduces the impact.
Vitamin D plays a direct role in helping your body absorb magnesium, and the relationship runs both ways: magnesium is needed to activate vitamin D in the body. Vitamin B6, fermentable soluble fiber (found in oats, bananas, and onions), and whey protein also appear to enhance magnesium bioavailability. Pairing a spinach salad with a source of vitamin D, like salmon or eggs, is a practical way to get more from the magnesium you eat.
How Cooking Affects Magnesium Content
Magnesium is a mineral, not a vitamin, so it doesn’t break down from heat. But it can leach out of food into cooking water. Boiling vegetables and discarding the water causes the greatest mineral loss. Squeezing out liquid after boiling, or soaking sliced vegetables in water, makes the loss even worse.
To keep more magnesium in your food, stewing (where you eat the broth), stir-frying, roasting, and steaming are all better options than boiling. If you do boil greens, using the cooking liquid in a soup or sauce recaptures much of what leached out. Adding a small amount of salt to boiling water also appears to reduce mineral loss slightly. The simplest rule: if the cooking liquid goes down the drain, some of your magnesium goes with it.
A Realistic Day of Eating for Magnesium
Hitting 400 mg doesn’t require exotic foods or rigid meal planning. Here’s what a normal day might look like:
- Breakfast: Oatmeal topped with a tablespoon of chia seeds and a handful of almonds. That’s roughly 130 to 150 mg before you leave the house.
- Lunch: A black bean bowl over brown rice with a side of sautéed greens. Easily another 120 to 150 mg.
- Snack: A small handful of pumpkin seeds. That’s 150 mg on its own.
- Dinner: Salmon with roasted broccoli and a baked potato with skin. Another 60 to 80 mg.
That day totals somewhere around 460 to 530 mg, well above the RDA, with no supplements involved. Even if you only adopted two of those swaps (say, adding pumpkin seeds as a snack and switching to brown rice), you’d likely close whatever gap currently exists in your intake. The pattern that works is simple: lean on seeds and nuts as your heavy hitters, build meals around whole grains and legumes, and treat cooked greens as a reliable bonus.

