Foods high in magnesium (per serving)

100 whole foods ranked by magnesium per common serving, from USDA FoodData Central. Seeds, hemp seed leads with 198 mg per 1 oz (47% of the Daily Value), followed by Spinach, cooked (157 mg) and Seeds, pumpkin and squash seed kernels (156 mg).

Magnesium takes part in more than 300 enzyme reactions, including energy production, muscle and nerve function and blood pressure regulation. The Daily Value is 420 mg. Seeds, nuts, legumes, whole grains and leafy greens are the richest sources.

Top 10 at a glance

Seeds, hemp seed198 mgSpinach, cooked157 mgSeeds, pumpkin and squash see…156 mgChard, swiss150 mgSoybeans148 mgTempeh134 mgBeans, white134 mgBeans, great northern134 mgBeans, yellow131 mgTeff, cooked126 mg

Top 10 foods highest in magnesium

  1. Seeds, hemp seed (hulled)1 oz (28 g) · 157 kcal198 mg47% DV
  2. Spinach, cooked (boiled, drained, without salt)1 cup (180 g) · 41 kcal157 mg37% DV
  3. Seeds, pumpkin and squash seed kernels (roasted, without salt)1 oz (28 g) · 163 kcal156 mg37% DV
  4. Chard, swiss (cooked, boiled, drained, without salt)1 cup, chopped (175 g) · 35 kcal150 mg36% DV
  5. Soybeans, mature cooked (boiled, without salt)1 cup (172 g) · 296 kcal148 mg35% DV
  6. Tempeh1 cup (166 g) · 319 kcal134 mg32% DV
  7. Beans, white (mature seeds, canned)1 cup (262 g) · 299 kcal134 mg32% DV
  8. Beans, great northern (mature seeds, canned, low sodium)1 cup (262 g) · 299 kcal134 mg32% DV
  9. Beans, yellow (mature seeds, cooked, boiled, without salt)1 cup (177 g) · 255 kcal131 mg31% DV
  10. Teff, cooked1 cup (252 g) · 255 kcal126 mg30% DV

All 100 foods ranked

Sort any column. Serving sizes are USDA household measures (a cup, a medium fruit, 3 oz of cooked meat or fish, 1 oz of nuts or cheese). %DV is based on the FDA Daily Value of 420 mg.

