What causes foot cramps , those sudden and painful muscle contractions, can result from multiple factors. Dehydration is a common trigger, causing an electrolyte imbalance. Overexertion or prolonged periods of standing can strain muscles, leading to cramps.