The duration of pneumonia can vary depending on factors like the overall health and the severity of the infection. In general, most cases of pneumonia resolve within one to three weeks with appropriate treatment.