The fastest way to replenish magnesium is through a combination of magnesium-rich foods and, if needed, a well-absorbed supplement. Most adults need between 310 and 420 mg of magnesium per day depending on age and sex, and surveys consistently show that a large portion of the population falls short. The good news is that a few targeted dietary swaps can close the gap quickly, and supplements can fill in the rest.
Best Food Sources of Magnesium
Food is the most efficient starting point because magnesium from whole foods comes packaged with other nutrients that support absorption. A single ounce of roasted pumpkin seeds delivers 156 mg of magnesium, nearly half of most people’s daily need in one handful. An ounce of dry-roasted almonds provides 80 mg, and half a cup of cooked spinach adds another 78 mg. Between those three foods alone, you’re already close to a full day’s intake.
Other reliable sources include black beans, cashews, edamame, peanut butter, avocado, and dark chocolate (look for 70% cacao or higher). Brown rice, oatmeal, and whole wheat bread contribute smaller but meaningful amounts. Building a few of these into your daily meals, a handful of pumpkin seeds on yogurt, spinach in a smoothie, almonds as a snack, can shift your magnesium intake substantially within a week.
Choosing a Magnesium Supplement
If food alone isn’t enough, supplements can help, but the form you choose matters. Chelated magnesium, meaning magnesium bonded to amino acids, is generally better absorbed than non-chelated forms. The three most common options on store shelves each have distinct advantages.
- Magnesium glycinate is well absorbed and gentle on the stomach. It’s a good default choice if you have normal digestion or are prone to loose stools from supplements.
- Magnesium citrate is also well absorbed but has a mild laxative effect. If you tend toward constipation, this can serve double duty.
- Magnesium oxide is the cheapest and most widely available form, but your body absorbs it less efficiently. You may need a higher dose to get the same benefit, and it’s more likely to cause digestive upset.
A reasonable supplemental dose for most people is 200 to 350 mg per day, taken with food. Splitting the dose (morning and evening) can improve absorption and reduce the chance of stomach issues. The upper limit for supplemental magnesium (not counting what you get from food) is 350 mg per day for adults. Going above that doesn’t speed up replenishment; it mainly increases the risk of diarrhea, nausea, and cramping.
What Blocks Magnesium Absorption
Certain compounds in food can reduce how much magnesium your body actually takes in. Phytates, found naturally in whole grains, seeds, legumes, and some nuts, bind to magnesium in the gut and limit absorption. This doesn’t mean you should avoid these foods. Many of them are magnesium-rich themselves, and the net effect is still positive. Soaking beans and grains before cooking reduces phytate content if you want to maximize uptake.
Taking large doses of calcium supplements at the same time as magnesium can also create competition for absorption. If you take both, spacing them a few hours apart is a simple fix. Alcohol increases magnesium excretion through the kidneys, so heavy or regular drinking can quietly drain your levels even if your diet looks adequate on paper.
Medications That Deplete Magnesium
Some of the most commonly prescribed medications actively pull magnesium out of your body. Diuretics, particularly the thiazide and loop types often prescribed for blood pressure, increase magnesium loss through the kidneys. Proton pump inhibitors (PPIs) like omeprazole and pantoprazole, used for acid reflux, interfere with magnesium absorption in the gut. Long-term PPI use has been linked to clinically low magnesium levels. Certain antibiotics and chemotherapy drugs can also contribute to depletion.
If you take any of these medications regularly, your baseline magnesium needs are higher than average. Paying extra attention to dietary intake and considering a supplement is worth discussing with whoever manages your prescriptions.
Nutrients That Help Magnesium Work
Magnesium doesn’t operate in isolation. It plays a critical role in activating vitamin D: every enzyme involved in converting vitamin D into its usable form requires magnesium as a cofactor. If your magnesium is low, your body can’t properly use the vitamin D you’re getting from sunlight or supplements. This relationship runs both ways, since vitamin D also influences how your body handles magnesium. Replenishing one without addressing the other can leave you stuck.
Vitamin B6 may also support magnesium transport into cells, which is why some combination supplements pair the two. Eating a varied diet with leafy greens, nuts, seeds, and adequate protein generally covers these synergistic nutrients without extra planning.
Does Magnesium Oil or Epsom Salt Work?
Magnesium sprays, lotions, and Epsom salt baths are marketed as an easy way to absorb magnesium through the skin. The clinical evidence does not support this. A review published in the journal Nutrients concluded that the promotion of transdermal magnesium is “scientifically unsupported.” Studies by the Israeli military using a magnesium-containing lotion found that magnesium did not cross the skin barrier in animal models. A small human trial that claimed positive results involved only nine people, used hair mineral analysis (a method considered unreliable for measuring total body magnesium), and was never fully published beyond a conference abstract.
Epsom salt baths may feel relaxing, and there’s nothing wrong with enjoying them. But if your goal is to raise your magnesium levels, oral intake through food or supplements is the only well-documented path.
How Long Replenishment Takes
Mild dietary shortfalls can improve within a few weeks of consistent changes to food and supplementation. More significant depletion, especially the kind driven by long-term medication use or chronic conditions, can take six to twelve weeks of steady intake to fully correct. Your body stores magnesium primarily in bones and soft tissue, and refilling those reserves is a slower process than correcting what’s circulating in your blood.
Consistency matters more than dose size. Taking a moderate amount daily is more effective than taking large sporadic doses, which your kidneys will simply filter out. Pairing a supplement with two or three magnesium-rich foods each day is the most reliable strategy for bringing levels back to where they should be.

