what causes nocturnal leg cramps. I will have them in the middle of the night in my calves,in my ankles,in my upper legs. I have had them in both legs at the same time. I believe that I drink almost a gallon of water a day,so it couldn t be dehydration. I do take meds ,and have ruled what I believe anything that would cause this problem.