How pneumonia is diagnosed

A doctor diagnoses pneumonia by listening to your lungs with a stethoscope, asking about your symptoms, and usually ordering a chest X-ray. The stethoscope picks up crackling or bubbling sounds that suggest fluid in your lungs. The X-ray shows where the infection is and how much of your lung is affected. Blood tests or a sputum culture (a sample of mucus you cough up) may follow to identify which germ is causing it — bacteria, virus, or fungus — so the doctor knows what treatment will work.

The process usually starts in your doctor's office or urgent care clinic. If you are very sick or having trouble breathing, you may go to an emergency room instead, where they can do all these tests quickly and start treatment right away.

Key Takeaways

  • A physical exam with a stethoscope is the first step, followed by a chest X-ray to confirm pneumonia and show which lung is affected.
  • Blood tests and sputum samples help doctors identify whether bacteria, a virus, or a fungus is causing the infection.
  • Oxygen levels in your blood are measured during diagnosis to see how hard your lungs are working.
  • A CT scan is rarely needed unless the diagnosis is unclear or pneumonia is not improving with treatment.
  • Diagnosis usually takes a few hours in urgent care or the emergency room, or one to two days if you see your regular doctor first.

The physical exam and listening to your lungs

Your doctor will ask when your cough started, whether you are bringing up mucus or blood, if you have chest pain when you breathe, and whether you have had a fever. They will take your temperature, check your heart rate and breathing rate, and listen to both sides of your chest with a stethoscope.

Pneumonia often produces specific sounds. Crackling or popping sounds (called crackles or rales) suggest fluid filling the air sacs in your lungs. Wheezing or a hollow sound when you breathe in deeply can also point to pneumonia. Your doctor may also tap your chest gently to listen for dullness, which indicates fluid rather than air-filled lung tissue.

If your oxygen level is low — measured by a pulse oximeter clipped to your finger — that is a sign your lungs are not moving oxygen into your bloodstream well. This finding often leads to immediate imaging and sometimes hospital admission.

Chest X-ray: the main confirmation test

A chest X-ray is the standard way to confirm pneumonia. You stand in front of a machine, take a deep breath, and hold still for a second while the X-ray is taken. The image shows your lungs, heart, and ribs. Pneumonia appears as a white or cloudy area where the infection is, because fluid and pus fill the air sacs instead of air.

The X-ray also tells your doctor which part of your lung is infected — the upper lobe, lower lobe, or both lungs. It shows whether the infection is in one small area or spread across a larger region. This information helps your doctor decide how serious the pneumonia is and whether you need hospital care or can recover at home.

A chest X-ray takes only a few minutes and produces results within hours. It uses a small amount of radiation, but the dose is considered safe for diagnosis.

Blood tests and sputum samples

A blood test checks your white blood cell count. Pneumonia usually raises this count because your immune system is fighting the infection. The test also measures oxygen and carbon dioxide levels in your blood, which show how well your lungs are working.

A sputum culture is a sample of mucus you cough up into a sterile cup. A lab grows the germs from this sample to identify exactly which bacteria, virus, or fungus is causing pneumonia. This takes two to three days, but it is the most reliable way to know what antibiotic will work. Your doctor may start antibiotics before the results come back, based on the most common cause for your age and risk factors, then adjust the medication if the culture shows something different.

Blood cultures — where blood is drawn and tested for germs — are ordered if your doctor suspects the infection has spread into your bloodstream, which is more serious and requires hospital treatment.

When a CT scan is ordered

A CT scan (computed tomography) is a detailed X-ray that creates a three-dimensional picture of your lungs. It is not routine for pneumonia diagnosis, but your doctor may order one if the chest X-ray is unclear, if you are not improving after a week of antibiotics, or if they suspect a complication like an abscess (a pocket of pus) or fluid around the lungs.

A CT scan takes 10 to 15 minutes and requires you to lie still on a table that slides into a tube-shaped machine. You may be given contrast dye by mouth or through an IV to make the images clearer. The scan produces much more detail than a regular X-ray and can spot smaller infections or complications that an X-ray might miss.

Tests for oxygen and breathing function

An arterial blood gas test measures oxygen and carbon dioxide levels directly from an artery, usually in your wrist. This test is done if your oxygen level is very low or if your doctor is concerned about your breathing. It shows exactly how much oxygen your blood is carrying and whether your lungs are removing carbon dioxide properly.

A pulse oximeter is a small clip placed on your finger that measures oxygen levels without a needle. This is done during your first visit and repeated if you are admitted to the hospital. Normal oxygen levels are 95 to 100 percent; pneumonia often drops this to 88 to 94 percent or lower.

Spirometry — a test where you blow into a machine to measure how much air your lungs can hold and how fast you can exhale — is rarely done during acute pneumonia diagnosis but may be ordered later to check for lasting lung damage.

How long diagnosis takes and what happens next

If you go to an emergency room, diagnosis usually takes two to four hours. The doctor will examine you, order a chest X-ray and blood tests, and have results before you leave. If you see your regular doctor first, they may do the exam and order the X-ray, but you may not have results until the next day.

Once pneumonia is confirmed, your doctor will decide whether you can recover at home or need hospital admission. This depends on your age, whether you have other health conditions, how low your oxygen level is, and how much of your lung is infected. Bacterial pneumonia is treated with antibiotics; viral pneumonia usually improves on its own with rest and fluids, though antivirals are sometimes used. Fungal pneumonia requires antifungal medication and is less common.

You will be told to rest, drink plenty of fluids, and take fever-reducing medication if needed. A follow-up chest X-ray is often done two to four weeks later to confirm the infection has cleared, especially if you are over 50 or have other health conditions.

Frequently Asked Questions

Can pneumonia be diagnosed without an X-ray?

A doctor can suspect pneumonia based on your symptoms and what they hear with a stethoscope, but an X-ray is needed to confirm it. Without an X-ray, pneumonia can be confused with bronchitis or other respiratory infections. Some urgent care clinics have portable X-ray machines on site; others may send you to a hospital or imaging center for the X-ray.

What if my chest X-ray looks normal but I still feel very sick?

Early pneumonia sometimes does not show up clearly on an X-ray, especially in the first 24 to 48 hours of illness. If your symptoms are severe and your oxygen level is low, your doctor may start antibiotics anyway and repeat the X-ray in a few days. A CT scan may also be ordered to look for infection that an X-ray missed.

How long do blood test results take?

A white blood cell count comes back within hours, usually the same day. A sputum culture takes two to three days because the lab must grow the germs and identify them. Your doctor will not wait for culture results to start treatment; they will prescribe antibiotics based on the most likely cause and adjust them if the culture shows something different.

Do I need to go to the hospital if I have pneumonia?

Not always. Mild pneumonia in a young, healthy person can often be treated at home with antibiotics and rest. Hospital admission is more likely if you are over 65, have other health conditions, your oxygen level is below 90 percent, or more than half of one lung is infected. Your doctor will discuss this with you after diagnosis.

Can pneumonia come back after diagnosis and treatment?

Pneumonia can recur in the same lung or a different lung, especially if you smoke, have a weakened immune system, or did not complete your full course of antibiotics. A follow-up X-ray confirms the infection has cleared. If you develop pneumonia symptoms again within a few weeks, tell your doctor so they can check whether it is a new infection or the same one returning.