Mealyno

Foods high in magnesium

USDA FoodData Central data, retrieved October 2026

Magnesium is a mineral the body uses in muscles, nerves and energy metabolism. The National Academies RDA for adults aged 19 to 30 is 400 mg a day for men and 310 mg for women, and slightly higher for men later in adulthood. The average reference used on this site is 355 mg.

Here are 25 foods from USDA FoodData Central with at least 71 mg of magnesium per 100 g. Pumpkin seeds (592 mg), Flaxseed (392 mg) and Sesame seeds (351 mg) are at the top. The group is dominated by seeds, nuts, legumes, whole grains and cocoa products, which is why a diet built on refined foods tends to fall short here.

These are general estimates generated from published formulas, not a medical prescription. Not reviewed by a doctor or registered dietitian.

Read the full disclaimer

Every number on this page (calorie targets, macro splits and any suggested meal plan) is produced by formulas (Mifflin-St Jeor for basal metabolic rate, standard activity multipliers) or, for AI-generated meal plans, by a language model applying those same formulas. On meal-plan pages the carbohydrate figure for each meal is calculated by difference: total calories minus protein and fat calories, divided by 4. It is not measured or estimated on its own, so read it as an arithmetic balance and not as an independent nutritional analysis of the dish. None of it is individualized medical or nutritional advice, and none of it has been reviewed by a registered dietitian, physician or other licensed healthcare professional.

Ask your doctor or a registered dietitian what is right for you before starting a new diet, especially if you are pregnant or breastfeeding, have a diagnosed medical condition, take prescription medication, or have a history of disordered eating. If you have kidney disease or another medical condition, ask your clinician before raising protein.

Mealyno never recommends a calorie target below your calculated Basal Metabolic Rate (BMR), the minimum energy your body needs at complete rest. Even the most aggressive weight-loss setting is clamped at that floor.

Calorie and BMR estimates use the Mifflin-St Jeor equation (Mifflin MD, St Jeor ST, et al. Am J Clin Nutr. 1990).

Generated: October 2026

Top of the list

At the top: Pumpkin seeds (592 mg), Flaxseed (392 mg), Sesame seeds (351 mg), Chia seeds (335 mg), Sunflower seeds (325 mg) per 100 g. 25 of the 178 foods in our table meet the rule. Check the "State" column: dry grains and legumes are not equal by weight to cooked ones.

Foods high in magnesium
#
1Pumpkin seedsfresh592 mg167%178 mg in 30 g559 kcal30.2 g6 g
2Flaxseedfresh392 mg110%39.2 mg in 10 g534 kcal18.3 g27.3 g
3Sesame seedsfresh351 mg99%31.6 mg in 9 g573 kcal17.7 g11.8 g
4Chia seedsfresh335 mg94%40.2 mg in 12 g486 kcal16.5 g34.4 g
5Sunflower seedsfresh325 mg92%97.5 mg in 30 g584 kcal20.8 g8.6 g
6Red caviaras eaten300 mg85%48 mg in 16 g264 kcal24.6 g0 g
7Cashewsfresh292 mg82%81.8 mg in 28 g553 kcal18.2 g3.3 g
8Almondsfresh270 mg76%75.6 mg in 28 g579 kcal21.2 g12.5 g
9Dark chocolate 70-85%as eaten228 mg64%45.6 mg in 20 g598 kcal7.79 g10.9 g
10Dry buckwheat groatsraw (dry)221 mg62%133 mg in 60 g346 kcal11.7 g10.3 g
11Halvaas eaten218 mg61%65.4 mg in 30 g469 kcal12.5 g4.5 g
12Raw peanutsfresh168 mg47%47 mg in 28 g567 kcal25.8 g8.5 g
13Peanut butteras eaten168 mg47%53.8 mg in 32 g598 kcal22.2 g5 g
14Hazelnutsfresh163 mg46%45.6 mg in 28 g628 kcal15 g9.7 g
15Walnutsfresh158 mg45%44.2 mg in 28 g654 kcal15.2 g6.7 g
16Dry rolled oatsraw (dry)138 mg39%55.2 mg in 40 g379 kcal13.2 g10.1 g
17Pistachiosfresh121 mg34%33.9 mg in 28 g560 kcal20.2 g10.6 g
18Dry milletraw (dry)114 mg32%68.4 mg in 60 g378 kcal11 g8.5 g
19Baked mackerelcooked97 mg27%97 mg in 100 g262 kcal23.9 g0 g
20Cooked soybeanscooked86 mg24%129 mg in 150 g172 kcal18.2 g6 g
21Cooked pollockcooked81 mg23%97.2 mg in 120 g111 kcal23.5 g0 g
22Spinachfresh79 mg22%23.7 mg in 30 g23 kcal2.86 g2.2 g
23Dry pearl barleyraw (dry)79 mg22%47.4 mg in 60 g352 kcal9.91 g15.6 g
24Hummusas eaten75 mg21%22.5 mg in 30 g237 kcal7.78 g5.5 g
25Whole-wheat breadas eaten75 mg21%26.3 mg in 35 g252 kcal12.5 g6 g

