They include the following: Tight calf muscles (eg, due to lack of stretching, inactivity, or sometimes chronic lower leg edema) Dehydration Electrolyte abnormalities (eg, low body levels of potassium or magnesium) Neurologic or metabolic disorders Removal of a large volume of fluid during dialysis in patients with end-stage kidney disease Drugs Also, certain toxins can cause muscle cramps.