A cramp is an involuntary contraction of a muscle, and it can affect any skeletal muscle. There is no specific cause for cramping, but some factors can put you at higher risk of getting cramps more often.