#FoodGroupServingMagnesium (mg)% Daily ValuePer 100 gkcal
1Seeds, hemp seed (hulled)Nuts and seeds1 oz (28 g)19847%700157
2Spinach, cooked (boiled, drained, without salt)Vegetables1 cup (180 g)15737%8741
3Seeds, pumpkin and squash seed kernels (roasted, without salt)Nuts and seeds1 oz (28 g)15637%550163
4Chard, swiss (cooked, boiled, drained, without salt)Vegetables1 cup, chopped (175 g)15036%8635
5Soybeans, mature cooked (boiled, without salt)Legumes1 cup (172 g)14835%86296
6TempehLegumes1 cup (166 g)13432%81319
7Beans, white (mature seeds, canned)Legumes1 cup (262 g)13432%51299
8Beans, great northern (mature seeds, canned, low sodium)Legumes1 cup (262 g)13432%51299
9Beans, yellow (mature seeds, cooked, boiled, without salt)Legumes1 cup (177 g)13131%74255
10Teff, cookedGrains1 cup (252 g)12630%50255
11Lima beans, immature seeds (cooked, boiled, drained, without salt)Vegetables1 cup (170 g)12630%74209
12Beans, navy (mature seeds, canned)Legumes1 cup (262 g)12329%47296
13Beans, small white (mature seeds, cooked, boiled, without salt)Legumes1 cup (179 g)12229%68254
14Beans, black (mature seeds, cooked, boiled, without salt)Legumes1 cup (172 g)12029%70227
15Quinoa, cookedGrains1 cup (185 g)11828%64222
16Mungo beans, mature seeds (cooked, boiled, without salt)Legumes1 cup (180 g)11327%63189
17Edamame, frozen (prepared)Vegetables1 cup (155 g)11327%73188
18Cereals, oats (regular and quick, not fortified, dry)Grains1 cup (81 g)11227%138307
19Soybeans, green (cooked, boiled, drained, without salt)Vegetables1 cup (180 g)10826%60254
20Nuts, brazilnuts (dried, unblanched)Nuts and seeds1 oz (6 kernels) (28 g)10725%376187
21Seeds, flaxseedNuts and seeds1 oz (28 g)10525%372151
22Pigeonpeas, immature seeds (raw)Vegetables1 cup (154 g)10525%68209
23Fish, salmon (chinook, cooked, dry heat)Fish and seafood3 oz (85 g)10425%122196
24Seeds, sesame seeds (whole, roasted and toasted)Nuts and seeds1 oz (28 g)10124%356160
25Seeds, sunflower seed butter (without salt)Nuts and seeds2 tbsp (32 g)10024%311197
26Seeds, sesame butter (tahini, from unroasted kernels (non-chemically removed seed coat))Nuts and seeds2 tbsp (28 g)9924%353170
27Beet greens, cooked (boiled, drained, without salt)Vegetables1 cup (1" pieces) (144 g)9823%6839
28Mung beans, mature seeds (cooked, boiled, without salt)Legumes1 cup (202 g)9723%48212
29Spelt, cookedGrains1 cup (194 g)9523%49246
30Lima beans, large (mature seeds, canned)Legumes1 cup (241 g)9422%39190
31Cowpeas, common (blackeyes (crowder, southern), mature seeds, cooked, boiled, without salt)Legumes1 cup (171 g)9122%53198
32Spaghetti, spinach (cooked)Grains1 cup (140 g)8721%62182
33Rice, brown (medium-grain, cooked)Grains1 cup (195 g)8620%44218
34Nuts, almond butter (plain, without salt added)Nuts and seeds2 tbsp (32 g)8620%268196
35Buckwheat groats, roasted (cooked)Grains1 cup (168 g)8620%51155
36Nuts, pilinuts (dried)Nuts and seeds1 oz (15 kernels) (28 g)8620%302204
37Horned melon (Kiwano)Fruits1 fruit (4-2/3" long x 2-3/4" dia) (209 g)8420%4092
38Wheat, KAMUT khorasan (cooked)Grains1 cup (172 g)8320%48227
39Nuts, cashew butter (plain, without salt added)Nuts and seeds2 tbsp (32 g)8320%258188
40Fish, mackerel (Atlantic, cooked, dry heat)Fish and seafood3 oz (85 g)8220%97223
41Broadbeans (fava beans), mature seeds (canned)Legumes1 cup (256 g)8220%32182
42Nuts, almonds (dry roasted, without salt added)Nuts and seeds1 oz (22 whole kernels) (28 g)7919%279170
43Chickpeas (garbanzo beans, bengal gram) (mature seeds, cooked, boiled, without salt)Legumes1 cup (164 g)7919%48269
44Nuts, cashew nuts (oil roasted, without salt added)Nuts and seeds1 oz (18 kernels) (28 g)7718%273164
45Pigeon peas (red gram), mature seeds (cooked, boiled, without salt)Legumes1 cup (168 g)7718%46203
46Purslane, cooked (boiled, drained, without salt)Vegetables1 cup (115 g)7718%6721
47Artichokes, (globe or french) (raw)Vegetables1 artichoke, medium (128 g)7718%6060
48Millet, cookedGrains1 cup (174 g)7718%44207
49Tofu, raw (firm, prepared with calcium sulfate)Legumes0.5 cup (126 g)7317%58181
50Avocados, raw (Florida)Fruits1 fruit without skin and seeds (304 g)7317%24365
51Lentils, mature seeds (cooked, boiled, without salt)Legumes1 cup (198 g)7117%36230
52Peas, split (mature seeds, cooked, boiled, without salt)Legumes1 cup (196 g)7117%36231
53Fish, ling (cooked, dry heat)Fish and seafood3 oz (85 g)6916%8194
54Fish, pollock (Alaska, cooked, dry heat (may contain additives to retain moisture))Fish and seafood3 oz (85 g)6916%8194
55Plantains, green (fried)Fruits1 cup (118 g)6816%58365
56Peas, mature seeds (sprouted, raw)Vegetables1 cup (120 g)6716%56149
57Tofu, soft (prepared with calcium sulfate and magnesium chloride (nigari))Legumes1 cup (1/2" cubes) (248 g)6716%27151
58Pasta, whole-wheat (cooked)Grains1 cup spaghetti not packed (117 g)6315%54174
59Peas, green (cooked, boiled, drained, without salt)Vegetables1 cup (160 g)6215%39134
60Peanut butter with omega-3, creamyLegumes2 tbsp (32 g)6115%191195
61Sweet potato, cooked (boiled, without skin)Vegetables1 cup, mashed (328 g)5914%18249
62Bulgur, cookedGrains1 cup (182 g)5814%32151
63New Zealand spinach, cooked (boiled, drained, without salt)Vegetables1 cup, chopped (180 g)5814%3222
64Peanut Butter, smoothLegumes2 tbsp (32 g)5714%179188
65Okra, rawVegetables1 cup (100 g)5714%5733
66Corn, sweet (white, raw)Vegetables1 cup kernels (154 g)5714%37132
67Potatoes, microwaved (cooked in skin, flesh and skin, without salt)Vegetables1 potato (2-3/4" dia by 4-3/4" long) (202 g)5513%27212
68Cowpeas, young pods with seeds (raw)Vegetables1 cup (94 g)5513%5841
69Fish, tuna (fresh, bluefin, cooked, dry heat)Fish and seafood3 oz (85 g)5413%64156
70Peanut butter, smooth style (without salt)Legumes2 tbsp (32 g)5413%168191
71Crustaceans, crab (queen, cooked, moist heat)Fish and seafood3 oz (85 g)5413%6398
72Peanuts, spanish (raw)Legumes1 oz (28 g)5313%188162
73Peanuts, virginia (oil-roasted, without salt)Legumes1 oz (28 g)5313%188164
74Wild rice, cookedGrains1 cup (164 g)5212%32166
75Soymilk (all flavors), unsweetened (with added calcium, vitamins A and D)Legumes1 cup (243 g)5212%2280
76Peanuts, valencia (raw)Legumes1 oz (28 g)5212%184162
77Squash, summer (crookneck and straightneck, frozen, cooked, boiled, drained, without salt)Vegetables1 cup slices (192 g)5212%2748
78Peanut butter, chunk style (without salt)Legumes2 tbsp (32 g)5112%160188
79Peanuts, all types (raw)Legumes1 oz (28 g)5112%180161
80Peanut butter, reduced sodiumLegumes2 tbsp (32 g)5112%159189
81Peanut spread, reduced sugarLegumes2 tbsp (31 g)5112%164202
82Pasta, gluten-free (corn, cooked)Grains1 cup (140 g)5012%36176
83Plantains, yellow (raw)Fruits1 cup, sliced (148 g)5012%34181
84Potatoes, flesh and skin (raw)Vegetables1 Potato medium (2-1/4" to 3-1/4" dia) (213 g)4912%23164
85Potatoes, russet (flesh and skin, raw)Vegetables1 Potato medium (2-1/4" to 3-1/4" dia) (213 g)4912%23168
86Potatoes, red (flesh and skin, raw)Vegetables1 potato medium (2-1/4" to 3-1/4" dia) (213 g)4711%22149
87Tofu, firm (prepared with calcium sulfate and magnesium chloride (nigari))Legumes0.5 cup (126 g)4711%3798
88Yogurt, plain (skim milk)Dairy and eggs1 cup (8 fl oz) (245 g)4711%19137
89Mollusks, oyster (eastern, canned)Fish and seafood3 oz (85 g)4611%5458
90Fish, haddock (smoked)Fish and seafood3 oz (85 g)4611%5499
91Peas, edible-podded (frozen, cooked, boiled, drained, without salt)Vegetables1 cup (160 g)4511%2883
92Potatoes, white (flesh and skin, raw)Vegetables1 medium (2+-1/4" to 3-1/4" dia.) (213 g)4511%21147
93Broadbeans, immature seeds (raw)Vegetables1 cup (109 g)419.9%3878
94Spinach souffleVegetables1 cup (136 g)419.7%30234
95Collards, cooked (boiled, drained, without salt)Vegetables1 cup, chopped (190 g)409.5%2163
96Potatoes, mashed (prepared from granules, without milk, whole milk and margarine)Vegetables1 cup (210 g)409.5%19227
97Vitasoy USA, Vitasoy Organic Creamy Original SoymilkLegumes1 cup (243 g)399.3%16107
98Broccoli, cooked (boiled, drained, without salt)Vegetables1 stalk, medium (7-1/2" - 8" long) (180 g)389%2163
99Corn pudding, home preparedVegetables1 cup (250 g)388.9%15328
100Crustaceans, lobster (northern, cooked, moist heat)Fish and seafood3 oz (85 g)378.7%4376

Magnesium by food group

The best magnesium sources within each group. Each heading opens the full group list.

Fruits high in magnesium (50)

  1. Horned melon (Kiwano) · 84 mg per 1 fruit (4-2/3" long x 2-3/4" dia)
  2. Avocados, raw (Florida) · 73 mg per 1 fruit without skin and seeds
  3. Plantains, green (fried) · 68 mg per 1 cup
  4. Plantains, yellow (raw) · 50 mg per 1 cup, sliced
  5. Pomegranates, raw · 34 mg per 1 pomegranate (4" dia)
  6. Mangos, raw · 34 mg per 1 fruit without refuse

Vegetables high in magnesium (50)

  1. Spinach, cooked (boiled, drained, without salt) · 157 mg per 1 cup
  2. Chard, swiss (cooked, boiled, drained, without salt) · 150 mg per 1 cup, chopped
  3. Lima beans, immature seeds (cooked, boiled, drained, without salt) · 126 mg per 1 cup
  4. Edamame, frozen (prepared) · 113 mg per 1 cup
  5. Soybeans, green (cooked, boiled, drained, without salt) · 108 mg per 1 cup
  6. Beans, navy (mature seeds, sprouted, raw) · 105 mg per 1 cup

Legumes high in magnesium (39)

  1. Soybeans, mature cooked (boiled, without salt) · 148 mg per 1 cup
  2. Tempeh · 134 mg per 1 cup
  3. Beans, white (mature seeds, canned) · 134 mg per 1 cup
  4. Beans, great northern (mature seeds, canned, low sodium) · 134 mg per 1 cup
  5. Beans, yellow (mature seeds, cooked, boiled, without salt) · 131 mg per 1 cup
  6. Beans, navy (mature seeds, canned) · 123 mg per 1 cup

Nuts and seeds high in magnesium (12)

  1. Seeds, hemp seed (hulled) · 198 mg per 1 oz
  2. Seeds, pumpkin and squash seed kernels (roasted, without salt) · 156 mg per 1 oz
  3. Nuts, brazilnuts (dried, unblanched) · 107 mg per 1 oz (6 kernels)
  4. Seeds, flaxseed · 105 mg per 1 oz
  5. Seeds, sesame seeds (whole, roasted and toasted) · 101 mg per 1 oz
  6. Seeds, sunflower seed butter (without salt) · 100 mg per 2 tbsp

Grains high in magnesium (17)

  1. Teff, cooked · 126 mg per 1 cup
  2. Quinoa, cooked · 118 mg per 1 cup
  3. Cereals, oats (regular and quick, not fortified, dry) · 112 mg per 1 cup
  4. Spelt, cooked · 95 mg per 1 cup
  5. Spaghetti, spinach (cooked) · 87 mg per 1 cup
  6. Rice, brown (medium-grain, cooked) · 86 mg per 1 cup

Fish and seafood high in magnesium (14)

  1. Fish, salmon (chinook, cooked, dry heat) · 104 mg per 3 oz
  2. Fish, mackerel (Atlantic, cooked, dry heat) · 82 mg per 3 oz
  3. Fish, ling (cooked, dry heat) · 69 mg per 3 oz
  4. Fish, pollock (Alaska, cooked, dry heat (may contain additives to retain moisture)) · 69 mg per 3 oz
  5. Fish, tuna (fresh, bluefin, cooked, dry heat) · 54 mg per 3 oz
  6. Crustaceans, crab (queen, cooked, moist heat) · 54 mg per 3 oz

Meat and poultry high in magnesium (50)

  1. Pork, fresh (loin, tenderloin, separable lean only, cooked, broiled) · 31 mg per 3 oz
  2. Beef, round (top round, separable lean only, trimmed to 1/8" fat, choice, cooked, pan-fried) · 30 mg per 3 oz
  3. Chicken, broiler or fryers (breast, skinless, boneless, meat only, cooked, grilled) · 29 mg per 3 oz
  4. Veal, foreshank (osso buco, separable lean only, cooked, braised) · 29 mg per 3 oz
  5. Veal, ground (cooked, pan-fried) · 29 mg per 3 oz
  6. Game meat, deer (tenderloin, separable lean only, cooked, broiled) · 28 mg per 3 oz

Dairy and eggs high in magnesium (17)

  1. Yogurt, plain (skim milk) · 47 mg per 1 cup (8 fl oz)
  2. Milk, whole (3.25% milkfat, with added vitamin D) · 29 mg per 1 cup
  3. Milk, buttermilk (fluid, whole) · 24 mg per 1 cup
  4. Cheese, gjetost · 20 mg per 1 oz
  5. Yogurt, Greek (plain, nonfat) · 18 mg per 1 container
  6. Cheese, goat (hard type) · 15 mg per 1 oz

Magnesium in specific foods

How this list is built. Values are from USDA FoodData Central (SR Legacy, with Foundation Foods analytical updates where available). The pool is 1,677 whole foods: fruits, vegetables, legumes, nuts and seeds, grains, fish, meat, poultry, dairy and eggs. Spices, herbs, baby foods, powders, flours, dried and freeze-dried items, juices, processed meats, organ meats other than liver and uncommon foods are excluded; meats, fish, grains and legumes are ranked cooked. Each food family appears once and no single animal or plant fills more than six places. Ranking is by amount per serving; the per-100 g column is shown for reference. A food that USDA has not analysed for magnesium is left out rather than counted as zero. Full methodology.

Frequently asked questions

Which food is highest in magnesium?

Among whole foods in the USDA database, Seeds, hemp seed (hulled) has the most magnesium per serving: 198 mg per 1 oz (47% of the Daily Value). Per 100 g it contains 700 mg.

Which fruit has the most magnesium?

Horned melon (Kiwano), with 84 mg per 1 fruit (4-2/3" long x 2-3/4" dia) (20% of the Daily Value). See the full list of fruits high in magnesium below.

Which vegetable has the most magnesium?

Spinach, cooked (boiled, drained, without salt), with 157 mg per 1 cup (37% of the Daily Value). See the full list of vegetables high in magnesium below.

How much magnesium do I need per day?

The FDA Daily Value used on Nutrition Facts labels is 420 mg of magnesium for adults and children aged 4 and over. Individual needs vary with age, sex, pregnancy and health conditions.

What counts as a food high in magnesium?

FDA labeling rules call a food a 'good source' when one serving provides 10 to 19% of the Daily Value and 'high' or 'excellent' at 20% or more. 36 of the 100 foods on this list reach 20% DV per serving.

Related rankings

Nutrient values are from USDA FoodData Central (SR Legacy, April 2018; Foundation Foods, April 2026) and shown per serving as described on each page. %DV uses the FDA Daily Values for adults and children aged 4 and over. This is nutrition data for general information, not medical or dietary advice; talk to a clinician or registered dietitian about your own needs. How the numbers are calculated.