Magnesium Calculator: How Much Magnesium Do You Need Per Day?

Get your personalized daily magnesium target in under 30 seconds — based on your sex, activity level, and diet.

Calculate My Magnesium Target
Step 1 of 1

Why Magnesium Matters

The baseline number

Adult RDAs are roughly 400–420mg/day for men and 310–320mg/day for women — many people fall short of this through diet alone.

Activity raises the bar

Sweat losses and higher muscle turnover during intense or frequent exercise increase magnesium needs above the baseline RDA.

Diet is the biggest variable

Leafy greens, nuts, seeds, and whole grains are the main dietary sources — a diet low in these foods is the most common driver of a magnesium gap.

How Your Daily Magnesium Target Is Calculated

This magnesium calculator starts from the adult Recommended Dietary Allowance (RDA) for your sex — 400 mg for men and 310 mg for women, the lower end of the adult ranges — and multiplies it by an activity factor from 1.0 to 1.3 to allow for the extra magnesium lost in sweat and used in muscle recovery. It then compares that target with a rough estimate of what your diet provides, based on how often you eat magnesium-rich foods: about 150 mg if you rarely do, 250 mg sometimes, and 350 mg most days.

For example, a woman who is active (×1.2) and eats magnesium-rich foods sometimes has a target of 310 × 1.2 = 372 mg per day, and an estimated gap of 372 − 250 = 122 mg. These are estimates, not lab measurements — a blood test ordered by a healthcare provider is the accurate way to assess magnesium status.

Magnesium RDA by age and life stage (NIH Office of Dietary Supplements)
GroupAgeRDA (mg/day)
Adult men19–30400
Adult men31 and older420
Adult women19–30310
Adult women31 and older320
Pregnancy19–30 / 31–50350 / 360
Breastfeeding19–30 / 31–50310 / 320

Foods high in magnesium

Most of your magnesium should come from food. Approximate amounts per serving:

Magnesium content of common foods (approximate)
FoodServingMagnesium
Pumpkin seeds, roasted1 oz (28 g)≈ 156 mg
Chia seeds1 oz (28 g)≈ 111 mg
Almonds, dry roasted1 oz (28 g)≈ 80 mg
Spinach, boiled½ cup≈ 78 mg
Cashews, dry roasted1 oz (28 g)≈ 74 mg
Dark chocolate (70–85% cacao)1 oz (28 g)≈ 65 mg
Black beans, cooked½ cup≈ 60 mg
Edamame, shelled, cooked½ cup≈ 50 mg

Choosing and using a magnesium supplement

  • Form matters. Magnesium glycinate is bound to the amino acid glycine and is generally well tolerated. Forms such as oxide and citrate are more likely to have a laxative effect.
  • Mind the upper limit. The tolerable upper intake level for magnesium from supplements and medications is 350 mg per day for adults. It does not apply to magnesium from food.
  • Check with a professional first if you have kidney disease, are pregnant or breastfeeding, or take medication such as certain antibiotics or diuretics.

Magnesium is often discussed alongside rest and recovery, so you may also like our sleep calculator for finding the ideal bedtime, and the micronutrient gap calculator to see how your overall diet stacks up.

Common Magnesium Questions

What are the signs of low magnesium?

Commonly reported signs associated with low magnesium intake include muscle cramps, fatigue, and difficulty sleeping. These signs can have many causes, so they're not a reliable way to self-diagnose a deficiency — a blood test from a healthcare provider is the accurate way to confirm magnesium status.

How much magnesium should I take a day?

The RDA is roughly 400–420mg/day for adult men and 310–320mg/day for adult women, though individual needs vary with diet, activity level, and other factors. Use the calculator above for a personalized estimate.

Why do I crave chocolate — is that a magnesium sign?

Chocolate craving is sometimes discussed as a possible magnesium-related signal, since cacao is relatively high in magnesium, but cravings have many drivers (stress, habit, blood sugar) and aren't a reliable indicator on their own.

Can a magnesium supplement help close a dietary gap?

If your diet consistently falls short of your calculated target, a magnesium glycinate supplement is a convenient way to help close the gap — each capsule of Anivol Magnesium Glycinate provides 275mg.

Which type of magnesium is best for sleep?

Magnesium glycinate is often chosen for evening use because it is generally well tolerated and less likely to cause digestive upset than forms like oxide or citrate. Evidence that any form of magnesium improves sleep is limited, so it is best seen as a way to support your intake rather than as a sleep aid.

What is the best time of day to take magnesium?

There is no single best time. Many people take it with a meal or in the evening, and taking it with food can reduce stomach upset. Taking it consistently matters more than the exact timing.

Can you take too much magnesium?

Magnesium from food is not a concern for healthy people because the kidneys clear the excess. From supplements, the upper limit for adults is 350 mg per day; higher doses can cause diarrhea, nausea and cramping, and people with kidney problems should be especially cautious. Check with a healthcare provider before supplementing.

How much magnesium do women need per day?

The RDA for adult women is 310 mg for ages 19 to 30 and 320 mg for ages 31 and older, rising to 350 to 360 mg during pregnancy. The calculator's Female option uses 310 mg as the baseline and adjusts it for your activity level.

What foods are high in magnesium?

Pumpkin seeds, chia seeds, almonds, spinach, cashews, black beans, edamame and dark chocolate are among the richest sources. Whole grains and leafy greens also contribute, which is why a diet low in these foods is the most common driver of a magnesium gap.

Sources and Disclaimer

Last updated: September 2026.

This page is for general educational purposes and is not medical advice. Results are estimates based on the information you enter. Talk to a doctor or registered dietitian before making significant changes to your diet or starting a supplement, particularly if you are pregnant, breastfeeding, have a medical condition, or take medication. These statements have not been evaluated by the Food and Drug Administration. Anivol products are not intended to diagnose, treat, cure, or prevent any disease.