Question: what vitamin are you lacking when you get leg cramps?
Answer: Summary. Having a magnesium deficiency can be a cause of muscle cramps. And it's common for people to need more magnesium.