It depends on the type of pneumonia you have. If you’re dealing with bacterial pneumonia, you are no longer contagious once your fever is gone. With viral pneumonia, you are considered no longer contagious when you feel better, and your fever has been gone for several days.