The most effective treatment for a cough caused by pneumonia is to treat the underlying cause of the pneumonia, according to Mayo Clinic. Cough syrup can be helpful in reducing the frequency of coughing from patients with pneumonia. However, coughing serves an important purpose for people with pneumonia because it helps them expel phlegm from their lungs. Patients should ask their doctors before using cough syrup.
Pneumonia is an infection of the air sacs of the lungs that is caused by bacteria or viruses, explains Mayo Clinic. For patients with bacterial pneumonia, doctors prescribe antibiotics to treat the infection that is causing a cough. The type of antibiotics prescribed depends on the type of bacteria in the lungs.
It is important to take antibiotics exactly as prescribed, not to miss doses, and to complete the full course of the medication, reports MedlinePlus.
Other suggestions for home remedies to relieve the coughing associated with pneumonia are placing a warm, wet washcloth over the nose and mouth, using a humidifier, using deep breathing techniques and tapping the chest to loosen mucus, according to MedlinePlus. If the pneumonia is severe that it requires hospitalization, patients are treated with intravenous fluids, antibiotics, oxygen therapy and other breathing treatments.