Muscle spasms are sudden, involuntary contractions of one or more muscles. These spasms can be intensely painful and can last from a few seconds to several minutes. They often occur in the legs, but ...