How to Get More Magnesium: Foods, Supplements & More

The most effective way to get more magnesium is through food, and the richest sources are seeds, nuts, and beans. Most adults need between 310 and 420 mg per day, depending on age and sex. If your diet falls short, supplements can fill the gap, but the form you choose and how you take it both matter for absorption.

How Much You Actually Need

Adult men need 400 to 420 mg of magnesium daily, while adult women need 310 to 320 mg. During pregnancy, that number rises to 350 to 360 mg. These targets refer to total magnesium from all sources: food, drinks, and supplements combined.

Many people fall slightly below these numbers without realizing it. Mild shortfalls don’t usually cause obvious symptoms, because your body is good at conserving magnesium through the kidneys. Noticeable signs of deficiency, like nausea, fatigue, weakness, loss of appetite, and muscle twitches, typically don’t appear until levels drop significantly below normal. Muscle twitching or cramping is often the first clinical sign.

The Best Food Sources

Pumpkin seeds are the single richest common food source. One cup of roasted pumpkin seed kernels delivers about 649 mg of magnesium, well over a full day’s requirement. You don’t need a full cup to make an impact: even a quarter cup gets you roughly 160 mg. A cup of dry-roasted almonds provides around 385 mg, and a cup of raw black beans has about 332 mg.

Here are the top food sources by magnesium content per cup:

  • Pumpkin/squash seeds (roasted): 649 mg
  • Almonds (dry roasted): 385 mg
  • Pink beans (raw): 382 mg
  • Black beans (raw): 332 mg
  • Butternuts (dried): 284 mg
  • Peanuts (dry roasted): 260 mg
  • Adzuki beans (raw): 250 mg
  • Trail mix with chocolate chips: 235 mg

A practical daily approach might look like a handful of almonds as a snack (about 75 mg), a half cup of cooked black beans at lunch (60 to 80 mg), and a tablespoon or two of pumpkin seeds on a salad (about 75 to 150 mg). Dark chocolate, avocados, spinach, and whole grains also contribute meaningful amounts, though in smaller concentrations than seeds and nuts.

Choosing the Right Supplement Form

If food alone isn’t getting you there, supplements can help. But not all magnesium supplements are created equal. Organic forms (meaning bonded to a carbon-containing molecule, not “organic” as in farming) absorb better than inorganic forms. The practical difference is significant.

Magnesium citrate is one of the most widely available and well-absorbed options. Research shows it increases magnesium levels in both muscle and brain tissue. Magnesium glycinate, which is bonded to an amino acid, also absorbs well and tends to be gentler on the stomach, making it a good choice if you’re sensitive to digestive side effects. Magnesium oxide, by contrast, is cheap and common but poorly absorbed. It’s more likely to cause diarrhea and is better suited as a laxative than a nutritional supplement. Magnesium carbonate, chloride, and gluconate also tend to cause more digestive issues.

If your main goal is better sleep or relaxation, magnesium glycinate or citrate taken a couple of hours before bed is a reasonable approach. If you’re primarily trying to correct a dietary shortfall, the time of day doesn’t meaningfully change absorption. Consistency matters more than timing. Taking your supplement with a meal can reduce the chance of nausea or loose stools.

How to Absorb More of What You Take

Getting magnesium into your body is one step. Absorbing it efficiently is another. Phytates, which are compounds found naturally in whole grains, seeds, and legumes, can bind to magnesium and reduce absorption. Oxalates (found in spinach, rhubarb, and beets) and excess phosphate can also interfere. That said, the amounts present in a normal diet don’t block enough magnesium to cause a problem for most people. Soaking beans and grains before cooking reduces their phytate content, which modestly improves mineral absorption.

A more important factor is magnesium’s relationship with vitamin D. Your body needs magnesium to convert vitamin D into its active, usable form. If you’re low in magnesium, your vitamin D may not work as efficiently, even if your vitamin D levels look adequate on paper. This means that boosting your magnesium intake can improve the effectiveness of the vitamin D you’re already getting from sunlight, food, or supplements. The two nutrients work together, so addressing one without the other can limit the benefit.

Staying Under the Safety Limit

Magnesium from food is essentially impossible to overdose on. Your kidneys handle any excess efficiently. The safety concern is with supplements. The tolerable upper intake level for supplemental magnesium is 350 mg per day for adults. This applies only to magnesium from pills, powders, and fortified products, not from food.

Going above 350 mg in supplement form commonly causes diarrhea, nausea, and abdominal cramping. These are the most frequent side effects and usually the first sign you’ve taken too much. At very high doses, magnesium toxicity can become serious, causing dangerously low blood pressure, difficulty breathing, irregular heartbeat, and in rare cases, cardiac arrest. A few fatal cases have been reported, though these involved extreme doses far beyond what a standard supplement provides.

If you split your supplemental dose (for example, 200 mg in the morning and 150 mg in the evening), you’re less likely to hit the digestive side effects than if you take it all at once.

Medications That Drain Your Magnesium

Certain common medications quietly deplete magnesium over time. The FDA has issued a specific warning about proton pump inhibitors, the acid reflux drugs many people take daily. Using them for longer than a year is associated with low magnesium levels. Diuretics prescribed for blood pressure, both loop and thiazide types, also cause magnesium loss through increased urination. If you take any of these medications regularly, your magnesium needs may be higher than the standard recommendation, and food sources alone may not be enough to compensate.

Do Epsom Salt Baths and Magnesium Oils Work?

Epsom salt baths and topical magnesium sprays are popular, but the evidence behind them is thin. One small study of 19 people found that soaking in Epsom salt baths daily for a week did raise blood magnesium levels, from an average of about 105 to 141 parts per million. However, that study was never published in a peer-reviewed journal; it appeared only on the Epsom Salt Council’s commercial website.

A separate trial using magnesium oil sprays found an average 59.7% increase in magnesium levels in hair samples after 12 weeks, but never measured actual blood magnesium levels, which is the standard way to assess your body’s magnesium status. These methods may provide some benefit, but they’re not reliable replacements for dietary magnesium or well-absorbed oral supplements. Treat them as a complement, not a strategy.