Quick answer: Magnesium for muscle recovery has modest but real support: the mineral is essential for normal muscle contraction and energy production, and a 2024 review found supplementation reduced post-exercise muscle soreness in physically active people. The catch is that roughly half of adults in the United States fall short of the recommended magnesium intake before they ever train, so closing that gap with food sources like pumpkin seeds, almonds, leafy greens, and dark chocolate is a sensible place to start.
Magnesium has quietly become the mineral everyone seems to be talking about, turning up in sleep powders, electrolyte mixes, and the recovery routines of people who train hard. Some of that attention is hype and some of it is earned. The mineral sits at the center of how muscle fibers fire and relax and how cells turn food into usable energy, which is exactly why it keeps surfacing in conversations about soreness and bouncing back from exercise. The complication is that most people are already working from a shortfall before a workout begins. This piece walks through what magnesium does for recovery, what the recent evidence does and does not show, and the everyday foods that supply it.
What magnesium does in your muscles
Magnesium is a cofactor in more than 300 enzyme reactions, including the ones that produce and spend adenosine triphosphate (ATP), the molecule your cells burn for energy. In muscle it works in opposition to calcium: calcium signals a fiber to contract, and magnesium helps it relax again. That push and pull is why the mineral is tied so closely to normal muscle function, and why a shortfall can leave muscles more prone to twitching and tension.
Your body holds about 25 grams of magnesium at any moment, most of it in bone and soft tissue, with muscle serving as a major reservoir. According to the National Institutes of Health (NIH) Office of Dietary Supplements, the Recommended Dietary Allowance (RDA) is 400 to 420 milligrams a day for adult men and 310 to 320 milligrams for adult women. Exercise raises the stakes, because training increases magnesium loss through sweat and urine, so active people may need somewhat more than their sedentary peers.
What the research says about magnesium for muscle recovery
The evidence for magnesium and recovery is promising but still thin. A 2024 systematic review in the Journal of Translational Medicine examined the available trials and concluded that magnesium supplementation reduced muscle soreness and supported recovery in physically active individuals, with a possible protective effect against exercise-induced muscle damage. The effect on soreness ratings was more consistent than the effect on blood markers of damage, and the authors were candid that the studies were few and small.
Cramps are a separate and murkier question. Despite magnesium's popularity for leg cramps, controlled trials have not shown a reliable benefit for ordinary muscle cramps, and major reviews still consider the evidence inconclusive. The honest summary is that adequate magnesium supports the machinery of muscle contraction and may ease post-exercise soreness, but it is not a guaranteed fix for cramping. Getting enough in the first place matters more than chasing a large dose.
Most adults fall short, and where to find it
Here is the fact that reframes the whole question: many people are not getting enough magnesium to begin with. Data from the National Health and Nutrition Examination Survey (NHANES) for 2017 to 2020 put average intake at about 339 milligrams a day for men and 269 for women, leaving 57 percent of men and 52 percent of women below the Estimated Average Requirement (EAR), the level that meets the needs of half the population. Among older adults the shortfall is steeper still.
Food is the most dependable way to close that gap, and the sources are pleasant ones. The table below lists magnesium per typical serving, alongside the share of the 420-milligram Daily Value (DV) used on nutrition labels.
| Food | Typical serving | Magnesium | % Daily Value (DV) |
|---|---|---|---|
| Pumpkin seeds | 1 oz (28 g) | 156 mg | ~37% |
| Chia seeds | 1 oz (28 g) | 111 mg | ~26% |
| Dark chocolate (60%+ cacao) | 1 bar (60 g) | ~100 mg | ~24% |
| Almonds | 1 oz (28 g) | 80 mg | ~19% |
| Spinach, boiled | 1/2 cup | 78 mg | ~19% |
| Peanut butter | 2 tbsp | 49 mg | ~12% |
| Banana | 1 medium | 32 mg | ~8% |
Dark chocolate is unusual among sweet snacks in being genuinely magnesium-rich: a 60-gram bar at 60 percent cacao or higher supplies roughly 90 to 110 milligrams, close to a quarter of the Daily Value, because the mineral is concentrated in cacao solids. That makes higher-cacao chocolate a rare overlap between a treat and a functional food. A high-protein dark chocolate bar like Marmels brings that cacao-derived magnesium together with 12 grams of protein from organic whey isolate and grass-fed bovine collagen, the two things post-exercise recovery leans on most, in a 60-gram bar of 62% single-origin organic cacao at 280 to 290 calories.
Frequently Asked Questions
Does magnesium help with muscle recovery?
It appears to help modestly. A 2024 systematic review found that magnesium supplementation reduced muscle soreness and supported recovery in physically active people, though the studies were small. Magnesium is also essential for normal muscle contraction and energy production, so meeting your daily needs supports recovery whether or not you supplement beyond that.
How much magnesium do I need for muscle recovery?
Start with the daily target rather than a recovery-specific dose. The Recommended Dietary Allowance (RDA) is 400 to 420 milligrams a day for adult men and 310 to 320 milligrams for adult women. Active people may need somewhat more because of sweat losses. Food is the safest way to get there; talk to a clinician before taking high-dose supplements.
Does magnesium help with muscle cramps?
The evidence is weaker than its reputation suggests. Controlled trials have not shown a reliable benefit of magnesium for ordinary muscle cramps or nocturnal leg cramps, and major reviews consider the evidence inconclusive. Adequate magnesium still supports normal muscle function, so meeting your daily intake is worthwhile, but do not expect a supplement to reliably stop cramping.
What foods are highest in magnesium?
Seeds, nuts, and leafy greens lead the list. An ounce of pumpkin seeds delivers about 156 milligrams, chia seeds about 111, and almonds about 80. Cooked spinach provides roughly 78 milligrams per half cup. Dark chocolate, whole grains, legumes, and bananas round out a varied set of everyday sources that add up quickly across a day.
Does dark chocolate have a lot of magnesium?
Yes, relative to other sweet snacks. Magnesium concentrates in cacao solids, so a 60-gram bar at 60 percent cacao or higher supplies roughly 90 to 110 milligrams, close to a quarter of the 420-milligram Daily Value (DV). Higher-cacao bars carry more than lower-cacao or milk chocolate, which makes the percentage on the label a useful signal.
Should I take magnesium before or after a workout?
The research is not settled on timing, and the trials that exist vary in how they dosed it. The more reliable lever is consistency: meeting your daily magnesium target through food across the week matters more than any single pre- or post-workout dose. Spreading magnesium-rich foods through your meals is a practical default.
Recovery is rarely about a single nutrient, but magnesium is an easy one to under-rate and an easy one to top up through food. If you want a sweet way to do it, higher-cacao chocolate is one of the few snacks that pulls double duty. You can see how we think about cacao, sourcing, and protein on the science behind our bars.
