Everyday health

Foods high in magnesium: 30 foods ranked, and how much you need

Nearly half of Americans get less magnesium from food than their estimated needs. Here are 30 foods ranked with USDA numbers, the official daily needs, who tends to fall short, and an ordinary day of meals that covers it.

A plate of salmon with roasted broccoli and green lentils, beside a bowl of chickpea and leafy green salad, half an avocado, a small bowl of walnuts and a bowl of mixed berries

The short answer: the foods highest in magnesium are seeds, cooked leafy greens, beans and whole grains. Three tablespoons of hemp seeds have 210 mg, an ounce of pumpkin seeds 156 mg and a cup of cooked spinach 157 mg, against a Daily Value of 420 mg. Adult women need 310 to 320 mg a day and adult men 400 to 420 mg, according to the NIH.

Magnesium helps run more than 300 reactions in your body, MedlinePlus says, from muscle and nerve function to a steady heartbeat and strong bones. Most of us can get enough from food, and the foods that supply it tend to be the same fiber-rich ones that do you good in other ways.

What foods are high in magnesium?

Seeds, nuts, beans, soy foods, cooked leafy greens and whole grains are the foods highest in magnesium. These numbers come from USDA FoodData Central (SR Legacy). The % DV column uses the 420 mg Daily Value set by the FDA, which counts 20% or more as a high source.

FoodPortionMagnesium% DV
Hemp seeds, hulled3 tbsp (30g)210 mg50%
Spinach, cooked1 cup (180g)157 mg37%
Pumpkin seeds, roasted1 oz (28g)156 mg37%
Swiss chard, cooked1 cup (175g)150 mg36%
Soybeans, cooked1 cup (172g)148 mg35%
Black beans, cooked1 cup (172g)120 mg29%
Quinoa, cooked1 cup (185g)118 mg28%
Brazil nuts1 oz (6 nuts, 28g)107 mg25%
Edamame, cooked1 cup (155g)99 mg24%
Chia seeds1 oz (28g)95 mg23%
Black-eyed peas, cooked1 cup (171g)91 mg22%
Atlantic mackerel, cooked3 oz (85g)82 mg20%
Brown rice, cooked1 cup (202g)79 mg19%
Almonds1 oz (28g)77 mg18%
Cashews, dry roasted1 oz (28g)74 mg18%
Kidney beans, cooked1 cup (177g)74 mg18%
Firm tofu, calcium-set½ cup (126g)73 mg17%
Lentils, cooked1 cup (198g)71 mg17%
Dark chocolate, 70 to 85%1 oz (28g)65 mg15%
Shredded wheat cereal1 cup (49g)65 mg15%
Rolled oats, dry½ cup (40g)56 mg13%
Ground flaxseed2 tbsp (14g)55 mg13%
Peanut butter, smooth2 tbsp (32g)54 mg13%
Dried figs½ cup (75g)51 mg12%
Peanuts, dry roasted1 oz (28g)50 mg12%
Whole-wheat bread2 slices (64g)48 mg11%
Potato, baked, with skin1 medium (173g)48 mg11%
Avocado1 cup cubed (150g)44 mg10%
Plain low-fat yogurt1 cup (245g)42 mg10%
Sunflower seeds, dry roasted1 oz (28g)37 mg9%

One US cup is about 240 ml, and an ounce is about 28g. Notice how the list sorts itself: plant foods with fiber fill the top. The NIH says that, in general, foods with dietary fiber provide magnesium, so our list of high-fiber foods overlaps heavily with this one. Some breakfast cereals also have magnesium added, so check the label.

How much magnesium do you need per day?

Adult women need 310 to 320 mg of magnesium a day and adult men need 400 to 420 mg, from food and drinks combined. These are the NIH’s Recommended Dietary Allowances:

AgeWomenMenPregnancy
14 to 18360 mg410 mg400 mg
19 to 30310 mg400 mg350 mg
31 and older320 mg420 mg360 mg (31 to 50)

Your body absorbs about 30% to 40% of the magnesium in food and drinks, the NIH says. Too much magnesium from food isn’t a risk for healthy people, because the kidneys get rid of the extra. The limits that matter apply to supplements. Our guide to which magnesium is best compares the forms, and our magnesium glycinate guide looks at the sleep research.

Can you get enough magnesium from food alone?

Yes, most people can get enough magnesium from food alone, but many don’t. An NIH analysis of national survey data from 2013 to 2016 found that 48% of Americans got less magnesium from food and drinks than they need. Adult men 71 and older and teenagers were the most likely to fall short. In an earlier survey, adults who didn’t take supplements averaged 268 mg a day (men) and 234 mg (women) from food, well below the allowances.

Some people are more likely to run low, because they eat less of it or lose more of it. The NIH and Harvard name these groups:

  • People with gut conditions such as Crohn’s disease or celiac disease, or who’ve had part of the small intestine removed, because chronic diarrhea and poor absorption drain magnesium.
  • People with type 2 diabetes, because high blood sugar makes the kidneys pass more urine, which carries magnesium out.
  • People who drink heavily over a long time, through poor diet, digestive upset and losses in urine.
  • Older adults, who tend to eat less magnesium, absorb less from the gut and lose more through the kidneys. They’re also more likely to take medicines that affect magnesium.

