Magnesium is the fourth most abundant mineral in your body and a cofactor in more than 300 enzymatic reactions, yet an estimated 50 percent of adults in the United States do not meet their daily requirement. It drives energy production, protein synthesis, muscle contraction, nerve signaling, and blood glucose regulation. The National Institutes of Health identifies magnesium as essential for bone structure, DNA synthesis, and maintaining normal heart rhythm, with deficiency linked to hypertension, type 2 diabetes, osteoporosis, and migraine.
The recommended dietary allowance for adult women is 310 to 320 mg per day, rising to 350 to 360 mg during pregnancy. Adult men need 400 to 420 mg daily. Despite these relatively modest targets, magnesium is chronically under-consumed because the modern diet is heavily weighted toward refined grains, processed foods, and animal proteins, all of which are low in magnesium. Research published in Nutrients confirms that green leafy vegetables, whole grains, nuts, seeds, and legumes are the richest dietary sources, and that getting magnesium from food rather than supplements provides it alongside fiber, phytochemicals, and co-nutrients that enhance its biological activity.
The 20 foods below represent the best whole-food sources of magnesium across plant and animal categories, helping you build a magnesium-sufficient diet through everyday eating.

20 Foods With the Highest Magnesium Content
1. Pumpkin Seeds: The Most Magnesium-Dense Food Per Ounce
Pumpkin seeds, also called pepitas, deliver approximately 168 mg of magnesium per one-ounce serving, nearly 40 percent of the adult daily requirement in a small handful. They are also rich in zinc, iron, manganese, and healthy unsaturated fats, making them one of the most micronutrient-dense snack foods available.
Harvard T.H. Chan School of Public Health identifies pumpkin seeds as one of the top whole-food sources of magnesium, noting that the mineral in seeds and nuts is well absorbed when seeds are eaten raw or lightly roasted rather than heavily processed.
Best eaten: Raw or dry-roasted as a snack, sprinkled on salads, stirred into oatmeal, or blended into trail mix.
| Nutrient | Amount |
|---|---|
| Calories | 151 kcal |
| Protein | 7 g |
| Fat | 13 g |
| Magnesium | 168 mg |
Per 1 oz (28 g) roasted, unsalted.
2. Dark Chocolate (70–85% Cacao): A Magnesium-Rich Indulgence
A one-ounce serving of dark chocolate with 70 to 85 percent cacao provides approximately 64 mg of magnesium alongside flavonoids that support cardiovascular health. The higher the cacao percentage, the more magnesium and the less added sugar per serving. Milk chocolate contains far less magnesium because milk solids and sugar dilute the cacao content.
The American Heart Association notes that flavonoid-rich foods including dark chocolate contribute to vascular health; paired with their magnesium content, high-cacao chocolates offer a genuinely functional treat in moderation.
Best eaten: One to two squares as a daily treat; choose bars listing cacao or cocoa as the first ingredient with minimal added sugar.
| Nutrient | Amount |
|---|---|
| Calories | 170 kcal |
| Protein | 2 g |
| Fat | 12 g |
| Magnesium | 64 mg |
Per 1 oz (28 g), 70–85% cacao.
3. Almonds: A Portable Magnesium Powerhouse
One ounce of dry-roasted almonds provides approximately 80 mg of magnesium, about 20 percent of the daily requirement, along with vitamin E, calcium, and heart-healthy monounsaturated fats. Almonds are one of the most well-studied nuts for metabolic health, with consistent research supporting their role in blood sugar and cholesterol management.
The Mayo Clinic recommends a small handful of nuts daily as part of a heart-healthy diet; almonds stand out specifically for their magnesium and vitamin E content among common nut varieties.
Best eaten: As a snack, sliced over oatmeal, or stirred into plain yogurt; choose unsalted to keep sodium in check.
| Nutrient | Amount |
|---|---|
| Calories | 164 kcal |
| Protein | 6 g |
| Fat | 14 g |
| Magnesium | 80 mg |
Per 1 oz (28 g) dry-roasted, unsalted.
4. Spinach (Cooked): A Leafy Green Loaded With Magnesium
One cup of cooked spinach delivers approximately 157 mg of magnesium, nearly 40 percent of the daily requirement, along with iron, folate, vitamin K, and lutein. Cooking spinach reduces its volume dramatically and significantly increases the magnesium concentration per cup compared to raw spinach, making cooked spinach one of the most efficient magnesium sources per serving.
Research published in Frontiers in Nutrition (2024) found that higher magnesium status is associated with reduced risk of metabolic syndrome; dark leafy greens like spinach are highlighted as primary contributors to adequate magnesium intake in plant-forward diets.
Best eaten: Sautéed with garlic and olive oil, wilted into soups and pasta, or blended into smoothies where the flavor is masked by fruit.
| Nutrient | Amount |
|---|---|
| Calories | 41 kcal |
| Protein | 5 g |
| Fat | 0.5 g |
| Magnesium | 157 mg |
Per 1 cup cooked.
5. Cashews: A Creamy Nut With Strong Magnesium Content
One ounce of cashews provides approximately 74 mg of magnesium along with copper, zinc, and monounsaturated fats. Cashews have a lower fat content than most other nuts and a naturally buttery texture that makes them versatile in both sweet and savory applications.
Magnesium from cashews supports the more than 300 enzymatic reactions it serves as a cofactor for, including ATP energy production and muscle relaxation after contraction. Regular nut consumption, including cashews, is associated with improved insulin sensitivity in observational research.
Best eaten: As a snack, blended into cashew butter, or used as a base for dairy-free sauces and dressings.
| Nutrient | Amount |
|---|---|
| Calories | 157 kcal |
| Protein | 5 g |
| Fat | 12 g |
| Magnesium | 74 mg |
Per 1 oz (28 g) raw.
6. Black Beans: A Legume Rich in Magnesium and Fiber
One cup of cooked black beans provides approximately 120 mg of magnesium alongside 15 grams of fiber, 15 grams of protein, and a low glycemic load that supports stable blood sugar. Legumes are among the most magnesium-dense plant foods and among the most under-consumed in the Western diet.
The American Diabetes Association recommends beans and legumes as ideal carbohydrate sources for blood sugar management; their magnesium content reinforces this benefit since magnesium plays a direct role in insulin receptor function and glucose metabolism.
Best eaten: In soups, burrito bowls, salads, or mashed as a spread; canned black beans are convenient but choose low-sodium or rinse well before use.
| Nutrient | Amount |
|---|---|
| Calories | 227 kcal |
| Protein | 15 g |
| Fat | 1 g |
| Magnesium | 120 mg |
Per 1 cup cooked, no added salt.
7. Edamame: A Fresh Soy Source of Magnesium
One cup of cooked edamame (shelled) delivers approximately 99 mg of magnesium along with complete plant protein, folate, and vitamin K. Edamame is immature soybeans and one of the few plant foods that provides all essential amino acids alongside a meaningful magnesium contribution.
The NIH Office of Dietary Supplements lists legumes, including soy products like edamame, among the top food sources of magnesium, particularly relevant for vegetarians and vegans who rely on plants to meet mineral needs.
Best eaten: Steamed and lightly salted as a snack, tossed into grain bowls, or added to stir-fries and salads.
| Nutrient | Amount |
|---|---|
| Calories | 188 kcal |
| Protein | 17 g |
| Fat | 8 g |
| Magnesium | 99 mg |
Per 1 cup cooked, shelled.
8. Quinoa: A Complete Protein Grain High in Magnesium
One cup of cooked quinoa provides approximately 118 mg of magnesium, making it one of the most magnesium-rich grains available. Unlike most grains, quinoa is a complete protein, containing all nine essential amino acids, making it a dual-purpose food for both protein and mineral intake.
Quinoa is naturally gluten-free and has a lower glycemic index than white rice or pasta. Harvard Health Publishing highlights quinoa as a whole grain with superior nutritional density compared to refined grains, with its magnesium content contributing to cardiovascular and metabolic health benefits.
Best eaten: As a base for grain bowls, salads, and stir-fries; cook in low-sodium broth for added flavor.
| Nutrient | Amount |
|---|---|
| Calories | 222 kcal |
| Protein | 8 g |
| Fat | 4 g |
| Magnesium | 118 mg |
Per 1 cup cooked.
9. Brown Rice: An Everyday Whole-Grain Magnesium Source
One cup of cooked brown rice delivers approximately 84 mg of magnesium, nearly double that of white rice, which loses most of its magnesium during the milling process that removes the bran and germ. Brown rice also contributes fiber, B vitamins, and manganese that white rice cannot match.
Swapping white rice for brown rice is one of the simplest dietary changes you can make to meaningfully increase your daily magnesium intake. For families who eat rice regularly, this single substitution can contribute 20 percent or more of the daily magnesium requirement per meal.
Best eaten: As a side dish, in grain bowls, or as a base for stir-fries and curries; pairs well with any protein for a complete, magnesium-rich meal.
| Nutrient | Amount |
|---|---|
| Calories | 216 kcal |
| Protein | 5 g |
| Fat | 2 g |
| Magnesium | 84 mg |
Per 1 cup cooked.
10. Avocado: A Creamy Fruit With Meaningful Magnesium
One whole medium avocado provides approximately 58 mg of magnesium alongside potassium, heart-healthy monounsaturated fats, folate, and vitamins C, E, and K. Avocados are unique among fruits in their fat content and micronutrient density, making them a valuable addition to any magnesium-focused diet.
Research from Nutrients (2024) identifies magnesium as essential for over 300 biochemical reactions, including those governing cardiovascular function; avocados contribute magnesium alongside potassium and healthy fats that synergistically support heart health.
Best eaten: Sliced on toast, mashed into guacamole, added to salads, or blended into smoothies for creaminess without dairy.
| Nutrient | Amount |
|---|---|
| Calories | 234 kcal |
| Protein | 3 g |
| Fat | 21 g |
| Magnesium | 58 mg |
Per 1 medium avocado (150 g).
11. Swiss Chard: A Leafy Green With Outstanding Magnesium Levels
One cup of cooked Swiss chard provides approximately 150 mg of magnesium, comparable to cooked spinach, alongside potassium, vitamin K, and beta-carotene. Swiss chard is underused in American kitchens despite being one of the most magnesium-rich vegetables available.
Like other dark leafy greens, Swiss chard contains oxalates that can mildly reduce mineral absorption; however, cooking reduces oxalate content significantly, improving the bioavailability of its magnesium compared to eating it raw.
Best eaten: Sautéed with olive oil and garlic, wilted into soups, or used as a wrap alternative to tortillas.
| Nutrient | Amount |
|---|---|
| Calories | 35 kcal |
| Protein | 3 g |
| Fat | 0 g |
| Magnesium | 150 mg |
Per 1 cup cooked; sodium is naturally higher in chard than most greens.
12. Tofu (Firm): A Plant Protein With Substantial Magnesium
A half-cup serving of firm tofu provides approximately 47 mg of magnesium along with complete plant protein, calcium, and iron. Tofu made with magnesium chloride (nigari) as a coagulant contains even more magnesium than calcium-set varieties; check the ingredients label to identify which type you have.
The NIH Office of Dietary Supplements includes soy products among the recommended food sources of magnesium, particularly for populations that do not consume meat or dairy in large quantities.
Best eaten: Cubed and baked for grain bowls, crumbled as an egg substitute, or pan-seared in a light soy and ginger sauce.
| Nutrient | Amount |
|---|---|
| Calories | 94 kcal |
| Protein | 10 g |
| Fat | 5 g |
| Magnesium | 47 mg |
Per ½ cup firm tofu.
13. Lentils: A Legume That Quietly Builds Magnesium Intake
One cup of cooked lentils provides approximately 71 mg of magnesium alongside 18 grams of protein, 16 grams of fiber, and substantial folate and iron. Lentils are among the most nutritionally complete plant foods and one of the easiest ways to boost magnesium intake through regular legume consumption.
A meta-analysis published in PMC (2025) found significant associations between magnesium deficiency and insulin resistance; lentils address both risk factors simultaneously by supplying magnesium alongside low-glycemic carbohydrates that support steady blood sugar.
Best eaten: In soups, stews, and curries; red lentils dissolve into a creamy texture while green and brown lentils hold their shape for salads.
| Nutrient | Amount |
|---|---|
| Calories | 230 kcal |
| Protein | 18 g |
| Fat | 1 g |
| Magnesium | 71 mg |
Per 1 cup cooked.
14. Chia Seeds: A Tiny Seed With a Large Magnesium Contribution
One ounce of chia seeds delivers approximately 95 mg of magnesium alongside omega-3 fatty acids, calcium, phosphorus, and a remarkable 10 grams of fiber. Chia seeds absorb up to 12 times their weight in liquid, forming a gel that slows digestion and helps regulate blood sugar after meals.
Chia seeds are one of the most nutrient-dense additions you can make to any meal. Sprinkling an ounce on oatmeal, yogurt, or a smoothie adds nearly a quarter of the daily magnesium requirement with minimal preparation effort.
Best eaten: Stirred into overnight oats, blended into smoothies, mixed into yogurt, or used to make chia pudding with plant-based milk.
| Nutrient | Amount |
|---|---|
| Calories | 138 kcal |
| Protein | 5 g |
| Fat | 9 g |
| Magnesium | 95 mg |
Per 1 oz (28 g).
15. Mackerel: A Fatty Fish With Surprisingly High Magnesium
A 3-ounce serving of cooked mackerel provides approximately 82 mg of magnesium, one of the highest levels among fish, alongside omega-3 fatty acids, vitamin D, vitamin B12, and selenium. Mackerel is an oily fish that is more affordable than salmon and equally rich in cardiovascular-protective nutrients.
The American Heart Association recommends eating fatty fish at least twice a week; mackerel delivers magnesium alongside omega-3s and vitamin D in a single serving, making it a multi-nutrient fish choice.
Best eaten: Grilled, smoked, or baked; Atlantic mackerel is a lower-mercury option compared to king mackerel, which should be limited.
| Nutrient | Amount |
|---|---|
| Calories | 223 kcal |
| Protein | 20 g |
| Fat | 15 g |
| Magnesium | 82 mg |
Per 3 oz cooked Atlantic mackerel.
16. Oats (Rolled): A Breakfast Staple With Solid Magnesium Content
One cup of cooked rolled oats provides approximately 63 mg of magnesium alongside beta-glucan fiber, which has strong evidence for lowering LDL cholesterol. Oats are one of the most practical everyday magnesium sources because they are inexpensive, widely available, and easy to prepare.
Starting your day with oatmeal delivers a meaningful magnesium contribution before your first meal is complete. Adding chia seeds, pumpkin seeds, or almond butter to oats compounds the magnesium content significantly, making breakfast a powerful opportunity to advance toward your daily target.
Best eaten: As overnight oats, stovetop porridge, or baked oatmeal; steel-cut oats have a slightly lower glycemic index than rolled oats for those managing blood sugar.
| Nutrient | Amount |
|---|---|
| Calories | 166 kcal |
| Protein | 6 g |
| Fat | 4 g |
| Magnesium | 63 mg |
Per 1 cup cooked rolled oats.
17. Kidney Beans: A Hearty Legume With Strong Magnesium Levels
One cup of cooked kidney beans provides approximately 74 mg of magnesium alongside 15 grams of protein, 11 grams of fiber, and substantial iron and folate. Kidney beans are a staple legume in many cuisines and one of the most practical ways to build magnesium intake through regular meals.
Including kidney beans in soups, chilis, and rice dishes two to three times per week can meaningfully close the magnesium gap for people who eat limited nuts and seeds. Like all legumes, their combination of magnesium and fiber supports both mineral adequacy and digestive health.
Best eaten: In chili, minestrone, rice and beans dishes, or tossed into green salads; canned kidney beans are convenient but rinse before use to reduce sodium.
| Nutrient | Amount |
|---|---|
| Calories | 225 kcal |
| Protein | 15 g |
| Fat | 1 g |
| Magnesium | 74 mg |
Per 1 cup cooked, no added salt.
18. Banana: An Accessible Everyday Magnesium Source
One medium banana provides approximately 32 mg of magnesium alongside potassium, vitamin B6, and fast-digesting carbohydrates that make it an ideal pre- or post-workout snack. While bananas are not the most magnesium-dense food on this list, their near-universal availability and palatability make them a reliable daily contributor.
Bananas are particularly useful for athletes and active individuals, where magnesium supports muscle contraction and relaxation and potassium supports electrolyte balance. Combining a banana with almond butter or pumpkin seeds amplifies the magnesium content substantially.
Best eaten: As a snack, sliced into oatmeal, blended into smoothies, or paired with nut butter for a balanced pre-workout option.
| Nutrient | Amount |
|---|---|
| Calories | 105 kcal |
| Protein | 1 g |
| Fat | 0.4 g |
| Magnesium | 32 mg |
Per 1 medium banana (118 g).
19. Plain Greek Yogurt: A Dairy Source of Magnesium and Protein
One cup of plain low-fat Greek yogurt provides approximately 22 mg of magnesium along with 20 grams of protein, calcium, probiotics, and B vitamins. While Greek yogurt is not the highest-magnesium food on this list, its daily consumption as part of a breakfast or snack routine contributes steadily to overall magnesium intake.
Topping Greek yogurt with pumpkin seeds, chia seeds, or almonds transforms it into a magnesium-rich meal that can contribute 150 mg or more of magnesium in a single bowl, making the combination significantly more impactful than any single food alone.
Best eaten: Plain with fruit and seeds, used as a base for dips and dressings, or stirred into sauces as a sour cream substitute.
| Nutrient | Amount |
|---|---|
| Calories | 137 kcal |
| Protein | 20 g |
| Fat | 3.5 g |
| Magnesium | 22 mg |
Per 1 cup (245 g) plain low-fat Greek yogurt.
20. Sunflower Seeds: A Versatile Seed With Respectable Magnesium Levels
One ounce of dry-roasted sunflower seeds provides approximately 37 mg of magnesium alongside vitamin E, selenium, and healthy unsaturated fats. Sunflower seeds are an accessible, affordable seed that works well as a snack or as a topping across a wide range of dishes.
While sunflower seeds contain less magnesium per ounce than pumpkin seeds or chia seeds, their mild flavor and widespread availability make them an easy daily addition. A quarter-cup sprinkled on salads, soups, or oatmeal contributes meaningfully to the magnesium total without dramatically altering the flavor of a dish.
Best eaten: As a snack, sprinkled on salads and grain bowls, stirred into oatmeal, or blended into sunflower seed butter.
| Nutrient | Amount |
|---|---|
| Calories | 165 kcal |
| Protein | 5.5 g |
| Fat | 14 g |
| Magnesium | 37 mg |
Per 1 oz dry-roasted, unsalted.
Summary: Top 20 Magnesium Foods at a Glance
| Food | Serving | Magnesium (mg) | Primary Benefit | Key Compound |
|---|---|---|---|---|
| Pumpkin Seeds | 1 oz roasted | 168 | Top snack source | Magnesium oxide/citrate |
| Spinach (cooked) | 1 cup | 157 | Leafy green leader | Magnesium chlorophyll complex |
| Swiss Chard (cooked) | 1 cup | 150 | Underrated leafy green | Magnesium chlorophyll complex |
| Quinoa | 1 cup cooked | 118 | Complete grain protein | Magnesium phosphate |
| Black Beans | 1 cup cooked | 120 | Blood sugar and fiber | Magnesium phosphate |
| Chia Seeds | 1 oz | 95 | Omega-3 and fiber combo | Magnesium phosphate |
| Edamame | 1 cup cooked | 99 | Complete plant protein | Magnesium phosphate |
| Mackerel | 3 oz cooked | 82 | Fatty fish with omega-3s | Magnesium phosphate |
| Almonds | 1 oz | 80 | Heart-healthy nut | Magnesium oxide |
| Brown Rice | 1 cup cooked | 84 | Everyday grain swap | Magnesium phosphate |
| Cashews | 1 oz | 74 | Creamy nut option | Magnesium oxide |
| Kidney Beans | 1 cup cooked | 74 | Hearty legume staple | Magnesium phosphate |
| Lentils | 1 cup cooked | 71 | Insulin-supportive legume | Magnesium phosphate |
| Oats (rolled) | 1 cup cooked | 63 | Breakfast staple | Magnesium phosphate |
| Dark Chocolate | 1 oz (70–85%) | 64 | Flavonoid-rich treat | Magnesium oxide |
| Avocado | 1 medium | 58 | Healthy fat and folate | Magnesium phosphate |
| Tofu (firm) | ½ cup | 47 | Plant protein source | Magnesium chloride |
| Sunflower Seeds | 1 oz | 37 | Versatile topping | Magnesium oxide |
| Banana | 1 medium | 32 | Portable everyday fruit | Magnesium phosphate |
| Greek Yogurt | 1 cup | 22 | Protein-rich dairy base | Magnesium phosphate |
Tips for Getting the Most Magnesium From Food
Build meals around legumes and greens. Black beans, lentils, and cooked spinach or Swiss chard are the most reliable everyday magnesium sources. Making these the foundation of two to three meals per week does more for your magnesium status than any single superfood.
Add seeds to existing meals. A tablespoon of pumpkin seeds or chia seeds on oatmeal, yogurt, or a salad adds 30 to 50 mg of magnesium with essentially no effort. Seeds are the highest-density magnesium sources per ounce and require no preparation.
Choose whole grains every time. Brown rice provides nearly twice the magnesium of white rice. Quinoa outperforms white pasta significantly. The milling process that produces refined grains strips away the bran and germ where most of the magnesium is stored.
Eat the whole avocado. Half an avocado is a common serving suggestion for calorie management, but the full fruit supplies nearly 60 mg of magnesium alongside potassium and folate. If calories allow, the whole fruit is a meaningfully better magnesium source.
Pair magnesium foods with vitamin D. Vitamin D improves magnesium absorption, and the two nutrients work together in bone metabolism, immune function, and insulin signaling. Fatty fish like mackerel supply both nutrients in a single serving.
Minimize alcohol and caffeine. Both increase urinary magnesium excretion. If your intake is high, even an otherwise adequate magnesium diet may not maintain sufficient magnesium status over time.
The Bottom Line
Magnesium is involved in more biochemical processes than almost any other mineral, and most adults are not getting enough of it. The gap is not difficult to close if you consistently eat magnesium-rich whole foods: seeds, dark leafy greens, legumes, whole grains, nuts, and certain fish. Pumpkin seeds, cooked spinach, black beans, and quinoa are the standout sources, but the real strategy is variety. No single food meets the full daily requirement in a reasonable portion, so building magnesium into breakfast, lunch, and dinner through multiple sources is the most effective approach. Food-based magnesium comes packaged with fiber, phytochemicals, and co-nutrients that supplements cannot replicate.
Nutrition data sourced from the USDA FoodData Central database. Individual values may vary based on food preparation, origin, and growing conditions. This article is for informational purposes only and does not constitute medical advice. Consult a qualified healthcare provider before making significant dietary changes or starting magnesium supplementation, particularly if you have kidney disease, as impaired kidneys cannot efficiently excrete excess magnesium.



