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
- Per 100 g, wheat bran (611 mg) and pumpkin seeds (592 mg) contain the most magnesium.
- Per serving, pumpkin seeds, cooked spinach and cooked swiss chard lead the list.
- Adults need 300 mg (women) or 350 mg (men) a day, according to EFSA and the D-A-CH reference values. Pregnancy and breastfeeding do not raise this value (magnesium during pregnancy).
- With nuts, seeds, legumes and wholegrains in your day, most healthy adults reach this amount through food.
Magnesium-rich foods: table per 100 g and per serving
Nuts, seeds and cocoa
| Food | State | mg per 100 g | Serving | mg per serving | USDA FDC ID |
|---|---|---|---|---|---|
| Wheat bran | raw | 611 | 15 g (2 tbsp)* | 92 | 169722 |
| Pumpkin seeds | dried | 592 | 28 g (1 oz) | 168 | 170556 |
| Cocoa powder, unsweetened | dry | 499 | 5.4 g (1 tbsp) | 27 | 169593 |
| Flaxseed | whole | 392 | 10.3 g (1 tbsp) | 40 | 169414 |
| Brazil nuts | dried | 376 | 28 g (6 nuts) | 107 | 170569 |
| Sesame seeds | whole, dried | 351 | 9 g (1 tbsp) | 32 | 170150 |
| Chia seeds | dried | 335 | 28 g (1 oz) | 95 | 170554 |
| Sunflower seeds | dried | 325 | 28 g* | 91 | 170562 |
| Cashews | raw | 292 | 28 g (1 oz) | 83 | 170162 |
| Almonds | raw | 270 | 28 g (23 almonds) | 77 | 170567 |
| Dark chocolate, 70-85% cocoa | 228 | 28 g (1 oz) | 65 | 170273 | |
| Peanuts | raw | 168 | 28 g (1 oz) | 48 | 172430 |
| Hazelnuts | raw | 163 | 28 g (21 nuts) | 46 | 170581 |
Legumes, grains and soy
| Food | State | mg per 100 g | Serving | mg per serving | USDA FDC ID |
|---|---|---|---|---|---|
| Oats | dry | 138 | 27 g (1/3 cup) | 37 | 173904 |
| Whole-wheat bread | 75 | 32 g (1 slice) | 24 | 172688 | |
| Black beans | cooked | 70 | 172 g (1 cup) | 120 | 173735 |
| Quinoa | cooked | 64 | 185 g (1 cup) | 118 | 168917 |
| Firm tofu | raw | 58 | 81 g (1/4 block) | 47 | 172475 |
| Chickpeas | cooked | 48 | 164 g (1 cup) | 79 | 173757 |
| Kidney beans | cooked | 42 | 177 g (1 cup) | 74 | 173740 |
| Brown rice | cooked | 39 | 202 g (1 cup) | 79 | 169704 |
| Lentils | cooked | 36 | 198 g (1 cup) | 71 | 172421 |
Vegetables and fruit
| Food | State | mg per 100 g | Serving | mg per serving | USDA FDC ID |
|---|---|---|---|---|---|
| Spinach | cooked | 87 | 180 g (1 cup) | 157 | 168463 |
| Swiss chard | cooked | 86 | 175 g (1 cup) | 151 | 170401 |
| Avocado | raw | 29 | 201 g (1 fruit) | 58 | 171705 |
| Banana | raw | 27 | 118 g (1 medium) | 32 | 173944 |
Fish and seafood
| Food | State | mg per 100 g | Serving | mg per serving | USDA FDC ID |
|---|---|---|---|---|---|
| Atlantic mackerel | cooked | 97 | 85 g (3 oz) | 82 | 175120 |
| Atlantic cod | cooked | 42 | 85 g (3 oz) | 36 | 171956 |
| Atlantic herring | cooked | 41 | 85 g (3 oz) | 35 | 175117 |
| Shrimp | cooked | 39 | 85 g (3 oz) | 33 | 175180 |
| Tuna, white, canned in water | drained | 33 | 85 g (3 oz) | 28 | 175158 |
| Atlantic salmon, farmed | cooked | 30 | 85 g (3 oz) | 26 | 175168 |
Milk and dairy products
| Food | State | mg per 100 g | Serving | mg per serving | USDA FDC ID |
|---|---|---|---|---|---|
| Parmesan | hard | 44 | 28 g (1 oz) | 12 | 170848 |
| Gouda | 29 | 28 g (1 oz) | 8 | 171241 | |
| Yogurt, plain, whole milk | 12 | 170 g (1 pot) | 20 | 171284 | |
| Milk, whole (3.25% fat) | 10 | 244 g (1 glass) | 24 | 171265 |
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.
| Group | Magnesium per day |
|---|---|
| Women from 19 years | 300 mg |
| Men from 19 years | 350 mg |
| Pregnant and breastfeeding women | 300 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:
- About 300 mg: a 28 g handful of pumpkin seeds (168 mg), a cup of cooked quinoa (118 mg) and a banana (32 mg) add up to about 318 mg.
- About 350 mg: 28 g almonds (77 mg), a cup of cooked spinach (157 mg) and a cup of cooked black beans (120 mg) add up to about 354 mg.
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
Frequently asked questions
What food has the most magnesium?
What foods are high in magnesium?
How much magnesium do I need per day?
Do bananas have a lot of magnesium?
Does cooking destroy magnesium?
Can you get too much magnesium from food?
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