The NIH lists loss of appetite, nausea, vomiting, fatigue and weakness as early signs of a real deficiency, though those symptoms have many causes. If you’re in one of these groups or have symptoms, ask your doctor about it, and don’t change any medicine on your own. Night cramps are a common reason people look up magnesium, and our guide to leg cramps at night covers what actually helps.

Does cooking destroy magnesium?

The sources we checked don’t report big magnesium losses from home cooking, but they do flag refining. The NIH says refining grains in ways that strip out the germ and bran substantially lowers their magnesium, and Harvard notes that food processing can reduce magnesium in plant foods. USDA data show how large the gap is:

Whole grainMagnesiumRefined versionMagnesium
Brown rice, cooked, 1 cup79 mgWhite rice, enriched, cooked, 1 cup19 mg
Whole-wheat flour, 1 cup164 mgWhite all-purpose flour, enriched, 1 cup28 mg

Even enriched white rice and flour stay far lower, as the numbers show. Swapping white rice for brown, or white bread for whole wheat, is one of the easiest ways to raise your intake. Our guide to whether oatmeal is good for you covers another whole-grain staple. Water can count too: the NIH says tap, mineral and bottled water carry anywhere from 1 mg to more than 120 mg of magnesium per liter, depending on the source and brand.

Which foods are high in magnesium and potassium?

Cooked spinach and Swiss chard, beans, potatoes with the skin, avocado, plain yogurt and bananas are good sources of both magnesium and potassium. If you’re eating for blood pressure, that overlap is handy, and our list of foods high in potassium has the potassium numbers. For bones, chia seeds, soybeans, calcium-set tofu and almonds are rich in both magnesium and calcium, as our list of foods high in calcium shows.

How do you get enough magnesium from food?

You get enough magnesium from food by building each meal around a whole grain, a bean or a green, and snacking on nuts or seeds. Here’s an ordinary day, with numbers from USDA data:

MealWhat you eatMagnesium
BreakfastOatmeal from ½ cup rolled oats, with a sliced banana88 mg
Lunch1 cup black beans over 1 cup brown rice199 mg
Snack1 oz almonds77 mg
Dinner3 oz baked salmon, a medium baked potato with skin and 1 cup cooked broccoli107 mg
Total471 mg (112% DV)

Small swaps add up from there. An ounce of pumpkin seeds on your oatmeal adds 156 mg. Trading the white rice in a takeout meal for brown adds about 60 mg. A cup of cooked spinach stirred into soup adds 157 mg. Start with one swap this week, and if you’re short on ideas, bananas work in more meals than you’d think.

The Banana Book cover

Make the fruit part easy

The Banana Book

A 7-day banana habit plan plus 60 simple recipes, sorted by what you need. It’s a cookbook, not a treatment, so keep following your doctor’s advice. Only $4.99.

Quick questions

Which fruit has the most magnesium?

Among common fruits, dried figs and avocado are high in magnesium. Half a cup of dried figs has about 51 mg, a cup of avocado about 44 mg and a medium banana about 32 mg, according to USDA data. Fruit is a modest source overall, though. Seeds, beans and cooked greens give far more per serving.

Are bananas high in magnesium?

A medium banana has about 32 mg of magnesium, or 8% of the Daily Value, according to USDA data. That’s a useful contribution rather than a high source. Pair a banana with oatmeal, nut butter or a handful of pumpkin seeds and the meal climbs well past 100 mg.

Is dark chocolate high in magnesium?

Dark chocolate with 70% to 85% cacao has about 65 mg of magnesium per ounce, or 15% of the Daily Value, according to USDA data. That’s similar to an ounce of almonds or cashews. Seeds, beans and cooked greens give more per serving, so treat chocolate as a bonus rather than your main source.

How much magnesium is too much?

Magnesium from food isn’t a problem for healthy people, because the kidneys remove the extra, the NIH says. The upper limit of 350 mg a day applies to supplements only, according to Harvard. High-dose supplements can cause diarrhea, nausea and cramping. People with reduced kidney function should ask their doctor before taking any.

What are the signs of low magnesium?

Early signs of magnesium deficiency include loss of appetite, nausea, vomiting, fatigue and weakness, according to the NIH. True deficiency is rare, MedlinePlus says, and these symptoms have many other causes. If you have them and are in a higher-risk group, such as having a gut condition or type 2 diabetes, see your doctor.

Is magnesium good for you?

Yes. Magnesium is essential, and MedlinePlus says your body uses it in more than 300 reactions, including muscle and nerve function, heart rhythm, blood sugar control and bone strength. The NIH says nutrient needs should be met mainly through food. Harvard notes that trials of magnesium supplements for blood pressure and diabetes have had mixed results.

This article is general information, not medical advice. Magnesium needs differ with age, sex, pregnancy and health conditions. If you have kidney disease, a gut condition, diabetes or take regular medicines, talk to your doctor before adding a magnesium supplement, and don’t change or stop any medicine on your own.

Sources