Pneumocystis Pneumonia (PCP)

This is a lung infection that affects people with weak immune systems, like those with AIDS. It's caused by a fungus called Pneumocystis jirovecii. Symptoms include trouble breathing and low oxygen levels.

Condition

What people with Pneumocystis Pneumonia (PCP) report

Every report comes from a Lived member, sent anonymously.

Have you tried Bactrim (Trimethoprim-Sulfamethoxazole) for Pneumocystis Pneumonia (PCP)?

NameHow it went

About Pneumocystis Pneumonia (PCP)

What It Is

Pneumocystis pneumonia (PCP) is a lung infection caused by Pneumocystis jirovecii, a fungus found worldwide that most people first breathe in during early childhood. In someone with a healthy immune system it rarely causes illness. When the immune system is seriously weakened, the organism can multiply in the lungs and inflame the tiny air sacs where oxygen passes into the blood, so the body has trouble getting enough oxygen. The typical symptoms are a dry cough, fever and shortness of breath that is most noticeable with activity, often with chest discomfort and tiredness. In people with HIV, these usually build slowly over days to weeks, sometimes longer. People whose immunity is weakened for other reasons, such as a transplant or long-term steroid treatment, tend to become sick faster and more severely. PCP can be life threatening, which is why recognizing it early and starting treatment promptly matter so much. The organism was once called Pneumocystis carinii, which is where the abbreviation PCP comes from. Some clinicians now write PJP for the same infection.

Causes & Risk Factors

PCP develops when the immune system can no longer keep Pneumocystis in check. The organism spreads through the air from person to person, including from people who carry it without being sick, and illness can come from a new infection or from organisms already present in the lungs. Because nearly everyone is exposed at some point, what decides whether someone gets sick is the state of their immune defenses rather than the exposure itself. The best-known risk is HIV that has significantly weakened the immune system. Clinicians track this with the CD4 count, a blood test of the immune cells HIV destroys. Risk rises sharply once the count falls below 200 cells per cubic millimeter, and about 9 in 10 people with HIV who develop PCP have a count below that level. Effective HIV treatment and preventive antibiotics have made PCP far less common in people with HIV than it once was. PCP is now seen more often in people without HIV whose immunity is lowered by other conditions or treatments. These include long-term or high-dose corticosteroids such as prednisone, chemotherapy and blood cancers, organ or bone marrow (stem cell) transplants, and other medicines that suppress the immune system for autoimmune or inflammatory diseases. Not taking preventive medicine when it has been recommended also raises the risk.

How It's Diagnosed

Because cough, fever and breathlessness have many causes, a clinician begins by asking about anything that weakens the immune system, such as HIV, a transplant or medicines like steroids. If a person's HIV status is not known, an HIV test is usually part of the evaluation. Oxygen levels are central to the assessment. A pulse oximeter, a small clip on the finger, estimates how saturated the blood is with oxygen; in PCP the reading is often near normal at rest but drops when the person walks. An arterial blood gas, a blood sample taken from an artery, measures the oxygen pressure in the blood (PaO2) more precisely. A PaO2 below 70 mm Hg while breathing ordinary room air, or a large gap between the oxygen in the lungs and the oxygen reaching the blood, marks moderate to severe disease and changes how it is treated. A chest X-ray often shows hazy shadows across both lungs, but it can look normal early in the illness, and a CT scan picks up changes more reliably. A blood test for beta-D-glucan, a component of the fungus's cell wall, can support the diagnosis, although other fungal infections can also raise it. Confirming PCP means finding the organism in a sample from the lungs. This may be sputum coughed up after breathing in a fine salty mist (induced sputum), or fluid collected during bronchoscopy, in which a thin flexible tube is passed into the airways and a small area is rinsed. A PCR test, which detects the fungus's genetic material, is very sensitive but cannot always tell active infection from harmless carriage, so results are read alongside the whole picture. When PCP is strongly suspected, treatment usually starts while these tests are still under way.

Treatment Options

