Getting tested for pneumonia typically starts with a visit to your doctor or an urgent care clinic, where a combination of a physical exam, a chest X-ray, and sometimes blood work can confirm whether you have an infection in your lungs. The specific tests you’ll need depend on how severe your symptoms are and whether your doctor suspects a bacterial, viral, or atypical cause.
When to Get Tested
Not every cough or chest cold needs a pneumonia workup. The symptoms that should prompt you to seek testing include difficulty breathing, chest pain, a persistent fever of 102°F (39°C) or higher, and a cough that won’t quit, especially if you’re coughing up thick or discolored mucus. These symptoms together suggest something more than a standard upper respiratory infection.
Certain people should get evaluated sooner rather than later: adults over 65, children under 2, anyone with a chronic health condition like COPD or diabetes, and people with weakened immune systems from chemotherapy or other medications. In these groups, pneumonia can escalate quickly, and early testing leads to earlier treatment.
The Physical Exam
Your doctor will start by listening to your lungs with a stethoscope. They’re listening for crackling or bubbling sounds when you breathe in, which indicate fluid or inflammation in the air sacs. They may also tap on your chest and back, a technique called percussion. Healthy, air-filled lungs produce a hollow, resonant sound. If an area of your lung is filled with fluid or infection, the tapping produces a flat, dull thud instead. This contrast helps your doctor locate where the problem is before ordering any imaging.
They’ll also check your breathing rate, heart rate, and temperature. One quick and painless test you’ll likely get is a pulse oximetry reading, where a small clip placed on your finger measures how much oxygen is in your blood. A normal reading falls between 95% and 100%. If yours drops to 92% or below, that’s a sign your lungs aren’t working efficiently and you need closer monitoring. A reading of 88% or lower is a medical emergency.
Chest X-Ray
A chest X-ray is the standard imaging test for confirming pneumonia. It’s fast, painless, and available at most clinics and hospitals. You’ll stand in front of an X-ray machine and hold still for a few seconds while the images are taken, usually from the front and side.
The radiologist looks for white spots in the lungs called infiltrates, which signal areas of infection. These patches show where fluid, pus, or inflammatory cells have filled the tiny air sacs that are normally clear. The X-ray also reveals how much of the lung is affected, whether one lobe or both lungs, which helps determine how aggressively the pneumonia needs to be treated.
If your pneumonia isn’t improving as expected with treatment, your doctor may order a chest CT scan. This provides a much more detailed, cross-sectional view of the lungs and can reveal complications like fluid around the lungs or an abscess that a standard X-ray might miss.
Blood Tests
Blood work helps your doctor assess how your body is responding to the infection and, importantly, what type of infection you’re dealing with. A complete blood count measures your white blood cell levels. A high white blood cell count points toward a bacterial infection, while a normal or slightly low count is more consistent with a viral cause.
Another useful blood test measures a protein called procalcitonin. Your body produces more of this protein in response to bacterial infections, but not viral ones. This distinction matters because antibiotics work against bacterial pneumonia but do nothing for viral pneumonia. A high procalcitonin level suggests a bacterial cause and supports the decision to prescribe antibiotics, while a low level may steer your doctor away from them. Procalcitonin levels can also flag whether an infection is becoming dangerously widespread in the body.
Sputum Culture
If your doctor wants to identify the exact organism causing your pneumonia, they may order a sputum culture. This involves coughing up mucus from deep in your lungs into a sterile cup. You’ll be asked to rinse your mouth with water first to reduce contamination from normal mouth bacteria. Then you’ll take several deep breaths and cough forcefully. Your doctor may tap on your chest to help loosen the mucus.
If you’re having trouble producing a sample, you may be asked to breathe in a salty mist that irritates the airways enough to trigger a deeper cough. In rare cases where a sample still can’t be collected, a procedure called bronchoscopy is used. You’ll receive medication to relax and numb your throat, and a thin, flexible tube with a camera is guided through your mouth or nose into your airways. A small brush or suction device collects the sample directly. The lab then grows whatever bacteria or fungi are present, which takes a day or two, and identifies the specific pathogen responsible.
Tests for Atypical Pneumonia
So-called “walking pneumonia,” often caused by a bacterium called Mycoplasma pneumoniae, produces milder symptoms that come on gradually. You might feel well enough to go about your day, which is how it got its name, but it still warrants diagnosis and treatment. The preferred method for detecting this type of pneumonia is a molecular test called a nucleic acid amplification test, or NAAT. This is typically done with a nasal or throat swab, similar to a COVID test. It’s highly accurate and returns results quickly enough to guide treatment decisions. These molecular tests can also predict whether the bacteria will respond to standard antibiotics, which is especially useful given rising antibiotic resistance.
Many of the respiratory panels now available in clinics test for multiple pathogens at once, including Mycoplasma, so your doctor may be able to check for several causes of pneumonia with a single swab.
Urine Antigen Tests
For certain dangerous types of pneumonia, a simple urine test can provide a fast answer. Legionnaires’ disease, a severe form of pneumonia caused by Legionella bacteria, is one example. The urine antigen test for Legionella has a specificity of 95% to 100%, meaning a positive result is highly reliable. Its sensitivity ranges from 70% to 100%, so it catches most cases but can occasionally miss one. One limitation is that it typically only detects the most common strain of Legionella. For that reason, the CDC recommends pairing it with testing of a respiratory sample for a more complete picture.
What the Testing Process Looks Like
For most people, the full evaluation happens in a single visit. You’ll get a physical exam, a chest X-ray, and possibly a finger prick or blood draw. If your symptoms are mild and the X-ray confirms a straightforward case, that may be all you need before starting treatment. The whole process often takes under an hour at an urgent care or emergency room, though wait times vary.
More specialized tests like sputum cultures, molecular swabs, or urine antigen tests are typically reserved for cases where the pneumonia is severe, isn’t responding to initial treatment, or occurs in someone at high risk for complications. If you’re hospitalized, you can expect a broader panel of tests to identify the specific cause and monitor your oxygen levels continuously. For an otherwise healthy adult with a moderate case, a chest X-ray and basic blood work are usually enough to confirm the diagnosis and get you on the right treatment.

