Nearly every common nut is a meaningful source of magnesium, but the amounts vary enough that your choice of nut genuinely changes how much you get. Brazil nuts consistently top laboratory analyses, followed by cashews and almonds, while pecans and macadamias sit at the lower end. A single ounce of the top-ranked nuts can deliver roughly a quarter of the daily magnesium most adults need, which matters because a large share of the population falls short of that target from food alone.
How the Most Common Nuts Stack Up
When researchers measure magnesium across a wide panel of commercially available nuts, Brazil nuts come out on top. A chemometric analysis of multiple nut types found that Brazil nuts had the highest median magnesium content among all nuts tested, and that every nut variety in the study qualified as a dietary source of magnesium.1PubMed Central. Nuts as a Dietary Enrichment with Selected Minerals-Content Assessment Supported by Chemometric Analysis A separate evaluation of mineral bioaccessibility in foods also placed Brazil nuts and cashews at the top for magnesium among the nut category.2Journal of Food Science and Technology. Evaluation of the content and bioaccessibility of iron, zinc, calcium and magnesium from groats, rice, leguminous grains and nuts
In rough order from most to least magnesium per one-ounce (28 g) serving, the ranking looks like this:
- Brazil nuts: Around 105-110 mg per ounce, the clear leader.
- Cashews: Roughly 80-85 mg per ounce.
- Almonds: About 75-80 mg per ounce.
- Pine nuts: Around 70 mg per ounce.
- Peanuts: Approximately 48-50 mg per ounce (technically a legume, but grouped with nuts in most dietary research).
- Hazelnuts: About 45-48 mg per ounce.
- Walnuts: Around 44-46 mg per ounce.
- Macadamias: Roughly 36-38 mg per ounce.
- Pistachios: About 30-34 mg per ounce.
- Pecans: Around 33-35 mg per ounce.
These numbers shift modestly depending on growing conditions and the specific study, but the general order holds up across multiple analyses. The gap between the top and bottom of the list is substantial: an ounce of Brazil nuts delivers roughly three times the magnesium of an ounce of pecans.
What a Handful Actually Contributes to Your Daily Needs
The adult daily target for magnesium is about 400-420 mg for men and 310-320 mg for women, depending on age. A standard recommendation is about 1.5 ounces (42 g) of nuts per day, which is a generous handful. At that serving size, tree nuts provide around 87 mg of magnesium on average, covering roughly 21% of the male recommended dietary allowance. Peanuts at the same serving size deliver about 75 mg, or around 18% of the male RDA.3The Journal of Nutrition. Tree Nuts and Peanuts as Components of a Healthy Diet
Those averages blur the difference between nut types. If you reach for Brazil nuts or cashews specifically, that 1.5-ounce handful could supply closer to 30% of the daily value. Pick pecans instead and you are looking at more like 12-15%. Neither is negligible, but if boosting magnesium is a specific goal, it pays to be intentional about which nut you grab.
Magnesium content of tree nuts as a group spans from about 121 to 376 mg per 100 grams, a threefold range.4PLOS ONE. Effect of Tree Nuts on Glycemic Control in Diabetes: A Systematic Review and Meta-Analysis of Randomized Controlled Dietary Trials That wide spread is worth keeping in mind if you are trying to hit a specific intake target from food.
Why This Matters More Than You Might Think
Almost half of the U.S. population consumes less magnesium than recommended. One analysis of national dietary data estimated that about 48% of Americans fell short of the required amount from food.5Nutrition Reviews. Suboptimal magnesium status in the United States: are the health consequences underestimated? Another review put the figure at roughly 45% and linked chronic shortfalls to conditions including high blood pressure, diabetes, and neurological problems.6PubMed Central. Challenges in the Diagnosis of Magnesium Status
The shortfall is not dramatic for most people. It is more of a slow, quiet gap where intake drifts below what cells need for hundreds of enzymatic reactions. That is part of what makes nuts an appealing fix: they slot into meals and snacks without much effort, and even a moderate serving makes a dent in the deficit.
Magnesium from Nuts and Blood Pressure
Researchers have looked closely at how the magnesium in nuts connects to cardiovascular health, especially blood pressure. Nuts are low in sodium and rich in unsaturated fats, fiber, potassium, and magnesium, and all of those components may work together to benefit blood pressure. Magnesium specifically appears to promote vasodilation by stimulating nitric oxide production and acting as a natural calcium-channel blocker in smooth muscle cells.7PubMed Central. Nut Consumption and Risk of Hypertension in US Male Physicians
A review of the protective potential of nuts against high blood pressure similarly emphasized that raw nuts in particular contain meaningful amounts of magnesium and potassium alongside their healthy fats, and that these components interact to beneficially influence blood pressure.8Nutrition, Metabolism and Cardiovascular Diseases. Nuts, hypertension and endothelial function Observational data from Korean adults found an inverse association between mineral intake from nuts and hypertension prevalence, particularly in women.9PubMed. Dietary Mineral Intake from Nuts and Its Relationship to Hypertension Among Korean Adults
Disentangling magnesium’s specific contribution from the rest of the nut package is difficult. The honest reading of the evidence is that magnesium probably contributes, but it is one player in a nutrient ensemble that includes potassium, fiber, healthy fats, and antioxidants.
Magnesium, Nuts, and Blood Sugar Control
The connection between nut-derived magnesium and blood sugar regulation has also attracted attention. A systematic review and meta-analysis of randomized controlled trials on tree nuts and diabetes found that magnesium and monounsaturated fat are likely among the mechanisms driving improvements in glycemic control seen with nut consumption. Tree nut magnesium content ranges widely enough that some nuts can provide up to 94% of the daily value per 100 grams, and pooled evidence from cohort studies and trials supports a role for magnesium in lowering diabetes risk.4PLOS ONE. Effect of Tree Nuts on Glycemic Control in Diabetes: A Systematic Review and Meta-Analysis of Randomized Controlled Dietary Trials
The proposed mechanism involves insulin signaling: inadequate intracellular magnesium may impair the way insulin receptors work, which in turn reduces the body’s ability to move glucose out of the bloodstream efficiently. This is an area where the direction of evidence is fairly consistent, even if the precise magnitude of the effect from nuts alone is hard to pin down.
Does Magnesium from Nuts Help with Sleep?
Magnesium supplements have become popular as a sleep aid, and since nuts are a food source of magnesium, the question naturally comes up. The evidence here is mixed. A systematic review of magnesium supplementation and sleep found that observational studies consistently linked higher magnesium status with better sleep quality, less daytime sleepiness, and fewer problems like snoring. But randomized clinical trials, which are the more rigorous test, produced contradictory findings on whether supplementation actually improves sleep disorders.10PubMed. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature
A separate systematic review struck a slightly more optimistic tone, noting that most of the sleep-focused studies it examined did show improvements and that preclinical evidence supports the connection. The review concluded that supplemental magnesium is likely useful for mild insomnia and anxiety, especially in people who already have low magnesium levels.11PubMed Central. Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review A broader review of dietary interventions and sleep also identified magnesium as one of several nutrients with evidence for improving sleep outcomes.12PubMed Central. Nutritional Interventions for Enhancing Sleep Quality: The Role of Diet and Key Nutrients in Regulating Sleep Patterns and Disorders
The takeaway for nut eaters: if you are already low in magnesium, eating more magnesium-rich nuts might help with sleep. If your magnesium status is already fine, adding a handful of cashews before bed probably will not do much. The dose from a single serving of nuts is also much smaller than what most supplement trials use, so expecting dramatic results from food alone is not realistic.
Phytic Acid and Whether You Actually Absorb the Magnesium
Nuts contain phytic acid, a compound that binds to minerals in the gut and can reduce how much your body absorbs. Phytic acid chelates micronutrients and makes them less available because humans lack the enzyme phytase, which breaks phytic acid down.13PubMed Central. Reduction of phytic acid and enhancement of bioavailable micronutrients in food grains In animal studies, increasing levels of dietary phytic acid caused a dose-dependent drop in magnesium absorption.14Nutrition Research. Dietary phytate reduces magnesium bioavailability in growing rats
This has fueled a popular belief that you need to soak or “activate” your nuts before eating them to unlock the minerals inside. The idea sounds logical, but the research does not support it. A study that tested soaking raw nuts at various temperatures and durations found that the differences in phytic acid concentration between treated and untreated nuts were small, ranging from a 12% decrease to a 10% increase. Worse, soaking actually lowered overall mineral concentrations in the nuts, especially when they were chopped, because the minerals leached out into the soaking water. The ratio of phytic acid to minerals did not improve.15PubMed. Does ‘activating’ nuts affect nutrient bioavailability?
In practical terms, phytic acid does blunt some mineral absorption, but nuts still deliver magnesium effectively. Eating them alongside vitamin C-rich foods or as part of a varied diet helps compensate, and the overall mineral content is high enough that the net contribution remains significant even after phytic acid takes its cut.
Does Roasting or Processing Change the Numbers?
Most people eat roasted or seasoned nuts rather than raw ones. Roasting can shift mineral concentrations modestly, partly because heat drives off moisture and concentrates what remains. A study on roasted versus raw seed nuts found that roasting increased measured magnesium content, likely for this reason.16Current Research in Nutrition and Food Science Journal. Effect of Roasting on the Proximate, Mineral and Anti-Nutrient Composition of Tamarindus indica Seed Nuts However, that study also found roasting did not significantly reduce phytic acid, so the mineral-to-phytate picture stays roughly the same.
The more important concern with commercially roasted nuts is what gets added during processing. Oil-roasted and salted varieties come with extra fat and sodium, which can undermine the cardiovascular benefits nuts are known for. The review on nuts and blood pressure specifically noted that raw nuts appear more protective than processed ones.8Nutrition, Metabolism and Cardiovascular Diseases. Nuts, hypertension and endothelial function Dry-roasted, unsalted nuts are a reasonable middle ground if you prefer the taste and texture of roasted nuts but want to keep the health profile clean.
Other Minerals You Pick Up Along the Way
One reason nuts are recommended so often by nutritionists is that you rarely eat them for just one mineral. The same handful that gives you magnesium also delivers meaningful amounts of other nutrients, and different nuts excel at different ones. Almonds stood out as the only nut in one large analysis that qualifies as a source of calcium. Pistachios topped the list for potassium. Pine nuts led for zinc. Brazil nuts dominated in both magnesium and selenium.1PubMed Central. Nuts as a Dietary Enrichment with Selected Minerals-Content Assessment Supported by Chemometric Analysis
Pistachios deserve a particular mention even though they rank lower for magnesium alone. They contain the highest levels of potassium, vitamin K, and certain phytochemicals among common nuts, along with a heart-healthy fatty acid profile and a solid dose of protein and fiber.17Oxford Academic (Nutrition Reviews). Pistachio nuts: composition and potential health benefits If you are trying to cover multiple mineral gaps at once, a mix of Brazil nuts, almonds, cashews, and pistachios covers a lot of ground.
Brazil nuts are worth a specific caution, though. They are extremely high in selenium. Eating several ounces daily over time can push selenium intake into a range that causes side effects. A few Brazil nuts a day is ideal; treating them like trail mix and eating handfuls is not.18Food Research International. Brazil nuts: Nutritional composition, health benefits and safety aspects
Why Magnesium Content Varies Between Bags of the Same Nut
If you have ever compared nutrition labels on two brands of the same nut and seen slightly different numbers, the soil the trees grew in is a big reason why. A study of macadamia nuts from different orchards in South Africa found that magnesium levels in the nuts varied across sites, with concentrations ranging by hundreds of micrograms per gram depending on where the trees grew. Interestingly, the researchers concluded that while soil quality does influence mineral uptake, the plant’s own internal controls are the dominant factor in determining the final mineral profile of the nut.19PubMed. Chemical composition of edible Macadamia nuts (Macadamia integrifolia) and impact of soil quality
In hazelnut orchards, magnesium fertilization trials revealed that the orchards’ soils were often classified as low or very low in available magnesium. Adding magnesium fertilizer to the soil changed the mineral dynamics, though it also introduced trade-offs: higher soil magnesium reduced available phosphorus, reflecting the complex interactions between minerals in agricultural soil.20Scientific Research and Essays. Effect of magnesium fertilization on some plant nutrient interactions and nut quality properties in Turkish hazelnut
For you as a consumer, the practical implication is that nutrition labels represent averages. The actual magnesium in your specific bag of almonds or cashews could be somewhat higher or lower depending on where and how the trees were grown. Over time, with a varied diet, these fluctuations wash out. But it is another reason not to rely on a single food as your only source of any mineral.
When Magnesium Becomes Too Much of a Good Thing
Getting too much magnesium from whole foods alone is extremely unlikely. Your kidneys are efficient at excreting excess magnesium, and the amounts in even a large serving of nuts fall well within safe ranges. The concern arises with supplements, not snacks. Research on magnesium-induced diarrhea demonstrated that excess magnesium intake from supplements like magnesium hydroxide reliably caused abnormally high fecal magnesium output, and for each additional millimole of magnesium excreted, stool weight increased by about 7 grams.21New England Journal of Medicine. Diagnosis of magnesium-induced diarrhea
This is relevant because people who learn they are low in magnesium sometimes combine magnesium-rich foods with high-dose supplements and end up with loose stools or cramping. The tolerable upper limit for supplemental magnesium (as opposed to food-derived magnesium) is generally set at 350 mg per day for adults. Magnesium from food does not count toward that cap because the body handles it differently, absorbing it more gradually alongside other nutrients. So eat your Brazil nuts without worry, but be cautious about stacking a supplement on top of an already magnesium-rich diet without checking the math.