Leg cramps should be treated according to the cause, and common causes include calcium deficiency, muscle cold, and soft tissue injury. Treatment includes supplementing high quality protein, applying hot compresses, emphasizing on keeping warm and medication. 1. Calcium deficiency: usually caused by low intake of calcium food in daily life, osteoporosis, pregnancy, etc. At this time, if you do not timely replenish calcium, leg and foot cramps may occur, and it is recommended to consume foods with high calcium content, such as milk. 2. Muscle cold: when the temperature of the external environment is low, the phenomenon of leg and foot cramps will easily occur, at this time, we should apply hot compresses to the legs, while strengthening the warmth. 3. Soft tissue injury: the main manifestation is the swelling and pain in the affected area, if the pain is more intense, leg cramps will occur. It is recommended to apply cold compresses to the local area within 72 hours of the injury, and change to hot compresses after 72 hours, and you can also take ibuprofen and aspirin for pain relief when you have pain. There may be other causes of right foot cramps, such as muscle fatigue, lumbar disc herniation, tumors, etc., which require targeted treatment and management. The above drugs need to be standardized and rationally used under the guidance of professional physicians and pharmacists.