Rib pain on both sides may be caused by cancer, but the probability is small. More commonly, it is caused by strenuous exercise leading to forked gas, which can usually be gradually relieved after rest. Besides, it is also related to trauma, overstrain, thoracic and lung diseases, heart diseases, etc. Patients are recommended to go to the hospital in time to clarify the causes and carry out targeted treatment. 1. Trauma: If there is muscle damage or rib fracture after trauma such as bumping at both sides of the ribs, it can lead to painful symptoms at the affected area, usually with symptoms such as redness and swelling at the injury site. 2. Overstrain. If the patient engages in long-term physical labor or maintains the same posture or movement for a long time, it can lead to chronic strain on the muscles of both sides of the ribs, which can cause pain; 3, thoracic and pulmonary diseases: if the patient suffers from costochondritis, chest herpes zoster infection, intercostal neuritis, pleurisy, pulmonary tuberculosis, rib chondroma and other diseases of the thorax and lungs, it can lead to pain on both sides of the ribs, which can be accompanied by local redness, swelling, pressure pain, fever, sweating, cough, sputum, blistering and other symptoms; 4, heart disease: if the patient suffers from myocardial infarction, pericarditis, angina pectoris, pericardial adhesions and other lesions in the heart, it can also manifest as pain at both sides of the ribs, usually in the form of radioactive pain, and accompanied by chest tightness, shortness of breath and other symptoms; 5, cancer: if the patient has symptoms of pain at both sides of the ribs, it may also be caused by primary bone cancer at both sides of the ribs. primary bone cancer. In addition, it may also be a bone metastasis from other parts of cancer such as breast cancer and lung cancer, which usually has symptoms such as painless lump in breast, enlarged lymph nodes in the armpit and irritating dry cough.