Foods High in Magnesium: Top 30 per 100 g & per Serving

Per 100 g, the foods highest in magnesium are Pumpkin and squash seed kernels (dried) (592 mg, 141% DV), Flaxseed (392 mg, 93% DV) and Sesame butter (paste) (362 mg, 86% DV). Per typical serving, Pigeon peas (mature seeds, raw) gives the most: 1 cup (205 g) has 375 mg (89% DV). 74 of the 370 foods ranked are a good source (10% DV or more) in a typical serving; 26 reach 20% DV, the FDA bar for “high in”.

Highest in magnesium per 100 g

30 of 370 ranked foods, most magnesium first. % = share of the FDA Daily Value. n/r = not reported.

Foods High in Magnesium: Top 30 per 100 g & per Serving: ranked per 100 g
RankFoodPer 100 gTypical portionPer portionPer 200 kcal
1Pumpkin and squash seed kernels (dried)Nuts and Seeds592 mg141% DV1 oz28 g168 mg40% DV212 mg
2FlaxseedNuts and Seeds392 mg93% DV1 tbsp10 g40 mg10% DV147 mg
3Sesame butter (paste)Nuts and Seeds362 mg86% DV1 tbsp16 g58 mg14% DV124 mg
4Chia seeds (dried)Nuts and Seeds335 mg80% DV1 oz28 g95 mg23% DV138 mg
5Sunflower seed kernels (dried)Nuts and Seeds325 mg77% DV1 cup46 g150 mg36% DV111 mg
6Sunflower seed butter (without salt)Nuts and Seeds311 mg74% DV1 oz28 g88 mg21% DV101 mg
7Cashew nuts (raw)Nuts and Seeds292 mg70% DV1 oz28 g83 mg20% DV106 mg
8AlmondsNuts and Seeds270 mg64% DV1 oz28 g77 mg18% DV93 mg
9Oat bran (raw)Grains235 mg56% DV1 cup94 g221 mg53% DV191 mg
10Sun-dried tomatoesVegetables194 mg46% DV1 cup54 g105 mg25% DV150 mg
11Peanut butter with omega-3 (creamy)Legumes191 mg45% DV1 tbsp16 g31 mg7% DV63 mg
12Peanuts (valencia, raw)Legumes184 mg44% DV1 oz28 g52 mg12% DV65 mg
13Pigeon peas (mature seeds, raw)Legumes183 mg44% DV1 cup205 g375 mg89% DV107 mg
14OatsGrains177 mg42% DV1 cup156 g276 mg66% DV91 mg
15Peanuts (virginia, raw)Legumes171 mg41% DV1 oz28 g48 mg12% DV61 mg
16Peanut butter (smooth, reduced fat)Legumes170 mg40% DV2 tablespoon36 g61 mg15% DV65 mg
17Peanut butter (smooth style, without salt)Legumes168 mg40% DV2 tbsp32 g54 mg13% DV56 mg
17Peanuts (raw)Legumes168 mg40% DV1 oz28 g48 mg11% DV59 mg
19Peanut butter (reduced sodium)Legumes159 mg38% DV1 tbsp16 g25 mg6% DV54 mg
20Walnuts (English)Nuts and Seeds158 mg38% DV1 oz28 g45 mg11% DV48 mg
21Popcorn (air-popped)Snacks144 mg34% DV1 oz28 g41 mg10% DV74 mg
22Barley (hulled)Grains133 mg32% DV1 cup184 g245 mg58% DV75 mg
23Corn grain (white)Grains127 mg30% DV1 cup166 g211 mg50% DV70 mg
23Corn grain (yellow)Grains127 mg30% DV1 cup166 g211 mg50% DV70 mg
25PecansNuts and Seeds121 mg29% DV1 oz28 g34 mg8% DV35 mg
25Pistachio nuts (raw)Nuts and Seeds121 mg29% DV1 oz28 g34 mg8% DV43 mg
27Navy beans (mature seeds, sprouted, raw)Vegetables101 mg24% DV1 cup104 g105 mg25% DV301 mg
28Sesame butter (tahini, from raw and stone ground kernels)Nuts and Seeds96 mg23% DV1 oz28 g27 mg6% DV34 mg
29Grape leaves (raw)Vegetables95 mg23% DV1 cup14 g13 mg3% DV204 mg
29Soba noodles (dry)Grains95 mg23% DV2 oz57 g54 mg13% DV57 mg
Top 10 foods by magnesium per 100 g1. Pumpkin and squash seed kernels (…592 mg2. Flaxseed392 mg3. Sesame butter (paste)362 mg4. Chia seeds (dried)335 mg5. Sunflower seed kernels (dried)325 mg6. Sunflower seed butter (without sa…311 mg7. Cashew nuts (raw)292 mg8. Almonds270 mg9. Oat bran (raw)235 mg10. Sun-dried tomatoes194 mg
Top 10 foods by magnesium per 100 g. Bars are per 100 g; same values as the table.

Most magnesium per typical serving

The same foods ranked by what one typical USDA portion gives, which is what you eat.

Foods High in Magnesium: Top 30 per 100 g & per Serving: ranked per typical serving
RankFoodPer 100 gTypical portionPer portionPer 200 kcal
1Pigeon peas (mature seeds, raw)Legumes183 mg44% DV1 cup205 g375 mg89% DV107 mg
2OatsGrains177 mg42% DV1 cup156 g276 mg66% DV91 mg
3Barley (hulled)Grains133 mg32% DV1 cup184 g245 mg58% DV75 mg
4Oat bran (raw)Grains235 mg56% DV1 cup94 g221 mg53% DV191 mg
5Corn grain (white)Grains127 mg30% DV1 cup166 g211 mg50% DV70 mg
5Corn grain (yellow)Grains127 mg30% DV1 cup166 g211 mg50% DV70 mg
7Pumpkin and squash seed kernels (dried)Nuts and Seeds592 mg141% DV1 oz28 g168 mg40% DV212 mg
8Barley (pearled, raw)Grains79 mg19% DV1 cup200 g158 mg38% DV45 mg
9Spinach (cooked, boiled, drained, without salt)Vegetables87 mg21% DV1 cup180 g157 mg37% DV757 mg
10Sunflower seed kernels (dried)Nuts and Seeds325 mg77% DV1 cup46 g150 mg36% DV111 mg
11Winter squash (acorn, raw)Vegetables32 mg8% DV1 squash431 g138 mg33% DV160 mg
12Coconut meat (raw)Nuts and Seeds32 mg8% DV1 medium397 g127 mg30% DV18 mg
13Sweet potato (canned, mashed)Vegetables24 mg6% DV1 can496 g119 mg28% DV48 mg
14Quinoa (cooked)Grains64 mg15% DV1 cup185 g118 mg28% DV107 mg
15Navy beans (mature seeds, sprouted, raw)Vegetables101 mg24% DV1 cup104 g105 mg25% DV301 mg

Most magnesium per 200 kcal

Nutrient density: magnesium for the same 200 calories of each food.

Foods High in Magnesium: Top 30 per 100 g & per Serving: ranked per 200 kcal
RankFoodPer 100 gTypical portionPer portionPer 200 kcal
1Spinach (cooked, boiled, drained, without salt)Vegetables87 mg21% DV1 cup180 g157 mg37% DV757 mg
2Balsam-pear (leafy tips, raw)Vegetables85 mg20% DV1 leaf4 g3.4 mg1% DV567 mg
3Prickly pears (raw)Fruits85 mg20% DV1 fruit without refuse103 g88 mg21% DV415 mg
4Pumpkin leaves (raw)Vegetables38 mg9% DV1 cup39 g15 mg4% DV400 mg
5Okra (raw)Vegetables57 mg14% DV8 pods95 g54 mg13% DV345 mg
6Sweet potato leaves (raw)Vegetables70 mg17% DV1 leaf16 g11 mg3% DV333 mg
7Navy beans (mature seeds, sprouted, raw)Vegetables101 mg24% DV1 cup104 g105 mg25% DV301 mg
8Bok choy (pak-choi, raw)Vegetables19 mg5% DV1 cup70 g13 mg3% DV292 mg
9Okra (frozen, unprepared)Vegetables43 mg10% DV1/3 package95 g41 mg10% DV287 mg
10Summer squash (scallop, raw)Vegetables23 mg5% DV1 cup slices130 g30 mg7% DV256 mg
11Artichokes (globe or french, raw)Vegetables60 mg14% DV1 artichoke128 g77 mg18% DV255 mg
12Cucumber (peeled, raw)Vegetables12 mg3% DV1 medium201 g24 mg6% DV240 mg
13Summer squash (raw)Vegetables17 mg4% DV1 medium196 g33 mg8% DV213 mg
14Pumpkin and squash seed kernels (dried)Nuts and Seeds592 mg141% DV1 oz28 g168 mg40% DV212 mg
15Zucchini (with skin, raw)Vegetables18 mg4% DV1 medium196 g35 mg8% DV212 mg

Best by food group

The top three of each group per 100 g (rank within the group).

Plant-based (vegan) sources

Fruit, vegetables, legumes, nuts and seeds, grains and oils with no animal ingredient, ranked among themselves per 100 g.

Foods High in Magnesium: Top 30 per 100 g & per Serving: plant-based foods
RankFoodPer 100 gTypical portionPer portionPer 200 kcal
1Pumpkin and squash seed kernels (dried)Nuts and Seeds592 mg141% DV1 oz28 g168 mg40% DV212 mg
2FlaxseedNuts and Seeds392 mg93% DV1 tbsp10 g40 mg10% DV147 mg
3Chia seeds (dried)Nuts and Seeds335 mg80% DV1 oz28 g95 mg23% DV138 mg
4Sunflower seed kernels (dried)Nuts and Seeds325 mg77% DV1 cup46 g150 mg36% DV111 mg
5Cashew nuts (raw)Nuts and Seeds292 mg70% DV1 oz28 g83 mg20% DV106 mg
6AlmondsNuts and Seeds270 mg64% DV1 oz28 g77 mg18% DV93 mg
7Oat bran (raw)Grains235 mg56% DV1 cup94 g221 mg53% DV191 mg
8Sun-dried tomatoesVegetables194 mg46% DV1 cup54 g105 mg25% DV150 mg
9Peanuts (valencia, raw)Legumes184 mg44% DV1 oz28 g52 mg12% DV65 mg
10Pigeon peas (mature seeds, raw)Legumes183 mg44% DV1 cup205 g375 mg89% DV107 mg

Concentrated forms (not ranked)

Flours, powders, concentrates, sugars and fortified foods with magnesium, listed by value per 100 g but left out of the rankings above.

Foods High in Magnesium: Top 30 per 100 g & per Serving: concentrated forms
FoodPer 100 gTypical portionPer portionPer 200 kcal
Rice bran (crude)Grains781 mg186% DV1 cup118 g922 mg219% DV494 mg
Oat flour (partially debranned)Grains144 mg34% DV1 cup104 g150 mg36% DV71 mg
Oats (instant, fortified, plain, dry)Grains128 mg30% DV1 packet28 g36 mg9% DV71 mg
Carrot (dehydrated)Vegetables118 mg28% DV1 cup74 g87 mg21% DV69 mg
Raspberry juice concentrateFruits112 mg27% DV100 g112 mg27% DV101 mg
Rice flour (brown)Grains112 mg27% DV1 cup158 g177 mg42% DV62 mg
Milk (buttermilk, dried)Dairy Foods110 mg26% DV1 cup120 g132 mg31% DV57 mg
Barley malt flourGrains97 mg23% DV1 cup162 g157 mg37% DV54 mg
Corn flour (whole-grain, yellow)Grains93 mg22% DV1 cup117 g109 mg26% DV52 mg
Onions (dehydrated flakes)Vegetables92 mg22% DV1 tbsp5 g4.6 mg1% DV53 mg

Which foods are ranked

  • The 377 foods on CalorieExplorer with a reported magnesium value. They are generic USDA FoodData Central rows (Foundation Foods and SR Legacy) with a plain name: no branded products, restaurant items, survey mixed dishes, baby foods or regional specialty rows.
  • Only foods with more than 0 mg are ranked (370 foods); a food with no reported value is left out, never counted as 0.
  • Flours, crude brans, powders and dehydrated foods, juice concentrates, mixes, sugars and fortified foods are not ranked: per 100 g they beat every food eaten as is. They are listed separately below.
  • Ties share a rank: foods with the same value per 100 g get the same number, and the next number is skipped.
  • Typical portion = USDA's own serving weight for that food (a medium fruit, 1 cup, 1 oz…), as on its food page. Per 200 kcal shows how much you get for the same calories; foods under 5 kcal per 100 g are not ranked that way (–).
  • % DV = share of the FDA Daily Value for magnesium, 420 mg a day for adults and children 4 and older.
  • FDA lets a label call a food “high in” a nutrient when one reference serving gives 20% of the Daily Value or more, and a “good source” at 10–19% (21 CFR 101.54). We apply it to the typical USDA portion, which is not always the label's reference amount.

Source: U.S. Department of Agriculture, FoodData Central (Foundation Foods 2026-04-30; SR Legacy 2018-04). Values per 100 g as published in each food's record, at FDC's precision; serving weights from the same records, retrieved 2026-10-13. Each food page names its FDC ID.

% Daily Value: FDA Daily Values (2016 Nutrition Facts label rule, 21 CFR 101.9), adults and children 4+. How we calculate.

Last updated . Values are averages for the food as described; brands, varieties and cooking change them. Not medical advice.

Related rankings