For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Pneumocystis pneumonia (PCP)

Pneumocystis pneumonia is a serious lung infection caused by a fungus that mainly affects people whose immune system is weakened, such as by HIV, cancer treatment or transplant medicines.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Pneumocystis pneumonia, often called PCP (or PJP), is a lung infection caused by a tiny fungus named Pneumocystis jirovecii. Its medical name is Pneumocystis jirovecii pneumonia. Pneumonia means an infection that inflames the air sacs in the lungs, making it harder for oxygen to pass into your blood.

Most people breathe in this fungus at some point in their lives, often in early childhood, and a healthy immune system keeps it under control without any illness. PCP happens when the body's defences are weakened. It is one of the best-known infections in people with advanced HIV, but today it is also seen in people taking strong medicines that dampen the immune system, such as after an organ transplant, during treatment for cancer, or for autoimmune diseases.

PCP is serious and can be life-threatening, especially if treatment is delayed. The good news is that it can usually be treated with medicines, and in many people it can be prevented.

Symptoms

Symptoms often build up slowly over days to weeks in people with HIV. In people with other causes of a weak immune system, such as cancer treatment or long-term steroid use, symptoms tend to come on faster and can become severe within a few days.

Common symptoms include:

  • Shortness of breath, at first mainly when you are active, such as climbing stairs or walking quickly
  • A dry cough that brings up little or no mucus
  • Fever, sometimes with chills or sweats
  • Feeling very tired and weak
  • Tightness or discomfort in the chest, especially when breathing in deeply
  • Weight loss

A key sign is that your breathing seems much worse than you would expect from how you look or from a normal chest exam. Some people feel fine at rest but become very short of breath with light activity. If you have a weakened immune system, do not wait for symptoms to become severe before seeking care.

Causes

PCP is caused by the fungus Pneumocystis jirovecii. It used to be called Pneumocystis carinii, which is why you may still see the older name. The fungus spreads through the air from person to person. It cannot be grown in routine lab cultures, and people do not catch it from soil, pets or food.

