There may be several reasons for the pain inside the right thoracic rib cage: 1, trauma, if it is a trauma such as a car accident, it may lead to pain and swelling of the right thoracic rib cage, with limited activity, you need to consult the orthopedic emergency department, take an X-ray to check whether there is a fracture. If there is metastasis or attack of malignant tumor, it may lead to pain in the right chest cavity, and there may also be weakness, wasting, fever and other symptoms.