Magnesium Intake Calculator

Calculate recommended daily magnesium intake by age and sex.
Returns the NIH daily target in mg for men, women, teens, pregnant, and lactating adults.

Your data stays in your browser. We do not store, collect, or transmit any information you enter.
Recommended Daily Magnesium

How Magnesium Intake Is Calculated

Magnesium is involved in over 300 enzymatic reactions, including energy production, muscle function, and protein synthesis. How much you need depends on age, sex, and life stage.

Recommended Dietary Allowances (RDA) for Magnesium, from the NIH:

Group RDA (mg/day)
Teens 14-18, male 410 mg
Teens 14-18, female 360 mg
Men 19-30 400 mg
Men 31+ 420 mg
Women 19-30 310 mg
Women 31+ 320 mg
Pregnant, 14-18 400 mg
Pregnant, 19-30 350 mg
Pregnant, 31+ 360 mg
Breastfeeding, 14-18 360 mg
Breastfeeding, 19-30 310 mg
Breastfeeding, 31+ 320 mg

Two adjustments this calculator applies on top of the RDA. Neither is an official figure, and both are rough, so treat them as a nudge rather than a target:

Factor Adjustment
Moderately active +10% of the RDA
Very active or athlete +20% of the RDA
Moderate stress +20 mg
High or chronic stress +40 mg

The reasoning behind them is real even if the numbers are approximate. Magnesium leaves the body in sweat and urine, and both rise with training volume. Chronic stress raises urinary magnesium excretion, which is the mechanism behind the widely repeated claim that stress depletes it.

Upper Tolerable Limit: 350 mg a day from supplements, and this is the number people get wrong most often. It applies to supplemental magnesium only. Magnesium from food has no upper limit, because the gut absorbs a smaller fraction when intake is high and the kidneys clear the rest. So a 480 mg target is perfectly reachable through food while a 480 mg supplement is not a good idea. Too much supplemental magnesium causes diarrhea first, which is also why magnesium citrate is sold as a laxative.

Magnesium in Common Foods (mg per 100 g):

  • Pumpkin seeds: 550 mg (156 mg per ounce)
  • Almonds: 270 mg (77 mg per ounce)
  • Dark chocolate, 70%+: 228 mg
  • Spinach, cooked: 87 mg (157 mg per cooked cup)
  • Black beans: 70 mg
  • Avocado: 29 mg
  • Banana: 27 mg

Worked Example: A 35-year-old woman (RDA = 320 mg/day):

  • 30g almonds = 81 mg
  • 100g spinach = 87 mg
  • 100g black beans = 70 mg
  • 1 medium banana = 33 mg
  • Total: 271 mg, so about 49 mg short. A handful of pumpkin seeds closes it.

Note how easily food gets you there. That is the general case: magnesium deficiency severe enough to show on a blood test is uncommon in people eating a varied diet, and the far more common situation is a diet heavy in refined grains, where most of the magnesium is milled out.

Deficiency Signs: muscle cramps, fatigue, irregular heartbeat, anxiety, poor sleep. These are all non-specific, which is the problem. A serum magnesium test is also a poor guide, since less than 1% of body magnesium is in the blood and the body defends that level hard. If you suspect a real deficiency, that is a conversation with a doctor rather than a supplement bought on a hunch.


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.