How to Diagnose Pneumonia: X-Rays, Blood Tests, and More

Pneumonia is diagnosed through a combination of a physical exam, chest imaging, and sometimes blood or sputum tests to identify the cause. No single test confirms pneumonia on its own. A standard diagnosis requires both clinical symptoms (cough, fever, difficulty breathing) and imaging that shows inflammation in the lungs. Here’s what that process looks like in practice.

What Happens During the Physical Exam

Your doctor will listen to your lungs with a stethoscope while you breathe deeply. In pneumonia, the infected areas of the lung produce distinctive crackling sounds called rales, which are small clicking or bubbling noises heard when you inhale. These sounds occur when air forces open small air sacs that have become filled with fluid or mucus. Your doctor may also tap on your chest and back. A dull thud instead of the normal hollow sound suggests fluid or dense tissue underneath, both hallmarks of a pneumonia infection.

Decreased or absent breath sounds in certain areas can also point toward pneumonia, though these findings overlap with other conditions like fluid around the lungs or heart failure. That’s why imaging is almost always needed to confirm the diagnosis.

Chest X-Ray: The Standard First Step

A chest X-ray is the most common imaging test used to confirm pneumonia. It shows whether there’s inflammation in the air sacs of your lungs and, if so, where and how much. The patterns on the X-ray also help narrow down what type of pneumonia you have.

Three main patterns show up on imaging. Lobar pneumonia appears as a dense white area filling one section or lobe of the lung. Bronchopneumonia shows patchy spots scattered across both lungs. Interstitial pneumonia, more common with viral infections, causes a hazy or “ground glass” appearance along with thickened tissue between the air sacs.

Chest X-rays catch pneumonia about 70% to 85% of the time, with a specificity of 80% to 90%. That means they’re good at confirming pneumonia when it’s present, but they can miss early or mild infections, especially in dehydrated patients whose lungs may not show the typical fluid-filled patterns yet.

When a CT Scan Is Needed

CT scans reach or surpass 95% accuracy for pneumonia and have specificity above 90%, making them significantly more reliable than X-rays. Your doctor may order a CT scan if your X-ray looks normal but your symptoms strongly suggest pneumonia, if the infection isn’t responding to treatment, or if there’s concern about complications like a lung abscess or fluid buildup around the lungs.

CT scans aren’t used as a first-line test for everyone because they involve more radiation exposure, take longer, and cost more. But when the X-ray leaves questions unanswered, a CT scan provides a much more detailed picture.

Lung Ultrasound as an Alternative

The American Thoracic Society now recognizes lung ultrasound as an acceptable alternative to chest X-rays for diagnosing pneumonia, provided the person performing it has the right training. Ultrasound can identify key signs of pneumonia, including areas of consolidation (where the lung tissue has become dense with infection), air pockets trapped within those areas, and fluid between the lung and chest wall. It’s portable, radiation-free, and can be done at the bedside, which makes it especially useful in emergency departments and resource-limited settings.

Identifying the Cause

Imaging confirms that you have pneumonia, but it doesn’t always reveal what’s causing it. Identifying whether the infection is bacterial, viral, or caused by an atypical organism like mycoplasma helps your doctor choose the right treatment.

Sputum Testing

If you can cough up mucus from deep in your lungs (not just saliva), that sample can be stained and examined under a microscope. A technique called a Gram stain colors bacteria so that their size, shape, and type become visible, giving a preliminary answer within hours. The sample can also be cultured to grow and identify the specific organism, though that takes longer.

Blood Tests

A complete blood count often shows elevated white blood cells during a bacterial infection. One blood marker, procalcitonin, can help distinguish bacterial pneumonia from viral. Levels at or above 0.08 ng/mL suggest a bacterial cause, though this marker works better as one piece of the puzzle rather than a standalone answer, with a sensitivity of about 81% and specificity of 67%.

Blood cultures (drawing blood and attempting to grow bacteria from it) are typically reserved for patients sick enough to be hospitalized. They help identify bacteria that have spread from the lungs into the bloodstream.

Testing for Walking Pneumonia

Walking pneumonia, caused by Mycoplasma pneumoniae, produces milder symptoms that often feel more like a lingering cold than a serious lung infection. The CDC recommends molecular tests (nucleic acid amplification tests) as the preferred diagnostic method for mycoplasma infections. These tests offer high sensitivity and specificity and return results quickly enough to guide treatment. Older blood tests that look for antibodies are less reliable and often require two separate blood draws weeks apart, making them impractical for timely decisions.

Oxygen Levels and Severity

A small clip placed on your finger, called a pulse oximeter, measures how much oxygen your blood is carrying. This reading plays a direct role in determining whether you can recover at home or need hospital care. Oxygen saturation below 90% is widely considered a standalone reason for hospitalization. Research published in Clinical Infectious Diseases found that the threshold should actually be higher: patients with readings below 92% had significantly higher rates of serious complications and death compared to those at 92% or above.

If your oxygen saturation is 92% or higher and your symptoms are manageable, outpatient treatment is usually appropriate. Below that, the risks increase enough that closer monitoring makes a meaningful difference in outcomes.

How Doctors Assess Severity

Beyond oxygen levels, doctors use scoring tools to decide how aggressively to treat pneumonia. The most widely used is the CURB-65 score, which assigns one point for each of five factors:

  • Confusion or new disorientation
  • Urea (a kidney waste product) elevated in blood tests
  • Respiratory rate of 30 breaths per minute or higher
  • Blood pressure that’s dropped significantly (systolic below 90 or diastolic at or below 60)
  • Age 65 or older

A score of 0 or 1 generally means you can be treated at home. A score of 2 suggests a short hospital stay may be warranted. Scores of 3 or higher indicate severe pneumonia that may require intensive care. The score isn’t the final word on its own, but it gives your care team a structured way to weigh the risks.

What the Diagnostic Process Looks Like in Practice

For most people, the process moves quickly. You describe your symptoms, your doctor listens to your lungs, and a chest X-ray is ordered. If the X-ray shows pneumonia and your oxygen levels and vital signs are stable, you’ll likely go home with a treatment plan the same day. The whole visit may take one to two hours, most of it spent waiting for the X-ray.

If the infection looks more serious, or if you’re elderly, immunocompromised, or not improving with initial treatment, expect additional testing: blood work, sputum samples, possibly a CT scan. These extra steps help pinpoint the exact cause and rule out complications, so your treatment can be more precisely targeted.