Pneumocystis Infections

This is an infection caused by a type of fungus called Pneumocystis. It's more common in people with weakened immune systems, like those with AIDS.

Condition

What people with Pneumocystis Infections report

Every report comes from a Lived member, sent anonymously.

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

NameHow it went

About Pneumocystis Infections

What It Is

Pneumocystis infections are caused by Pneumocystis jirovecii, a fungus found throughout the world. Most people are exposed to it in childhood, and some healthy adults carry it in their lungs without ever becoming sick. It causes illness mainly when the immune system is weakened. The main illness it causes is Pneumocystis pneumonia, usually shortened to PCP (some clinicians write PJP). It is a serious lung infection in which the tiny air sacs of the lungs fill with fluid, making it harder for oxygen to reach the blood. Typical symptoms are fever, a dry cough, chest discomfort, tiredness and shortness of breath that builds over several days or weeks. Without timely treatment, PCP can become life-threatening. The fungus was once called Pneumocystis carinii, which is why older sources use that name. Infection outside the lungs can happen but is rare.

Causes & Risk Factors

PCP develops when the body's defenses can no longer keep the fungus in check. The fungus passes from person to person through the air, including from people who carry it without symptoms, but exposure alone rarely matters for someone with a healthy immune system. The best-known risk is HIV that is not controlled by treatment. Risk rises sharply when the CD4 count, a blood test that measures the immune cells HIV destroys, falls below 200 cells per cubic millimeter. Effective HIV medicines and preventive antibiotics have made PCP much less common in people with HIV than it once was. Today a growing share of cases occur in people without HIV whose immunity is lowered in other ways: organ or stem cell transplant recipients, people with blood cancers or other cancers, and people with autoimmune or chronic lung diseases. The risk is highest with longer courses of immune-suppressing treatment, especially corticosteroids such as prednisone taken for weeks to months, combinations of several immune-suppressing drugs, chemotherapy, and medicines that deplete B cells, such as rituximab. A single immune-modifying medicine on its own usually carries a low risk.

How It's Diagnosed

PCP is suspected when someone with a weakened immune system develops fever, dry cough and breathlessness, especially if their blood oxygen level is low. Oxygen is often checked with a fingertip clip (pulse oximeter) and sometimes with an arterial blood test, and how low it is helps clinicians judge how severe the pneumonia is. A chest X-ray or CT (computed tomography) scan often shows a hazy pattern across both lungs, but other lung problems can look similar, so imaging alone does not confirm it. The diagnosis is made by finding the fungus in a sample from the lungs. This may be sputum coughed up after breathing a salty mist (induced sputum), or fluid washed from the airways during bronchoscopy, a procedure in which a thin tube is passed into the lungs (bronchoalveolar lavage). The lab looks for the organism with special stains or detects its genetic material with a polymerase chain reaction (PCR) test. PCR is very good at ruling PCP out, but a positive result can sometimes reflect harmless carriage rather than active infection, so it is interpreted alongside the whole picture. Blood tests such as beta-D-glucan, a marker released by many fungi, can add support. In people without HIV, there are often fewer organisms in the lungs, so a negative stain does not fully exclude PCP.

Treatment Options

The standard treatment is the antibiotic combination trimethoprim-sulfamethoxazole (often known as TMP-SMX or by the brand Bactrim). It is taken by mouth for milder illness and given through a vein (IV) in the hospital for more severe illness, usually for about three weeks. Many people need oxygen, and some with severe pneumonia need intensive care and help with breathing. TMP-SMX works well but commonly causes side effects, including rash, fever, low blood counts, kidney strain and high potassium, so blood tests are checked during treatment. Mild reactions can often be managed without stopping it, which matters because the alternatives have less supporting evidence. People with a known sulfa (sulfonamide) allergy cannot take it, so it is important to mention any past reaction. Alternatives include pentamidine, atovaquone, the combination of clindamycin and primaquine, and dapsone-based regimens. For people with HIV and moderate to severe PCP, a corticosteroid such as prednisone started early alongside the antibiotic reduces the risk of death. Without HIV, steroids are not routinely added, though they may be considered case by case. People with HIV are also usually advised to start or restart HIV treatment within about two weeks of the diagnosis, which helps rebuild the immune defenses that keep PCP away.

What to Expect

Recovery from PCP is gradual, and changes on a CT scan typically begin to clear after about two weeks of treatment. Tiredness and reduced stamina can last for weeks after the antibiotic course ends. Outcomes depend heavily on the underlying condition: in studies, roughly 1 in 5 people without HIV died of PCP, compared with about 3 to 10 in 100 people with HIV, partly because the illness tends to progress faster and be recognized later in people without HIV. There is no vaccine against PCP, so prevention relies on medicine. After an episode, most people take a lower preventive dose of TMP-SMX (or an alternative) to stop it returning. In HIV, this generally continues until the CD4 count has stayed at 200 or above for at least three months on effective HIV treatment. For transplant recipients and people on long-term immune-suppressing treatment, the care team decides how long prevention is needed based on how the immune system recovers. Many people at high risk take preventive medicine even before they ever have PCP, so it is worth asking whether it applies to you when starting a new immune-suppressing treatment.

When to Seek Help

If you have HIV, a transplant, cancer treatment or long-term immune-suppressing medicines, contact your care team promptly about a new fever, dry cough or shortness of breath that is building over days, even if it seems mild; PCP is easier to treat when caught early. Contact the team too if you develop a rash, fever or other new symptoms while taking preventive or treatment antibiotics. Shortness of breath at rest or with only slight activity, or breathing that is getting steadily worse during treatment, needs to be seen by a clinician the same day. Breathing difficulty that comes on suddenly or is so severe that it is hard to talk needs emergency care: call 911.

Questions to Ask Your Doctor

  1. 1.Given my condition and medicines, am I at enough risk of PCP that I should be taking preventive medicine?
  2. 2.How will we confirm whether this is PCP rather than another kind of pneumonia?
  3. 3.If I can't take trimethoprim-sulfamethoxazole, which alternative makes the most sense for me, and what are its trade-offs?
  4. 4.How long will I need to stay on preventive treatment after this, and what will tell us it is safe to stop?
  5. 5.Which side effects of my antibiotic should I report, and how often will my blood be checked?

Last reviewed • Oct 2026

Educational content, not medical advice.