preventing pneumonia
Informed by recognized medical guidance
Overview
Pneumonia is an infection in one or both lungs. It makes tiny air sacs inside your lungs fill with fluid or pus, which can make it hard to breathe and cause fever, chills, and coughing. For many people, it is like a bad chest infection, but it can become serious. The good news is that many cases of pneumonia can be prevented with simple steps and healthy habits.
Key facts
- Pneumonia is an infection of the lungs that can be caused by germs like bacteria, viruses, or fungi.
- Anyone can get pneumonia, but some people are at higher risk, including babies, older adults, and people with long-term health conditions.
- Good hygiene, staying healthy, not smoking, and getting recommended vaccines can help prevent pneumonia.
Yes, pneumonia is a very common illness worldwide. It affects millions of people each year, and while most recover, it can be more dangerous for young children, older people, and those with weak immune systems.
Pneumonia can affect anyone, but it is more likely and more serious in infants and young children, adults over 65 years old, people with heart or lung disease, people who smoke, and people with weakened immune systems. It is also a risk after surgery or a long hospital stay.
Symptoms
- Trouble breathing or gasping for air
- Severe chest pain or pressure that does not go away
- Blue or grey lips, face, or fingernails
- Confusion or being impossible to wake
- Coughing up blood
- ⚠A fever that does not come down and makes you feel very unwell
- ⚠A cough that keeps getting worse
- ⚠Fast or difficult breathing that is new for you
- ⚠Lack of energy, confusion, or being less alert than usual
- ⚠Symptoms that get better then suddenly get worse
Common symptoms
- A cough that may bring up phlegm (thick mucus)
- Fever and chills
- Shortness of breath or fast, shallow breathing
- Chest pain that feels worse when you breathe deeply or cough
- Feeling very tired or weak
- Loss of appetite
Symptoms in children
- Rapid breathing or flaring of the nostrils
- A grunting sound when breathing
- A blue or grey color around the lips or face
- Feeding poorly or being unusually fussy
- A high fever
Symptoms in older adults
- Confusion or new changes in mental awareness
- Lower body temperature than normal, or no fever
- A mild cough that does not seem serious
- Weakness and trouble doing everyday activities
- A sudden loss of appetite
Causes
Main causes
- Bacteria: the most common cause in adults, especially pneumococcus bacteria.
- Viruses: influenza (the flu), respiratory syncytial virus (RSV), and coronaviruses can lead to pneumonia.
- Fungi: less common, but can cause pneumonia in people with very weak immune systems.
- Aspiration: when food, liquid, or saliva goes down the wrong pipe and gets into your lungs.
Risk factors
- Being under 5 years old or over 65 years old
- Smoking or breathing in secondhand smoke
- Having lung disease, such as asthma or COPD
- Having a weak immune system from illness or certain medicines
- Having heart disease, diabetes, or kidney disease
- Being in hospital, especially on a breathing machine
- Recently having a serious infection like flu or COVID-19
When to see a doctor
See a doctor urgently if:
- You have difficulty breathing or feel like you cannot get enough air
- You have severe chest pain that gets worse when you breathe
- You have a very high fever that will not settle
- You feel very sleepy, confused, or cannot drink enough fluids
Book a routine appointment if:
- You have a persistent cough that lasts more than a few weeks
- You have a fever that does not improve after a few days
- You feel generally unwell and are worried that your chest infection is getting worse
- You want to talk about what you can do to prevent pneumonia, especially if you are at higher risk
Diagnosis
A doctor will ask about your symptoms and medical history, then listen to your lungs with a stethoscope. If pneumonia is likely, they may do extra tests to confirm the infection and find out how severe it is.
Tests that may be done
- Chest X-ray to look for infection in your lungs
- Pulse oximeter to measure the oxygen level in your blood
- Blood tests to check for signs of infection
- A sputum culture, where a sample of mucus you cough up is sent to a lab
- Finger-prick blood tests or throat swabs, depending on what the doctor thinks is causing the infection
What to expect at your appointment
Diagnosis is usually straightforward. The doctor will check your breathing, temperature, and oxygen level. You may need a chest X-ray, which is quick and painless. If you are otherwise well and your symptoms are mild, you may not need any tests beyond a physical exam.
Treatment
Treatment for pneumonia depends on the cause, how severe it is, and your overall health. Bacterial pneumonia is usually treated with antibiotics, while viral pneumonia may need mostly rest and supportive care. Some people can be treated at home, while others need hospital care to get oxygen or fluids.
Self-care at home
- Rest as much as you can to help your body fight the infection
- Drink plenty of fluids to stay hydrated and loosen mucus
- Take paracetamol or ibuprofen for fever and discomfort if it is safe for you — check with your pharmacist or doctor
- Do not smoke, and avoid secondhand smoke
- Use a cool-mist humidifier or sit in a steamy bathroom to help ease coughing
Medical treatments
Your healthcare team may recommend medicines to treat the infection, such as antibiotics for bacterial pneumonia, or antiviral treatments if a virus is the cause. They may also give you medicine to reduce fever and discomfort, or prescribe something to help open your airways. In hospital, you might receive oxygen therapy to make sure your blood has enough oxygen, and fluids through a drip if you cannot drink enough. The exact treatment plan is always tailored to you.
When is surgery considered?
In rare cases, a complication such as a pus-filled pocket in the lung (called a lung abscess) may need to be drained. If you have repeated episodes of pneumonia in the same spot, your doctor might recommend a procedure to look inside your lungs, but surgery is not a common treatment.
Living with this condition
Recovery from pneumonia can take time. You may feel tired for several weeks even after the infection is gone. Follow your doctor's advice, take any prescribed treatment exactly as directed, and do not rush back into normal activities too quickly. It is normal to need extra rests and patience.
Lifestyle tips
- Stop smoking or avoid secondhand smoke, because smoke irritates your lungs and makes pneumonia harder to recover from
- Wash your hands regularly with soap and water, or use hand sanitiser, to reduce the risk of picking up new infections
- Stay away from people who are sick with colds, flu, or other respiratory infections
- Keep your home and workplace clean and well ventilated
- Get enough sleep and manage stress to help your immune system stay strong
Diet and exercise
Aim for a balanced diet with plenty of fruits, vegetables, wholegrains, and protein to support your immune system. While you are recovering, gentle activity like short walks is fine if you feel up to it, but wait until you can breathe easily and are not feverish. As you get stronger, gradually increase your activity and talk to your doctor about when it is safe to return to exercise.
Mental health and emotional wellbeing
Having pneumonia can be worrying, especially if you have been very unwell. You may feel low, anxious, or frustrated about how long recovery takes. These feelings are normal. It is important to talk to your family, friends, or a healthcare professional about how you are feeling. Remember that you are recovering, not failing.
Prevention
Yes, many cases of pneumonia can be prevented. While you cannot avoid every germ, you can greatly lower your risk by living healthily, avoiding smoking, practicing good hand hygiene, and staying up to date on recommended vaccinations.
Vaccines
Vaccines are one of the best ways to prevent pneumonia. They do not give a 100% guarantee, but they make severe pneumonia much less likely. Your doctor or local clinic can tell you which vaccines are right for you and your family, based on your age, health, and local recommendations. This may include vaccines for flu, COVID-19, and pneumococcal infections. If you have a regular healthcare provider, ask them about any catch-up vaccines you might need.
Screening programmes
There is no routine screening test for pneumonia in healthy people. But if you have a long-term condition or a weak immune system, your healthcare provider may want to do regular check-ups and review your vaccine history. These check-ups help catch problems early and reduce your risk of complications.
Complications
If left untreated
- Pneumonia can cause breathing failure, where your lungs cannot get enough oxygen into your blood
- Sepsis, an overwhelming infection that can be life-threatening
- A lung abscess, a pocket of pus that forms inside the lung
- Fluid around the lungs (pleural effusion), which can make breathing painful and difficult
- Long-term effects, including on your energy and lung function
Long-term outlook
Most people who get pneumonia do get better, especially with prompt medical care and rest. Even if it takes a few weeks or months, most people return to a normal, healthy life. Pneumonia is a serious illness, but it is also one we can prevent and treat well. With the right support, your lungs can heal and your strength can come back.
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 guidelines vary by country and region. The information in this article is based on international clinical guidelines but may not reflect the specific guidelines, medications, or practices in your country. Always discuss your health concerns with your own doctor or healthcare provider, and refer to your local national health guidelines where available.
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
This article is educational and is prepared with reference to recognized health information and clinical guidance sources where available. Specific source links may vary by topic.
Last updated: July 31, 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.