Stretch the affected muscle gently
Massage the cramped muscle
Stand up and put weight on the leg
Apply heat to relax the muscle
Apply ice if the muscle feels sore afterward
Drink water
Replenish electrolytes if you may be low on potassium, magnesium, or calcium
Walk around lightly
Avoid overexertion
Warm up before exercise
Stretch regularly, especially before bed
Reduce caffeine and alcohol if they seem to trigger cramps
Check medications that may cause cramps with a doctor
Seek medical care if cramps are frequent, severe, or persistent