The standard treatment is trimethoprim-sulfamethoxazole (often shortened to TMP-SMX, brand name Bactrim), a combination antibiotic. Although Pneumocystis is a fungus, ordinary antifungal medicines do not work against it. Treatment usually lasts 3 weeks (21 days). People with milder illness whose oxygen levels are reasonably good can often take tablets at home. People who are sicker are treated in the hospital, usually starting with medicine through a vein and switching to tablets as they improve; some need extra oxygen, and the most severe cases need a breathing machine. TMP-SMX works well but causes side effects often, especially in people with HIV, more than 15% of whom have a reaction such as a rash, fever, nausea, a raised potassium level or low blood counts. Many reactions are mild enough to manage while treatment continues, but a severe skin reaction means stopping it permanently. For people who cannot take it, alternatives include atovaquone (a liquid taken by mouth), pentamidine (given through a vein), clindamycin combined with primaquine, and dapsone combined with trimethoprim. Before dapsone or primaquine, clinicians usually check for G6PD deficiency, an inherited enzyme difference that makes these medicines more likely to damage red blood cells. For people with HIV whose oxygen level is low (a PaO2 below 70 mm Hg or a similarly large oxygen gap), adding a 3-week course of a corticosteroid such as prednisone, started within the first few days of antibiotics, calms inflammation in the lungs. In clinical trials this lowered the risk of dying and of needing a breathing machine. Whether steroids help people without HIV is uncertain, as the studies so far have not shown a clear survival benefit, so that decision is made case by case. For someone with HIV who is not yet taking HIV medicines (antiretroviral therapy), starting them within about 2 weeks of the PCP diagnosis, when possible, is recommended because rebuilding the immune system improves longer-term outcomes. During pregnancy, TMP-SMX remains the preferred treatment because its benefits outweigh a small risk to the developing baby, and extra folic acid is usually prescribed alongside it.

What to Expect

How PCP goes depends heavily on the person's overall health, how weak the immune system is and how quickly treatment starts. PCP is a serious infection: studies estimate that about 1 in 10 to 1 in 5 people with HIV who develop PCP die from it, and the risk is considerably higher for people without HIV, who often become sicker more quickly. Energy and stamina usually return more slowly than the infection clears. Breathlessness on exertion and tiredness can linger for weeks, particularly after a hospital stay, when there is lasting lung scarring or when the immune system remains weak. For people with HIV who start antiretroviral therapy, symptoms sometimes flare temporarily as the immune system recovers and reacts to the remaining infection, a reaction called immune reconstitution inflammatory syndrome (IRIS), which the care team can usually manage. Preventing a second episode is a central part of follow-up. There is no vaccine, so prevention relies on medicine, most often TMP-SMX. People with HIV continue preventive treatment after the 3-week course until HIV medicines have raised the CD4 count above 200 and kept it there for several months. Preventive medicine is also used for people at high risk who have never had PCP, including people with HIV and a CD4 count below 200, transplant recipients and people on long-term, high-dose steroids or similar immune-suppressing medicines, and continues as long as the risk lasts.

When to Seek Help

If you have a weakened immune system from HIV, cancer treatment, a transplant or long-term steroids or other immune-suppressing medicine, contact your care team promptly about a new cough, fever or shortness of breath, especially breathlessness with activity that has been getting worse over several days. If you are starting long-term steroids or another immune-suppressing treatment and preventive medicine has not been discussed, raise it at your next visit. During treatment, call your care team right away if your breathing is not improving or is getting worse, or if you develop a new rash or another suspected reaction to the medicine. Do not stop the medicine on your own; the team can decide whether to continue, adjust or switch it. Severe shortness of breath at rest, or sudden sharp chest pain with sudden breathlessness (which can signal a collapsed lung, a known complication of PCP), needs emergency care: call 911.

Questions to Ask Your Doctor

  1. 1.What tests will confirm whether this is PCP, and what do my oxygen levels mean for how it should be treated?
  2. 2.If I react to trimethoprim-sulfamethoxazole, which alternative would suit me, and do I need a G6PD test first?
  3. 3.Do I need preventive medicine after this treatment, and what would need to change before I can stop it?
  4. 4.What should my recovery look like over the next few weeks, and what signs would mean the treatment is not working?
  5. 5.If I have HIV, when should I start or adjust my HIV medicines, and how will we watch for IRIS?

Last reviewed • Oct 2026

Educational content, not medical advice.