Studies suggest that supplementation with B-12, Vitamin D and magnesium may help in alleviating the cramps.