What tests doctors use to diagnose pneumonia

A doctor diagnoses pneumonia through a combination of listening to your lungs, asking about your symptoms, and ordering imaging or lab tests. There is no single test that proves pneumonia—diagnosis relies on the pattern of findings together. The most common first step is a chest X-ray, which shows fluid or consolidation in the lungs. A doctor may also order blood tests, a sputum culture (a sample of mucus you cough up), or a CT scan if the diagnosis is unclear or your condition is severe.

The specific tests ordered depend on how sick you are, whether you are in a hospital or clinic, and whether your doctor suspects bacterial, viral, or fungal pneumonia. If you have mild symptoms and no risk factors, your doctor might diagnose pneumonia based on physical exam findings alone and start treatment without imaging. If you are hospitalized or have complications, more tests are standard.

Key Takeaways

  • A chest X-ray is the most common test and usually the first imaging study ordered when pneumonia is suspected.
  • Your doctor will listen to your lungs with a stethoscope and ask about cough, fever, and how long symptoms have lasted.
  • Blood tests can show signs of infection and help identify whether the cause is bacterial or viral.
  • Sputum cultures and CT scans are ordered when diagnosis is unclear, symptoms are severe, or you are not improving on treatment.
  • Test results take time—chest X-rays are available within hours, but cultures can take 24 to 48 hours to show results.

The physical exam: what your doctor is listening for

Before ordering any tests, your doctor will examine you. They will use a stethoscope to listen to your lungs from the front and back of your chest. In pneumonia, they are listening for abnormal sounds called crackles (a crackling or popping sound) or consolidation (areas where the lung sounds dull or muffled instead of clear). They may also tap on your chest to check for fluid.

Your doctor will also check your oxygen level using a pulse oximeter—a small clip placed on your finger that measures how much oxygen is in your blood. They will take your temperature, heart rate, and blood pressure. They will ask when your cough started, whether you are coughing up mucus and what color it is, whether you have chest pain when you breathe, and whether you have had fever or chills. This history, combined with what they hear in your lungs, often points toward pneumonia before any imaging is done.

Chest X-ray: the standard first imaging test

A chest X-ray is almost always ordered when pneumonia is suspected. You stand or sit in front of an X-ray machine, take a deep breath, and hold it still for a few seconds while the machine takes a picture. The whole process takes less than five minutes. The radiologist then looks at the image to see whether there are areas of white or gray (called infiltrates or consolidation) that suggest fluid or infection in the lungs.

A chest X-ray can show pneumonia in one lung or both lungs, and it can help your doctor see how much of the lung is affected. It can also reveal complications like fluid around the lungs (pleural effusion) or a collapsed section of lung. Results are usually available within a few hours. If the X-ray is unclear or your symptoms do not match the findings, your doctor may order a CT scan for a more detailed picture.

Blood tests that show infection and identify the cause

Your doctor will usually order a complete blood count (CBC) and a blood culture. The CBC measures white blood cells, red blood cells, and platelets. A high white blood cell count suggests bacterial infection, while a normal or low count may point toward viral pneumonia. The blood culture involves drawing blood and sending it to a lab to see whether bacteria grow from it. This test helps identify which specific bacteria is causing the infection, which guides antibiotic choice.

Blood tests also measure kidney function, liver function, and electrolytes to see whether pneumonia has affected other organs or whether you are dehydrated. If your oxygen level is low, your doctor may order a blood gas test, which measures oxygen and carbon dioxide levels in your blood and shows how well your lungs are working. These tests take several hours to a few days to come back, depending on the lab.

Sputum culture: identifying bacteria when antibiotics are not working

A sputum culture is ordered when your doctor needs to know exactly which bacteria is causing your pneumonia, usually because you are hospitalized, very sick, or not improving on the antibiotics you started. You are asked to cough deeply and spit mucus into a sterile cup. The lab then grows the bacteria from the sample and tests which antibiotics will kill it. This is called a sensitivity test.

Sputum cultures take 24 to 48 hours or longer to show results because bacteria need time to grow in the lab. Your doctor will start you on broad-spectrum antibiotics (ones that work against many bacteria) while waiting for results, then may switch to a more targeted antibiotic once the culture identifies the specific cause. If you cannot produce sputum, your doctor may order a bronchoscopy, in which a thin tube with a camera is passed down your windpipe to collect a sample directly from the lungs.

CT scan: when diagnosis is unclear or complications are suspected

A CT scan (computed tomography) takes detailed cross-sectional images of your chest and is more sensitive than a chest X-ray. It is ordered when a chest X-ray is unclear, when pneumonia is suspected but not visible on X-ray, when you are not improving on treatment, or when your doctor suspects complications like a lung abscess or empyema (pus around the lungs). You lie on a table that slides into a scanner, and the machine takes images from many angles.

A CT scan takes 10 to 15 minutes and can show pneumonia in more detail than an X-ray, including the exact location and size of affected areas. It is more expensive and involves more radiation than an X-ray, so it is not ordered routinely. Results are usually available within a few hours to a day.

How long testing takes and what to expect while waiting

A chest X-ray is available within hours, often the same day. Blood tests take several hours to a few days depending on what is being tested—a CBC may come back in a few hours, while a culture takes 24 to 48 hours or longer. Your doctor will not wait for all results before starting treatment if pneumonia is suspected; they will begin antibiotics based on the physical exam and initial X-ray findings.

If you are in a clinic or urgent care, you may have results before you leave. If you are in a hospital, results are usually available by the next morning. Your doctor will call you or discuss results at a follow-up visit. If test results do not match your symptoms or you are not improving after a few days of treatment, your doctor will order additional tests or imaging to look for complications or a different diagnosis.

Frequently Asked Questions

Can pneumonia be diagnosed without a chest X-ray?

Yes. If you have clear symptoms (cough, fever, shortness of breath) and your doctor hears abnormal sounds in your lungs, they may start treatment based on the physical exam alone, especially if you are young and otherwise healthy. However, a chest X-ray is standard because it confirms pneumonia and shows how much of the lung is affected, which guides treatment decisions.

What does it mean if my chest X-ray looks normal but I still have pneumonia symptoms?

Early pneumonia may not show on X-ray, or the infection may be in a part of the lung that is hard to see on a standard X-ray. If symptoms persist and your doctor still suspects pneumonia, they may repeat the X-ray in a few days, order a CT scan, or look for other causes. Viral pneumonia sometimes appears normal on X-ray even when symptoms are present.

Do I need a sputum culture if I am taking antibiotics?

Not always. Sputum cultures are ordered when you are hospitalized, very sick, or not improving after a few days of antibiotics. If you are recovering on the antibiotics your doctor started, a culture is usually not needed. If you are not getting better, a culture helps identify the specific bacteria so your doctor can switch to a more effective antibiotic.

What if blood tests show a normal white blood cell count?

A normal white blood cell count does not rule out pneumonia. Viral pneumonia often causes a normal or low white blood cell count, while bacterial pneumonia typically raises it. Your doctor will look at the full picture—your symptoms, physical exam findings, and chest X-ray—not just the white blood cell count alone.

How accurate is a chest X-ray for pneumonia?

A chest X-ray catches most cases of pneumonia, but it is not perfect. Early pneumonia, pneumonia in certain locations, or viral pneumonia may not show clearly on X-ray. If your doctor suspects pneumonia but the X-ray looks normal, they may repeat it in a few days or order a CT scan. The combination of physical exam findings and imaging is more reliable than either one alone.