Sleeppreliminary · human data
Magnesium helps sleep — mostly if you're short of it.
If you are low in magnesium, correcting it may help sleep and muscle cramps; the evidence for a sleep benefit in people who already get enough is weaker and often overstated.