What Foods Are Highest in Magnesium?
Short Answer
The foods highest in magnesium are usually seeds, nuts, leafy greens, legumes, soy foods, and whole grains. Among common foods, pumpkin seeds, chia seeds, almonds, spinach, cashews, black beans, and edamame are some of the strongest practical choices per serving. For most people, a food-first approach is the best place to start, because magnesium-rich foods also bring fiber, protein, and other nutrients that supplements do not.
Key Takeaways
- Pumpkin seeds, chia seeds, almonds, spinach, cashews, black beans, and edamame are among the most magnesium-dense foods you can build into everyday meals.
- Magnesium supports more than 300 enzyme systems involved in energy production, muscle and nerve function, blood glucose control, blood pressure regulation, and normal heart rhythm.
- Many people still fall short. NIH notes that 48% of Americans consume less magnesium from food and beverages than their estimated average requirement.
- Nutritional needs should generally be met through food first. Supplements can be useful when food alone is not enough, but the adult upper limit of 350 mg applies to magnesium from supplements and medications, not magnesium naturally present in food.
If you have ever looked up magnesium because of sleep, stress, muscle cramps, or general wellness, this question makes sense. Magnesium is essential, but it is also easy to think of it only as a supplement story. In reality, the most reliable foundation is usually food. That matters because food sources do more than deliver magnesium in isolation. They also improve overall diet quality, which is exactly the pattern federal dietary guidance emphasizes.
Which foods are highest in magnesium?
One important detail: “highest” can mean different things. A food may look extremely high per 100 grams but still be eaten in small amounts. For this article, the most useful lens is magnesium per realistic serving, because that is how people actually build meals. Using NIH’s selected food-source table, these are some of the strongest practical options.
|
Food |
Serving (Imperial) |
Serving (Metric) |
Magnesium |
|---|---|---|---|
|
Pumpkin seeds, roasted |
1 oz |
28 g |
156 mg |
|
Chia seeds |
1 oz |
28 g |
111 mg |
|
Almonds, dry roasted |
1 oz |
28 g |
80 mg |
|
Spinach, boiled |
1/2 cup |
~90 g |
78 mg |
|
Cashews, dry roasted |
1 oz |
28 g |
74 mg |
|
Peanuts, oil-roasted |
1/4 cup |
~36 g |
63 mg |
|
Soymilk, plain or vanilla |
1 cup |
~240 ml |
61 mg |
|
Black beans, cooked |
1/2 cup |
~86 g |
60 mg |
|
Edamame, cooked |
1/2 cup |
~78 g |
50 mg |
|
Peanut butter, smooth |
2 tbsp |
~32 g |
49 mg |
|
Cocoa powder (unsweetened) |
1 tbsp |
~15 g |
27 mg |
|
Avocado |
1 medium |
1 medium |
58 mg |
These are not the only useful foods. Brown rice, oatmeal, baked potato with skin, yogurt, banana, salmon, and whole wheat bread also contribute, even if they are not the very top of the list per serving. This is one reason magnesium is best approached as a pattern, not a single “superfood.”
Why do seeds, beans, greens, and whole grains keep leading the list?
The pattern is not random. NIH notes that good food sources of magnesium include green leafy vegetables, legumes, nuts, seeds, and whole grains, and that foods containing dietary fiber often provide magnesium as well. Harvard’s Nutrition Source highlights the same broad pattern, especially plant foods such as legumes, leafy greens, nuts, seeds, and whole grains.
That also helps explain why refined foods often contribute less. NIH points out that refining grains removes the germ and bran, which are nutrient-rich parts of the grain, and this substantially lowers magnesium content. So if you compare brown rice with white rice, or whole wheat bread with refined white bread, the less processed version usually gives you more magnesium.
Absorption matters too. NIH estimates that roughly 30% to 40% of the magnesium you get from food and beverages is typically absorbed. In real life, that means the best strategy is not obsessing over a single food, but repeatedly including magnesium-rich foods across the day.
How much magnesium do you actually need each day?
For adults, NIH sets the Recommended Dietary Allowance at 400 mg a day for men ages 19 to 30 and 420 mg for men aged 31 and older. For women, the RDA is 310 mg a day at ages 19 to 30 and 320 mg at age 31 and older. During pregnancy, needs rise to 350 to 360 mg a day depending on age.
Those numbers reflect total intake from all sources, including food. The important safety distinction is that the 350 mg upper limit often quoted online refers to supplemental magnesium only, not magnesium from food. In other words, eating a magnesium-rich diet is not the same thing as overdoing a supplement.
Can you realistically hit your target with food alone?
For many people, yes. A magnesium-rich day does not need to be extreme. It can look surprisingly normal:
- Breakfast: 1 cup soymilk plus instant oatmeal and a banana
- Lunch: spinach and black bean bowl with whole grain sides
- Snack: 1 oz almonds
- Dinner: salmon with brown rice and avocado
Using NIH’s food values, that kind of day can land around 450 mg of magnesium, depending on exact portions and brands. That is enough to cover the RDA for most adults without relying on a supplement.
This is also why “food first” is such a strong strategy. Nutritional needs should generally be met primarily through the diet, and the Dietary Guidelines for Americans emphasize food-based patterns that help meet nutrient needs while supporting overall health. Supplements still have a role, but they work best when they fill a real gap rather than substitute for a low-quality eating pattern.
Who should pay closer attention to magnesium-rich foods?
NIH identifies several groups that are more likely to have magnesium inadequacy: people with gastrointestinal diseases that affect absorption, people with type 2 diabetes, people with alcohol dependence, and older adults. Older adults may be at higher risk partly because intake tends to be lower, absorption declines, and kidney losses can increase with age.
Beyond those clinical groups, food patterns matter. People who rarely eat legumes, nuts, seeds, leafy greens, or whole grains may simply have fewer opportunities to build magnesium into the day. That is part of why many Americans still do not reach adequate intake levels.
When should you think about supplements instead of food alone?
A supplement can make sense when it is genuinely hard to meet needs through food, especially during certain life stages or when medical conditions, medications, or digestive issues make food alone less reliable. NIH states that supplements may be useful when it is not possible to meet nutrient needs through diet alone.
If someone does go that route, the next questions are usually about type and dose. NIH notes that supplement labels list the amount of elemental magnesium, not the weight of the full compound, and that different forms vary in absorption. That is where a separate guide on magnesium glycinate, dosage, or magnesium citrate versus glycinate becomes useful. In other words, the best sequence is often food first, supplement second, and form-selection third.
What is the smartest way to eat more magnesium without overcomplicating it?
Think in categories, not in isolated foods. A simple framework is:
- Add one seed or nut source daily, such as pumpkin seeds, chia seeds, almonds, or cashews
- Add one legume or soy source daily, such as black beans, edamame, or soymilk
- Add one leafy green or whole grain source daily, such as spinach, oatmeal, or brown rice
That pattern is easier to sustain than chasing one perfect food. It also fits the way magnesium is naturally distributed in the diet: mostly across plant foods, not in a single magic ingredient.

