Leg cramps at night, also known as nocturnal leg cramps, are sudden and involuntary muscle contractions that occur in the legs, causing pain and discomfort. These cramps typically happen when a person is resting or sleeping, and they can range in intensity from mild to severe.
Nocturnal leg cramps are a common problem, affecting up to 50% of adults. The exact cause of these cramps is unknown, but they are thought to be related to muscle fatigue, dehydration, and electrolyte imbalances. Certain medical conditions, such as nerve disorders, diabetes, and thyroid problems, can also increase the risk of leg cramps.