🥦 Nutrition know-how — vitamins, minerals & how your body uses them.
NUTRITION

Foods high in magnesium: which foods contain the most?

Pumpkin seeds, wheat bran, cocoa, chia seeds, Brazil nuts and almonds are among the foods with the most magnesium. A 28 g handful of pumpkin seeds already provides about 168 mg, more than half of what an adult woman needs in a day. Magnesium contributes to normal muscle function and to normal functioning of the nervous system. Your body cannot make it, so it has to come from food.

Magnesium in food at a glance

Magnesium-rich foods: table per 100 g and per serving

Nuts, seeds and cocoa

FoodStatemg per 100 gServingmg per servingUSDA FDC ID
Wheat branraw61115 g (2 tbsp)*92169722
Pumpkin seedsdried59228 g (1 oz)168170556
Cocoa powder, unsweeteneddry4995.4 g (1 tbsp)27169593
Flaxseedwhole39210.3 g (1 tbsp)40169414
Brazil nutsdried37628 g (6 nuts)107170569
Sesame seedswhole, dried3519 g (1 tbsp)32170150
Chia seedsdried33528 g (1 oz)95170554
Sunflower seedsdried32528 g*91170562
Cashewsraw29228 g (1 oz)83170162
Almondsraw27028 g (23 almonds)77170567
Dark chocolate, 70-85% cocoa22828 g (1 oz)65170273
Peanutsraw16828 g (1 oz)48172430
Hazelnutsraw16328 g (21 nuts)46170581

Legumes, grains and soy

FoodStatemg per 100 gServingmg per servingUSDA FDC ID
Oatsdry13827 g (1/3 cup)37173904
Whole-wheat bread7532 g (1 slice)24172688
Black beanscooked70172 g (1 cup)120173735
Quinoacooked64185 g (1 cup)118168917
Firm tofuraw5881 g (1/4 block)47172475
Chickpeascooked48164 g (1 cup)79173757
Kidney beanscooked42177 g (1 cup)74173740
Brown ricecooked39202 g (1 cup)79169704
Lentilscooked36198 g (1 cup)71172421

Vegetables and fruit

FoodStatemg per 100 gServingmg per servingUSDA FDC ID
Spinachcooked87180 g (1 cup)157168463
Swiss chardcooked86175 g (1 cup)151170401
Avocadoraw29201 g (1 fruit)58171705
Bananaraw27118 g (1 medium)32173944

Fish and seafood

FoodStatemg per 100 gServingmg per servingUSDA FDC ID
Atlantic mackerelcooked9785 g (3 oz)82175120
Atlantic codcooked4285 g (3 oz)36171956
Atlantic herringcooked4185 g (3 oz)35175117
Shrimpcooked3985 g (3 oz)33175180
Tuna, white, canned in waterdrained3385 g (3 oz)28175158
Atlantic salmon, farmedcooked3085 g (3 oz)26175168

Milk and dairy products

FoodStatemg per 100 gServingmg per servingUSDA FDC ID
Parmesanhard4428 g (1 oz)12170848
Gouda2928 g (1 oz)8171241
Yogurt, plain, whole milk12170 g (1 pot)20171284
Milk, whole (3.25% fat)10244 g (1 glass)24171265

Source: USDA FoodData Central, SR Legacy data set, one entry per FDC ID, retrieved 23 November 2026. Legumes, grains, fish and vegetables are listed cooked, the way you eat them. Dry lentils or dry rice show much higher numbers per 100 g, but they absorb water when cooked. Serving sizes follow the USDA portion data (1 oz = 28.35 g); servings marked * are our own typical portion. Values in European food tables can differ slightly.

Which foods have the most magnesium per serving?

Pumpkin seeds come first: a 28 g serving has about 168 mg. A cup of cooked spinach (180 g) brings about 157 mg and a cup of cooked swiss chard (175 g) about 151 mg. Cooked black beans and quinoa land at around 120 mg per cup, Brazil nuts at 107 mg per six nuts. Bananas are often named as a magnesium source, but one medium banana has only about 32 mg.

Do fish and dairy products contain magnesium?

Yes, but less than nuts, seeds and legumes. Atlantic mackerel is the exception among fish with about 82 mg per 85 g serving. Cod, herring, shrimp, tuna and salmon bring 26 to 36 mg per serving. Milk and yogurt have 10 to 12 mg per 100 g, so a glass of milk gives you about 24 mg. Because people drink milk and eat dairy often, it still adds to the daily total.

How much magnesium do you need per day?

Adult women need 300 mg and adult men 350 mg of magnesium a day. This is the EFSA adequate intake and the same value the German, Austrian and Swiss nutrition societies use. Pregnant and breastfeeding women need the same 300 mg. Children need between 170 and 330 mg depending on age and sex.

GroupMagnesium per day
Women from 19 years300 mg
Men from 19 years350 mg
Pregnant and breastfeeding women300 mg
Children and teenagers (1 to under 19 years)170 to 330 mg