References
- Harvard T.H. Chan School of Public Health. (n.d.). Magnesium. The Nutrition Source.
- Office of Dietary Supplements, National Institutes of Health. (n.d.). Magnesium: Health professional fact sheet.
- Rondón, L. J. (2026). Nutritional factors affecting magnesium bioavailability: A narrative review. Biological Trace Element Research, 204, 1181-1192. doi:10.1007/s12011-025-04739-2
- U.S. Department of Agriculture, Agricultural Research Service. (n.d.). FoodData Central.
- U.S. Department of Agriculture & U.S. Department of Health and Human Services. (2025). Dietary Guidelines for Americans, 2025-2030.
FAQ
What food has the most magnesium?
Among NIH’s selected common food sources, roasted pumpkin seeds are one of the strongest practical options at 156 mg per ounce. Chia seeds follow at 111 mg per ounce.
Are bananas high in magnesium?
Bananas help, but they are not one of the highest-magnesium foods. NIH lists one medium banana at 32 mg, which makes it a useful supporting source rather than a top-tier source like seeds, nuts, spinach, or beans.
Is dark chocolate a good source of magnesium?
Yes, dark chocolate can contribute. Harvard lists dark chocolate with at least 70% cocoa among magnesium-containing foods. That said, if your goal is to maximize magnesium intake, seeds, nuts, legumes, and leafy greens usually give you more room to build your intake in a balanced way.
Can you get enough magnesium from food alone?
Often, yes. A well-planned day that includes seeds or nuts, beans or soy foods, leafy greens, and whole grains can cover the RDA for many adults. NIH and the Dietary Guidelines both support meeting nutrient needs through food first whenever possible.
When should you consider a magnesium supplement?
A supplement is worth considering when food alone is not enough, or when medical conditions, medications, or digestive issues make magnesium intake harder to maintain. If you use one, the key details are elemental magnesium, total dose, and the reason you are taking it.
What are the signs of magnesium deficiency?
Magnesium deficiency can manifest through symptoms such as muscle cramps, fatigue, nausea, loss of appetite, and abnormal heart rhythms. Chronic low dietary magnesium intake may contribute to more serious health conditions, including insulin resistance, high blood pressure, and migraine headaches. If you suspect a deficiency, consult a healthcare professional for assessment and possible magnesium status testing.
How does dietary magnesium intake affect bone health?
Adequate magnesium intake is essential for bone health because magnesium helps increase bone mineral density by influencing bone-building cells and regulating parathyroid hormone and vitamin D metabolism. Studies suggest that higher magnesium intakes are associated with improved bone mineral density, which can reduce the risk of osteoporosis and fractures over time.
Can consuming too much magnesium be harmful?
While magnesium from food sources is generally safe because the body can remove excess magnesium through urine, high doses of magnesium from supplements or medications can lead to side effects such as diarrhea, nausea, and muscle weakness. The tolerable upper intake level (UL) for supplemental magnesium in adults is 350 mg per day to avoid adverse effects.
What forms of magnesium supplements are best absorbed?
Forms of magnesium that dissolve well in the digestive system, such as magnesium citrate, magnesium glycinate, and magnesium chloride, tend to have higher bioavailability compared to magnesium oxide or magnesium sulfate. Choosing the right supplement form can improve magnesium absorption and effectiveness.
How do proton pump inhibitors affect magnesium levels?
Long-term use of proton pump inhibitors (PPIs), medications commonly used to treat acid reflux and stomach ulcers, can reduce magnesium absorption and lead to low magnesium levels or magnesium deficiency. Patients on prolonged PPI therapy should have their magnesium status monitored and discuss supplementation options with their healthcare provider.
What role does magnesium play in blood sugar regulation?
Magnesium is involved in over 300 chemical reactions, including those that regulate blood sugar and insulin sensitivity. Adequate magnesium levels support healthy glucose metabolism, and low magnesium status has been linked to increased risk of type 2 diabetes and insulin resistance. However, the American Diabetes Association notes that more clinical trials are needed to confirm the benefits of magnesium supplementation for blood sugar control.
0 comments