Generally, if you have bacterial pneumonia, you are contagious for around 48 hours after starting antibiotics and your fever has gone away. If it is viral pneumonia, as symptoms start to go away (especially fever) so does the contagious period. Pneumonia caused by fungi are not contagious.