What laboratory tests should be ordered to evaluate a patient for community-acquired pneumonia?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 21, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Laboratory Testing for Community-Acquired Pneumonia

The laboratory workup for CAP should be stratified by severity and care setting: outpatients require minimal to no lab testing, while hospitalized patients need a focused panel of general labs plus selective microbiological studies based on severity and risk factors.

Outpatient Management

For patients managed in the community, routine laboratory testing is not necessary 1. The majority of outpatients with suspected CAP do not require general investigations or microbiological studies 1.

When to Consider Testing in Outpatients:

  • Microbiological investigations are not recommended routinely 1
  • Consider sputum examination only if patients fail to respond to empirical antibiotic therapy 1
  • Pulse oximetry should be available in out-of-hours and emergency assessment centers for simple oxygenation assessment 1
  • Consider sputum for Mycobacterium tuberculosis if persistent productive cough with malaise, weight loss, night sweats, or TB risk factors present 1

Routine laboratory tests have little value in determining pneumonia etiology in outpatients, but may have prognostic significance and should be considered in patients age ≥65 years or with coexisting illness who may need hospitalization 2.

Hospitalized Patients: General Laboratory Tests

All admitted patients should have the following mandatory general investigations performed on admission 1:

Required Tests:

  • Chest radiograph 1
  • Complete blood count with differential 2, 3
  • Urea, electrolytes, and liver function tests 1
  • Serum glucose 2, 3
  • C-reactive protein (CRP) when locally available 1
  • Oxygen saturation by pulse oximetry 2

Additional Tests for Specific Situations:

  • Arterial blood gas: Obtain in any patient with severe illness or chronic lung disease to assess oxygenation and carbon dioxide retention 2
  • HIV serological testing: Should be done (after informed consent) in any CAP patient with risk factors, and considered in any patient aged 15-54 years admitted for CAP 3, 2

These routine laboratory tests are of little value in determining pneumonia etiology but have prognostic significance and influence hospitalization decisions 2.

Microbiological Investigations for Hospitalized Patients

It is not necessary or appropriate to perform a full range of microbiological investigations on every hospitalized patient with CAP 1. Testing should be guided by severity, epidemiological risk factors, and treatment response 1.

Blood Cultures:

  • Recommended for all hospitalized patients, preferably before antibiotic treatment 1
  • Overall yield approximately 11%, with S. pneumoniae most commonly identified 2

Sputum Studies:

For non-severe CAP:

  • Send sputum for culture and sensitivity from patients able to expectorate purulent samples who have not received prior antibiotics 1
  • Transport specimens rapidly to the laboratory 1

For severe CAP or treatment failure:

  • Sputum cultures should be performed 1
  • Gram stain should be offered for patients with severe CAP or complications, as it can give immediate indication of likely pathogens 1
  • Routine Gram stain reporting on all patients is unnecessary but aids laboratory interpretation 1
  • If Gram stain is used, apply highly sensitive criteria (any gram-positive diplococci) primarily to visualize unexpected bacterial morphology (e.g., S. aureus, enteric gram-negatives) 2

Important caveat: A properly collected sputum sample should have <10 squamous epithelial cells and ≥25 neutrophils per low-power field 2. However, sputum Gram stain has significant limitations: not all patients can provide adequate samples, interpretation is observer-dependent, atypical pathogens cannot be visualized, and positive results for pneumococcus poorly predict culture recovery 2.

Urinary Antigen Testing:

Pneumococcal urinary antigen:

  • Not routinely recommended 4
  • Suggested for severe CAP only 4

Legionella urinary antigen:

  • Not routinely recommended 4
  • Test in severe CAP 4
  • Test when indicated by epidemiological factors (outbreak association, recent travel) 4
  • Positive in majority of patients with acute Legionella pneumophila serogroup 1 infection, but can remain positive for months after acute infection 2

For severe CAP specifically: Collect lower respiratory tract secretions for Legionella culture on selective media or nucleic acid amplification testing 4

Serological Testing:

