What causes pain inside the right rib cage after coughing?

The pain inside the right rib cage after coughing may be caused by soft tissue injury, tuberculosis and lung tumor. 1. Soft tissue injury: in case of soft tissue injury, coughing will stimulate the nerves around the ribs or the nerves inside the periosteum to cause pain, at this time, braking and rest should be taken to reduce further damage to the place. 2. Tuberculosis: if you suffer from pleurisy, on the one hand, consider that the pleura may be involved, on the other hand, consider the impact on the nerves, thus causing rib pain, after lung CT and other tests to clarify the cause of the cause of the disease, you should actively carry out the treatment of the cause of the disease, so as to alleviate the pain, and if necessary, you can take ibuprofen and other painkillers. 3. Lung tumor: if the rib pain is caused by lung tumor, due to the presence of tumor that may compress the nerves, on the one hand, we should pay attention to anti-tumor treatment, on the other hand, we should be alert to the occurrence of infection. If the patient’s rib pain is caused by simple cough, only cough treatment is needed; if the patient’s pain is more serious, and more serious tuberculosis, tumor and other diseases are considered, the patient should consult a doctor for a clear diagnosis in time.