While not an exact science, eating foods rich in magnesium may help curb leg cramps. Make sure you stay hydrated. You can also stretch the affected muscles during the day and right before you go to bed. If these exercises help reduce nighttime leg cramps, continue to do them every day.

michelangeloop / Getty Images
This site offers information designed for educational purposes only. You should not rely on any information on this site as a substitute for professional medical advice, diagnosis, treatment, or as a substitute for, professional counseling care, advice, diagnosis, or treatment. If you have any concerns or questions about your health, you should always consult with a physician or other healthcare professional.