DH takes a lot of meds and mentioned to his doc that he sometimes gets leg cramps at night. The physician's assistant said, Put a bar of soap under the sheet down by your legs.
I was flabbergasted to hear this from a medical person at a university teaching hospital/ medical center. But I looked it up online and a lot of people swear by it.
I put it in the bed last night, so we will see if it works. I should put it between the 2 of us as I get them sometimes too.