Other times, problems such as an electrolyte imbalance (for example, not having enough potassium, magnesium or calcium in your body), flat feet, diabetes, thyroid abnormalities, certain medications, alcohol or Parkinson's disease may be the cause.
CNN: What causes muscle cramps?