Foods high in magnesium and how much you need
The best magnesium rich foods, a simple day of eating, and what to know before you buy a supplement.

Magnesium is one of those nutrients people hear about on social media, usually as a pill for sleep or stress. But before you buy a bottle, it helps to know what magnesium actually does and where to find it in food.
Magnesium is in a lot of everyday foods, especially nuts, seeds, beans, whole grains and leafy greens. This guide lists the best food sources, how much you need, and when a supplement might make sense.
- Adult women need about 310 to 320 mg of magnesium a day, and adult men about 400 to 420 mg.
- Top food sources are pumpkin seeds, chia seeds, almonds, cashews, spinach, beans, soy foods and whole grains.
- Many Americans eat less magnesium than they should, mostly because they eat few of these foods.
- Magnesium from food is safe. Supplements can cause diarrhea and are not safe for everyone, so ask your doctor first.
What magnesium does
Magnesium is a mineral that helps more than 300 enzyme systems in your body work, according to the NIH Office of Dietary Supplements. In plain words, it is a helper for a lot of jobs:
- Muscles and nerves. It helps muscles relax after they contract and helps nerves send signals.
- Energy. It is needed to turn food into energy.
- Bones. A good share of your body's magnesium is stored in your bones.
- Heart rhythm. It helps keep your heartbeat steady.
- Blood sugar and blood pressure. It plays a role in how your body handles both.
How much magnesium you need
Here are the daily amounts from the NIH Office of Dietary Supplements for adults:
| Who | Magnesium per day |
|---|---|
| Women 19 to 30 | 310 mg |
| Women 31 and up | 320 mg |
| Men 19 to 30 | 400 mg |
| Men 31 and up | 420 mg |
| Pregnancy | 350 to 360 mg |
| Breastfeeding | 310 to 320 mg |
Surveys show many people in the US get less than they need from food, according to the NIH. The easy fix is not a pill. It is eating more of the plant foods below.
Magnesium rich foods
Here is how much magnesium is in common servings. Numbers are approximate and come from USDA FoodData Central.
| Food | Serving | Magnesium (mg, approx.) |
|---|---|---|
| Pumpkin seeds, roasted | 1 oz | 156 |
| Quinoa, cooked | 1 cup | 118 |
| Chia seeds | 1 oz | 95 |
| Spinach, cooked | 1/2 cup | 78 |
| Almonds | 1 oz | 77 |
| Cashews, dry roasted | 1 oz | 74 |
| Soybeans, cooked | 1/2 cup | 74 |
| Firm tofu | 1/2 cup | 73 |
| Dark chocolate (70 to 85% cacao) | 1 oz | 65 |
| Peanuts, dry roasted | 1/4 cup | 65 |
| Oatmeal, cooked with water | 1 cup | 63 |
| Black beans, cooked | 1/2 cup | 60 |
| Peanut butter | 2 tbsp | 54 |
| Edamame, cooked | 1/2 cup | 50 |
| Potato, baked with skin | 1 medium | 48 |
| Brown rice, cooked | 1/2 cup | 39 |
| Plain low fat yogurt | 8 oz | 39 |
| Banana | 1 medium | 32 |
| Avocado | 1/2 fruit | 29 |
| Salmon, cooked | 3 oz | 26 |
A pattern stands out. The best sources are seeds, nuts, beans, soy and whole grains. These are the same foods that bring fiber and healthy fats, so adding them helps on many fronts at once.
A note on refining: when grains are refined into white flour or white rice, much of the magnesium is lost. Whole grains keep more of it.

