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 wheezing sounds that suggest fluid or inflammation in your lungs. A chest X-ray shows the actual pattern of infection — pneumonia typically appears as a white or gray area on the image where healthy lung tissue should be dark.

The diagnosis usually happens in a doctor's office, urgent care clinic, or emergency room. Your doctor will ask how long you've had symptoms, whether you cough up mucus, if you have a fever, and whether you've been around anyone who was sick. These details help narrow down whether you have bacterial, viral, or fungal pneumonia, which matters because treatment differs.

Key Takeaways

  • A chest X-ray is the standard test that confirms pneumonia; your doctor will also listen to your lungs with a stethoscope and ask about your symptoms.
  • Blood tests and sputum cultures can identify which organism is causing the infection, but results take several days and treatment often starts before results return.
  • A CT scan is ordered only if pneumonia is severe, complications are suspected, or the diagnosis remains unclear after an X-ray.
  • Oxygen saturation testing (pulse oximetry) measures how much oxygen your blood is carrying and helps determine whether you need hospital care.
  • Most people can be diagnosed and sent home with treatment instructions in a single visit; hospital admission depends on age, other health conditions, and oxygen levels.

The physical exam and symptom history

Your doctor starts by examining you and listening carefully to what you describe. They will use a stethoscope to listen to both sides of your chest while you breathe normally and while you take deep breaths. Pneumonia often produces specific sounds — crackling (like Velcro being pulled apart) or wheezing — that suggest fluid or pus in the air sacs. A normal lung sounds clear and hollow.

Your doctor will also check your temperature, heart rate, and breathing rate. Pneumonia typically causes a fever above 100.4°F, though some people run lower fevers or none at all. They will ask when your cough started, whether you bring up mucus and what color it is, whether you have chest pain when you breathe, and whether you've felt short of breath. They may also ask about recent travel, whether you smoke, and whether you have other health conditions like diabetes or heart disease.

Chest X-ray: the standard confirmation test

A chest X-ray is the most common test used to confirm pneumonia. You stand in front of a machine while it takes a picture of your lungs from the front and side. The whole process takes a few minutes and involves no needles or injections. The X-ray shows the pattern and location of infection — bacterial pneumonia often appears as a dense white area (called consolidation), while viral pneumonia may show a more scattered pattern throughout the lungs.

A radiologist (a doctor trained to read images) reviews the X-ray and writes a report describing what they see. Your doctor receives this report and uses it to confirm the diagnosis and decide on treatment. In some cases, an X-ray taken a few days into treatment shows improvement, which confirms that the treatment is working. If you are pregnant, your doctor will take precautions to limit radiation exposure, but a chest X-ray is considered safe during pregnancy when pneumonia is suspected.

Blood tests and sputum cultures

Your doctor may order a blood test to check your white blood cell count (which rises during infection) and to look for signs of inflammation. A complete blood count (CBC) and a basic metabolic panel help your doctor understand how your body is responding and whether your kidneys and liver are working normally — important information if you need antibiotics.

A sputum culture involves coughing mucus into a cup so it can be sent to a lab and tested to identify the exact bacteria, virus, or fungus causing the infection. This test takes several days for results to return, so your doctor will usually start treatment based on the X-ray and your symptoms before the culture results come back. If the culture shows that the organism is resistant to the antibiotic you're taking, your doctor will switch you to a different one. Blood cultures (drawing blood and testing it for infection) are ordered if your doctor suspects the infection has entered your bloodstream.

Oxygen saturation and when hospital care is needed

Your doctor will measure your oxygen saturation using a pulse oximeter — a small clip placed on your finger that shows what percentage of your blood is carrying oxygen. Normal oxygen saturation is 95% or higher. If your saturation is below 92%, or if you are struggling to breathe, your doctor will likely recommend hospital care where you can receive oxygen through a mask or nasal tube.

Hospital admission also depends on your age, other health conditions, and how sick you appear. People over 65, those with heart disease or diabetes, and those who are immunocompromised are at higher risk for severe pneumonia and are more likely to be admitted. If you are young and otherwise healthy with mild pneumonia, you may be sent home with oral antibiotics and instructions to rest and monitor your symptoms. Your doctor will tell you what symptoms mean you should return to the emergency room — such as worsening shortness of breath, confusion, or chest pain.

CT scans and other imaging

A CT (computed tomography) scan is a more detailed imaging test than an X-ray. It is not routinely used for pneumonia diagnosis but may be ordered if your doctor suspects complications like a lung abscess (a pocket of pus), a pleural effusion (fluid around the lungs), or empyema (infection in the space around the lungs). A CT scan is also used if pneumonia is severe, if you are not improving on antibiotics, or if the diagnosis remains unclear after an X-ray.

During a CT scan, you lie on a table that slides into a machine that takes many detailed cross-section images of your chest. The scan takes 10 to 15 minutes. Some CT scans use contrast dye (injected into a vein) to make certain structures more visible; your doctor will tell you beforehand if contrast will be used and will ask about any allergies to iodine or shellfish.

How long diagnosis takes and what happens next

In most cases, you can be diagnosed with pneumonia in a single visit. Your doctor listens to your lungs, orders an X-ray, and can often tell you the diagnosis within an hour or two. If you are sent home, you will receive a prescription for antibiotics (if bacterial pneumonia is suspected) or instructions to rest and monitor symptoms (if viral pneumonia is likely). Your doctor may also recommend over-the-counter fever reducers and cough medicine.

You will typically be asked to follow up with your doctor in one to two weeks so they can check that you are improving. If you are admitted to the hospital, you will receive antibiotics through an IV, oxygen support, and monitoring of your vital signs. Hospital stays for pneumonia typically last three to seven days, though this varies based on severity and your overall health.

Frequently Asked Questions

Can pneumonia be diagnosed without an X-ray?

Your doctor can suspect pneumonia based on your symptoms and what they hear through the stethoscope, but an X-ray is the standard test that confirms it. In rare cases where an X-ray is not available or cannot be done safely, your doctor may start treatment based on clinical signs alone, but this is uncommon in modern practice.

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

Early pneumonia may not show up on an X-ray yet, or you may have viral pneumonia, which sometimes produces subtle findings. Your doctor may repeat the X-ray in a few days, order a CT scan, or start treatment based on your symptoms and exam findings. Walking pneumonia (atypical pneumonia) often causes minimal X-ray changes despite significant symptoms.

How long does it take to get X-ray results?

A radiologist typically reviews a chest X-ray within a few hours, and your doctor receives the report the same day. In urgent situations, a preliminary reading may be available within minutes. If you are in an emergency room or hospital, results are usually available quickly enough to guide immediate treatment decisions.

Do I need blood tests if I have pneumonia?

Blood tests are not always required but are commonly ordered to check your white blood cell count and to screen for other infections or complications. They also help your doctor decide which antibiotic to prescribe and monitor your kidney and liver function, especially if you have other health conditions.

What if my doctor thinks I have pneumonia but wants to wait before ordering tests?

If your symptoms are mild and your doctor suspects viral pneumonia, they may recommend rest and monitoring for a few days before ordering an X-ray. However, if you have a high fever, significant shortness of breath, or other risk factors, testing should happen promptly. If you feel your symptoms are worsening, contact your doctor or go to urgent care rather than waiting.