Possible problem: Did you just start an exercise regimen or suddenly cut back on one? Both can cause cramping. Other possible causes: too little calcium, magnesium or potassium in your diet, or dehydration from not drinking enough water or from taking certain medications, notably diuretics used to control high blood pressure.