How to Replace Magnesium: Foods, Supplements & Dosage

The most effective way to replace magnesium is through a combination of magnesium-rich foods and, when needed, a well-absorbed supplement. Most adults need between 310 and 420 mg of magnesium per day depending on age and sex, and falling short is common because modern diets lean heavily on processed foods that have had much of their mineral content stripped away.

Start With High-Magnesium Foods

Food is the safest and most balanced way to raise your magnesium levels. Unlike supplements, magnesium from food won’t cause digestive side effects, and it comes packaged with other nutrients that support absorption. Seeds, nuts, and legumes are the richest sources by far. Here’s what the top foods deliver per serving:

  • Pumpkin seeds (1 oz, roasted): 156 mg, covering 37% of your daily value
  • Chia seeds (1 oz): 111 mg
  • Almonds (1 oz, dry roasted): 80 mg
  • Spinach (½ cup, cooked): 78 mg
  • Cashews (1 oz, dry roasted): 74 mg
  • Peanuts (¼ cup, oil roasted): 63 mg
  • Black beans (½ cup, cooked): 60 mg
  • Edamame (½ cup, cooked): 50 mg

A single ounce of pumpkin seeds plus a half cup of cooked spinach gets you past 200 mg in just two additions to your day. Scatter pumpkin seeds on a salad, snack on almonds, or add black beans to a grain bowl and you can hit your target without much effort. Dark chocolate (with 70% or higher cacao) is another surprisingly good source, typically offering around 65 mg per ounce.

Choosing the Right Supplement Form

If food alone isn’t enough, or if you’ve been told your levels are low, a supplement can close the gap. But not all magnesium supplements are created equal. The difference comes down to what the magnesium is bound to, which determines how much your body actually absorbs.

Organic forms of magnesium (bound to compounds like citrate or glycinate) consistently outperform inorganic forms (like magnesium oxide) in absorption studies. In one comparison, a supplement containing organic magnesium salts with 196 mg of elemental magnesium produced significantly higher blood levels than a magnesium oxide tablet containing 450 mg. More than double the magnesium went in, yet less made it into the bloodstream. Magnesium oxide had the worst absorption efficiency in both lab testing and human trials.

Here’s a practical breakdown of the most common forms:

  • Magnesium citrate: Well absorbed, widely available, and often used when digestive regularity is also a goal. It has a mild laxative effect at higher doses.
  • Magnesium glycinate: Equally well absorbed, with a calming effect that makes it popular for sleep support. Less likely to cause loose stools than citrate.
  • Magnesium oxide: Contains a high amount of elemental magnesium per pill but absorbs poorly. Most of it passes through your system unabsorbed. It works as a laxative, but it’s not an efficient way to raise your body’s magnesium stores.

If your main goal is correcting a deficiency, magnesium citrate or glycinate will do more for you at a lower dose than oxide.

When and How to Take It

Timing depends partly on why you’re taking it. Magnesium glycinate taken one to two hours before bed can help relax muscles and improve sleep quality. If you’re using magnesium citrate for its digestive benefits, evening may be more convenient. Morning doses of either form can support energy and stress management without causing significant drowsiness, though some people find glycinate mildly relaxing. Splitting your dose between morning and evening is safe and lets you target different benefits throughout the day.

Taking magnesium with food generally improves absorption slightly and reduces the chance of stomach upset. That said, compounds in certain high-fiber foods (called phytates and oxalates) can bind to magnesium and reduce how much you absorb. The amounts present in a normal diet typically aren’t enough to matter, but if you’re taking your supplement alongside a very high-fiber meal with lots of whole grains or bran, spacing them apart slightly may help.

Signs Your Magnesium Is Low

Mild magnesium deficiency often produces no obvious symptoms, which is part of what makes it easy to miss. Early signs tend to be vague: fatigue, weakness, loss of appetite, and nausea. As levels drop further, the nervous system becomes increasingly excitable. Muscle cramps, spasms, and tremors are often the first clearly noticeable symptoms. Some people experience mood changes including increased anxiety, irritability, or low mood.

More significant depletion (typically when blood levels fall below about 1.2 mg/dL) can trigger numbness, tingling, and even heart rhythm irregularities. About 60% of people with low magnesium also develop low potassium, and low calcium often accompanies it as well, because magnesium is needed to regulate both. This is why persistent muscle cramps that don’t respond to potassium or calcium sometimes turn out to be a magnesium problem.

Medications That Interfere With Magnesium

Several common medications either deplete magnesium or compete with magnesium supplements for absorption. If you take any of the following, timing matters:

  • Tetracycline and fluoroquinolone antibiotics (like doxycycline, minocycline, and ciprofloxacin) bind to magnesium in the stomach, reducing how well the antibiotic works. Take these at least two hours before or four to six hours after magnesium.
  • Bisphosphonates for bone health (like alendronate and risedronate) also have their absorption reduced by magnesium. A two-hour gap before or after is the general guideline, though some bisphosphonates require an even longer window.
  • Penicillamine, used for conditions like Wilson’s disease and rheumatoid arthritis, absorbs less effectively when taken alongside magnesium. Separate them by at least one hour.
  • Certain aminoglycoside antibiotics (like gentamicin) can cause your kidneys to dump extra magnesium into your urine, potentially worsening a deficiency.

If you’re on any of these, don’t stop either medication. Just adjust the timing so they aren’t competing in your gut at the same time.

Do Epsom Salt Baths Work?

Epsom salt baths are widely promoted as a way to absorb magnesium through the skin, but the scientific support for this is thin. One frequently cited study found that soaking in Epsom salts for 12 minutes over seven days appeared to raise blood magnesium levels. However, that study was published only on the Epsom Salt Council’s commercial website, not in a peer-reviewed journal. A systematic review in the journal Nutrients concluded that the promotion of transdermal magnesium is “scientifically unsupported.”

Epsom salt baths may feel relaxing, and warm water on its own can ease muscle tension. But if you need to meaningfully raise your magnesium levels, oral sources (food and supplements) remain the only well-documented route.

How Much Is Too Much

You can’t realistically overdose on magnesium from food alone, because your kidneys efficiently clear any excess. The risk comes from supplements. The tolerable upper limit for supplemental magnesium in adults is 350 mg per day. Beyond that, the most common side effect is diarrhea, cramping, and nausea, which is why magnesium citrate in particular is sometimes used as a laxative at higher doses. If you need more than 350 mg from supplements (as some people with significant deficiency do), splitting the dose across two or three smaller servings throughout the day reduces the chance of digestive discomfort and improves overall absorption.