My doctors have told me the most likely cause of most of of my cramps is not enough water or a side effect of my various meds. Mineral deficiency can occur but this will generally show up on routine lab work when they test for such things. A normal diet usually is plenty sufficient along with a multi vitamin.