Mild pneumonia usually goes away in 2 to 3 weeks. Your child may need 6 to 8 weeks or more to recover from a severe case of pneumonia. Rest, over-the-counter pain relievers, healthy food, and plenty of fluids will help your child heal at home.