Worried about your symptoms?
Start the Pneumocystis Pneumonia test with our free AI Symptom Checker.
This will help us personalize your assessment.
By starting the symptom checker, you agree to the Privacy Policy and Terms of Use
Tickly cough
Have a fever
Shortness of breath
Fatigued
Cough
Loss of appetite
Wake up in the middle of the night with shortness of breath
Not seeing your symptoms? No worries!
Pneumocystis pneumonia (PCP) is a severe infection caused by the fungus Pneumocystis jirovecii. It is most common in people with medical conditions that weaken the immune system, such as HIV/AIDS, or those who take immune suppressors.
Your doctor may ask these questions to check for this disease:
Treatment includes antibiotics, and individuals at risk may receive antibiotics to prevent infection.
Reviewed By:
Phillip Aguila, MD, MBA (Pulmonology, Critical Care)
Dr. Aguila graduated from West Virginia University School of Medicine. He has trained in Pulmonary and Critical Care Medicine at The University of North Carolina in Chapel Hill and Internal Medicine at Medical College of Pennsylvania/Hahnemann University at Allegheny General Hospital in Pittsburgh Pennsylvania. He has served as Assistant Professor since 2010.
Eisaku Kamakura, MD (Pulmonology)
Dr. Kamakura graduated from the Tokyo Medical and Dental University, School of Dentistry, and the Niigata University School of Medicine. He trained at Yokosuka Kyosai Hospital and held positions in the Respiratory Medicine departments at Yokosuka Kyosai Hospital, Tokyo Medical and Dental University, Ome City General Hospital, and Musashino Red Cross Hospital. In 2021, he became the specially appointed assistant professor at the Department of General Medicine, Niigata University School of Medicine.
Content updated on Jul 30, 2024
Following the Medical Content Editorial Policy
Was this page helpful?
We would love to help them too.
With a free 3-min Pneumocystis Pneumonia quiz, powered by Ubie's AI and doctors, find possible causes of your symptoms.
This questionnaire is customized to your situation and symptoms, including the following personal information:
Biological Sex - helps us provide relevant suggestions for male vs. female conditions.
Age - adjusts our guidance based on any age-related health factors.
History - considers past illnesses, surgeries, family history, and lifestyle choices.
Your symptoms

Our AI

Your report

Your personal report will tell you
✔ When to see a doctor
✔︎ What causes your symptoms
✔︎ Treatment information etc.
See full list
Q.
How contagious is pneumonia?
A.
Pneumonia can be contagious, but it depends on the cause. Viral pneumonia often spreads through droplets from 1 to 2 days before symptoms to about a week after, some bacteria like Mycoplasma spread readily while Streptococcus is less likely to pass person to person, and fungal pneumonias typically do not spread between people. There are several factors to consider, including age and immune status; antibiotics quickly reduce bacterial contagiousness, and hygiene, masks, ventilation, and vaccination lower risk, with complete details below to guide next steps.
References:
Siegel JD, Rhinehart E, Jackson M, & Chiarello L. (2007). Guideline for Isolation Precautions: Preventing Transmiss… Am J Infect Control, 18068815.
https://pubmed.ncbi.nlm.nih.gov/18068815/
Leung NHL, Chu DKW, Shiu EYC, Chan KH, McDevitt JJ, Hau BJP, Yen HL, Li Y, Ip DKM, Peiris JSM, Seto WH, Leung GM, Milton DK, & Cowling BJ. (2020). Respiratory virus shedding in exhaled breath and efficacy of… Nat Med, 32229344.
https://pubmed.ncbi.nlm.nih.gov/32229344/
Tsochatzis EA, Bosch J, & Burroughs AK. (2014). Liver cirrhosis… Lancet, 24723400.
Q.
How long is pneumonia contagious?
A.
There are several factors to consider when it comes to how long pneumonia is contagious; see below to understand more and to learn about isolation and next steps. Viral pneumonia is typically contagious from 1 to 2 days before symptoms through about days 5 to 7 after they start, sometimes up to 10 days in young, elderly, or immunocompromised people; bacterial pneumonia is usually no longer contagious 24 to 48 hours after effective antibiotics begin but can remain contagious 10 to 14 days or longer if untreated, and aspiration or most fungal pneumonias are not contagious.
References:
Carrat F, Vergu E, Ferguson NM, Lemaitre M, Cauchemez S, Leach S, & Valleron AJ. (2008). Time lines of infection and disease in human influenza: a review of volunteer challenge studies… American Journal of Epidemiology, 18156384.
https://pubmed.ncbi.nlm.nih.gov/18156384/
D'Amico G, Garcia-Tsao G, & Pagliaro L. (2006). Natural history and prognostic indicators of survival in cirr… Journal of Hepatology, 16581129.
https://pubmed.ncbi.nlm.nih.gov/16581129/
Tsochatzis EA, Gurusamy KS, Ntaoula S, Cholongitas E, Davidson BR, & Burroughs AK. (2011). Elastography for the diagnosis of severity of fibrosis in chronic l… Journal of Hepatology, 21296305.
Q.
Is bacterial pneumonia contagious?
A.
Many forms of bacterial pneumonia are contagious, spreading mainly via respiratory droplets, close contact, and sometimes contaminated surfaces, especially with S. pneumoniae and M. pneumoniae; others like Legionella typically are not spread person to person. There are several factors to consider that influence your risk and next steps, including crowded settings, age or immune status, and prevention with vaccines, hygiene, and masking; see important details below, including when to seek care.
References:
Weiser JN, Ferreira DM, & Paton JC. (2018). Streptococcus pneumoniae: transmission, colonization and invasion. Nature Reviews Microbiology, 28759990.
https://pubmed.ncbi.nlm.nih.gov/28759990/
Tsochatzis EA, Bosch J, & Burroughs AK. (2014). Liver cirrhosis. Lancet, 24394606.
https://pubmed.ncbi.nlm.nih.gov/24394606/
Wai CT, Greenson JK, Fontana RJ, Kalbfleisch JD, Marrero JA, Conjeevaram HS, & Lok ASF. (2003). A simple noninvasive index can predict both significant... Hepatology, 12748626.
Q.
Is pneumonia contagious after antibiotics?
A.
Contagiousness after starting antibiotics varies by cause: with typical bacterial pneumonia you are usually much less contagious after 24 to 48 hours of the right antibiotic, atypical bacteria may remain contagious for several days, and viral pneumonia is not reduced by antibiotics. There are several factors to consider, including whether the antibiotic choice is correct and started early, your illness severity and immune status, and specific precautions for isolation and masking, so see below for details that could change your next steps and when to seek care.
References:
Waites KB, & Talkington DF. (2004). Mycoplasma pneumoniae and its role as a human pathogen. Clin Microbiol Rev, 15590705.
https://pubmed.ncbi.nlm.nih.gov/15590705/
D’Amico G, Garcia-Tsao G, & Pagliaro L. (2006). Natural history and prognostic indicators of survival in cirrhosis: a systema… J Hepatol, 16443109.
https://pubmed.ncbi.nlm.nih.gov/16443109/
European Association for the Study of the Liver. (2018). EASL clinical practice guidelines for the management of patients… J Hepatol, 30135521.
Q.
Is pneumonia contagious?
A.
Pneumonia can be contagious, but it depends on the cause: viral and many bacterial pneumonias spread through respiratory droplets and close contact, while fungal, aspiration, and chemical pneumonias are not. There are several factors to consider. See below for details on how transmission happens, who is most at risk, prevention steps like vaccination, hand hygiene, distancing, and ventilation, plus when to seek care and what to do next.
References:
Mandell LA, Wunderink RG, Anzueto A, Bartlett JG, Campbell GD, Dean NC, Dowell SF, File TM Jr, Musher DM, Niederman MS, Torres A. (2007). Infectious Diseases Society of America/American Thoracic … Clinical Infectious Diseases, 17321991.
https://pubmed.ncbi.nlm.nih.gov/17321991/
Tsochatzis EA, Bosch J, Burroughs AK. (2014). Liver cirrhosis. Lancet, 23870928.
https://pubmed.ncbi.nlm.nih.gov/23870928/
Kamath PS, Wiesner RH. (2001). A model to predict survival in patients with end-stage liver … Hepatology, 11157951.
Our symptom checker AI is continuously refined with input from experienced physicians, empowering them to make more accurate diagnoses.

