How Much Daily Magnesium: Dosage by Age and Sex

Most adults need between 310 and 420 mg of magnesium per day, depending on age and sex. Men generally need more than women, and the requirement shifts slightly as you get older. That single number is the starting point, but how you get there, what form you take, and what might be blocking absorption all matter.

Daily Magnesium by Age and Sex

The recommended daily amount varies more than most people expect. Here’s what the NIH recommends across life stages:

  • Children 1–3 years: 80 mg
  • Children 4–8 years: 130 mg
  • Children 9–13 years: 240 mg
  • Teen boys 14–18: 410 mg
  • Teen girls 14–18: 360 mg
  • Men 19–30: 400 mg
  • Men 31 and older: 420 mg
  • Women 19–30: 310 mg
  • Women 31 and older: 320 mg
  • Pregnant women: 350–400 mg (varies by age)

The gap between men and women is about 100 mg per day, which is roughly the amount in a quarter cup of pumpkin seeds. For most adults, hitting 400 mg is a reasonable daily target to keep in mind.

Best Food Sources

Getting magnesium from food is the most efficient route because your body absorbs it alongside other nutrients that help it work. Seeds and nuts are the most concentrated sources. A single ounce of pumpkin seeds delivers around 150 mg, nearly half the daily target for most adults. Almonds, cashews, and peanuts each provide 60 to 80 mg per ounce. Spinach is another standout: half a cup of cooked spinach contains roughly 78 mg.

Whole grains, black beans, edamame, and dark chocolate (70% cacao or higher) all contribute meaningful amounts. Even a medium banana or a cup of milk adds 30 to 40 mg. The challenge is that many people eat a diet heavy in processed foods, which strips magnesium during manufacturing. If your meals regularly include nuts, leafy greens, and whole grains, you’re likely close to your target already.

One thing to be aware of: phytic acid, found naturally in whole grains, seeds, and legumes, can reduce magnesium absorption. This doesn’t mean you should avoid those foods (they’re some of the best magnesium sources), but it does mean that the amount listed on a nutrition label isn’t exactly what your body takes in. Soaking beans and grains before cooking reduces phytic acid and improves absorption.

Choosing a Supplement Form

If your diet falls short, supplements can fill the gap, but the form you choose changes how your body responds. The main options break down like this:

  • Magnesium citrate: Well absorbed and widely available. It has a mild laxative effect, which is helpful if you tend toward constipation but inconvenient if you don’t.
  • Magnesium glycinate: Gentler on the stomach and less likely to cause loose stools. Often recommended for people with sensitive digestion.
  • Magnesium oxide: The cheapest option on most shelves, but your body absorbs it less efficiently. You may need a higher dose to get the same benefit.
  • Chelated magnesium: Bonded to amino acids, which generally improves absorption compared to non-chelated forms. Magnesium glycinate is one example of a chelated form.

For most people, magnesium citrate or glycinate strikes the best balance between cost, absorption, and tolerability. If you’re primarily looking for digestive regularity, citrate pulls double duty. If sleep or relaxation is the goal, glycinate is the more common choice because it’s less likely to send you to the bathroom.

The Upper Limit for Supplements

Magnesium from food is not a concern for overdoing it. Your kidneys handle any excess easily. Supplements are a different story. The tolerable upper limit for supplemental magnesium (meaning magnesium from pills, powders, or drinks, not food) is 350 mg per day for adults. Going above that doesn’t cause problems for everyone, but it increases the risk of diarrhea, nausea, and cramping.

This is an important distinction. Your total daily intake from food plus supplements can safely exceed 350 mg. The cap applies only to the supplemental portion. So if you’re eating 250 mg from food and taking a 200 mg supplement, your total is 450 mg, but only 200 mg is supplemental, which is well within the safe range.

Magnesium for Sleep and Muscle Cramps

Two of the most common reasons people search for magnesium dosing are sleep quality and muscle cramps. The evidence is real but nuanced.

For sleep, a randomized placebo-controlled trial found that adults taking magnesium daily for two weeks showed significant improvements in sleep duration, deep sleep, and sleep efficiency compared to placebo. Mood and heart rate variability also improved. However, self-reported measures of anxiety and perceived stress didn’t reach statistical significance in that study, suggesting magnesium helps the physical mechanics of sleep more reliably than it reduces the feeling of being stressed.

For muscle cramps, the timeline matters more than the dose. A study of 184 people with nocturnal leg cramps found that taking magnesium oxide daily reduced cramp frequency from about 5.4 episodes per week to 1.9, but only after 60 days of consistent use. Short courses under two months showed no meaningful benefit. If you’re taking magnesium for cramps, patience is part of the treatment. The American Academy of Family Physicians notes that short-term supplementation shouldn’t be expected to help with nighttime leg cramps.

Signs You’re Not Getting Enough

Mild magnesium deficiency shows up as muscle cramps, twitching, fatigue, and weakness. Some people notice numbness or tingling in their hands and feet. These symptoms overlap with many other conditions, which is part of why low magnesium often goes unrecognized.

Severe deficiency is less common but more serious, potentially causing abnormal heart rhythms, seizures, or delirium. This level of depletion usually involves an underlying medical condition or medication that drains magnesium faster than normal.

Testing for magnesium deficiency is trickier than you might expect. Only about 1% of your body’s magnesium circulates in your blood. The rest is stored in bones (53%), muscle (27%), and organs (19%). A standard serum blood test measures what’s floating in the liquid portion of your blood, and a normal range falls between 1.46 and 2.68 mg/dL. But because so little magnesium lives in the blood, this test can come back normal even when your total body stores are low. A red blood cell (RBC) magnesium test measures the mineral inside your cells rather than floating around them, which some practitioners consider more sensitive. It’s less commonly ordered and more expensive, but it can catch deficiencies that serum tests miss.

Interactions With Medications

Magnesium can interfere with how your body absorbs certain medications. Bisphosphonates, a class of drugs used for osteoporosis, are particularly affected. Magnesium binds to these drugs in your gut and reduces how much gets into your system. If you take a bisphosphonate, take your magnesium supplement at least 30 minutes after the medication. Some antibiotics, particularly tetracyclines and fluoroquinolones, have the same issue. Spacing them two hours apart is the general practice.

Magnesium can also amplify the effects of blood pressure medications, potentially causing your pressure to drop too low. If you’re on any prescription drugs and considering a magnesium supplement, checking for interactions is worth the effort.