viruses bacteria or (in rare cases) parasites or other organisms cause pneumonia. in most cases the specific organism (such as bacteria or virus) cannot be identified even with testing. when an organism is identified it is usually the bacteria streptococcus pneumoniae. many types of bacteria may cause pneumonia. pneumonia caused by mycoplasma pneumonia is sometimes mild and called "walking pneumonia. " viruses such as influenza a (the flu virus) and respiratory syncytial virus (rsv) can cause pneumonia. in people with impaired immune systems pneumonia may be caused by other organisms including some forms of fungi such as pneumocystis jiroveci (formally called pneumocystis carinii). this fungus frequently causes pneumonia in people who have aids. some doctors may suggest an hiv test if they think that pneumocystis jiroveci is causing the pneumonia. you may get pneumonia: after you breathe infected air particles into your lungs. after you breathe certain bacteria from your nose and throat into your lungs. this generally occurs during sleep. during or after a viral upper respiratory infection such as a cold or influenza (flu). as a complication of a viral illness such as measles or chickenpox. if you breathe large amounts of food gastric juices from the stomach or vomit into the lungs (aspiration pneumonia). this can happen when you have had a medical condition that affects your ability to swallow such as a seizure or stroke. a healthy person's nose and throat often contain bacteria or viruses that cause pneumonia. pneumonia can develop when these organisms spread to your lungs while your lungs are more likely to be infected such as during or soon after a cold or if you have a long-term (chronic) illness such as chronic obstructive pulmonary disease. you can get pneumonia in your daily life such as at school or work (community-associated pneumonia) or when you are in a hospital or nursing home (healthcare-associated pneumonia). treatment may differ in healthcare-associated pneumonia because bacteria causing the infection in hospitals may be different from those causing it in the community. this topic focuses on community-associated pneumonia. webmd medical reference from healthwise this information is not intended to replace the advice of a doctor. healthwise disclaims any liability for the decisions you make based on this information. © 1995-2011 healthwise incorporated. healthwise healthwise for every health decision and the healthwise logo are trademarks of healthwise incorporated.
what causes pneumonia?