The causes of cough with chest pain are lung infection, pneumothorax, pleurisy, cancer, pulmonary embolism and so on. 1. Lung infection: Cough with chest pain can occur when the lungs near the periphery of the lungs are infected or complicated by pleurisy or pleural effusion. 2. Pneumothorax: Sudden onset of chest pain in the presence of heavy weight, strenuous activity or rest, followed by dyspnea with irritating cough. 3. Pleurisy: pleura has rich nerves, when inflammation involves pleura, cough with chest pain may appear. 4. Cancer: lung cancer patients may have cough, hemoptysis and other symptoms, and chest pain may occur when cancer involves pleura or bone metastasis. 5. Pulmonary embolism: patients may have symptoms such as chest tightness, cough, hemoptysis, chest pain, etc., and severe cases may die suddenly. Cough chest pain has more causes, different causes lead to different consequences, treatment methods are also different, patients need to consult a doctor in time, improve the relevant examination, clarify the cause of the disease, and active treatment.