How to Get Enough Magnesium: Foods, Signs & Supplements

Most adults need between 310 and 420 mg of magnesium daily, and the simplest way to hit that target is by building meals around seeds, nuts, leafy greens, and legumes. A single ounce of pumpkin seeds delivers 150 mg, nearly half the daily goal for most people. But getting enough magnesium involves more than just picking the right foods. What you eat alongside them, how you manage stress, and whether you supplement all play a role in whether your body actually absorbs and retains what it needs.

How Much You Actually Need

Adult women need about 310 to 320 mg of magnesium per day, while adult men need 400 to 420 mg. During pregnancy, the target rises to roughly 350 to 360 mg. These numbers represent the Recommended Dietary Allowance set by the National Institutes of Health, meaning the amount that covers the needs of about 97% of healthy people.

The tricky part is that magnesium content in fruits and vegetables has dropped over the last 50 years due to changes in soil quality and farming practices. On top of that, roughly 80% of the mineral is lost during food processing. So even if you’re eating a reasonably healthy diet, you may be getting less magnesium than the same meals would have provided a generation ago.

The Best Food Sources

Seeds and nuts are the most concentrated sources of magnesium you can eat. Pumpkin seeds top the list at 150 mg per ounce, followed by chia seeds at 111 mg per ounce. Almonds provide 80 mg per ounce, cashews 72 mg, and peanuts 49 mg. Sprinkling a mix of these on yogurt, salads, or oatmeal is one of the easiest ways to close a daily gap.

Cooked leafy greens are another strong category. A half cup of cooked spinach has 78 mg and Swiss chard comes in at 75 mg. Among legumes, black beans offer 60 mg per half cup, edamame 50 mg, and lima beans 40 mg. Cooked quinoa delivers 60 mg per half cup, and a cup of plain shredded wheat cereal provides 56 mg.

Some foods you might not expect also contribute meaningful amounts. A whole avocado has 58 mg. A medium potato with the skin on has 48 mg. An ounce of dark chocolate (70% cocoa or higher) provides 64 mg. Even a medium banana adds 32 mg. None of these alone will get you to your daily target, but they add up quickly when combined.

A realistic day might look like this: oatmeal topped with an ounce of pumpkin seeds and a banana for breakfast (roughly 180 mg), a lunch salad with black beans and avocado (about 120 mg), and a dinner with quinoa and cooked spinach (around 140 mg). That puts you well over 400 mg without a supplement.

What Blocks Absorption

Not all the magnesium on your plate makes it into your bloodstream. Several naturally occurring compounds in food bind to magnesium and prevent your gut from absorbing it. The two biggest culprits are oxalate and phytic acid. Oxalate is found in high concentrations in spinach, rhubarb, and beet greens. This creates a paradox: spinach is high in magnesium but delivers less of it to your body compared to a low-oxalate green like kale. Research has directly confirmed that spinach has lower magnesium bioavailability than kale for this reason.

Phytic acid, concentrated in whole grains, legumes, and some nuts, also reduces absorption. Soaking, sprouting, or fermenting these foods breaks down some of the phytic acid and frees up more magnesium. Cellulose and lignin, the fibrous structural compounds in plant cell walls, can also interfere. This doesn’t mean you should avoid high-fiber foods. It just means relying on a variety of magnesium sources, rather than a single food, gives you better overall absorption.

Protein, medium-chain fats (found in coconut oil and dairy), and certain fermentable fibers act as enhancers, helping your body take in more magnesium from a meal.

Lifestyle Factors That Drain Magnesium

Even with a solid diet, certain habits and conditions cause your body to flush magnesium faster than you replace it. Chronic stress is one of the most significant. When your body releases stress hormones, magnesium shifts out of cells and into the bloodstream, where the kidneys filter it out. Studies on university students found that magnesium excretion in urine spiked during exam periods, correlating with increased anxiety. In one study measuring the effects of noise stress, the increase in urinary magnesium excretion lasted up to two days after the stressful exposure ended.

Caffeine and alcohol both increase magnesium loss through the kidneys. A high-sodium diet does the same. Heavy exercise depletes stores through sweat and increased metabolic demand. Certain medications are also well-known culprits: acid-reducing drugs like proton pump inhibitors and some diuretics can significantly reduce magnesium retention over time. If any of these factors apply to you, your functional need for magnesium is likely higher than the standard recommendation.

When Supplements Make Sense

If you struggle to consistently eat magnesium-rich foods, or if stress, medication, or heavy exercise puts extra demand on your supply, a supplement can help fill the gap. The current tolerable upper intake level for supplemental magnesium (separate from food) is 350 mg per day, a threshold based primarily on the risk of diarrhea. However, more recent research has called that limit into question. Seven studies testing supplemental doses ranging from 128 to 1,200 mg per day found no significant differences in diarrhea between supplement and placebo groups. A review of adverse-event reports for single-ingredient magnesium products found only 40 attributable gastrointestinal cases total, and only a third of those involved diarrhea.

That said, starting with a moderate dose of 200 to 300 mg and seeing how your body responds is a practical approach. The form of magnesium matters more than most people realize. Magnesium citrate, chloride, lactate, and aspartate dissolve well in liquid and are absorbed more completely. Magnesium oxide and magnesium sulfate have lower bioavailability, meaning a larger share passes through your gut unabsorbed. Glycinate, while less studied in direct comparisons, is widely used for its gentleness on the stomach. If a supplement causes loose stools, switching to a better-absorbed form often resolves the issue.

Splitting your dose across two meals rather than taking it all at once also improves absorption, since your gut can only take in so much magnesium at a time.

How to Know If You’re Low

Mild magnesium deficiency often flies under the radar. Early signs include fatigue, loss of appetite, nausea, and general weakness. As levels drop further, you may notice muscle cramps, spasms, or twitching, which reflect the neuromuscular hyperexcitability that is often the first clinical sign. Mood changes like increased irritability, anxiety, or feelings of apathy can also be tied to low magnesium.

Testing for magnesium deficiency is tricky. The standard blood test measures serum magnesium, but your body pulls magnesium from bones to keep blood levels stable. This means your serum level can read normal even when your overall stores are depleted. A red blood cell (RBC) magnesium test, which measures the magnesium inside your red blood cells rather than floating in your blood plasma, is generally considered a better indicator of true body stores. If you suspect a deficiency, asking specifically for the RBC test gives a more accurate picture.

Magnesium deficiency rarely exists in isolation. About 60% of people with low magnesium also have low potassium, and low calcium frequently accompanies it as well. This is why symptoms can feel vague and overlapping, and why correcting magnesium alone sometimes resolves problems that seemed unrelated.