What Causes Muscle Cramps in the Legs?

Timothy Krause/CC-BY 2.0

The causes of muscle cramps in the legs can be as disparate as dehydration, overexercise, trauma to the muscle, reactions to medications or sitting in one position for too long, according to Everyday Health. While leg cramps can occur during exercise, they often manifest as painful spasms at night.