If you’ve ever woken up in the middle of the night with leg pain, you may familiar with leg cramps. Leg cramps can last from a few seconds to up to 10 minutes and are characterized by a sudden pain due to shortening of a muscle. It occurs most often in the calf, but can also occur in the other parts of the body (though it is less common).