Easy ways to eat more magnesium
Step 1: Sprinkle seeds
One ounce of pumpkin seeds gives you about half of what many women need in a day. Add them to salads, oatmeal, yogurt or soup. Pumpkin seeds are also called pepitas in many stores.
Step 2: Snack on nuts
A small handful of almonds or cashews is an easy afternoon snack. Our handful of nuts a day post explains the research.
Step 3: Add beans or soy
Black beans in tacos, edamame as a snack, tofu in a stir fry. Try our Mexican quinoa black bean bowl, which pairs two good sources at once.
Step 4: Go green
Cooked spinach is one of the best vegetable sources because it shrinks down so much. Our garlic sautéed spinach takes about five minutes.
Step 5: Swap in whole grains
Oatmeal for breakfast, quinoa or brown rice at dinner, whole wheat bread for sandwiches.
Step 6: Enjoy a little dark chocolate
A square or two of dark chocolate with a high cacao percent has some magnesium. It is still a treat, so keep it small.
A day of magnesium from food
Here is a simple day that goes past 400 mg from food alone, based on the table above.
| Meal | What to eat | Magnesium (approx.) |
|---|---|---|
| Breakfast | 1 cup oatmeal with 1 tbsp chia seeds and a banana | about 135 mg |
| Snack | 1 oz almonds | about 77 mg |
| Lunch | Salad with 1/2 cup black beans and 1 oz pumpkin seeds | about 230 mg |
| Dinner | Salmon with 1/2 cup brown rice and 1/2 cup cooked spinach | about 145 mg |
That adds up to roughly 580 mg, which is more than enough for most adults. You could drop the snack and still be well covered. Magnesium from food does not cause problems for healthy kidneys, because your kidneys get rid of the extra.
About magnesium supplements
Magnesium supplements are popular, especially for sleep. Here is what to know before you try one.
- Food is the best first step. The foods above bring fiber, protein and other nutrients too.
- There is an upper limit for supplements. The NIH sets it at 350 mg a day from supplements and medicines for adults. This limit does not apply to magnesium in food.
- Too much can cause diarrhea. Some forms, like magnesium oxide, carbonate, chloride and gluconate, are more likely to cause it, per the NIH.
- Kidney disease. If your kidneys do not work well, magnesium can build up to dangerous levels. Do not take supplements unless your doctor says so.
- Medicine interactions. Magnesium can interfere with some antibiotics and with bone medicines called bisphosphonates. Some medicines, like long term acid reducers called proton pump inhibitors, can lower your magnesium. Ask your pharmacist.
For sleep specifically, the research on magnesium pills is limited and mixed. Good sleep habits are still the first step.

What the research says about health
Magnesium gets linked to many health claims. Here is a fair summary of what the evidence shows so far.
- Blood pressure. A pooled analysis of controlled trials found that magnesium supplements lowered blood pressure by a small amount on average (Zhang et al 2016). The effect was modest, so it is not a replacement for blood pressure medicine or other proven steps like less sodium and more activity.
- Type 2 diabetes. People who eat more magnesium tend to have a lower risk of type 2 diabetes in long term studies, according to the NIH. Those studies show a link, not proof, and magnesium rich foods also bring fiber, which helps too.
- Bones. Magnesium is part of bone, and low intake is linked to lower bone density in some studies. Calcium, vitamin D and exercise still matter most.
- Sleep, anxiety and migraines. Research is limited or mixed. Some people with migraines use magnesium under a doctor's care.
The safest takeaway: eat magnesium rich foods most days, and talk with your doctor before using pills to treat a health problem.
Common mistakes
- Jumping to pills first. Most people can raise their intake with a few food swaps.
- Eating mostly refined grains. White bread and white rice have much less magnesium than whole grains.
- Forgetting about seeds. They are small, cheap and one of the richest sources.
- Taking high dose supplements without asking. Especially with kidney problems or if you take other medicines.
- Expecting a cure for cramps or sleep. Magnesium is not a magic fix. If you have frequent cramps or poor sleep, talk with your doctor.
FAQ
What food is highest in magnesium?
Pumpkin seeds are one of the richest foods, with about 156 mg per ounce of roasted seeds, per the NIH. Chia seeds, almonds, cashews, spinach and quinoa are also high.
Who is more likely to run low?
The NIH lists people with stomach and bowel diseases like Crohn's or celiac disease, people with type 2 diabetes, people with alcohol use disorder and older adults.
Can a blood test show low magnesium?
A blood test can find very low levels, but most magnesium is inside your cells and bones, so a normal result does not always mean your intake is ideal.
Is magnesium in water?
Some tap and mineral waters have magnesium, but the amount varies a lot by source.
Do kids need magnesium?
Yes, in smaller amounts. Nuts, seeds, beans, whole grains and greens are great for kids too. Whole nuts are a choking risk for young children, so use nut butters for little ones.
Want the full plan? Get Plant based made simple.
Sources: NIH Office of Dietary Supplements, Magnesium fact sheet for health professionals. USDA FoodData Central. Zhang et al 2016, Hypertension.
Get new posts by email.
Pick a short weekly email, or one calm digest a month.







