Pumpkin seeds are the single richest commonly available food source of magnesium, delivering roughly 650 mg per cup of roasted kernels. That alone exceeds the full daily recommendation for any adult. But “best source” depends on your situation: whether you’re looking to boost your diet, choose the right supplement form, or both. Here’s what to know.
Top Food Sources by Magnesium Content
Seeds and nuts dominate the list. A cup of roasted pumpkin seed kernels provides about 649 mg of magnesium, while a cup of dry-roasted almonds delivers around 385 mg. These are the two most magnesium-dense foods you can easily find at a grocery store. Even a small handful as a snack contributes meaningfully to your daily intake.
After seeds and nuts, leafy greens and dark chocolate are frequently cited, but their actual numbers are lower than most people expect. A cup of raw spinach contains only about 24 mg of magnesium. Cooked or canned spinach concentrates things considerably (around 131 mg per cup) because you’re eating far more leaves by weight. Dark chocolate with 60 to 69 percent cacao delivers about 50 mg per ounce, which is a nice bonus but not a primary source.
Other solid contributors include black beans, edamame, brown rice, avocado, and whole wheat bread. The practical takeaway: a diet built around whole grains, nuts, seeds, and green vegetables will cover most of your magnesium needs without much effort. A diet heavy in processed foods will not, because refining strips magnesium from grains.
How Much You Actually Need
The NIH sets the recommended daily allowance at 400 to 420 mg for adult men and 310 to 320 mg for adult women, with slightly higher targets (350 to 360 mg) during pregnancy. These numbers increase modestly after age 30. Despite those relatively achievable targets, roughly half of Americans fall short of the recommended intake level. Low magnesium intake is linked to a broad range of conditions including high blood pressure, diabetes, and cardiovascular disease.
What Blocks Magnesium Absorption
Not all the magnesium on your plate makes it into your bloodstream. Phytates, compounds naturally found in whole grains, seeds, legumes, and some nuts, reduce absorption of magnesium (along with iron, zinc, and calcium). This is somewhat ironic since many high-magnesium foods also contain phytates. Soaking, sprouting, or fermenting these foods breaks down phytates and improves mineral absorption. Cooking helps too. So while raw seeds are good, prepared versions may actually deliver more usable magnesium.
Very high doses of calcium or zinc taken at the same time can also compete with magnesium for absorption. If you take multiple mineral supplements, spacing them apart gives each one a better shot.
Choosing a Magnesium Supplement
If food alone isn’t covering your needs, supplements come in a confusing number of forms. The key distinction is between organic and inorganic forms. Organic forms (where magnesium is bound to a carbon-containing molecule) are consistently more bioavailable than inorganic ones. That means your body absorbs a larger fraction of each dose.
The most commonly recommended organic forms include:
- Magnesium citrate: Well-absorbed and widely available. Absorption is dose-dependent, meaning smaller doses are absorbed more efficiently than large ones. Can have a mild laxative effect at higher doses, which some people find helpful and others find inconvenient.
- Magnesium glycinate: Bound to the amino acid glycine. Tends to be gentler on the stomach, making it a popular choice for people who experience digestive issues with other forms. Often marketed for sleep and relaxation.
- Magnesium malate: Bound to malic acid. Sometimes preferred by people dealing with fatigue or muscle soreness, though evidence for those specific benefits over other forms is limited.
Magnesium oxide is the most common inorganic form you’ll find on shelves. It’s cheap and packs a high amount of elemental magnesium per pill, but your body absorbs a significantly smaller percentage compared to organic forms. It’s more likely to cause digestive discomfort and is primarily useful as a laxative.
Regardless of form, absorption improves when you split your dose across the day rather than taking it all at once. The tolerable upper limit for supplemental magnesium (not counting food) is 350 mg per day for adults. Going above that level commonly causes loose stools or diarrhea because unabsorbed magnesium pulls water into the intestines.
Magnesium and Sleep Quality
One of the most common reasons people seek out magnesium is to improve sleep. A randomized, double-blind trial in 31 adults with poor sleep quality found that two weeks of magnesium supplementation led to significant improvements in sleep duration, deep sleep, and sleep efficiency compared to placebo. Heart rate variability, a marker of how well-rested and recovered the body is, also improved. Interestingly, self-reported measures of anxiety and perceived stress did not reach statistical significance in the same study, suggesting magnesium’s sleep benefits may be more physiological than psychological, at least in the short term.
Does Topical Magnesium Work?
Magnesium sprays, lotions, and Epsom salt baths are widely marketed as alternatives to oral supplements. The evidence is thin but not zero. A pilot study in patients with chronically low magnesium levels found that applying a magnesium chloride spray to the skin (150 mg per day) maintained or modestly raised blood magnesium levels over six weeks, and some participants avoided the intravenous magnesium infusions they’d previously needed. The correlation between blood levels and whole-cell magnesium levels was strong in that study.
That said, these were patients with a specific medical condition that impairs absorption through the gut. For people with normal digestion, oral magnesium is a far more reliable and well-studied route. Topical products might help with localized muscle cramps, but treating them as a replacement for dietary or oral supplemental magnesium isn’t well supported.
A Practical Approach
For most people, the best source of magnesium is a combination of food and, if needed, a well-absorbed supplement. A quarter cup of pumpkin seeds (roughly 160 mg), a cup of cooked spinach (about 130 mg), and a serving of black beans gets you most of the way to your daily target. If you’re still falling short, a modest dose of magnesium citrate or glycinate fills the gap without the digestive issues that come with oxide or mega-doses. Splitting food and supplement intake across meals, rather than concentrating it in one sitting, maximizes what your body actually absorbs.