How can you get rid of a calf muscle spasm?

Stretch. Stretching is the best way to prevent spasm. Also making sure you get adequate potassium in your diet. Bananas are a great source of potassium.