How to get rid of muscle cramps in your legs
Updated: 2026-11-12

Later supplied newsletter note: May 20, 2026
The May 20, 2026 supplied newsletter also names diuretics (water pills) as medicines that can cause muscle cramps as a side effect. The earlier article below names statins and retains its rare-cause warnings. These examples come from different dated source editions and are not a complete list or a reason to stop or change prescribed medicine. Discuss medicine-related concerns with your clinician.
Earlier article retained
The muscles in your legs are bundles of fibers that contract and expand in turn to create movement. A cramp is a sudden, involuntary tightening of one of these muscles, usually in the calf.
A cramp can last from a few seconds to several minutes, and it can be mild or strong enough to wake you from a deep sleep. A sudden, painful spasm in the leg is often called a charley horse - a name that legend ties to a 19th-century baseball player said to suffer frequent cramps.
Sometimes a cramp has no obvious cause. Exercise is a common trigger, especially after a long session or a workout in the heat. Tired or dehydrated muscles become irritated and cramp more easily. Too little of electrolytes such as magnesium or potassium in your diet can also bring on more frequent cramps by keeping muscles from fully relaxing.
The risk of cramping rises during pregnancy, possibly because of changes in circulation and the extra load a growing belly places on muscles. Age is another factor: cramps become more common from middle age onward, as older muscles tire sooner and grow more sensitive to dehydration. Certain medicines, such as the statins used to treat high cholesterol, can also cause cramps as a side effect.
Symptoms of muscle cramps
They can include:
Sudden pain and tightness in a muscle, usually in the calf
A temporary hard lump or twitching under the skin
Diagnosing muscle cramps
You can usually treat a cramp yourself, but see a doctor if your cramps are severe, if they come often, or if they arrive with other symptoms such as numbness or weakness. Rarely, cramps point to a problem with the spine, blood vessels, or liver.
Treating muscle cramps
Most cramps fade on their own within a few minutes. Massaging or gently stretching the muscle helps it relax. If the cramp strikes while you are lying or sitting, simply standing up may be enough. Heat soothes tense muscles - a heating pad or a warm, wet washcloth can help loosen the muscle.
To keep leg cramps from returning, drink plenty of fluid before and during exercise, since muscles need fluid to contract and relax properly. Prevent tightness by warming up your leg muscles before a workout - walk in place or jog slowly. After each workout, stretch your legs for a few minutes, and do another round of stretches before bed if cramps tend to strike in your sleep.




