Relieving a Leg Cramp. 1  1. Flex your toes upward as soon as you get a leg cramp. 2  2. Walk around on your heels. 3  3. Stretch your calf.  4. Stand with your feet hip width apart about 2 to 3 feet (60 to 90 cm) from a 1  wall. 5. Massage the muscle.  6. Apply heat to the area if the cramp 1  persists. 7. Take a warm shower.  8. Drink 8 to 16 oz.