1. Straightening the affected leg.
2. Pulling your toes gently toward your shin.
3. Holding the stretch without bouncing.
4. Walking slowly once the muscle begins to relax.
Gentle massage may also help.
Some people find warmth soothing after a cramp, such as a warm shower or heating pad.
Avoid aggressive stretching or forceful massage if the leg is swollen, red, unusually warm, or extremely painful.
## Can Stretching Before Bed Help?
It may.
Gentle calf and hamstring stretching before bedtime is a low-risk strategy commonly recommended for people with recurring nighttime cramps. The source article also identifies regular stretching as one of the practical approaches that may help reduce episodes.
A simple calf stretch can be done by standing facing a wall, placing one foot behind you, keeping the heel on the floor, and leaning forward gently.
Hold for about 20–30 seconds and repeat on the other side.
## Should You Take Magnesium?
Magnesium is frequently promoted online as an instant cure for nighttime leg cramps, but the evidence does not support treating every case this way.
Some people can genuinely have low magnesium levels because of medical conditions, medications, digestive disorders, or inadequate intake. But ordinary nighttime cramps do not