Rest the affected muscle
Gently stretch the muscle
Massage the area
Apply heat to relax the muscle
Apply ice if the spasm follows an injury
Drink water
Replenish electrolytes
Avoid overuse of the muscle
Change position or move around
Use over-the-counter pain relief if needed
Treat any underlying cause
Seek medical care if spasms are severe, frequent, or persistent
