Magnesium is a major mineral that more than 300 enzymes in your body depend on. It supports muscles and nerves, blood sugar control, blood pressure, energy production and bones. Adult men need 400–420 mg a day and women 310–320 mg. This guide covers what magnesium does, how much you need, the best foods, and what to know before taking a supplement.
| Type of mineral | Major mineral |
| Daily Value (food labels) | 420 mg |
| Adult needs | 400–420 mg (men); 310–320 mg (women); 350–360 mg (pregnancy) |
| Upper limit | 350 mg a day from supplements and medicines (food doesn’t count) |
| Top food sources | Pumpkin seeds, chia seeds, almonds, spinach, cashews, peanuts, black beans |
What magnesium does in your body
- Muscles and nerves: magnesium helps muscles relax after they contract and keeps nerve signals steady. Low levels can show up as cramps, twitches and tingling.
- Energy and blood sugar: it’s needed to make energy from food and to help insulin work.
- Heart and blood pressure: it helps keep your heart rhythm normal and plays a part in blood pressure control.
- Bones: magnesium is part of bone structure and works alongside calcium and phosphorus.
How much magnesium do you need?
| Age | Male | Female | Pregnancy | Breastfeeding |
|---|---|---|---|---|
| 19–30 years | 400 mg | 310 mg | 350 mg | 310 mg |
| 31–50 years | 420 mg | 320 mg | 360 mg | 320 mg |
| 51+ years | 420 mg | 320 mg |
Free guide: The Green Mineral Smoothie. One simple recipe that gives you about half your daily calcium, magnesium and potassium in a single glass, with the real numbers behind it. Get the free 7-page guide.
Best food sources of magnesium
Seeds, nuts, beans, whole grains and leafy greens are the richest sources. Your body absorbs roughly 30–40% of the magnesium in food.
| Food | Serving | Magnesium | % Daily Value |
|---|---|---|---|
| Pumpkin seeds, roasted | 1 oz | 156 mg | 37% |
| Chia seeds | 1 oz | 111 mg | 26% |
| Almonds, dry roasted | 1 oz | 80 mg | 19% |
| Spinach, boiled | ½ cup | 78 mg | 19% |
| Cashews, dry roasted | 1 oz | 74 mg | 18% |
| Peanuts, oil roasted | ¼ cup | 63 mg | 15% |
| Shredded wheat cereal | 2 biscuits | 61 mg | 15% |
| Soymilk | 1 cup | 61 mg | 15% |
| Black beans, cooked | ½ cup | 60 mg | 14% |
| Edamame, cooked | ½ cup | 50 mg | 12% |
| Peanut butter | 2 tbsp | 49 mg | 12% |
| Potato, baked with skin | 3.5 oz | 43 mg | 10% |
Want a longer list? See the 49 foods high in magnesium, ranked, foods high in calcium, potassium and magnesium and foods rich in chromium and magnesium.
Too little magnesium
Healthy people rarely become deficient from diet alone, because the kidneys hold on to magnesium when intake is low. The people most at risk are those with gut conditions such as Crohn’s or celiac disease, people with type 2 diabetes, people who drink heavily, and older adults.
Early signs are loss of appetite, nausea, tiredness and weakness. As it gets worse it can cause numbness, tingling, muscle cramps, abnormal heart rhythms and even seizures, and it can pull down calcium and potassium levels too.
Too much magnesium
Magnesium from food is safe because healthy kidneys remove the extra. The 350 mg upper limit applies to supplements and medicines such as laxatives and antacids. Going over it often causes diarrhea, nausea and stomach cramps. Very high doses, especially with kidney problems, can cause low blood pressure, an irregular heartbeat and worse. Read more in can you overdose on magnesium?
Magnesium supplements: what to know
- Forms: citrate, chloride, lactate and aspartate appear to be absorbed better than oxide and sulfate. Labels list the amount of elemental magnesium.
- Timing: see morning or night? and morning or night?, plus how long magnesium stays in your body.
- Medicine interactions: separate magnesium from bisphosphonates (osteoporosis drugs) by at least 2 hours; take tetracycline or quinolone antibiotics at least 2 hours before or 4–6 hours after magnesium. Some diuretics raise or lower magnesium, and long-term use of acid-reflux medicines (PPIs) can cause low magnesium.
Frequently asked questions
Is magnesium a major or trace mineral?
Magnesium is a major mineral: adults need more than 100 mg a day. See major minerals.
Does magnesium help with sleep or stress?
Magnesium helps muscles and nerves relax, which is why it’s often linked to sleep and stress. If you’re low, getting enough may help you feel better, but supplements aren’t a proven treatment for insomnia or anxiety in people who already get enough.
Does coffee deplete magnesium?
Caffeine slightly increases how much magnesium you lose in urine, but moderate coffee drinking is unlikely to cause a deficiency on its own. See does coffee deplete magnesium?
Can I take magnesium while breastfeeding?
Breastfeeding women need 310–320 mg a day, which most can get from food. Ask your doctor before taking a supplement, and stay under the 350 mg supplement limit.
This article is for general information and isn’t medical advice. Talk to your doctor or pharmacist before taking supplements, especially if you have kidney disease or take medicine.
Source: NIH Office of Dietary Supplements, Magnesium Fact Sheet for Health Professionals.
Free · every two weeks
One surprising mineral fact, every two weeks
Like why bananas are slightly radioactive, or why your frying pan might be a supplement. Plain English, checked against NIH and USDA data. No hype.
Free. Unsubscribe any time. We never share your email. Privacy policy