Magnesium is one of the most important minerals for exercise performance. It’s involved in over 600 enzymatic reactions in your body, including the core processes that power every rep, sprint, and step: energy production, muscle contraction, and nerve signaling. If you’re working out regularly, your magnesium needs are 10 to 20% higher than someone who’s sedentary, thanks to losses through sweat and urine during intense activity.
How Magnesium Powers Your Workouts
Every time a muscle contracts, it uses a molecule called ATP, your body’s primary energy currency. Magnesium binds directly to ATP to form the complex your cells actually use for fuel. Without enough magnesium, this energy transfer slows down. That affects everything from how hard you can push a set of squats to how quickly you recover between intervals.
Magnesium also plays a direct role in how your muscles fire and relax. It helps regulate the flow of calcium in and out of muscle cells, which is what controls contraction and relaxation. When magnesium is low, muscles can feel tighter, fatigue faster, and take longer to recover. In animal studies, adequate magnesium increased glucose availability in muscles and blood while reducing the buildup of lactate, the byproduct associated with that burning sensation during hard efforts.
Effects on Strength and Performance
Clinical trials in humans show measurable strength benefits. In one 7-week strength training study, participants taking magnesium gained significantly more quadriceps strength than a placebo group. The supplemented group’s quadriceps torque went from 2.38 to 3.07 Nm/kg, while the placebo group only moved from 2.35 to 2.58 Nm/kg. Both groups trained the same way; the difference was magnesium.
A 12-week trial in older women combining exercise with magnesium supplementation found significant improvements in gait speed and chair stand times compared to exercise alone. While that study focused on an older population, it underscores magnesium’s role in functional strength and muscle quality, things that matter whether you’re 30 or 70.
Magnesium also appears to help maintain blood sugar levels during and after exercise, which may support sustained energy output and faster recovery between sessions.
Recovery and Inflammation
Where magnesium may shine brightest is in post-workout recovery. A study in amateur rugby players found that magnesium supplementation significantly reduced cortisol (the body’s primary stress hormone) on both rest days and game days compared to players who didn’t supplement. That matters because chronically elevated cortisol after hard training can slow muscle repair and leave you feeling run down.
The same study found that magnesium completely abolished the spike in IL-6, a key inflammatory marker, that normally occurs after intense exercise. It also reduced the neutrophil-to-lymphocyte ratio, a sign of low-grade inflammation, by nearly 36% in the 24 hours after competition. Taken together, these findings suggest magnesium helps your body dial down the inflammatory and stress responses that follow hard training, potentially speeding up how quickly you’re ready for your next session.
A systematic review of magnesium and muscle soreness reached a similar conclusion: supplementation reduced muscle soreness, improved recovery, and offered a protective effect against muscle damage across different types of physical activity.
What About Muscle Cramps?
This is where expectations outpace the evidence. Despite magnesium’s reputation as a cramp remedy, a Cochrane Review found that magnesium supplementation is unlikely to prevent or treat exercise-related muscle cramps. The evidence for cramps during pregnancy is conflicting, and for exercise-associated cramps specifically, the data isn’t strong enough to draw conclusions. If you’re cramping during workouts, the cause is more likely related to fatigue, dehydration, or electrolyte imbalances beyond magnesium alone.
Best Food Sources
Your body absorbs roughly 30 to 40% of the magnesium you eat, so getting enough from food takes some intentionality. The richest sources per serving are seeds and nuts:
- Pumpkin seeds (1 ounce): 156 mg, 37% of your daily value
- Chia seeds (1 ounce): 111 mg, 26% DV
- Almonds (1 ounce): 80 mg, 19% DV
- Cashews (1 ounce): 74 mg, 18% DV
- Peanuts (ΒΌ cup): 63 mg, 15% DV
Cooked spinach (78 mg per half cup), black beans (60 mg per half cup), and edamame (50 mg per half cup) are strong options too. Brown rice, potatoes with skin, and oatmeal each contribute around 36 to 43 mg per serving. Even a banana adds 32 mg. A trail mix of pumpkin seeds, almonds, and dark chocolate can deliver close to half your daily needs in a single handful.
Choosing a Supplement
If your diet falls short, supplementation can fill the gap. The form you choose matters more for your gut than your muscles. Magnesium glycinate (bonded to an amino acid) is generally well tolerated and less likely to cause digestive issues. It’s a solid default for most active people. Magnesium citrate is absorbed well but has a laxative effect, which can be a benefit or a problem depending on your situation. Magnesium oxide is the cheapest and most widely available, but your body absorbs it less efficiently than chelated forms.
Dosages in exercise studies have ranged from about 120 mg per day up to 8 mg per kilogram of body weight per day. For a 180-pound person, the standard daily value is 420 mg from all sources combined. If you’re training hard, aiming for the higher end of that range makes sense given the 10 to 20% increased requirement from exercise.
Timing and Practical Tips
Based on available research, taking magnesium about two hours before training appears to be effective for performance and soreness reduction. That said, consistency matters more than precise timing. Maintaining adequate magnesium levels day to day, including during off-seasons or deload weeks, is more important than nailing a specific pre-workout window.
If you take a supplement, splitting your dose between morning and evening can improve absorption and reduce the chance of stomach discomfort. Taking it with food also helps. And if you notice loose stools after starting magnesium, that’s a sign to either reduce the dose or switch to a gentler form like glycinate.