Rib pain when coughing is most often considered to be the result of pulling the muscles or fascia around the ribs due to a strong cough. Recovery time for rib pain caused by coughing varies from cause to cause, and usually lasts from 1 to 12 weeks. Cough-induced rib pain, if the upper respiratory tract infection caused by the need for standardized treatment under the guidance of a doctor, generally 1 to 2 weeks can be good; if allergic asthma caused by the patient to comply with the doctor’s advice to take active measures to treat, 12 weeks or so can be good; if the patient himself has osteoporosis, when coughing violently may cause rib fracture, cough rib pain may take 4 to 12 weeks to be good. For rib pain caused by coughing, patients need to consult a doctor, who will determine how long it will take to get well according to the cause and the patient’s physical condition.