“World’s Best Digital
Health Companies”
Newsweek 2024

“Best With AI”
Google Play Best of 2023

“Best in Class”
Digital Health Awards 2023 (Quarterfinalist)

Which is the best Symptom Checker?
Ubie’s symptom checker demonstrated a Top-10 hit accuracy of 71.6%, surpassing the performance of several leading symptom checkers in the market, which averaged around 60% accuracy in similar assessments.
Link to full study:
https://www.medrxiv.org/content/10.1101/2024.08.29.24312810v1White PL, Backx M, Barnes RA. Diagnosis and management of Pneumocystis jirovecii infection. Expert Rev Anti Infect Ther. 2017 May;15(5):435-447. doi: 10.1080/14787210.2017.1305887. Epub 2017 Mar 20. PMID: 28287010.
https://www.tandfonline.com/doi/full/10.1080/14787210.2017.1305887Gilroy SA, Bennett NJ. Pneumocystis pneumonia. Semin Respir Crit Care Med. 2011 Dec;32(6):775-82. doi: 10.1055/s-0031-1295725. Epub 2011 Dec 13. PMID: 22167405.
https://www.thieme-connect.de/products/ejournals/abstract/10.1055/s-0031-1295725Catherinot E, Lanternier F, Bougnoux ME, Lecuit M, Couderc LJ, Lortholary O. Pneumocystis jirovecii Pneumonia. Infect Dis Clin North Am. 2010 Mar;24(1):107-38. doi: 10.1016/j.idc.2009.10.010. PMID: 20171548.
https://www.sciencedirect.com/science/article/abs/pii/S0891552009000828?via%3DihubBateman M, Oladele R, Kolls JK. Diagnosing Pneumocystis jirovecii pneumonia: A review of current methods and novel approaches. Med Mycol. 2020 Nov 10;58(8):1015-1028. doi: 10.1093/mmy/myaa024. PMID: 32400869; PMCID: PMC7657095.
https://academic.oup.com/mmy/article-abstract/58/8/1015/5836563?redirectedFrom=fulltextSokulska M, Kicia M, Wesołowska M, Hendrich AB. Pneumocystis jirovecii--from a commensal to pathogen: clinical and diagnostic review. Parasitol Res. 2015 Oct;114(10):3577-85. doi: 10.1007/s00436-015-4678-6. Epub 2015 Aug 19. PMID: 26281787; PMCID: PMC4562001.
https://link.springer.com/article/10.1007/s00436-015-4678-6