How Is Pneumonia Diagnosed? Exams, Tests & Imaging

Pneumonia is diagnosed through a combination of a physical exam and chest imaging that confirms inflammation in the lungs. Neither one alone is enough. Symptoms like cough, fever, and difficulty breathing overlap with several other conditions, so imaging is considered the standard for confirming the diagnosis. Here’s what that process looks like from start to finish.

What Happens During the Physical Exam

Your doctor will start by listening to your lungs with a stethoscope, a process called auscultation. They’re listening for specific abnormal sounds. Crackles (also called rales) are a bubbling or popping noise that suggests fluid or inflammation in the air sacs. Crackles heard on only one side of the chest, or heard when you’re lying down, are particularly suggestive of pneumonia. Bronchial breath sounds, which are loud and hollow where they shouldn’t be, are even more telling. In studies, bronchial breath sounds raise the likelihood of pneumonia about 3.5 times compared to someone without that finding.

Your doctor will also tap on your chest (percussion). A healthy lung produces a hollow, drum-like sound. A dull thud suggests consolidation, meaning the lung tissue has become dense with infection, or a pleural effusion, which is fluid buildup in the space surrounding the lungs. They’ll also check your vital signs closely. A heart rate above 100, a respiratory rate above 24, and a temperature above 38°C (100.4°F) all push the diagnosis toward pneumonia rather than something milder like bronchitis.

That said, auscultation is not as reliable as most people assume. When researchers tested how consistently different doctors agreed on what they heard through the stethoscope, the agreement was only fair to moderate. Crackles are present in only about 20% of pneumonia patients. The physical exam raises or lowers suspicion, but it can’t confirm the diagnosis on its own.

Chest Imaging: The Diagnostic Standard

Because pneumonia can’t be reliably distinguished from other lower respiratory infections by symptoms and exam alone, chest imaging is required to confirm the diagnosis. A chest X-ray is the most common first step. It can reveal areas of consolidation (where the lung appears white and dense instead of dark and air-filled), ground-glass opacities (a hazy appearance suggesting partial filling of the air sacs), or reticulonodular patterns (a web-like or dotted appearance).

The pattern on the X-ray can hint at the cause. The most common bacterial pneumonia, caused by Streptococcus pneumoniae, typically shows a dense white area confined to a single lobe of the lung. Staphylococcal pneumonia tends to show patchy areas of consolidation scattered across both lungs. These patterns aren’t definitive, but they help guide treatment decisions.

Chest X-rays do have limits. A pooled analysis of 12 studies found that X-rays detect pneumonia with a sensitivity of only about 64%, meaning they miss roughly one in three cases. A CT scan is more accurate but involves more radiation and higher cost, so it’s typically reserved for complicated cases or when the X-ray doesn’t match the clinical picture.

Lung Ultrasound as an Alternative

Bedside lung ultrasound has emerged as a legitimate alternative to chest X-rays. The latest guidelines from the American Thoracic Society now recognize it as an acceptable diagnostic option in centers with trained staff. Across 12 studies comparing the two, lung ultrasound detected pneumonia with 92% sensitivity, far outperforming X-ray’s 64%. X-rays still had higher specificity (94% vs. 82%), meaning they were slightly better at correctly ruling out pneumonia in people who didn’t have it. Lung ultrasound is radiation-free, portable, and produces results immediately, making it especially useful in emergency departments and for children or pregnant women.

Blood Tests and Inflammatory Markers

Blood work helps assess the severity of infection and can support the diagnosis, though no single blood test confirms pneumonia. Doctors commonly check C-reactive protein (CRP), a marker of inflammation. In healthy adults, CRP is normally below 5 mg/L. In one study of adults with acute cough, a CRP level of 40 mg/L or higher had 70% sensitivity and 90% specificity for pneumonia. At 100 mg/L, specificity climbed to over 91%, meaning a very high CRP strongly suggests pneumonia rather than a simple upper respiratory infection.

White blood cell counts and procalcitonin (a marker that rises more specifically with bacterial infections) are also checked, though white blood cell count alone has lower sensitivity and specificity than CRP. It’s worth noting that some pneumonia patients, especially older adults, may not show elevated white blood cell counts or even develop a fever, which is one reason imaging remains essential.

Identifying the Specific Pathogen

Once pneumonia is confirmed, figuring out which organism caused it helps tailor treatment. Several tests can narrow down the culprit.

A sputum sample (the mucus you cough up from deep in your lungs) can be examined under a microscope using a technique called Gram staining. This is quick, inexpensive, and widely available. An experienced lab technician can identify the general category of bacteria within minutes, which helps guide the initial choice of antibiotic. Sputum that is thick, opaque, and yellow, green, or brown is more suggestive of bacterial infection. The test works best when the sample is high quality, meaning it comes from deep in the airways rather than from saliva.

Urine tests can detect specific pathogens rapidly. A common point-of-care urine test identifies antigens from Streptococcus pneumoniae or Legionella pneumophila within about 15 minutes. The Legionella urine test has a sensitivity of 70 to 100% and specificity of 95 to 100%, though it only detects one specific type (serogroup 1), which is the most common cause of Legionnaires’ disease but not the only one.

For atypical pathogens like Mycoplasma, Chlamydophila, or viruses such as influenza and RSV, blood antibody tests or molecular tests (which detect genetic material from the organism) are used instead. These are particularly important because atypical and viral pneumonias don’t respond to standard antibiotics.

How Pneumonia Is Told Apart From Bronchitis

This distinction matters because bronchitis is almost always viral and resolves on its own, while pneumonia often requires antibiotics. If you have an acute cough with sputum but your heart rate is under 100, your respiratory rate is under 24, your temperature is below 38°C, and your chest exam doesn’t reveal focal consolidation or abnormal sounds, the probability of pneumonia drops enough that a chest X-ray may not even be necessary. Routine viral cultures or sputum analysis aren’t recommended for suspected bronchitis because the responsible organism is rarely identified and treatment doesn’t change.

When any of those red-flag vital signs are present, or when the exam reveals one-sided crackles or dullness to percussion, imaging becomes important to rule pneumonia in or out.

Diagnosing Pneumonia in Children

Children, especially those under five, present differently than adults. They may not be able to describe their symptoms, so doctors rely heavily on respiratory rate. The World Health Organization defines pneumonia in children aged 2 to 59 months as fast breathing or chest indrawing in a child with cough or difficulty breathing. The specific respiratory rate thresholds by age are:

  • 0 to 2 months: more than 60 breaths per minute
  • 2 to 12 months: more than 50 breaths per minute
  • 1 to 5 years: more than 40 breaths per minute
  • Over 5 years: more than 20 breaths per minute

In resource-limited settings where imaging may not be available, these respiratory rate cutoffs alone are used to diagnose and begin treating pneumonia. In well-equipped hospitals, chest X-ray or lung ultrasound confirms the diagnosis, with ultrasound being particularly attractive for children because it avoids radiation exposure entirely.