calf stretching before bedtime may help reduce the frequency of cramps for some people. The NHS recommends regular calf-stretching exercises as one approach to prevention.
Stay Hydrated
Try to drink enough fluids throughout the day, especially during hot weather or after exercise. Mayo Clinic also recommends limiting alcohol and caffeine when trying to prevent night cramps.
Keep Moving
If you spend much of the day sitting, taking regular movement breaks can be a useful habit. Light activity, such as walking, may also help keep your legs active.