Make sure to supplement your diet with food that has a lot of magnesium and food with calcium. You can take some vitamins with these two nutrients too. These nutrients are essential in your muscles. Eating a banana before and after your run can help too. Stretch well before your run.