What Causes Leg Cramps?
Leg cramps—often referred to as a charley horse—are painful, involuntary contractions of the muscles in your thigh or calf. They commonly occur from dehydration or muscle overexertion. However, in some cases, they can be a symptom of an underlying health condition, such as type 2 diabetes or kidney failure. Leg cramps can also be a side effect of certain medications.
Source: Verywell Health