Values are per 100 g unless stated. Portion is a typical size. Column headers can be clicked to change the sort order.

Not sure how much of this you eat? Photograph the plate: free, no signup.

Calories from a photo

How to use this list

Seeds and nuts rank high but are also dense in calories, which the calorie column makes visible. A tablespoon of pumpkin seeds on porridge or salad adds a good amount without a large portion, while beans, buckwheat and oats provide magnesium in bigger, more filling servings. Check the fibre column too: many magnesium-rich foods are also rich in fibre.

Whole grains keep the bran where much of the magnesium is stored, so wholemeal bread and brown rice carry more than white versions. Dark chocolate appears in rankings like this one, and a square or two is a sensible portion. Combine sources through the week rather than relying on a single food, and ask a doctor or dietitian before using magnesium supplements.

Method: where the data comes from

The list is built from our table of 178 foods based on USDA FoodData Central, SR Legacy (public domain, CC0). We retrieved the data on October 4, 2026. Values are per 100 g of the food in the state shown in the "State" column: a raw, cooked or dry food carries different amounts of water, so per-100 g figures are not comparable across states. If USDA reports no value for a nutrient, the food is left out of this list: "no data" is not zero.

A food makes the list with at least 71 mg (magnesium) per 100 g, which is 20% of the daily reference for the reference adult, 355 mg. We call 35.5 mg (10%) and up a good source.

The reference adult is the average of the adult male and female values in the US and Canada Dietary Reference Intakes (age 19-30), on a 2,000 kcal day. The "Portion" column shows the value in a typical portion of the food. This is general information for healthy adults, not medical advice; Mealyno does not replace a doctor or a dietitian.

Frequently asked questions

How much magnesium do adults need?

For ages 19 to 30, the National Academies RDA is 400 mg a day for men and 310 mg for women. Values change a little with age. These are figures for healthy adults, and a doctor or dietitian can advise on personal needs.

Which foods are the best sources of magnesium?

Seeds such as pumpkin and sesame, nuts, legumes, whole grains and cocoa products head lists like this one. Our table shows the exact values per 100 g in the dataset, along with the portion so that you can plan realistic servings.

Why do whole grains have more magnesium than refined ones?

Magnesium sits largely in the bran and germ of the grain. Refining removes those parts, so white flour and white rice contain less per 100 g than wholemeal bread or brown rice. Hence the advice to choose whole grains for this mineral.

Are magnesium supplements a good idea?

Ask a doctor or dietitian before taking them. Food sources come with fibre and other nutrients, and the right dose of a supplement depends on the person. This page is about foods and does not replace a personal recommendation.

Cite this data

You are welcome to cite this table and link to it. The USDA data is public domain (CC0); our selection, calculations and ordering are Mealyno's. Copy the link or the citation below.