How long your baby coughs while recovering from pneumonia varies from person to person, depending on their age, the type of infection and whether they have any underlying illnesses. It takes time to treat pneumonia in babies, and a cough during the recovery period is mostly normal. In the case of common pneumonia, the cough usually disappears in about 1 week; in the case of mycoplasma pneumonia, most coughs disappear in about 2-3 weeks. If your baby has a cough during the recovery period of pneumonia, you can apply some medicines such as lung laxatives or cough syrup. If the cough is accompanied by phlegm, it can be relieved by appropriate back patting. Generally, after the phlegm is discharged, the cough will gradually disappear and most of the conditions can be effectively controlled and recovered after about 1 week of treatment. During the recovery period of pneumonia, babies should pay attention to keeping warm, change position regularly, keep indoor air circulation and appropriate temperature and humidity, drink more water and avoid spicy and cold food, review regularly and avoid going to crowded places to avoid cross infection. If the cough does not subside or even worsens or if other discomforts occur, you should go to the pediatrician promptly for nebulizer treatment or antibiotics and antiviral drugs.