Skip to main content
General practice·General practice

Pneumocystis Pneumonia

Overview

Pneumocystis pneumonia — usually called PCP — is a lung infection caused by a tiny fungus called Pneumocystis jirovecii. This fungus is found almost everywhere in the environment. Most healthy people breathe it in now and then without any problem, because their immune system keeps it under control. But when the immune system is weakened, the fungus can multiply in the lungs and cause pneumonia (an infection that fills the air sacs of the lungs with fluid, making it hard to breathe). PCP is not contagious in the way a cold is — you cannot catch it from someone who has it.

Key facts

  • PCP is a lung infection caused by a fungus, not a bacterium or a virus.
  • It almost always affects people whose immune system is weakened by illness or by medicines that suppress immunity.
  • It is treatable, and most people recover well when treatment starts early — but it can become serious quickly, so breathing problems need prompt medical attention.
  • It is not spread from person to person in the usual sense, so you do not need to isolate yourself from family or friends.

PCP is uncommon in the general population. It is much rarer than it was a few decades ago, largely because HIV is now treated early and because doctors are more careful about preventing it in people at risk. It is still seen regularly in people with weakened immune systems, especially those who are not yet on treatment or who take immunity-lowering medicines.

PCP mainly affects people whose immune defences are lowered. This includes people living with HIV who are not yet on effective treatment, people who have had an organ or stem cell transplant, people having chemotherapy for cancer, people taking long courses of steroid or other immune-suppressing medicines for conditions such as inflammatory or autoimmune diseases, and people with certain rare inherited immune problems. It can also occur, though rarely, in premature or severely malnourished infants. Healthy adults and children with normal immune systems are very unlikely to get it.

Symptoms

Call emergency services immediately if you notice:
  • Severe shortness of breath at rest, or being unable to speak a full sentence without gasping
  • Lips, tongue, or fingertips turning blue or grey
  • Confusion, extreme drowsiness, or difficulty waking the person
  • Very fast or laboured breathing, or the skin pulling in between the ribs
  • Fainting or collapse
  • Chest pain with breathlessness
See a doctor urgently (same day) if you notice:
  • ⚠Breathlessness that is clearly getting worse over hours or a day
  • ⚠A fever that does not settle, especially with a cough
  • ⚠A new cough lasting more than a few days
  • ⚠Feeling unable to do normal daily activities because of breathlessness
  • ⚠Low oxygen levels if you have been given a home oxygen monitor and it reads below your usual level

Common symptoms

  • A dry cough that does not bring up much mucus
  • Shortness of breath, at first only when walking or climbing stairs, then also when resting
  • Fever, often mild
  • Feeling very tired or weak
  • Tightness or discomfort in the chest
  • Night sweats
  • Unexplained weight loss
  • Breathing that gets worse slowly over several days or even a few weeks — this gradual pattern is typical of PCP

Symptoms in children

  • Fast or noisy breathing
  • Trouble feeding or drinking, or fewer wet nappies
  • Irritability, poor sleep, or unusual sleepiness
  • Cough and fever
  • In premature or undernourished babies, poor weight gain and worsening breathing

Symptoms in older adults

  • Breathlessness that may be put down to age or 'just getting unfit'
  • Feeling unusually weak, muddled, or more unsteady on the feet
  • Fever may be low or absent
  • A dry cough that lingers
  • Loss of appetite and weight loss
  • Breathing that gets worse over days rather than hours

Causes

Main causes

  • Infection with the fungus Pneumocystis jirovecii, which is common in the environment and usually harmless to healthy people
  • A weakened immune system that can no longer keep the fungus in check, allowing it to multiply in the lungs
  • In some people, the fungus may have been dormant in the body for years and becomes active when immunity drops

Risk factors

  • Living with HIV, particularly if not yet on effective treatment or with a low CD4 count (a measure of certain immune cells)
  • Having had an organ or stem cell transplant
  • Chemotherapy or other cancer treatments that lower immunity
  • Long courses of steroid medicines or other drugs that suppress the immune system, for example for inflammatory conditions
  • Certain rare inherited immune system disorders
  • Severe malnutrition, and being born prematurely
  • Very occasionally, long-term lung disease or being critically unwell for other reasons

When to see a doctor

See a doctor urgently if:

  • New or worsening breathlessness, even if you feel otherwise well
  • A dry cough with fever that is not improving
  • Any breathing difficulty if you have a weakened immune system — do not wait to see if it settles
  • Feeling dizzy, faint, or unusually exhausted with a cough or fever