Paired serological tests should be performed for 1:

  • All patients with severe CAP
  • Those unresponsive to β-lactam antibiotics
  • Selected patients with particular epidemiological risk factors or when specific microbiological diagnosis is important for public health measures

Serological tests should be extended to all hospitalized patients during outbreaks and for surveillance purposes 1

Important limitation: Serologic testing and cold agglutinin measurements are not useful in initial evaluation and should not be routinely performed 2. They may be useful for retrospective confirmation or epidemiologic studies 2.

Influenza Testing:

  • Strong recommendation to obtain influenza virus testing during periods of community spread 5

Pleural Fluid Analysis:

Any significant pleural effusion (≥10 mm thickness on lateral decubitus film) or loculated effusion should be sampled, preferably before antibiotics 2. Examination should include:

  • White blood cell count and differential
  • Protein, glucose, LDH, and pH
  • Gram stain and acid-fast stain
  • Culture for bacteria, fungi, and mycobacteria

Severe CAP: Enhanced Testing Strategy

For patients meeting severe CAP criteria (septic shock requiring vasopressors, respiratory failure requiring mechanical ventilation, or ≥3 minor criteria including respiratory rate >30/min, PaO₂/FiO₂ <250, multilobar infiltrates, confusion, uremia, leukopenia, thrombocytopenia, hypothermia, or hypotension) 6:

Mandatory microbiological workup includes:

  • Blood cultures
  • Sputum Gram stain and culture
  • Pneumococcal urinary antigen 4
  • Legionella urinary antigen AND lower respiratory tract secretions for Legionella culture or nucleic acid testing 4
  • Paired serological tests 1

Special Populations

Immunocompromised patients (inherited/acquired immune deficiency, drug-induced neutropenia, HIV with CD4 <500, solid organ/HSCT recipients) should have nucleic acid-based testing for respiratory viruses considered, given their high risk of progression from upper respiratory infection to fatal pneumonia 6. However, utility is limited by prolonged viral shedding potentially leading to overdiagnosis 6.

Common Pitfalls to Avoid

  1. Do not delay antibiotic administration to obtain diagnostic specimens—collect rapidly but prioritize treatment 2
  2. Do not over-test outpatients—most do not require any laboratory investigations 1
  3. Do not rely on sputum Gram stain alone for treatment decisions—atypical pathogens are common coinfections and cannot be visualized 2
  4. Do not perform routine serologies for initial management—they lack utility for acute decision-making 2
  5. Correlate any culture result with Gram stain findings from an appropriate specimen 2

Related Questions

What diagnostic tests are recommended for an adult presenting with acute respiratory illness, specifically community‑acquired pneumonia, acute bronchitis, and aspiration pneumonia?
What are the recommended outpatient treatment guidelines for community‑acquired pneumonia in patients aged 65 years or older?
What is the recommended outpatient treatment for community‑acquired pneumonia in a patient with no pleural, bronchial, cuffing, or perihilar opacities?
What outpatient oral antibiotic regimen should be used to treat a patient with community-acquired pneumonia requiring coverage of both typical and atypical organisms?
What is the appropriate treatment for an 85‑year‑old patient with community‑acquired pneumonia, including empiric antibiotic choices, dosing adjustments for impaired renal function, and considerations for inpatient versus outpatient management?
As a primary care physician, how should I manage a female patient with a one‑week history of a red, crusted vulvar lump (originating from a rash on the side of the vagina) who is already receiving ceftriaxone for a shoulder infection?
What is the preferred antibiotic regimen for postoperative intra‑abdominal infection after laparoscopic appendectomy in an adult patient with normal renal and hepatic function and no known drug allergies?
What is the appropriate self‑care for an acute knee effusion without a known injury?
What is the recommended duration of prednisone therapy for bullous pemphigoid?
In a 66-year-old woman on hydrochlorothiazide for four years with a recent dose increase who now has a rash, what is the recommended management?
Which vaccines are indicated for a 14-year-old female with no prior immunizations?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.