Also, though leg pain can be caused by depletion of potassium, sodium, calcium, magnesium etc.; supplements should only be taken
after medical advice,
after a deficiency has been documented, since increased levels can have serious adverse effects. Other possible causes of leg cramps are dehydration, injuries, inflammation, neuropathies, musculopathies, hormonal/ endocrine abnormalities etc. You may like to consult your doctor for an evaluation for the same.
Hope this information was useful.