Magnesium Intake Calculator

Magnesium is an essential mineral involved in more than 300 enzyme reactions in the body, supporting muscle and nerve function, blood sugar control, blood pressure regulation, and bone health. Despite its importance, surveys show that large proportions of the US population fall short of the recommended daily intake. The RDA ranges from 80 mg/day for young children to 420 mg/day for adult men, with higher needs during pregnancy. The tolerable upper intake level (UL) for supplemental magnesium is 350 mg/day for adults. This calculator displays the NIH-recommended intake for your age and sex along with the supplemental upper limit, helping you understand whether you might benefit from dietary changes or supplementation.

310 mg/day
350 mg/day

Magnesium RDA values (NIH ODS 2022)

Adult males: 400 mg/day (19-30), 420 mg/day (31+)
Adult females: 310 mg/day (19-30), 320 mg/day (31+)
Supplemental UL (adults): 350 mg/day. No UL for food magnesium.

Magnesium: frequently asked questions

How much magnesium do adults need daily?

The NIH recommends: men 19-30 years: 400 mg/day; men 31+ years: 420 mg/day; women 19-30 years: 310 mg/day; women 31+ years: 320 mg/day; pregnant women: 350-360 mg/day; breastfeeding women: 310-320 mg/day. Children need 80-240 mg/day depending on age. Most Americans do not meet the RDA from food alone.

What does magnesium do in the body?

Magnesium is involved in over 300 enzyme reactions. It is essential for energy production (ATP synthesis), protein synthesis, muscle and nerve function, blood glucose regulation, blood pressure regulation, and bone development. About 60% of the body's magnesium is in bones. Low magnesium is linked to type 2 diabetes, heart disease, and migraines.

What foods are richest in magnesium?

Pumpkin seeds top the list at 156 mg per oz. Chia seeds provide 111 mg per oz. Almonds, cashews, and peanuts provide 60-82 mg per oz. Spinach provides 78 mg per half cup cooked. Black beans, edamame, and avocado are good plant-based sources. Dark chocolate (70-85%) provides about 65 mg per oz. Fish, chicken, and beef provide modest amounts.

Is it possible to get too much magnesium?

The tolerable upper intake level (UL) for supplemental magnesium is 350 mg/day for adults (not including food sources). Excess supplemental magnesium causes diarrhoea, nausea, and cramps. Very high doses from supplements can cause low blood pressure, irregular heartbeat, and in extreme cases respiratory arrest. The UL does not apply to magnesium from food.

Can magnesium help with sleep?

Some evidence suggests magnesium supplements may improve sleep quality, particularly in older adults and people with low magnesium levels. Magnesium regulates neurotransmitters and melatonin. However, the evidence is modest. The NIH notes that more research is needed. If you are considering magnesium supplements for sleep, discuss with your healthcare provider first.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.