JAMA Insights
June 26, 2023
Prophylaxis Against Pneumocystis jirovecii Pneumonia in Adults
Shiwei Zhou, Samuel L. Aitken
JAMA. Published online June 26, 2023. doi:10.1001/jama.2023.9844
Pneumocystis jirovecii is an opportunistic fungal pathogen that causes life-threatening pneumonia in immunocompromised patients. Patients with Pneumocystis pneumonia (PCP) typically present with fever, nonproductive cough, dyspnea, and hypoxemia with diffuse bilateral ground-glass opacities on chest imaging.1 PCP can be prevented by reducing immunosuppression and with chemoprophylaxis. Effective prophylaxis significantly decreases the incidence of infection.2 This article summarizes current recommendations regarding prevention of PCP in patients who are immunocompromised.3-5
Indications for Prophylaxis
Primary prophylaxis is intended to prevent a first episode of PCP and should be administered in patients at risk for PCP due to specific medical conditions or treatments (Table). Primary prophylaxis for PCP is recommended for all patients with HIV/AIDS who have CD4 T-lymphocyte count less than 200/μL.3 These patients should also receive antiretroviral therapy (ART). Prophylaxis for PCP is also recommended for those with CD4 cell percentage less than 14% or in patients with CD4 lymphocyte count between 200/μL and 250/μL whose ART is delayed or who cannot receive CD4 monitoring at least every 3 months.3
Table. Medical Conditions and Pharmaceutical Therapies Requiring Prophylaxis for Pneumocystis Pneumonia in Adults

Among patients without HIV who are immunocompromised, primary PCP prophylaxis is recommended for those with acute lymphoblastic leukemia receiving antileukemic therapy, recipients of allogeneic hematopoietic cell transplant (HCT) and solid organ transplant, and patients treated with the anti-CD52 antibody alemtuzumab, phosphatidylinositol 3-kinase inhibitors (eg, idelalisib, duvelisib), or temozolomide with concurrent radiotherapy.5-7 Prophylaxis is also recommended for patients treated with purine analogue chemotherapeutic agents (eg, fludarabine, cladribine), patients with malignancy receiving autologous HCT, and recipients of chimeric antigen receptor T-cell therapy.1,5
Patients receiving high-dose corticosteroid treatment (equivalent to ≥20 mg of prednisone daily for ≥1 month) who have an additional cause of immunodeficiency (eg, underlying malignancy, additional immunosuppressive medication) should receive PCP prophylaxis.5,7 Patients with antineutrophil cytoplasmic antibody–associated vasculitis, such as granulomatosis with polyangiitis, undergoing induction therapy should also receive PCP prophylaxis.8 There is no consensus regarding PCP prophylaxis for patients with autoimmune or autoinflammatory conditions, although patients with rheumatoid arthritis, systemic sclerosis, and giant cell arteritis treated with high-dose corticosteroids have a lower risk for developing PCP compared with those with granulomatosis with polyangiitis.8
An increasing number of patients are treated with immune-modulating medications that are associated with PCP but lack consensus guidelines regarding prophylaxis.9,10 These medications include checkpoint inhibitors (eg, ipilimumab, nivolumab), tumor necrosis factor inhibitors (eg, infliximab), anti-CD20 antibodies (eg, rituximab), bruton-tyrosine kinase inhibitors (eg, ibrutinib), and Janus kinase inhibitors (eg, ruxolitinib) (eTable in the Supplement). Although these treatments alone do not require PCP prophylaxis, the coexistence of an additional risk factor (eg, high-dose corticosteroids, presence of absolute lymphopenia, other immunosuppressive drugs) may be an indication to initiate prophylaxis. Other factors that may indicate a need for PCP prophylaxis include immunosuppression from the patient’s underlying disease process, history of previous opportunistic infections, older age, and comorbidities.
Secondary prophylaxis to prevent recurrence of PCP should be started in all patients after successful treatment of PCP if the immunosuppressed state persists.
Prophylactic Therapy
Trimethoprim-sulfamethoxazole is the drug of choice for PCP prophylaxis for patients with and without HIV (Table). Prophylactic dosing of trimethoprim-sulfamethoxazole for patients with normal kidney function is typically 1 double-strength oral tablet (800/160 mg) daily or 3 times per week or 1 single-strength tablet (400/80 mg) daily, and is usually well-tolerated. Exanthem and nausea are common adverse effects.2 If trimethoprim-sulfamethoxazole is discontinued for a mild adverse effect, reinstitution of medication should be considered after resolution of the adverse reaction. Those with allergic reactions may require desensitization with allergy consultation.3
Alternatives for PCP prophylaxis include atovaquone, dapsone, and monthly administration of aerosolized pentamidine. All patients should have glucose-6 phosphate dehydrogenase levels measured by blood test prior to initiating dapsone. According to the National Comprehensive Cancer Network, monthly intravenous pentamidine is an acceptable alternative for PCP prophylaxis among HCT recipients,5 but it is not recommended by the National Institutes of Health for patients with HIV due to insufficient evidence.3 In clinical practice, the adverse effect profile, tolerability, and the health care insurance coverage of the patient often influence selection of alternative prophylaxis regimens. Due to increased risk of myelosuppression in patients with hematologic malignancy or HCT, and due to increased rates of nephrotoxicity in kidney transplant recipients, alternatives to trimethoprim-sulfamethoxazole should be considered in these patients.6
Duration of Prophylaxis
Prophylaxis for PCP should continue as long as the immunosuppressive state persists. Among patients with HIV, PCP prophylaxis can be discontinued when CD4 lymphocyte counts increase to greater than 200/μL for more than 3 months in response to ART.3 Prophylaxis may also be discontinued if CD4 counts are 100/μL to 200/μL in patients whose HIV plasma RNA levels remain below the limits of detection for at least 3 months.3 Prophylaxis may be discontinued in patients treated with alemtuzumab and purine analogue agents whose CD4 count improves to greater than 200/μL.5
Patients with acute lymphoblastic leukemia should continue PCP prophylaxis through the end of maintenance therapy.5 Allogeneic HCT recipients begin prophylaxis at engraftment and should continue prophylaxis through at least 6 months after transplant or longer if immunosuppression is ongoing. Because the effect of immunosuppressive medications (eg, rituximab, temozolomide, idelalisib) may persist after drug discontinuation, duration of PCP prophylaxis should be individualized based on the medication received.
All solid organ transplant recipients should receive prophylaxis for at least 6 to 12 months after the transplant, after which prophylaxis should be prescribed during periods of intensive immunosuppression for allograft rejection, infection with Cytomegalovirus, or prolonged neutropenia.6 Lifetime prophylaxis is recommended for recipients of lung and small bowel transplant as well as solid organ transplant recipients with previous PCP infection.6
Patients requiring PCP prophylaxis usually have multiple comorbid health conditions and are often cared for by multiple subspecialists, including hematology, oncology, infectious diseases, rheumatology, pulmonology, and transplant. Discussion and coordination of initiation and discontinuation of PCP prophylaxis across these clinicians can be beneficial.
Patients at risk for PCP should receive safe and effective prophylaxis while they are immunosuppressed; trimethoprim-sulfamethoxazole is the agent of choice.