If you are 40 years old and have leg cramps, you should use calcium gluconate and take oral vitamin D. Vitamin D can help the intestinal tract absorb calcium ions and enhance the effect of calcium supplementation to avoid a lot of waste of calcium ions. In addition, you should also pay attention to eat more food with high calcium ion content, such as meat, milk, eggs, carp soup, black fish soup, bone soup, etc., can help to replenish calcium ion. Some patients who are often sedentary or bedridden will suffer from osteoporosis, so it is important to increase outdoor exercise to replenish the calcium in the body. Another way is to get more sunlight, because sunlight also helps to improve calcium ions and achieve the effect of calcium supplementation.