Mayo Clinic Health Manager
Get free personalized health guidance for you and your family.
Get StartedCauses
By Mayo Clinic staffOveruse of a muscle, dehydration, muscle strain or simply holding a position for a prolonged period of time may result in a muscle cramp. Athletes who become fatigued and dehydrated while participating in warm-weather sports frequently develop muscle cramps. In many cases, however, the exact cause of a muscle cramp isn't identified.
Writer's cramp affects the thumb and first two fingers of your writing hand and results from using the same muscles for long periods. At home, you can develop muscle cramps in your hand or arm after spending long hours gripping a paintbrush or using a garden tool. A common type of muscle cramp — nocturnal cramps — occurs in your calf muscles or toes during sleep.
Muscle cramps in your legs can also result from:
- Inadequate blood supply. Narrowing of the arteries that deliver blood to your legs (arteriosclerosis of the extremities) can produce cramp-like pain in your legs and feet while you're exercising. These cramps go away soon after you stop exercising and stand still.
- Nerve compression. Compression of nerves in your spine (lumbar stenosis) also can produce cramp-like pain in your legs. The pain usually worsens the longer you walk. Walking in a slightly flexed position — such as you would employ when pushing a shopping cart ahead of you — may improve your symptoms.
- Mineral depletion. Too little potassium, calcium or magnesium in your diet can contribute to leg cramps. Some diuretic medications prescribed for high blood pressure cause loss of potassium.
Muscle cramps are also part of certain conditions such as nerve, kidney, thyroid or hormone disorders, diabetes, hypoglycemia and anemia.