pneumonia X ray explained
Informed by recognized medical guidance
Overview
Pneumonia is an infection in one or both lungs that causes the tiny air sacs inside the lungs to become inflamed and fill with fluid or pus. A chest X-ray is a quick, painless test that takes pictures of the inside of your chest. It is often used to help diagnose pneumonia by showing areas of infection (called 'consolidation') in the lungs.
Key facts
- A chest X-ray is a common first test when your doctor suspects pneumonia.
- X-rays use a small amount of radiation to create images of your lungs.
- The X-ray can show where the infection is and how much of the lung is affected.
- Sometimes a normal X-ray does not completely rule out pneumonia, especially early on.
Yes, pneumonia is a common infection. Chest X-rays are done millions of times each year worldwide to help diagnose it.
Pneumonia can affect anyone, but it is more common in young children, older adults (over 65), people with weakened immune systems, and those with chronic health conditions like asthma, diabetes, or heart disease.
Symptoms
- Difficulty breathing or feeling like you cannot get enough air
- Chest pain that is severe or crushing
- Coughing up blood (more than a little) or blood-streaked mucus
- Blue lips, tongue, or fingers (especially in children)
- Confusion or fainting
- ⚠Fever above 38°C (100.4°F) that does not come down with over-the-counter medicines
- ⚠Cough that lasts more than 3 weeks
- ⚠Worsening symptoms after a few days of feeling better
- ⚠Severe headache, stiff neck, or sensitivity to light (possible meningitis)
Common symptoms
- Cough that may produce green, yellow, or bloody mucus
- Fever, chills, or sweating
- Shortness of breath or rapid breathing
- Sharp chest pain that gets worse when you breathe deeply or cough
- Fatigue and feeling very tired
- Loss of appetite
Symptoms in children
- Fast breathing or grunting sounds
- Flaring of the nostrils when breathing
- Blue tint to the lips or nail beds (call emergency)
- Fussiness, restlessness, or trouble feeding
- Vomiting not related to eating
Symptoms in older adults
- Confusion or change in mental awareness
- Lower than normal body temperature
- Weakness and dizziness
- Cough may be less forceful or produce less mucus
- Loss of bladder control or trouble walking
Causes
Main causes
- Bacteria (most common cause in adults, especially Streptococcus pneumoniae)
- Viruses (such as flu, RSV, or COVID-19)
- Fungi (more common in people with weakened immune systems)
- Aspiration (breathing in food, drink, or saliva into the lungs)
Risk factors
- Age – young children and adults over 65
- Smoking or vaping
- Chronic lung disease (asthma, COPD)
- Weakened immune system (from HIV, cancer treatment, or long-term steroid use)
- Heart failure, diabetes, or kidney disease
- Recent hospitalization or surgery
- Living in crowded places (nursing homes, shelters)
When to see a doctor
See a doctor urgently if:
- If you have trouble breathing, chest pain, or cough up blood – call your local emergency number immediately.
- If you have a high fever that does not respond to home care
- If you feel very weak, confused, or cannot keep fluids down
Book a routine appointment if:
- If you have a cough, fever, and feel unwell for more than a few days
- If you have an ongoing medical condition and develop new respiratory symptoms
Diagnosis
Your doctor will listen to your lungs with a stethoscope, ask about your symptoms and medical history, and often order a chest X-ray to confirm pneumonia. The X-ray shows dense white patches where the infection is, while healthy lungs look darker.
Tests that may be done
- Chest X-ray (the main imaging test for pneumonia)
- Blood tests (to check for infection and measure oxygen level with a pulse oximeter)
- Sputum culture (testing the mucus you cough up for bacteria and viruses)
- Sometimes a CT scan or ultrasound if the X-ray is not clear
- Throat or nasal swab (to check for flu or COVID-19)
What to expect at your appointment
During a chest X-ray, you will stand or sit in front of a machine while a technician positions your chest. You will need to hold still for a few seconds while two pictures are taken – one from the front and one from the side. The test is painless and takes about 15 minutes. You will wear a lead apron to protect other parts of your body. The amount of radiation is very small, similar to what you get from natural sources in a few months.
Treatment
Treatment for pneumonia depends on the cause (bacterial, viral, or fungal) and how severe the infection is. Most people can be treated at home with rest, fluids, and medicine. Your doctor will decide the best approach based on your symptoms, X-ray results, and overall health. Always follow your healthcare provider's instructions.
Self-care at home
- Get plenty of rest – your body needs energy to fight the infection.
- Drink lots of fluids (water, warm tea, broth) to thin mucus and prevent dehydration.
- Use a humidifier or take a steamy shower to ease cough and loosen phlegm.
- Take over-the-counter pain relievers or fever reducers if your doctor says it is safe – read labels carefully.
- Do not smoke or be around smoke – it worsens symptoms.
Medical treatments
For bacterial pneumonia, doctors usually prescribe antibiotics (a course that must be finished even if you feel better). For viral pneumonia, antibiotics do not work; your doctor may suggest antiviral medicines or supportive care. For severe cases, you may need to be in the hospital for intravenous fluids, oxygen therapy, or breathing treatments. Always take the full course of any medicine your doctor prescribes.
When is surgery considered?
Surgery is rarely needed for pneumonia. In very rare cases, if a lung abscess (a pocket of pus) does not drain with medicine, or if scar tissue forms, a procedure may be done. Your doctor will discuss this if necessary.
Living with this condition
While recovering from pneumonia, take it slow. Even after you start feeling better, your body may still be weak. Do not rush back to work or school. Follow your doctor’s advice about follow-up appointments and repeat X-rays to make sure the infection has cleared.
Lifestyle tips
- Quit smoking – it is the most important step for lung health.
- Avoid crowded places and people with respiratory infections to prevent reinfection.
- Wash your hands often with soap and water or use hand sanitizer.
- Stay up to date on vaccines (flu, pneumococcal, COVID-19) as advised by your doctor.
Diet and exercise
Eat a balanced diet with fruits, vegetables, whole grains, and lean protein to support your immune system. When you feel strong enough, gentle activity like short walks can help rebuild your strength. Start slowly and listen to your body. Do not exercise if you still feel short of breath or have a fever.
Mental health and emotional wellbeing
Having pneumonia can be scary and exhausting. It is normal to feel worried, anxious, or low during recovery. Talk to your family or friends about how you feel. If you notice that sadness or worry is constant and affecting your sleep or appetite, tell your doctor – they can connect you with support.
Prevention
Not all cases of pneumonia can be prevented, but you can lower your risk with good habits. A strong immune system and a healthy lifestyle go a long way.
Vaccines
Vaccines can protect against some common causes of pneumonia, such as the pneumococcal vaccine and the yearly flu shot. Talk to your doctor about which vaccines are right for you and your family. The pneumococcal vaccine is often recommended for children under 2, adults over 65, and people with certain medical conditions.
Screening programmes
There is no routine screening for pneumonia. However, if you have a chronic lung condition or a weak immune system, your doctor may monitor you more closely. Regular check-ups can help catch problems early.
Complications
If left untreated
- Pleural effusion – fluid builds up around the lungs, making it harder to breathe
- Lung abscess – a pocket of pus forms in the lung, requiring drainage or longer treatment
- Sepsis – a life-threatening infection that spreads through the bloodstream
- Respiratory failure – lungs cannot get enough oxygen into the blood
Long-term outlook
The vast majority of people with pneumonia recover fully, especially with early treatment. Eealthy individuals often feel better within a week or two, though a cough and fatigue can last longer. Even if you had severe pneumonia, with good medical care your lungs can heal over time. Your doctor will let you know when to do a follow-up X-ray to confirm the infection is gone.
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 30, 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.