Pneumocystis pneumonia (PCP) is a serious lung infection caused by the fungus Pneumocystis jirovecii, which mainly affects people with weakened immune systems.
It is one of the most common serious infections in people with advanced HIV who are not on treatment, and it also affects people having chemotherapy, organ or stem cell transplants, or long courses of high-dose steroids or other immune-suppressing medicines. PCP typically causes a dry cough, fever and breathlessness that worsens over days or weeks. It can be life-threatening, but it is treatable, and in many people it can be prevented with a daily antibiotic. Testing for HIV and starting treatment early are key ways to prevent it.

Imagine a 34-year-old woman in Malawi who has had a dry cough and fever for three weeks. She now gets breathless walking to the market and has lost weight. At the clinic, the nurse checks her oxygen level, which drops when she walks. She has never been tested for HIV. The test is positive, and her immune system is very weak. Suspecting pneumocystis pneumonia, the team starts treatment straight away, with oxygen and an antibiotic. As she recovers, she begins HIV treatment and a daily preventive antibiotic. Months later, her immune system has recovered, and she is back at work.
What is pneumocystis pneumonia?
Pneumocystis jirovecii is a fungus that lives in the lungs of many healthy people without causing illness. When immunity is weakened, especially when CD4 cell counts fall below a certain level in HIV, it can multiply and cause pneumonia.
PCP inflames the air sacs, making it hard for oxygen to pass into the blood. This is why low oxygen levels, especially on exertion, are typical.
In people with HIV, PCP usually develops slowly over weeks. In people with other causes of weak immunity, such as cancer treatment or transplants, it often develops faster and can be more severe.
10 key facts about pneumocystis pneumonia
- PCP is a fungal lung infection.
- It mainly affects people with weakened immune systems.
- Advanced untreated HIV is a major risk factor.
- Chemotherapy, transplants and steroids also increase risk.
- Symptoms include dry cough, fever and breathlessness.
- Oxygen levels often drop with activity.
- It is diagnosed with lung samples and scans.
- It is treated with antibiotics such as co-trimoxazole.
- Preventive antibiotics stop most cases in high-risk people.
- HIV testing and treatment prevent PCP.
Causes and risk factors
Risk factors include:
- Advanced HIV with low CD4 count
- Chemotherapy for blood cancers
- Organ and stem cell transplants
- Long-term high-dose steroids
- Immune-suppressing medicines for autoimmune diseases
- Inherited immune deficiencies
- Severe malnutrition in children
It is not usually spread from people with healthy immune systems.
Symptoms and warning signs
Symptoms include:
- Dry cough
- Fever
- Breathlessness, worse on exertion
- Chest tightness
- Tiredness
- Weight loss
- Fast breathing
- Blue lips in severe cases
Symptoms may be subtle at first.
How pneumocystis pneumonia is diagnosed
- Oxygen level checks at rest and on walking.
- Chest X-ray or CT scan.
- Sputum or bronchoscopy samples tested for Pneumocystis.
- Blood tests including beta-D-glucan.
- HIV testing and CD4 count.
Treatment options
- Co-trimoxazole (trimethoprim-sulfamethoxazole) as the main treatment.
- Alternative antibiotics for people who can’t take co-trimoxazole.
- Steroids for moderate to severe cases with low oxygen.
- Oxygen and sometimes ventilation.
- Starting or optimising HIV treatment.
- Preventive antibiotics after recovery.
Possible complications
- Respiratory failure
- Pneumothorax
- Need for intensive care
- Death if untreated
- Side effects from treatment such as rash or low blood counts
Outlook
With early treatment, most people recover. Outcomes are worse when diagnosis is delayed or the infection is severe.
Restoring immunity prevents recurrence.
Can it be prevented?
- Test for HIV and start treatment early.
- Take preventive antibiotics if advised.
- Follow prevention plans during chemotherapy or after transplant.
- Attend regular monitoring.
- Avoid smoking.
Living with pneumocystis pneumonia
- Take preventive medicine exactly as prescribed.
- Keep up with HIV treatment and checks.
- Report breathlessness early.
- Eat well and rest during recovery.
- Attend follow-up.
How families and communities can help
Family can encourage HIV testing and treatment.
Support with daily medicines.
Research and new developments
Research looks at better non-invasive tests.
Studies explore new treatments for people intolerant of co-trimoxazole.
Around the world
PCP remains common where HIV is diagnosed late, including parts of Africa and Asia.
It is increasingly seen in people on immune-suppressing treatments in high-income countries.
Nursing care and the role of nurses
Nurses play a key role in prevention and early detection of PCP.
- Offer HIV testing.
- Check oxygen levels at rest and on walking.
- Support adherence to preventive antibiotics.
- Monitor for drug side effects.
- Educate high-risk patients about symptoms.
- Support recovery and HIV care.
Preventing pneumocystis pneumonia
People at high risk, including those with HIV and low CD4 counts, people having certain chemotherapy, transplant recipients and those on long-term high-dose steroids or some immune-suppressing medicines, are often given a daily or thrice-weekly preventive antibiotic, usually co-trimoxazole. It is very effective and also protects against some other infections. People with HIV can usually stop preventive treatment once their immune system recovers on antiretroviral therapy, as advised by their care team. Never stop preventive medicine without advice.
The exertion oxygen test
Oxygen levels may look normal at rest but drop when walking. Checking oxygen before and after a short walk can help detect pneumocystis pneumonia early.
HIV and pneumocystis pneumonia
pneumocystis pneumonia is often the illness that leads to an HIV diagnosis. Testing everyone with unexplained pneumonia and weight loss for HIV saves lives.
Side effects of treatment
Co-trimoxazole can cause rash, fever, nausea, low blood counts and raised potassium. Report any rash promptly.
Children
Babies exposed to HIV and children with severe malnutrition or immune problems can develop pneumocystis pneumonia and may be given preventive antibiotics.
Steroids in PCP
For people with low oxygen, adding steroids early reduces the risk of death.
Recovery
Breathlessness and tiredness may take weeks to improve.
Sulfa allergy
People allergic to sulfa medicines can use alternative treatments or preventive options.
Smoking
Smoking damages lungs and increases infection risk; stopping helps recovery.
Living with weakened immunity
Good nutrition, vaccinations and prompt treatment of infections help keep people well.
Recognising PCP early in people on immune-suppressing treatment
As more people are treated with powerful immune-suppressing medicines for cancer, autoimmune diseases and transplants, pneumocystis pneumonia is increasingly seen outside the context of HIV. In these patients, it often develops quickly, sometimes as steroid doses are being reduced, and can become severe within days. People on these treatments should be told to report a new dry cough, fever or unusual breathlessness promptly rather than waiting for it to pass. Clinics can provide written information about warning signs and a contact number. Health workers should consider pneumocystis pneumonia in any immunocompromised patient with breathlessness that seems out of proportion to the chest X-ray, and check oxygen levels with exertion. Early treatment greatly improves the chances of a full recovery.
Pneumocystis pneumonia and the HIV treatment cascade
The best way to prevent pneumocystis pneumonia in people living with HIV is to diagnose HIV early and start antiretroviral therapy straight away. When the virus is suppressed, the immune system recovers and the risk of serious infections falls sharply. Many health systems now offer routine HIV testing in clinics, antenatal care and community settings. People who are newly diagnosed with low CD4 counts are usually offered preventive co-trimoxazole until their immune system recovers. Nurses can help by encouraging testing, supporting people to start and stay on treatment, and making sure that preventive medicine is prescribed and taken.
Myths and facts
Myth: PCP only affects people with HIV.
Fact: Cancer treatment, transplants and steroids also raise risk.
Myth: PCP is spread easily between healthy people.
Fact: Healthy people rarely become ill.
Myth: A normal oxygen level at rest rules it out.
Fact: Oxygen may only drop with exertion.
Myth: Preventive antibiotics are lifelong.
Fact: Many people can stop once immunity recovers.
Frequently asked questions about pneumocystis pneumonia
What causes pneumocystis pneumonia?
The fungus Pneumocystis jirovecii.
Who is at risk?
People with weakened immune systems.
What are the symptoms?
Dry cough, fever and breathlessness.
How is it treated?
With antibiotics such as co-trimoxazole.
Can it be prevented?
Yes, with preventive antibiotics and HIV treatment.
Is it contagious?
It rarely causes illness in healthy people.
Should I be tested for HIV?
Yes, if you have pneumonia with weight loss or other risk factors.
When to seek help
- Breathlessness getting worse
- Blue lips or confusion
- Chest pain
- High fever
- Rash after starting co-trimoxazole
Key takeaways
- PCP is a fungal lung infection.
- Chemotherapy, transplants and steroids also increase risk.
- Oxygen levels often drop with activity.
- It is diagnosed with lung samples and scans.
- Preventive antibiotics stop most cases in high-risk people.
- HIV testing and treatment prevent PCP.
Looking after your emotional wellbeing
Any long or worrying health problem can affect mood, sleep, relationships and confidence. Feeling anxious, low, angry or isolated after a diagnosis of pneumocystis pneumonia is common and understandable. Talking openly with family, friends, faith leaders or a support group can ease the load, and so can learning as much as you can about what to expect.
If low mood, hopelessness or worry last for more than two weeks, or if you have thoughts of harming yourself, tell your nurse or healthcare provider straight away. Emotional health is part of physical recovery, and support is available.
How to prepare for a clinic appointment
Before you see a nurse or healthcare provider, write down your symptoms, when they started and anything that makes them better or worse. Bring a list of all medicines, including herbal and traditional remedies, and any previous test results or clinic cards. If possible, bring a family member or friend to help you remember what is said.
During the appointment, ask the provider to explain anything you do not understand, and repeat the plan back in your own words. Before you leave, make sure you know what to do if symptoms get worse, when to return and who to contact with questions.
If cost, distance or work makes it hard to attend appointments, tell your nurse. Ask whether free or subsidised services, transport support, community health workers or phone follow-up are available in your area, so that practical problems do not stop you getting the care you need.
Planning ahead
Whether a health problem is short-lived or long term, a little planning makes care safer. Keep a folder or phone note with your diagnosis, medicines, allergies, recent test results and the contact details of your care team, and share it with a trusted family member. If you travel, carry enough medicines and a short letter describing your condition. Agree with your nurse or healthcare provider what to do if symptoms suddenly worsen and where to go out of hours, and review the plan whenever your treatment changes.
Support for carers
Caring for someone with a health condition can be rewarding but tiring. Carers should look after their own sleep, nutrition and health, ask relatives and friends for practical help, and ask about carer assessments, respite services and support groups in their area. Accepting help is a strength, not a failure, and it allows carers to keep supporting their loved one for longer.
Finding reliable health information
Health information online varies widely in quality. Prefer sources such as the World Health Organization, national health ministries, public health agencies, university hospitals and registered professional bodies. Be cautious with social media posts, miracle cures and products sold with promises that sound too good to be true.
If you read something that worries you or contradicts the advice you have been given, write it down and discuss it with your nurse or healthcare provider. They can explain how it applies to your own situation and help you separate evidence from rumour.
Questions to ask your nurse or healthcare provider
- Am I at risk of PCP?
- Should I take preventive antibiotics?
- When can I stop preventive treatment?
- What side effects should I watch for?
- Should I have an HIV test?
- How can I protect my lungs?
But isn’t PCP rare now that HIV treatment exists?
It’s less common, but still frequent where HIV is diagnosed late, and increasing among people on immune-suppressing treatments.
Your next step: If you have a weakened immune system and develop a dry cough or breathlessness, contact your care team promptly.
Related: HIV · Neutropenia · Aspergillosis · Pneumonia
Sources: CDC: pneumocystis pneumonia; MedlinePlus: pneumocystis jirovecii pneumonia.



Leave a Reply