Rib edge pain is mainly related to trauma, costochondritis, digestive system diseases and so on. 1. Trauma: Trauma to the rib area may cause pain at the edge of the rib cage, and you need to go to the hospital for a radiograph. If there is a bone injury, it may hurt the surrounding organs, then you need to do surgery; if it is only a slight fracture, you can recover after resting for a period of time. 2. Costal chondritis: inflammation of the rib cartilage will cause local nerve pain symptoms, mainly pressure pain, especially when the activity of the pain will be aggravated, rest for a while will slowly reduce this situation need to take some pain medication under the guidance of the doctor to relieve, such as ibuprofen, diclofenac sodium and so on. 3. Digestive system diseases: patients with hepatitis and gastritis and other digestive system diseases, can also cause pain at the edge of the ribs, this situation needs to go to the hospital for examination, to clarify the cause of the disease, and then under the guidance of the doctor to take medication to regulate. When there is pain at the edge of the ribs, it is recommended to consult a doctor in time to avoid delaying the condition.