Pneumonia

Key points about pneumonia

  • Pneumonia is an infection of your lungs. It's usually caused by bacteria or a virus, and may develop after a cold or the flu.
  • Young children and older adults are often worst affected and may need to stay in hospital for treatment.
  • Mostly it can be treated at home with rest, plenty of fluids and antibiotics (if caused by bacteria) but see your healthcare provider if you have a phlegmy cough that's not improving.
  • Get immediate help if you think you or your child has a chest infection, especially with severe symptoms – rapid breathing or difficulty breathing, chest pain, confusion, ongoing fever or if your skin lips or nail beds turn bluish. 
Mother on couch cradles son with high temperature
Print this page

Pneumonia is an infection causing inflammation of the air sacs in one or both lungs. It happens when your body’s immune system is overwhelmed and can't fight off the bug causing the infection. When infection sets in, the air sacs in the area fill with pus and fluids making breathing difficult.

Image of healthy lung and lung with pneumonia

Image credit: Depositphotos


Video: How pneumonia affects the lungs

This video may take a few moments to load.

(BupaHealth, NZ, 2013)

Pneumonia is usually caused by a bacterial or viral infection but it can sometimes be difficult to tell which is causing a particular case of pneumonia.

Pneumonia in adults is usually the result of a pneumococcal infection, caused by bacteria called Streptococcus pneumoniae. Many other types of bacteria, including Haemophilus influenzae and Staphylococcus aureus, can also cause pneumonia. 

Viruses, such as respiratory syncytial virus (RSV) and the flu virus, are common causes of pneumonia in children.

Pneumonia can also be caused by fungal infections but this is fairly uncommon.

Anyone can develop pneumonia, but the risk is greater in babies and children 4 years of age and under and adults older than 65 years. Other risk factors include:

  • recently having had a cold or the flu
  • having a chronic lung condition such as bronchiectasis or COPD
  • having a weakened immune system
  • smoking
  • drinking excessive alcohol 
  • being a patient in hospital.

For children, the risk of pneumonia is increased by:

  • premature birth
  • poor nutrition
  • low birth weight
  • not being breastfed
  • exposure to tobacco smoke
  • lack of insulation and heating at home
  • living in damp, mouldy and/or overcrowded conditions.

The symptoms of pneumonia can develop suddenly over 24 to 48 hours or they may come on more slowly over several days.

Common symptoms of pneumonia

  • cough (often with yellow or green coloured phlegm)
  • fever, which may be mild or high
  • shaking chills
  • shortness of breath
  • increased effort required to take a breath
  • low energy and fatigue
  • loss of appetite
  • headache
  • chest pain that gets worse when you breathe deeply
  • or cough.

See your healthcare provider if you symptoms of a chest infection that aren't getting better.

When to get help straight away

  • If your child develops symptoms of a chest infection after a cold or the flu – children can become very sick very quickly if they develop pneumonia
  • If you or your child are experiencing severe symptoms, such as:
    • rapid breathing or difficulty breathing
    • chest pain
    • confusion
    • persistent fever
    • a bluish tinge develops in your skin, lips and nail beds.

To diagnose pneumonia your healthcare provider will take a medical history and do a physical exam. Pneumonia may be suspected if they hear coarse breathing, wheezing or crackling sounds when listening to your chest through a stethoscope.

Sometimes your nose and throat may be swabbed to see if you have COVID-19 or other viral infections such as the flu. 

A chest X-ray isn't usually necessary but may be used to help with diagnosis.

Mild cases of pneumonia can be treated at home with rest, antibiotics and drinking plenty of fluids. However, pneumonia can be severe and require hospital admission or intensive care unit (ICU) admission. It can lead to death particularly in older adults or people with other health problems.

Hospital admission is often recommended for babies, young children and older adults and for those with severe disease. It's important to take any medicine you're prescribed, follow medical advice, and see a healthcare provider if you (or your child) are not improving, or you develop severe symptoms. 

Antibiotics can be used to treat pneumonia caused by bacteria but are not effective if it's caused by a virus. However, it is difficult to tell if pneumonia is caused by bacteria or a virus, so antibiotics are often prescribed if pneumonia is diagnosed.

As with any other medicines, antibiotics may have side effects. Therefore it’s best not to take them if they’re not likely to help, eg, with COVID, the flu, or any other of the viruses that can infect your lungs.