Book a routine appointment if:

  • A cough that has lasted more than two to three weeks
  • Unexplained weight loss or night sweats
  • Tiredness that is affecting your daily life
  • If you take immune-suppressing medicines and you are due a review — ask whether your lung infection risk needs checking
Most coughs and fevers are caused by common infections, and having one does not mean you have PCP. PCP is rare in people with a healthy immune system. The reason to be aware of it is that in people whose immunity is lowered, it can come on gradually and quietly, so it is worth getting breathlessness checked early rather than waiting. If you are unsure, a quick call to your doctor or pharmacist is always reasonable.

Diagnosis

Your doctor will start by asking about your symptoms, how long they have been going on, and your medical history — including any conditions or medicines that affect your immune system. They will examine you, listen to your breathing, and usually check the oxygen level in your blood with a small clip on your finger. If PCP is possible, you will usually be referred for chest imaging and laboratory tests to look for the fungus or evidence of it in your lungs or blood.

Tests that may be done

  • Oxygen level check with a finger probe, and sometimes a blood gas test to measure oxygen more precisely
  • Chest X-ray, and sometimes a CT scan of the chest
  • Blood tests, including a full blood count and tests that look for markers of infection
  • A mucus (sputum) sample, which you may be asked to cough up into a pot
  • A breathing test where you breathe into a tube, or a walk test to see how your oxygen level changes with activity
  • In some cases, a bronchoscopy — a thin flexible tube passed gently into the airways to wash a small amount of fluid from the lungs so it can be tested
  • Tests to check your immune system, including an HIV test, which is a routine and confidential part of investigating this infection

What to expect at your appointment

Some tests are quick and painless, such as the finger oxygen probe and blood tests. A bronchoscopy is done with sedation or numbing medicine so it is not painful, though your throat may feel sore afterwards. Results of the lab tests can take a few days. Because PCP can worsen slowly but steadily, treatment is sometimes started before all results are back, based on your symptoms and scan. Your medical team will explain each step and answer your questions.

Treatment

PCP is treated with prescription antibiotics — medicines that fight the fungus — and with support for your breathing. Many people are cared for in hospital at first, because oxygen levels need watching closely, but milder cases can sometimes be managed at home with close follow-up. Treatment works best when it starts early, so don't put off getting breathlessness checked.

Self-care at home

  • Rest as much as your body asks for, and build activity back up gradually
  • Drink enough fluids, especially if you have a fever
  • Take all prescribed medicines for the full course, even if you start to feel better
  • Do not smoke or vape, and avoid smoky or dusty places while your lungs recover
  • Keep a note of your breathing — if it worsens, seek help the same day
  • Ask your doctor before starting any new medicine, supplement, or herbal remedy, as some can interact with treatment
  • Keep follow-up appointments so your oxygen levels and progress can be checked

Medical treatments

The main treatment is a course of prescription antibiotic medicine that fights the fungus, usually given at a high dose. In hospital this is often given through a drip into a vein, and later as tablets or liquid when you are improving. If your oxygen level is low, your team may add a steroid-type anti-inflammatory medicine to ease the lung inflammation — this is a decision your doctor makes based on your oxygen levels and test results. Supportive care matters just as much: oxygen through a mask or nasal tubes if needed, fluids, fever control, and treatment of any other infection. Your doctor will also look at why your immune system is weakened and treat or adjust that where possible, since this is key to recovery and to preventing PCP from coming back.

When is surgery considered?

Surgery is not usually part of treating PCP. Very occasionally, a procedure is needed if air leaks from the lung and causes it to collapse (a pneumothorax); this is managed by a specialist team and is uncommon.

Living with this condition

Recovery from PCP usually takes several weeks. Breathlessness often improves first, while tiredness and a cough can linger. Plan shorter days with rests in between, and let people around you help with shopping, cooking, and household tasks. Keep your home smoke-free and well ventilated. If you have been given a home oxygen monitor or oxygen, follow the instructions carefully and know who to contact if your numbers drop. Because PCP is linked to a lowered immune system, you will likely have regular reviews of your overall health and any medicines you take.

