Spasms are painful muscle contractions whose onset can be swift and unpredictable. Muscle spasms most often affect the calves, thighs, hands, arms, and feet. Muscle spasms range from twitches to painful bouts of tightening and can last 15 minutes or more. Such spasms happen to people of all ages, though some are more prone to them than others.