Daily Magnesium Requirement Calculator (RDA by Age & Sex)
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.
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
- Inputs: Male, 35 years old.
- RDA (31+): 420 mg/day.
- 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.
- Gap: ~92 mg → covered by a small glycinate or citrate supplement.
How it works
2 min readHow 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.
| Group | Age | mg/day |
|---|---|---|
| Children (both) | 1–3 | 80 |
| Children (both) | 4–8 | 130 |
| Children (both) | 9–13 | 240 |
| Males | 14–18 | 410 |
| Males | 19–30 | 400 |
| Males | 31+ | 420 |
| Females | 14–18 | 360 |
| Females | 19–30 | 310 |
| Females | 31+ | 320 |
| Pregnancy | 14–18 | 400 |
| Pregnancy | 19–30 | 350 |
| Pregnancy | 31+ | 360 |
| Lactation | 14–18 | 360 |
| Lactation | 19–30 | 310 |
| Lactation | 31+ | 320 |
Source: NIH Office of Dietary Supplements, IOM Dietary Reference Intakes.
Magnesium-Rich Foods (mg per 100 g)
| Food | Mg (mg/100 g) | Typical Serving | Mg per Serving |
|---|---|---|---|
| Pumpkin seeds (dried) | 535 | 30 g | ~160 mg |
| Cocoa powder (pure) | 500 | 10 g (1 tsp) | ~50 mg |
| Wheat bran | 611 | 15 g | ~92 mg |
| Almonds | 270 | 30 g | ~80 mg |
| Cashews | 292 | 30 g | ~88 mg |
| Black beans (cooked) | 171 | 130 g (½ cup) | ~120 mg |
| Spinach (cooked) | 87 | 90 g (½ cup) | ~78 mg |
| Dark chocolate 70% | 228 | 30 g | ~68 mg |
| Avocado | 29 | 150 g | ~44 mg |
| Banana | 27 | 120 g (1 medium) | ~32 mg |
Magnesium Supplement Forms: Which to Choose
| Form | Best For | Absorption |
|---|---|---|
| Glycinate | Sleep, anxiety, cramps | High — no laxative effect |
| Citrate | Constipation, general use | High |
| Malate | Fatigue, fibromyalgia | High |
| L-threonate | Cognitive function | High — crosses blood-brain barrier |
| Oxide | Laxative only | Low (≤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
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.