Cramps are unpleasant sensations caused by contraction, usually of muscles. It can be caused by cold or overexertion. Illness or poisoning can also cause cramps, particularly in the stomach, which is referred to as colic if it fits particular characteristics.
There are two basic causes of cramping. One is inadequate oxygenation of muscle, and the other is lack of water or salt. Cramps from poor oxygenation can be improved by rapid deep breathing, as well as stretching the muscle. Cramps from lack of salt and water can be treated by stretching the muscle, and of course drinking water and increasing salt intake. Pounding on the muscle can increase soreness.
Muscle cramps in particular can be treated by applying a soft massage on the cramped muscle, stretching the muscle and applying heat or cold. Heat improves superficial blood circulation and makes muscles more flexible, so some people find that heat is more soothing for muscle cramps than applying ice.
Electrolyte disturbance may cause cramping and tetany of muscles, particularly hypokalemia (a lack of potassium) and hypocalcemia (a lack of calcium).
Nocturnal leg cramps are involuntary muscle contractions that occur in the calves, soles of the feet or other muscles in the body during the night or (less commonly) while resting. The duration of nocturnal leg cramps is highly variable with cramps sometimes only lasting a few seconds and other times several minutes. Soreness in the muscles may remain for some time after the cramp ends. These cramps are more common in older populations but may happen to anyone.
The precise cause of these cramps is unclear. Potential contributing factors are believed to include low levels of certain minerals (magnesium, potassium, calcium and sodium), dehydration and prolonged sitting. Less common causes include more serious conditions or use of drugs.
An unrelated condition is restless legs syndrome, an unpleasant sensation that is relieved by moving the leg, but which rarely includes cramping or pain.