No one seems to know what causes leg cramps and I have used every vitamin, mineral etc. and have had some relief until lately. Now that I'm on the melatonin I seem to be experiencing them frequently (nightly).