Health

Calculate Your Daily Magnesium Needs

Calculator Free · Private
Reviewed by: (política editorial ) · Last reviewed:
years
Was this calculator helpful?

Magnesium participates in over 300 enzyme reactions: ATP production, protein synthesis, muscle contraction, heart rhythm, and neurological function. The IOM RDA is 320 mg/day for women and 420 mg/day for men (ages 19–50). An estimated 50% of the U.S. population consumes less than the RDA—a similar figure in Argentina. Deficiency is linked to muscle cramps, insomnia, migraines, insulin resistance, hypertension, and osteoporosis. This calculator gives your personalized daily dose based on age and sex, plus supplementation forms: citrate for constipation, glycinate for sleep, malate for fatigue. Prioritize food sources: almonds (270mg/100g), spinach (79mg), cocoa (500mg), beans (130mg).

Last reviewed: April 27, 2026 Verified by Source: NIH - Office of Dietary Supplements, NIH Magnesium Fact Sheet, Harvard T.H. Chan School of Public Health 100% private

When to use this calculator

  • Muscle cramps.
  • Insomnia or poor sleep.
  • Migraines.
  • Insulin resistance.
  • Chronic stress.

Example: 35-Year-Old Male

  1. Data: Male, 35 years old.
  2. RDA 19–30: 400 mg; 31–50: 420 mg.
  3. Reach it: 30g almonds (80mg) + 1 cup spinach (80mg) + 1 tsp cocoa (80mg) + 1 cup beans (130mg) = 370 mg + 50mg supplement.
Result: You need 420 mg/day. With nuts + vegetables + legumes you'll hit ~90%, the rest from dark chocolate or a supplement.

How it works

1 min read

What Is Magnesium?

A mineral cofactor in over 300 enzymatic reactions.

IOM RDA Guidelines

Age Groupmg/day
Men 19–30400
Men 31+420
Women 19–30310
Women 31+320
Pregnancy350–400
Lactation310–360

Top Magnesium Foods

FoodMagnesium (mg/100g)
Pumpkin seeds535
Dark chocolate (70%)228
Almonds270
Cocoa powder500
Cooked spinach79
Cashews292
Black beans171
Avocado29
Banana27

Magnesium Supplement Forms

FormBest ForAbsorption
CitrateConstipation reliefHigh
GlycinateSleep & anxietyHigh, no laxative effect
MalateEnergy & fatigueHigh
OxideGeneral laxativeLow (40%)
L-threonateCognitive supportHigh, crosses BBB

Health Benefits

  • Fewer muscle cramps.

  • Better deep sleep.

  • 22% reduction in migraine frequency.

  • Improved HbA1c.

  • Lower blood pressure.
  • Common Mistakes

    1. Cheap magnesium oxide (poor absorption).
    2. Taking high doses at once (causes diarrhea).
    3. Relying only on chocolate.
    4. Taking with antibiotics (interferes with absorption).

    Related Calculators

  • Daily Potassium Calculator.

  • Daily Calcium Calculator.

  • Pre/Post Workout Electrolytes.
  • Consult a doctor if you take diuretics or proton pump inhibitors (PPIs).

    Frequently asked questions

    How much magnesium do I need daily?

    320 mg for women / 420 mg for men (ages 19–50). Requirements vary by life stage.

    What's the best form of magnesium supplement?

    Glycinate for sleep; citrate for constipation. Avoid oxide (only 40% absorption).

    Should I take a magnesium supplement?

    Yes, if you eat few vegetables or nuts. 200–400 mg daily is safe for most people.

    Can magnesium help with muscle cramps?

    Yes—deficiency is a common cause. 300 mg/day often resolves cramping.

    Does magnesium improve sleep quality?

    Yes. Glycinate and L-threonate are best for sleep quality and duration.

    What are the side effects of magnesium?

    High doses cause diarrhea. Max 350 mg/day as a supplement (tolerable upper limit).

    What foods are highest in magnesium?

    Pumpkin seeds (535mg/100g), cocoa powder (500mg), almonds (270mg), black beans (171mg).

    Does magnesium interact with medications?

    Yes: PPIs, thiazide diuretics, and antibiotics (quinolones, tetracyclines) can interfere with absorption.

    Sources and references