Source: D-A-CH reference values for magnesium (DGE, 2021); EFSA, Dietary Reference Values for magnesium (2015). Full table by age: daily recommended intake of magnesium.

How to reach your daily magnesium with normal meals

Two examples, calculated from the table above:

What lowers magnesium absorption?

Some substances in food can reduce how much magnesium your body absorbs. These include phytates, oxalic acid and, in some cases, fibre and phosphates. For healthy people with a balanced diet this effect is usually small.

How to prepare magnesium-rich foods

Minerals are not sensitive to heat, so long cooking does not destroy magnesium. Some magnesium can leach into the cooking water, though. Cook vegetables and legumes briefly, or use the cooking water, for example in soups.

Can you get too much magnesium?

With normal food, a magnesium overdose is practically impossible for healthy people. High-dose supplements are different: too much supplemental magnesium can cause diarrhoea, nausea and vomiting. The tolerable upper intake level for magnesium from supplements is 250 mg per day on top of food, for adults including pregnant and breastfeeding women and for children from 4 years (SCF 2001, listed in the EFSA overview of upper intake levels). Magnesium from normal food does not count towards this limit. More on limits: micronutrient dosing limits.

What can lower your magnesium levels?

Some factors reduce magnesium absorption or increase the body's need. Common ones are regular alcohol consumption, intense physical activity and chronic stress. Hormonal contraceptives and some medications can also affect magnesium levels.

Some diseases can increase magnesium losses or reduce absorption, for example Crohn's disease, an overactive thyroid and kidney disease.

When can magnesium supplements be considered?

Cover your magnesium needs through food first. For most people this works well with regular magnesium-rich foods. A supplement can be considered when the need is higher. A blood test at your doctor's shows whether your magnesium level is low.

Important to know

If you are not a healthcare professional and experience symptoms, have existing health conditions, or suspect a deficiency, consult a physician.

More food tables

Foods high in calcium · Foods high in vitamin B6 · Magnesium: functions and daily requirement

Scientific responsibility: Dr. Daniel Wallerstorfer, molecular biologist and founder of Novogenia. Last updated: 23 November 2026.

Frequently asked questions

What food has the most magnesium?

Per 100 g, wheat bran (611 mg) and pumpkin seeds (592 mg) have the most magnesium, followed by cocoa powder, flaxseed and Brazil nuts. Per normal serving, pumpkin seeds lead: 28 g give you about 168 mg. Cooked spinach (157 mg per 180 g) and cooked swiss chard (151 mg per 175 g) come close because you eat larger amounts of them. All values are from USDA FoodData Central.

What foods are high in magnesium?

Nuts and seeds, cocoa, wholegrains, legumes and leafy greens are high in magnesium. Good everyday examples are pumpkin seeds, almonds, cashews, chia seeds, oats, quinoa, black beans, chickpeas, spinach and swiss chard. Among fish, cooked mackerel stands out with about 82 mg per 85 g serving. Milk, cheese and most fruit contain much less. A banana, often named as a magnesium source, has about 32 mg.

How much magnesium do I need per day?

Adult women need 300 mg and adult men 350 mg of magnesium per day. EFSA and the German, Austrian and Swiss nutrition societies (D-A-CH) set the same values. Pregnancy and breastfeeding do not raise the need. Children need between 170 and 330 mg depending on age and sex. Healthy adults can usually cover this amount with a balanced diet. Full table by age.

Do bananas have a lot of magnesium?

No, a medium banana (118 g) has only about 32 mg of magnesium, around a tenth of a woman's daily need. Per 100 g that is 27 mg. A whole avocado has about 58 mg. Nuts, seeds and cooked legumes bring far more magnesium per serving than any fruit.

Does cooking destroy magnesium?

No, heat does not destroy magnesium. It is a mineral and stays stable when you cook. Some of it can pass into the cooking water, so keep cooking times short or use the water, for example in soups. The values for legumes, rice and vegetables in our table are already for the cooked food.

Can you get too much magnesium from food?

For healthy people this is practically impossible with normal food. Too much magnesium almost always comes from high-dose supplements and usually shows up as diarrhoea. For magnesium from supplements, the tolerable upper intake level is 250 mg per day on top of your diet, for adults and children from 4 years. Magnesium from normal food does not count towards this limit.

Want to know which of your genes play a role in your metabolism? Our partners offer a genetic analysis from a saliva sample. In the nutrient formula calculated from it, magnesium always stays below the EFSA upper limit.

»How a personalised nutrient formula is calculated« →

Want this for yourself?

We sell our products exclusively through partner companies. We are happy to receive your inquiry and establish contact with a suitable partner company in your area.

Send an inquiry →

Publisher: Novogenia GmbH – certified genetic laboratory in Eugendorf near Salzburg, since 2009. About us · Founder Dr. Daniel Wallerstorfer