Across 11 trials in 735 people, mostly older adults with night cramps, magnesium changed cramp frequency by 0.18 a week against placebo. Nothing here tests cramping during exercise.
The people tested were mostly older adults with night-time leg cramps, not athletes cramping mid-race, so this settles the mineral rather than the sport. The pregnancy trials in the same review could not be pooled at all because their outcomes were reported inconsistently, and a separate Cochrane review graded those same trials as far less biased than this one did. Nothing here tests magnesium during exercise.
