Muscle spasms can have causes that aren’t due to underlying disease. Examples include extreme fatigue from overexertion, not using the muscle enough, low magnesium or low potassium.
Muscle spasms (muscle cramps) are painful contractions and tightening of your muscles. They’re common, involuntary and unpredictable. Although there are steps you can take to prevent a muscle spasm and treat it when it attacks, those methods are not always reliable. Muscle relaxants, stretching and massage are most likely to help.