The recovery time for pneumonia depends on the severity of the infection, as well as individual factors such as age and overall health. Generally, it can take anywhere from a few weeks to several months to fully recover.