Treatment at home

If your treatment is at home, you need to take all antibiotics if they've been prescribed for you, and see your healthcare provider for review as recommended. If your symptoms don't improve, or get worse after you have started treatment, tell your healthcare provider. 

If possible, have someone stay with you or check in on you while you're unwell. Make sure you have access to a phone and can contact your healthcare provider or emergency services if required.

To help your recovery:

  • take antibiotics as prescribed
  • drink plenty of fluids, mainly water
  • avoid smoking or passive smoking 
  • take medicines (such as paracetamol or ibuprofen) if required for relief of pain and fever.


Treatment in hospital

If you need treatment in hospital, you may be given antibiotics and fluids intravenously through a drip, and you may need oxygen to help your breathing.


How long will it take to recover?

Once you have started treatment, your symptoms should improve steadily. However it may take a few weeks to months to recover fully. How quickly you improve will depend on how severe your pneumonia is. 


Apps reviewed by Healthify

You may find it useful to look at some breathing apps, first aid and emergency apps, and quit smoking apps.

To help prevent pneumonia, do the following:

  • Get the flu vaccination every year – it can help prevent pneumonia caused by the flu virus. Read more about the flu vaccine.
  • Get a pneumococcal vaccination – this vaccine is especially recommended for anyone at high risk of pneumococcal pneumonia. Read more about pneumococcal vaccine.
  • Avoid smoking – smoking damages your lung's ability to fight infection. Read more about tips to quit smoking.
  • Wash your hands often or use an alcohol-based hand sanitiser.
  • Stay rested and fit.
  • Stay home when you're sick.
  • Avoid people who have a cold or the flu.


Pneumonia vaccination

In Aotearoa New Zealand there are 3 different brands of pneumococcal vaccine – Pneumovax 23®, Prevenar ® and Synflorix®.

  • Most infants should receive the pneumococcal vaccine (Synflorix) as part of the New Zealand Immunisation Schedule(external link) at 6 weeks, 5 months and 15 months of age. They're not fully protected until they’ve had all the doses.
  • Infants on a high-risk pneumococcal schedule may receive their doses of the pneumococcal vaccine (Prevenar 13) at 6 weeks, 3 months, 5 months and 15 months of age.
  • Some older children and adults with weakened immune systems who are at risk of pneumococcal infection may be eligible for vaccination (Pneumovax 23). Check with your doctor or nurse about your eligibility. Read more about pneumococcal vaccine.

Childhood pneumonia statistics

A report on the impact of respiratory disease in Aotearoa New Zealand (2018), found significant differences in childhood pneumonia rates were for Pacific peoples, and for those in the most deprived quintile. Pacific children’s pneumonia rates were 2.4 times higher than the non-MPA rate for hospitalisation, and 5.6 times higher for mortality; Māori children’s rates were 1.6 and 4.1 times higher respectively. Hospitalisation rates for 21 Asian children were 1.1 times higher. These differences were greater in children aged under 5 years.

Childhood pneumonia rates were highest in the most deprived areas, with hospitalisation rates 2.1 times higher in the most deprived NZDep quintile than in the least deprived. Over half of deaths were in the most deprived quintile, making the NZDep9-10 mortality rate 8.1 times higher than that of NZDep1-2.

Source: The impact of respiratory disease in NZ – 2018 update(external link)

Guidelines and pathways

Pneumonia(external link) Starship Children's Hospital, NZ 2022
Pneumonia in adults – diagnosis and management(external link) NICE UK, updated 2023
Monaghan T, Biezen R, Buising K, et al. Clinical insights into appropriate choice of antimicrobials for acute respiratory tract infections(external link) Aust J Gen Pract. 2022 Jan-Feb;51(1–2):33–37
Navigating uncertainty – managing respiratory tract infections(external link) BPAC, NZ, 2019
The management of community-acquired pneumonia(external link) BPAC, NZ, 2024
Te ha ora – the breath of life – National respiratory strategy(external link) Asthma & Respiratory Foundation, 2015, NZ

Need help now?

Healthline logo in supporters block

Need to talk logo

Healthpoint logo

Credits: Healthify editorial team. Healthify is brought to you by Health Navigator Charitable Trust.

Reviewed by: Dr Art Nahill, Consultant General Physician and Clinical Educator

Last reviewed:

Page last updated: