Coughing right rib pain may be due to tuberculous pleurisy, rib fracture, lung tumor and other causes, the cause should be clarified in time to take appropriate treatment. There are general treatment, drug treatment, surgical treatment and so on. 1. If it is caused by tuberculous pleurisy, patients should actively follow the doctor’s instructions to use anti-tuberculosis drugs, such as isoniazid, rifampicin, ethambutol and other anti-tuberculosis drugs. If the pleural effusion is particularly serious, and there is compression of the lungs, causing respiratory difficulties, it is necessary to carry out a puncture of the pleural effusion. 2. If it is caused by rib fracture, it is usually caused by direct or indirect violence, and it can also be seen in weak and osteoporotic patients, and it can appear when coughing and sneezing, and the main symptom is localized pain and swelling in the rib area. The main symptom is localized pain and swelling in the rib area, which can be externally immobilized by chest belt. If the pain is obvious, anti-inflammatory and pain-relieving medicines can be taken for symptomatic treatment, such as ibuprofen. 3. If it is caused by lung tumor, lung tumor can be divided into benign tumor and malignant tumor. If it is benign tumor, <1cm benign tumor of lung, it can be closely observed and regularly rechecked without treatment. If it is a malignant tumor, it must be treated with surgery as soon as possible. If you have the symptom of right side rib pain when coughing, you should consult the doctor in time to avoid delaying your condition.