Clinical KnowledgeA–Z topicsExams ▾Start free

Clinical Knowledge › Internal medicine › Pulmonology › Respiratory infections

Pneumocystis pneumonia

Pneumocystis pneumonia (PCP or PJP) is an opportunistic lung infection caused by Pneumocystis jirovecii, an unculturable fungus that lacks ergosterol, so standard antifungals do not work against it. It affects people with impaired T-cell immunity: HIV infection with a CD4 count below 200 cells/µL, and increasingly patients without HIV who receive corticosteroids, chemotherapy, rituximab or transplant immunosuppression. In HIV the illness is subacute, with weeks of dry cough, fever and exertional breathlessness. In other immunocompromised patients it is more abrupt and has a higher mortality. Typical findings are hypoxaemia out of proportion to the examination, desaturation on exertion, raised LDH and serum beta-D-glucan, and bilateral ground-glass opacities on CT. Diagnosis is confirmed by PCR or staining of induced sputum or bronchoalveolar lavage. First-line treatment is high-dose co-trimoxazole for 21 days, with adjunctive prednisolone in HIV patients whose PaO2 is below 9.3 kPa (70 mmHg). Co-trimoxazole prophylaxis prevents most cases in high-risk patients.

Full interactive lesson
Patient case, mechanism, investigations, management, flashcards and exam-style questions.
Open the lesson →
PCP: diffuse ground-glass on HRCT
PCP: diffuse ground-glass on HRCT Bilateral, often perihilar and mosaic ground glass in an immunocompromised patient with hypoxia. · Allen CM, et al. · CC BY 4.0 · Wikimedia Commons

Key facts

Differential diagnosis

ConditionCluesKey test
COVID-19 or other viral pneumoniaAcute onset, community exposure, peripheral ground-glass opacitiesSARS-CoV-2 and respiratory viral PCR
Bacterial community-acquired pneumoniaLobar consolidation, purulent sputum, high neutrophil countChest X-ray, cultures, urinary antigens
Pulmonary tuberculosisWeeks of fever and weight loss, cavities or lymphadenopathy; any CD4 countSputum Xpert MTB/RIF Ultra, urine LAM in advanced HIV
Cytomegalovirus pneumonitisTransplant recipient, viraemia, often with other organ involvementBlood CMV PCR, BAL with histology
Drug-induced pneumonitisRecent methotrexate, bleomycin, checkpoint inhibitor or amiodaroneDrug history, BAL to exclude infection
Kaposi sarcoma of the lungAdvanced HIV, skin or palatal lesions, nodular infiltrates, bloody effusionBronchoscopy showing red-purple endobronchial lesions
Invasive aspergillosisNeutropenia, nodules with halo signGalactomannan, CT, BAL

Exam pearls

A patient with HIV who desaturates on walking but has a clear chest and normal X-ray has PCP until proved otherwise.
A raised LDH and very high beta-D-glucan with diffuse ground glass strongly support PCP; a normal beta-D-glucan makes it unlikely.
Start treatment as soon as PCP is suspected: organisms persist in BAL for days after co-trimoxazole begins, so do not delay for bronchoscopy.
Steroids must start within 72 hours of anti-Pneumocystis therapy in hypoxaemic HIV patients to reduce mortality and early deterioration.
Co-trimoxazole raises potassium (trimethoprim blocks ENaC like amiloride) and creatinine (blocks tubular creatinine secretion) without always reducing GFR.
Check G6PD before dapsone or primaquine: haemolysis and methaemoglobinaemia are the main risks.

Guideline

US HHS/NIH–CDC–HIVMA/IDSA Guidelines for prevention and treatment of opportunistic infections in adults and adolescents with HIV (Pneumocystis section, living) and ECIL-5 guidelines for Pneumocystis in haematology patients (2016)

References

  1. Panel on Guidelines for the Prevention and Treatment of Opportunistic Infections in Adults and Adolescents With HIV (NIH, CDC, HIVMA/IDSA). Guidelines for the prevention and treatment of opportunistic infections in adults and adolescents with HIV: Pneumocystis pneumonia. 2019.
  2. Maschmeyer G, Helweg-Larsen J, Pagano L, et al.. ECIL guidelines for treatment of Pneumocystis jirovecii pneumonia in non-HIV-infected haematology patients. J Antimicrob Chemother 2016.
  3. Maertens J, Cesaro S, Maschmeyer G, et al.. ECIL guidelines for preventing Pneumocystis jirovecii pneumonia in patients with haematological malignancies and stem cell transplant recipients. J Antimicrob Chemother 2016.
  4. Bozzette SA, Sattler FR, Chiu J, et al.. A controlled trial of early adjunctive treatment with corticosteroids for Pneumocystis carinii pneumonia in the acquired immunodeficiency syndrome. N Engl J Med 1990.
  5. Donnelly JP, Chen SC, Kauffman CA, et al.. Revision and update of the consensus definitions of invasive fungal disease from the European Organization for Research and Treatment of Cancer and the Mycoses Study Group Education and Research Consortium. Clin Infect Dis 2020.
  6. Lemiale V, Resche-Rigon M, Zerbib Y, et al.. Adjunctive corticosteroids in non-AIDS patients with severe Pneumocystis jirovecii pneumonia (PIC): a multicentre, double-blind, randomised controlled trial. Lancet Respir Med 2025.

Related topics

CAPHAP and VAPAspiration and abscessPulmonary TBAcute bronchitisAtypical pneumoniaInfluenzaCOVID-19NTM lung diseaseEndemic mycoses

By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.