I found that when I felt the cramp coming I would flex my foot up and that helped to stretch out the calf muscle.