Research has found that magnesium supplementation helped improve all the major physiological markers associated with insomnia. 50-90% of people are magnesium deficient, so almost everyone can benefit from supplementing with this vital nutrient.