With the viral type, children are contagious for as long as they have symptoms. But as with colds, they're most contagious during the peak of the illness, between days three and five. With bacterial pneumonia, contagiousness lasts from the first respiratory symptom until 48 hours after starting antibiotics.