Health

Daily Magnesium Requirement Calculator (RDA by Age & Sex)

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 310–320 mg/day for women and 400–420 mg/day for men, depending on age. An estimated 50% of the U.S. population consumes less than the RDA. Deficiency is linked to muscle cramps, insomnia, migraines, insulin resistance, hypertension, and osteoporosis. Enter your age and sex to find your exact daily target, plus the best supplement form for your goals.

Last reviewed: June 3, 2026 Verified by Source: NIH Magnesium Fact Sheet for Health Professionals, NIH — Office of Dietary Supplements, Harvard T.H. Chan School of Public Health — The Nutrition Source: Magnesium 100% private

The magnesium RDA is **320 mg/day for women** and **420 mg/day for men** aged 31+. For men aged 19–30 it is 400 mg; for women 19–30 it is 310 mg. Teens (14–18) need 360 mg (women) and 410 mg (men). Source: NIH Institute of Medicine.

When to use this calculator

  • Frequent muscle cramps.
  • Insomnia or unrestorative sleep.
  • Migraines.
  • Insulin resistance or pre-diabetes.
  • Chronic stress or anxiety.
  • Mild hypertension.
  • Osteoporosis prevention.

Example: 35-Year-Old Male

  1. Inputs: Male, 35 years old.
  2. RDA (31+): 420 mg/day.
  3. Reach it with food: 30 g almonds (80 mg) + ½ cup cooked spinach (78 mg) + 1 tsp cocoa powder (50 mg) + ½ cup black beans (120 mg) = 328 mg.
  4. Gap: ~92 mg → covered by a small glycinate or citrate supplement.
Result: You need 420 mg/day. A varied diet of nuts, leafy greens, and legumes covers ~78%; the remainder is easily met with dark chocolate or a low-dose supplement.

How it works

2 min read

How Much Magnesium Do You Need? Full RDA Table

The Recommended Dietary Allowance (RDA) is the intake sufficient to meet the needs of 97–98% of healthy individuals in each group.

GroupAgemg/day
Children (both)1–380
Children (both)4–8130
Children (both)9–13240
Males14–18410
Males19–30400
Males31+420
Females14–18360
Females19–30310
Females31+320
Pregnancy14–18400
Pregnancy19–30350
Pregnancy31+360
Lactation14–18360
Lactation19–30310
Lactation31+320

Source: NIH Office of Dietary Supplements, IOM Dietary Reference Intakes.

Magnesium-Rich Foods (mg per 100 g)

FoodMg (mg/100 g)Typical ServingMg per Serving
Pumpkin seeds (dried)53530 g~160 mg
Cocoa powder (pure)50010 g (1 tsp)~50 mg
Wheat bran61115 g~92 mg
Almonds27030 g~80 mg
Cashews29230 g~88 mg
Black beans (cooked)171130 g (½ cup)~120 mg
Spinach (cooked)8790 g (½ cup)~78 mg
Dark chocolate 70%22830 g~68 mg
Avocado29150 g~44 mg
Banana27120 g (1 medium)~32 mg

Magnesium Supplement Forms: Which to Choose

FormBest ForAbsorption
GlycinateSleep, anxiety, crampsHigh — no laxative effect
CitrateConstipation, general useHigh
MalateFatigue, fibromyalgiaHigh
L-threonateCognitive functionHigh — crosses blood-brain barrier
OxideLaxative onlyLow (≤40%) — avoid

Safe supplement dose: 200–350 mg/day. The Tolerable Upper Intake Level (UL) from supplements is 350 mg/day (dietary magnesium has no UL).

Health Benefits Backed by Evidence

  • Muscle cramps: deficiency is a common cause; 300 mg/day often resolves cramping.

  • Sleep quality: improves deep sleep (N3 stage) via GABA receptor activity.

  • Migraines: reduces frequency by ~22% in deficient individuals.

  • Blood sugar: improves insulin sensitivity and HbA1c.

  • Blood pressure: lowers systolic/diastolic in hypertensive patients with low magnesium.
  • Common Mistakes

    1. Buying cheap magnesium oxide (only ~40% bioavailable).
    2. Taking the full dose at once — causes diarrhea.
    3. Assuming diet alone is sufficient when eating few vegetables.
    4. Taking magnesium with antibiotics (quinolones, tetracyclines) — reduces antibiotic absorption. Space by 2 hours.

    Consult a doctor if you take diuretics or proton pump inhibitors (PPIs), as both can deplete magnesium.

    Frequently asked questions

    How much magnesium do I need per day?

    The RDA is 320 mg/day for women (310 mg ages 19–30) and 420 mg/day for men (400 mg ages 19–30). Teens 14–18 need 360 mg (female) and 410 mg (male). Source: NIH Institute of Medicine.

    What is the best magnesium supplement for sleep?

    Magnesium glycinate is the top choice for sleep: highly bioavailable and no laxative effect. L-threonate also supports deep sleep and cognition. Typical dose: 200–300 mg taken 1 hour before bed.

    Does magnesium help with muscle cramps?

    Yes — magnesium deficiency is one of the most common causes of muscle cramps. Supplementing 300 mg/day of citrate or glycinate typically reduces cramping within 2–4 weeks. Also rule out low potassium or sodium.

    How much elemental magnesium is in each supplement type?

    It varies by salt: glycinate ~14% elemental Mg (500 mg capsule ≈ 70 mg Mg); citrate ~16%; oxide ~60% but very low absorption. Always check the label for milligrams of elemental magnesium, not total salt weight.

    Which foods have the most magnesium?

    Pumpkin seeds (535 mg/100 g), cocoa powder (500 mg), wheat bran (611 mg), cashews (292 mg), almonds (270 mg), black beans cooked (171 mg), and cooked spinach (87 mg). A diet rich in nuts, seeds, legumes, and leafy greens covers ~80–90% of the RDA.

    Can magnesium help with migraines?

    Yes. Clinical trials show that 400–600 mg/day of magnesium citrate reduces migraine frequency by ~22% in people with deficiency. The American Headache Society recommends it as a first-line preventive supplement.

    What are the side effects of magnesium supplements?

    Doses above 350 mg/day from supplements can cause diarrhea (oxide has the highest laxative effect). People with kidney disease should not supplement without medical supervision, as the kidneys regulate magnesium excretion.

    Does magnesium interact with medications?

    Yes: PPIs (omeprazole, pantoprazole) reduce magnesium absorption with long-term use. Thiazide diuretics increase urinary excretion. Quinolone and tetracycline antibiotics should be taken 2 hours apart from magnesium to avoid reduced drug absorption.

    Can a blood test measure my magnesium level accurately?

    Standard serum magnesium reflects only ~1% of total body magnesium — you can be deficient at the cellular level with a normal serum result. The more accurate test is erythrocyte (red blood cell) magnesium. Target: 5.5–7 mg/dL. Ask your doctor if you suspect deficiency.

    Sources and references