Vegetables high in magnesium (per serving)

50 vegetables ranked by magnesium per common serving, from USDA FoodData Central. Spinach, cooked leads with 157 mg per 1 cup (37% of the Daily Value), followed by Chard, swiss (150 mg) and Lima beans, immature seeds (126 mg).

Top 10 at a glance

Spinach, cooked157 mgChard, swiss150 mgLima beans, immature seeds126 mgEdamame, frozen113 mgSoybeans, green108 mgBeans, navy105 mgPigeonpeas, immature seeds105 mgBeet greens, cooked98 mgPurslane, cooked77 mgArtichokes, (globe or french)77 mg

Top 10 vegetables highest in magnesium

  1. Spinach, cooked (boiled, drained, without salt)1 cup (180 g) · 41 kcal157 mg37% DV
  2. Chard, swiss (cooked, boiled, drained, without salt)1 cup, chopped (175 g) · 35 kcal150 mg36% DV
  3. Lima beans, immature seeds (cooked, boiled, drained, without salt)1 cup (170 g) · 209 kcal126 mg30% DV
  4. Edamame, frozen (prepared)1 cup (155 g) · 188 kcal113 mg27% DV
  5. Soybeans, green (cooked, boiled, drained, without salt)1 cup (180 g) · 254 kcal108 mg26% DV
  6. Beans, navy (mature seeds, sprouted, raw)1 cup (104 g) · 70 kcal105 mg25% DV
  7. Pigeonpeas, immature seeds (raw)1 cup (154 g) · 209 kcal105 mg25% DV
  8. Beet greens, cooked (boiled, drained, without salt)1 cup (1" pieces) (144 g) · 39 kcal98 mg23% DV
  9. Purslane, cooked (boiled, drained, without salt)1 cup (115 g) · 21 kcal77 mg18% DV
  10. Artichokes, (globe or french) (raw)1 artichoke, medium (128 g) · 60 kcal77 mg18% DV

All 50 vegetables 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.

#FoodServingMagnesium (mg)% Daily ValuePer 100 gkcal
1Spinach, cooked (boiled, drained, without salt)1 cup (180 g)15737%8741
2Chard, swiss (cooked, boiled, drained, without salt)1 cup, chopped (175 g)15036%8635
3Lima beans, immature seeds (cooked, boiled, drained, without salt)1 cup (170 g)12630%74209
4Edamame, frozen (prepared)1 cup (155 g)11327%73188
5Soybeans, green (cooked, boiled, drained, without salt)1 cup (180 g)10826%60254
6Beans, navy (mature seeds, sprouted, raw)1 cup (104 g)10525%10170
7Pigeonpeas, immature seeds (raw)1 cup (154 g)10525%68209
8Beet greens, cooked (boiled, drained, without salt)1 cup (1" pieces) (144 g)9823%6839
9Purslane, cooked (boiled, drained, without salt)1 cup (115 g)7718%6721
10Artichokes, (globe or french) (raw)1 artichoke, medium (128 g)7718%6060
11Peas, mature seeds (sprouted, raw)1 cup (120 g)6716%56149
12Peas, green (cooked, boiled, drained, without salt)1 cup (160 g)6215%39134
13Sweet potato, cooked (boiled, without skin)1 cup, mashed (328 g)5914%18249
14New Zealand spinach, cooked (boiled, drained, without salt)1 cup, chopped (180 g)5814%3222
15Okra, raw1 cup (100 g)5714%5733
16Corn, sweet (white, raw)1 cup kernels (154 g)5714%37132
17Soybeans, mature seeds (sprouted, cooked, steamed)1 cup (94 g)5613%6076
18Potatoes, microwaved (cooked in skin, flesh and skin, without salt)1 potato (2-3/4" dia by 4-3/4" long) (202 g)5513%27212
19Cowpeas, young pods with seeds (raw)1 cup (94 g)5513%5841
20Squash, summer (crookneck and straightneck, frozen, cooked, boiled, drained, without salt)1 cup slices (192 g)5212%2748
21Potatoes, flesh and skin (raw)1 Potato medium (2-1/4" to 3-1/4" dia) (213 g)4912%23164
22Potatoes, russet (flesh and skin, raw)1 Potato medium (2-1/4" to 3-1/4" dia) (213 g)4912%23168
23Potatoes, red (flesh and skin, raw)1 potato medium (2-1/4" to 3-1/4" dia) (213 g)4711%22149
24Peas, edible-podded (frozen, cooked, boiled, drained, without salt)1 cup (160 g)4511%2883
25Potatoes, white (flesh and skin, raw)1 medium (2+-1/4" to 3-1/4" dia.) (213 g)4511%21147
26Beans, fava (in pod, raw)1 cup (126 g)429.9%33111
27Broadbeans, immature seeds (raw)1 cup (109 g)419.9%3878
28Spinach souffle1 cup (136 g)419.7%30234
29Collards, cooked (boiled, drained, without salt)1 cup, chopped (190 g)409.5%2163
30Potatoes, mashed (prepared from granules, without milk, whole milk and margarine)1 cup (210 g)409.5%19227
31Broccoli, cooked (boiled, drained, without salt)1 stalk, medium (7-1/2" - 8" long) (180 g)389%2163
32Corn pudding, home prepared1 cup (250 g)388.9%15328
33Gourd, dishcloth (towelgourd) (cooked, boiled, drained, without salt)1 cup (1" pieces) (178 g)368.5%20100
34Corn, yellow (whole kernel, frozen, microwaved)1 cup (141 g)358.4%25159
35Cress, garden (cooked, boiled, drained, without salt)1 cup (135 g)358.4%2631
36Cabbage, savoy (cooked, boiled, drained, without salt)1 cup, shredded (145 g)358.3%2435
37Garlic, raw1 cup (136 g)348.1%25203
38Pumpkin flowers, cooked (boiled, drained, without salt)1 cup (134 g)348%2520
39Beans, snap (green, microwaved)1 cup 1/2" pieces (116 g)327.7%2838
40Eppaw, raw1 cup (100 g)327.6%32150
41Turnip greens, cooked (boiled, drained, without salt)1 cup, chopped (144 g)327.5%2229
42Celeriac, raw1 cup (156 g)317.4%2066
43Squash, winter (hubbard, cooked, boiled, mashed, without salt)1 cup, mashed (236 g)317.3%1371
44Tomatoes, red (ripe, canned, stewed)1 cup (255 g)317.3%1266
45Parsley, fresh1 cup chopped (60 g)307.1%5022
46Arrowroot, raw1 cup, sliced (120 g)307.1%2578
47Onions, sweet (raw)1 onion (331 g)307.1%9106
48Kale, cooked (boiled, drained, without salt)1 cup (118 g)307%2542
49Parsnips, raw1 cup slices (133 g)297%22100
50Beets, raw1 cup (136 g)296.8%2158

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 vegetables in the USDA database, Spinach, cooked (boiled, drained, without salt) has the most magnesium per serving: 157 mg per 1 cup (37% of the Daily Value). Per 100 g it contains 87 mg.

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. 8 of the 50 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.