Lifestyle tips

  • Stop smoking and avoid second-hand smoke — this is the single biggest thing you can do to help your lungs heal
  • Avoid close contact with people who have coughs, colds, or flu-like illnesses while your immunity is low
  • Wash your hands regularly and keep up with routine vaccinations recommended for you
  • Get plenty of sleep and pace yourself as you rebuild strength
  • Keep taking any medicines for your underlying condition exactly as prescribed — never stop them on your own
  • Ask your doctor or pharmacist before travel or before starting new treatments

Diet and exercise

Eat regular, balanced meals with plenty of vegetables, fruit, and protein to support healing, and drink water throughout the day. If your appetite is poor, small meals more often can help. Once your breathing is stable, gentle activity such as short walks, building up slowly, helps your lungs and muscles recover. Start small — a few minutes at a time — and stop if you become very breathless or dizzy. Ask your doctor or a physiotherapist for advice on breathing exercises and safe pacing if you feel unsure.

Mental health and emotional wellbeing

Being breathless is frightening, and a stay in hospital or a long recovery can leave you anxious or low in mood. Sleep can be disrupted and it is common to worry about becoming unwell again. These feelings are normal and they usually ease as you recover, but they deserve attention. Talk to your doctor if low mood, worry, or poor sleep is lasting more than a couple of weeks or affecting your daily life — talking therapies and other support are available. If you ever feel you might harm yourself, contact your local emergency number or a crisis line in your country straight away, or reach out to someone you trust and ask them to stay with you.

Prevention

Yes, largely. The most important step is protecting your immune system: if you live with HIV, starting and staying on effective treatment dramatically lowers the risk of PCP. If you take immune-suppressing medicines, your doctor will review the dose and duration regularly and may prescribe a low-dose preventive antibiotic if your risk is high. Good hand hygiene, avoiding people with active infections while your immunity is low, and not smoking all help protect your lungs. Preventive antibiotics are usually stopped once your immune system recovers, so reviews matter.

Vaccines

There is no vaccine against Pneumocystis itself. However, keeping up to date with the vaccines recommended for you — such as flu, COVID-19, and pneumococcal vaccines — helps prevent other lung infections that can be more serious when your immunity is low. Ask your doctor or pharmacist which ones are right for you.

Screening programmes

There is no general screening programme for PCP in the population. Instead, people at higher risk are monitored — for example, regular blood tests of immune cell counts in people living with HIV, and careful review of immune-suppressing treatment in people with transplants or autoimmune conditions. If you are in a higher-risk group, ask your specialist whether you need preventive treatment and how often you should be reviewed.

Complications

If left untreated

  • Oxygen levels dropping, leading to severe breathlessness
  • Respiratory failure, where the lungs cannot supply enough oxygen and breathing support is needed
  • A collapsed lung caused by air leaking from the lung (pneumothorax)
  • Spread of infection beyond the lungs, which is uncommon
  • Serious illness that can be life-threatening, especially in people with very weakened immunity

Long-term outlook

With prompt treatment, most people with PCP improve steadily and many make a full recovery, though it can take weeks to feel like yourself again. Outcomes are best when treatment starts early and when the underlying cause of lowered immunity is also treated. Some people need a longer recovery or extra oxygen for a while. Your medical team will follow your progress closely and adjust treatment as needed — there is good reason to feel hopeful, and plenty of support is available along the way.

Find support

External links open third-party websites. Ruqelo Health is not responsible for external content. Listing an organisation does not imply endorsement.

Always verify with your doctor

Health guidance differs by country and region. This page is general education and may not match the guidelines, medicines, or practice where you live. Discuss your concerns with your own doctor or healthcare provider, and follow local guidance where it exists.

Important notice This information is for educational purposes only. It does not replace professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider about your specific situation. If you are experiencing a medical emergency, call your local emergency services immediately.

Related conditions

Sources and guidance

No guideline names this topic

No health guideline or clinical chapter that names this exact topic is cited here. This page is for general education and information only. It is not a diagnosis, a treatment plan, or personal medical advice. Check with your own doctor and follow their advice. If symptoms are severe, sudden, or worrying, get medical care promptly, and call your local emergency number in an emergency. Ruqelo LLC is not responsible for medical or legal outcomes from decisions based on this information.

Last updated: October 25, 2026

Educational note: This information is for education only and is not a diagnosis.

Use it to support, not replace, advice from a licensed clinician.

If symptoms are severe, worsening, or urgent, call your local emergency number or seek emergency care.

Guidance may differ by country or region. Confirm local recommendations with a qualified healthcare provider.

Questions about this article