Spasms most commonly affect the skeletal muscles in the body, which are the voluntary muscles. These types of spasms most commonly occur because of electrolyte abnormalities, dehydration, and muscle fatigue due to overuse. The spasm comes on abruptly and without warning, causing pain in the muscle and surrounding tissue. Usually, the spasm doesn't last for a long time, and patients can sometimes relieve muscle spasms in their back by gently stretching out the affected muscle. They can try stretching their arms above their head, then leaning over and letting their arms dangle down toward their toes. While doing this, they should allow their back to curve as much as it can before the stretch becomes painful. Some individuals find massage helps with muscle spasms. If individuals are experiencing muscle spasms, it may be a sign they need to rest and rehydrate. Long-lasting or extremely painful muscle spasms are a reason to see a doctor. Doctors can do an examination and rule out any other potential causes of the spasm.