What Is Pneumocystis Pneumonia (PCP)?

Pneumocystis pneumonia (PCP) is a serious infection that causes inflammation and fluid buildup in your lungs. It's caused by a fungus called Pneumocystis jiroveci that's likely spread through the air. This fungus is very common. Most people have successfully fought it by the time they're 3 or 4 years old.

PCP isn't hard to treat and prevent. A healthy immune system can easily control it. But it can make people with weakened immune systems, such as someone with HIV, very sick. People who've gotten an organ transplant, with blood cancers, or who take drugs for autoimmume diseases such as rheumatoid arthritis, inflammatory bowel disease, and multiple sclerosis could get it, too.

Although it's rare, PCP can also affect other parts of your body, including lymph nodes, liver, and bone marrow.

PCP in People with HIV

Before we had medicine to treat HIV, about 3/4 of HIV-positive people got PCP. Antiretroviral therapy (ART) and preventive drugs have brought that number way down, but it's still the most common opportunistic infection.

You're most likely to get it when your CD4 cell count is less than 200. About 1 in 10 people who are in the hospital with HIV have PCP. People with AIDS can die from it, even though they get treatment.


At first, PCP may cause only mild symptoms or none at all.

Call your doctor if you have these symptoms and HIV or a weakened immune system, because PCP can be fatal.


Tests to Diagnose It

Usually, a lab technician will look at the fluid or tissue from your lungs with a microscope to find traces of the fungus. Your doctor will get a sample by helping you cough up stuff or by using a special tool called a bronchoscope that goes into your airways through your mouth. Or your doctor can do a biopsy, taking a needle or a knife to remove a tiny bit of cells from your lung.

A test called PCR (polymerase chain reaction) makes copies of specific pieces of DNA, so it can find smaller amounts of the fungus in samples.

You might also get a chest X-ray, or blood tests to check for low oxygen levels.


Most often, doctors prescribe a combination of two antibiotics, trimethoprim and sulfamethoxazole, or TMP/SMX or SXT (Bactrim, Cotrim, or Septra). Depending how sick you are, you'll get this in pills or through a needle in your vein (by IV) at the hospital.

Other drugs your doctor might prescribe to fight the infection include:

Corticosteroids can help when your PCP is moderate to severe and you have low oxygen levels.


There's no vaccine to prevent this type of pneumonia. The best way to prevent PCP when you have HIV is to keep up with your ART, because it raises your CD4 count.

If you smoke, quit.

Before your CD4 cell count drops or you get sick, you can also take the same medication that treats PCP, but with different doses and timing. Your doctor may recommend this when:

  • You've had PCP before.
  • Your CD4 count is below 200.
  • Your CD4 count is below 300, and you have another opportunistic infection such as thrush.
  • You're taking drugs that suppress your immune system.

Your doctor may want you to keep taking medicine after your PCP clears up so you don't get it again. When your CD4 count goes over 200 and stays there for at least 3 months, it may be OK to stop.

WebMD Medical Reference Reviewed by William Blahd, MD on December 19, 2016



MedlinePlus: "Medical Encyclopedia: Pneumocystis carinii."

Project Inform: "PCP Prevention."

CDC: "Pneumocystis pneumonia," "You Can Prevent PCP."

Journal of Clinical Microbiology: "Diagnosis of Pneumocystis jirovecii Pneumonia in Immunocompromised Patients by Real-Time PCR: a 4-Year Prospective Study."

New Mexico AIDS Education and Training Center: "Pneumocystis Pneumonia (PCP)."

© 2016 WebMD, LLC. All rights reserved.