Many healthy people carry small amounts of the fungus in their lungs without knowing it. The immune system, especially white blood cells called CD4 cells (a type of T cell that helps coordinate the body's defence), normally stops it from multiplying. When these defences are low, the fungus can grow in the air sacs, fill them with fluid and debris, and cause pneumonia.

PCP is not passed on through casual contact in a way that is a risk to healthy people. However, hospitals may keep people with PCP apart from other patients who have weak immune systems, as a precaution.

Risk factors

Your risk of PCP is higher if your immune system is weakened. The main risk factors are:

  • HIV infection, especially when it has not been treated and the CD4 count has fallen below 200 cells per microlitre. PCP can be the first sign that someone has HIV.
  • Long-term steroid medicines, such as prednisone, taken at moderate to high doses for several weeks or more, particularly when combined with other immune-lowering medicines
  • Blood cancers, such as leukemia and lymphoma, and their treatments
  • Chemotherapy and some targeted cancer medicines
  • Organ or stem cell transplant, because of the medicines used to prevent rejection
  • Autoimmune and inflammatory diseases, such as vasculitis, lupus or rheumatoid arthritis, when treated with strong immune-suppressing medicines
  • Inherited immune problems that some children are born with
  • Severe malnutrition, and being a premature or very young infant in some settings

Diagnosis

If your doctor thinks you may have PCP, they will ask about your health, your medicines and any conditions that affect your immune system. They will listen to your lungs and check your oxygen level.

Common tests

  • Pulse oximetry: a small clip on your finger measures the oxygen in your blood. Your doctor may check it at rest and again after you walk, because levels often drop with activity.
  • Arterial blood gas: a blood sample from an artery, usually at the wrist, gives a more exact oxygen level and helps decide how severe the infection is.
  • Chest X-ray: often shows a hazy pattern in both lungs, but it can look normal early on.
  • CT scan of the chest: a more detailed scan that can show changes when the X-ray is unclear.
  • Blood tests: these may include a test for a fungal marker called beta-D-glucan, a test called LDH (a general marker of tissue damage that is often raised in PCP), a CD4 count and an HIV test.
  • Sputum test: you breathe in a salty mist to help you cough up mucus from deep in your lungs, which is checked for the fungus.
  • Bronchoscopy: a thin, flexible tube with a camera is passed into your airways, usually with sedation, to wash out a small amount of fluid for testing. This is often the most reliable way to confirm PCP.

Because PCP can get worse quickly, treatment is sometimes started before all the test results are back.

Treatment

PCP is treated with medicines that kill the fungus, usually for about 3 weeks. People with mild illness may be treated with tablets at home, while those with low oxygen levels need care in hospital.

Main medicine

The first choice for most people is a combination of two antibiotics, trimethoprim and sulfamethoxazole, given together in one tablet or through a drip into a vein. This combination works well against the fungus. Possible side effects include rash, nausea, fever, low blood counts and changes in kidney function or potassium levels, so your care team will check your blood regularly.

Other options

If you are allergic to sulfa medicines or cannot take the main treatment, other choices include:

  • clindamycin, an antibiotic, combined with primaquine, a medicine that also treats malaria
  • pentamidine, an antiprotozoal medicine given into a vein, usually for severe illness
  • atovaquone, a liquid medicine sometimes used for mild cases
  • dapsone combined with trimethoprim, for mild to moderate cases

Before you take primaquine or dapsone, you may have a blood test for an enzyme called G6PD, because a lack of it can make these medicines break down red blood cells.

Steroids for more severe illness

If your oxygen level is low, your doctor will usually add a steroid medicine such as prednisone for the first few weeks. It reduces lung inflammation and lowers the risk of needing a breathing machine.

Breathing support

You may need extra oxygen through a mask or nasal tubes. Some people need care in an intensive care unit, including help with breathing from a machine.

If you have HIV

If PCP is linked to HIV, your team will usually start or restart HIV treatment (antiretroviral therapy) within about 2 weeks of starting PCP treatment. This helps your immune system recover and lowers the chance of other infections.

It is normal to feel a little worse for the first few days of treatment. Keep taking every dose as prescribed, and speak with your care team before stopping or changing any medicine.

Recovery and self-care

Most people start to feel better within about a week of treatment, but full recovery can take several weeks. Tiredness and shortness of breath on exertion may last a while.

  • Finish the full course of treatment, even if you feel better.
  • Rest, and increase your activity slowly.
  • Drink enough fluids and eat as well as you can.
  • Do not smoke, and avoid second-hand smoke.
  • Keep all follow-up appointments and blood tests.
  • Take any preventive medicine your doctor prescribes after treatment.
  • Tell your care team about any new rash, yellowing of the skin or eyes, very dark urine, or unusual bruising.

Complications

Without prompt treatment, PCP can lead to serious problems, including:

  • Respiratory failure, when the lungs cannot supply enough oxygen and a breathing machine is needed
  • Collapsed lung (pneumothorax), when air leaks into the space around the lung and causes sudden chest pain and breathlessness
  • Medicine side effects, such as severe skin reactions or low blood counts
  • The infection coming back, if the immune system remains weak and prevention is not used

Outlook

With early diagnosis and treatment, many people recover from PCP. The outlook depends on how sick you are when treatment starts, your oxygen levels and the health of your immune system. People with HIV who are treated promptly and start HIV treatment generally do well. PCP in people without HIV, such as those on cancer or transplant treatment, tends to be more severe and needs especially quick care. Once your immune system recovers, your risk of getting PCP again drops a great deal.

Prevention

PCP can often be prevented. If you are at high risk, your doctor may recommend a daily or a few-times-a-week preventive medicine, called prophylaxis. The usual choice is trimethoprim with sulfamethoxazole, which also helps protect against some other infections. Alternatives include dapsone, atovaquone or pentamidine breathed in through a nebuliser once a month.

Prevention is commonly advised for:

  • People with HIV whose CD4 count is below 200
  • Some people receiving chemotherapy, a stem cell or organ transplant, or long-term high-dose steroids
  • People who have already had PCP, until their immune system recovers

For people with HIV, taking HIV treatment every day is the most powerful protection. Once your CD4 count has stayed above 200 for at least 3 months, your doctor may stop the preventive medicine. Getting tested for HIV is an important step, since many people with HIV do not know they have it.

In Canada

In Canada, HIV testing is free and confidential through provincial and territorial health services, and HIV medicines are often covered through provincial or territorial drug plans or special programs, though coverage varies by province or territory. Ask your doctor or local public health unit about testing options.

Diagnosis

Suspect PJP in any immunocompromised patient with subacute dyspnea, nonproductive cough, fever and hypoxemia, particularly exertional desaturation. In HIV, risk rises sharply with CD4 below 200 cells/µL (or below 14%), oropharyngeal candidiasis or prior PJP. In non-HIV hosts (hematologic malignancy, HSCT or solid organ transplant, prolonged glucocorticoids especially at or above 20 mg/day prednisone equivalent for 4 weeks or more, combined immunosuppression), onset is typically more acute and fulminant, often during steroid taper.

  • Imaging: chest X-ray may show bilateral perihilar interstitial infiltrates or be normal; HRCT shows diffuse ground-glass opacity, sometimes with cysts. A normal HRCT makes PJP unlikely.
  • Labs: arterial blood gas with A-a gradient; LDH often elevated (nonspecific); serum (1,3)-beta-D-glucan is highly sensitive, and a negative result argues against PJP, though it is not specific.
  • Confirmation: induced sputum or BAL with immunofluorescence or staining. Quantitative PCR is very sensitive but may detect colonization, particularly in non-HIV patients. BAL has higher yield than induced sputum.
  • Check HIV status and CD4 count.

Management

Do not delay empiric therapy for diagnostic testing in suspected moderate to severe disease. Per US HHS/NIH/CDC/IDSA adult opportunistic infection guidelines:

  • First line: trimethoprim-sulfamethoxazole, TMP 15 to 20 mg/kg/day divided every 6 to 8 hours, oral or IV, for 21 days (dose-adjust for renal function).
  • Adjunctive corticosteroids if PaO2 below 70 mmHg on room air or A-a gradient 35 mmHg or more, started within 72 hours: prednisone 40 mg twice daily days 1 to 5, 40 mg daily days 6 to 10, 20 mg daily days 11 to 21. Evidence of benefit is strongest in HIV; use in non-HIV PJP is individualized.
  • Alternatives: moderate to severe disease, primaquine plus clindamycin or IV pentamidine; mild to moderate disease, dapsone plus trimethoprim, primaquine plus clindamycin, or atovaquone. Test G6PD before primaquine or dapsone.
  • HIV: start ART within 2 weeks of PJP treatment where possible; monitor for IRIS.

Cautions: TMP-SMX can cause rash including SJS/TEN, cytopenias, hyperkalemia, raised creatinine, hepatitis and hyponatremia; monitor CBC, electrolytes and renal function. Pentamidine can cause hypoglycemia or hyperglycemia, pancreatitis, nephrotoxicity, hypotension and QT prolongation. Dapsone and primaquine cause hemolysis in G6PD deficiency and methemoglobinemia. Atovaquone requires administration with food and is less effective.

Red flags: rising oxygen requirement, pneumothorax, respiratory failure. Clinical deterioration in the first 3 to 5 days is common; consider treatment failure after 4 to 8 days without improvement.

Prophylaxis: secondary prophylaxis after treatment; primary prophylaxis in HIV with CD4 below 200 cells/µL, discontinued when CD4 is above 200 for at least 3 months on ART. Non-HIV indications follow transplant, oncology and rheumatology guidance. Mortality is substantially higher in non-HIV than HIV-associated PJP.

When to get medical help

See a doctor soon if you have a weakened immune system and develop:

  • A new dry cough
  • Fever that lasts more than a day or two
  • Shortness of breath when you are active
  • Unusual tiredness or weight loss

Also contact your care team if you are being treated for PCP and get a new rash, are vomiting and cannot keep your medicine down, or are not improving after several days.

Go to the emergency department or call emergency services if you have:

  • Shortness of breath at rest, or breathing that is getting worse quickly
  • Sudden, sharp chest pain with breathlessness
  • Blue or grey lips or fingertips
  • Confusion, extreme drowsiness or fainting
  • A severe rash with blisters, peeling skin or mouth sores

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Pneumocystis Pneumonia. meshb.nlm.nih.gov
  2. MedlinePlus: Pneumocystis jirovecii pneumonia. medlineplus.gov/ency/article/000671.htm
  3. CDC: Pneumocystis pneumonia basics. cdc.gov/pneumocystis-pneumonia/about/index.html
  4. MedlinePlus: Fungal infections. medlineplus.gov/fungalinfections.html
  5. MedlinePlus: HIV. medlineplus.gov/hiv.html