Common causes of leg cramps in middle-aged and elderly people include calcium deficiency, degenerative changes in the knee joints, and vascular origin. 1. Calcium deficiency: The most common cause, especially in postmenopausal women, is increased calcium loss, which can lead to calcium deficiency in the body. However, calcium is the stabilizer of nerve cell membranes, and a lack of calcium can easily lead to an increase in muscle excitability and spasmodic contraction of the leg muscles, which is commonly known as cramps. 2. Degenerative changes in the knee joint: especially in patients with osteomalacia, when the patient’s activities, the proliferation of bone stimulation of the surrounding ligaments, joint capsule, etc., when the joint capsule receives stimulation will trigger muscle spasms during activities. 3. Vascular origin: middle-aged and elderly patients usually have calcification of blood vessels with age, causing narrowing of blood vessels in the lower limbs, or atrial fibrillation patients with thrombus dislodgement causing blockage of arteries in the lower limbs, resulting in muscle contracture caused by ischemia and hypoxia in the leg muscles. There may be other causes of leg cramps in middle-aged and elderly people, and they should go to the hospital in time for examination, clarification of the cause of the disease and further treatment.