Bacterial pneumonia is an infection of lung tissue caused by bacteria. It may produce cough, fever, chest pain, difficulty breathing and reduced oxygen levels. Some cases are mild enough for care outside the hospital; others can become life-threatening and need urgent hospital treatment.

Pneumonia is not always bacterial. Viruses, fungi and certain other organisms can also cause lung infection, and mixed viral–bacterial infections occur. Determining whether antibacterial treatment is appropriate requires an assessment of symptoms, underlying health, disease severity and sometimes imaging or laboratory investigations. The choice of antibiotics depends on the clinical setting and suspected organisms rather than a single medicine being universally ‘best’.

What is pneumonia?

Pneumonia causes inflammation in the lung’s gas-exchanging tissues, including the alveoli, the tiny air sacs through which oxygen passes into the blood. Infection and inflammation can fill alveoli with inflammatory fluid, reducing oxygen exchange and causing breathing symptoms.

Pneumonia is often described according to where it develops:

  • Community-acquired pneumonia (CAP): pneumonia acquired outside a hospital or certain healthcare settings.
  • Hospital-acquired pneumonia (HAP): pneumonia arising in hospital after an appropriate period following admission, without being present or incubating on arrival.
  • Ventilator-associated pneumonia (VAP): pneumonia developing in association with mechanical ventilation under specific clinical definitions.

These categories matter because likely pathogens and antibiotic resistance patterns differ. This article focuses mainly on bacterial community-acquired pneumonia. Hospital- and ventilator-associated pneumonia need distinct diagnostic and treatment pathways. [3]

What causes bacterial pneumonia?

Streptococcus pneumoniae (pneumococcus) is an established cause of community-acquired bacterial pneumonia. Other potential causes include Haemophilus influenzae, Staphylococcus aureus and certain Gram-negative bacteria. Organisms such as Mycoplasma pneumoniae, Legionella pneumophila and Chlamydia pneumoniae are sometimes called atypical bacterial causes because of their biological characteristics and response to particular antibiotics.

The likely organism varies with age, exposure, geography, vaccination history, chronic lung conditions, immune status and recent healthcare contact. For example, severe illness after influenza can raise concern for a secondary bacterial infection, including S. aureus. It is not possible to identify the causative species reliably from cough color or fever pattern alone.

How does bacterial pneumonia spread?

Respiratory pathogens may spread through close contact and respiratory particles. Some organisms can colonize the nose or throat without causing disease; pneumonia develops when they reach susceptible lung tissues and overcome host defenses.

Pneumonia itself does not always spread in the same way as a single infectious disease. Whether a patient is contagious depends on the microorganism, the stage of illness and any appropriate treatment. Some cases, such as aspiration-associated pneumonia, arise from different mechanisms and are not simply acquired from another person.

Symptoms of bacterial pneumonia

Common symptoms include:

  • Cough, which may or may not produce sputum.
  • Fever, chills or sweating.
  • Shortness of breath or rapid breathing.
  • Chest discomfort, sometimes worse with deep breaths or coughing.
  • Fatigue, weakness and reduced appetite.

Symptoms differ among patients. Some older adults have less obvious fever and may develop confusion or functional decline. Children may show fast breathing, poor feeding, chest wall retractions or unusual sleepiness. These findings are nonspecific and should be assessed in clinical context.

When to seek urgent medical care

Urgent evaluation is needed for significant breathing difficulty, blue or gray lips, new confusion, severe chest pain, suspected low blood oxygen, fainting, or signs of sepsis. Very young infants, older frail adults, pregnant patients and immunocompromised people may need a lower threshold for assessment. Emergency symptoms should not be managed by relying on advice from an online article.

Bacterial vs viral pneumonia

Bacterial and viral pneumonia can cause overlapping symptoms. Influenza, SARS-CoV-2, respiratory syncytial virus and other respiratory viruses may lead to pneumonia. A patient can also have a bacterial and viral infection together.

A positive respiratory virus test does not always prove there is no bacterial infection. Updated ATS guidance published in 2025 suggests that otherwise healthy adult outpatients with community-acquired pneumonia and a confirmed respiratory virus may not need empiric antibiotics, but it recommends a different approach for outpatients with comorbidities and hospitalized patients because bacterial coinfection remains a concern. These are conditional recommendations supported by very low certainty evidence. [1]

Decisions therefore depend on how ill the patient is, imaging findings, underlying conditions and the possibility of coinfection. The statement ‘pneumonia always needs antibiotics’ is too broad, as is the statement ‘a positive viral test means antibiotics are never needed’.

How is bacterial pneumonia diagnosed?

A clinician begins with medical history, examination, respiratory rate, temperature, heart rate and oxygen saturation when available. Listening to the chest may reveal abnormal sounds, but examination alone cannot consistently identify the organism or establish the diagnosis in every case.

Chest imaging

Chest radiography may show an infiltrate consistent with pneumonia and help exclude some alternative causes of symptoms. The ATS 2025 update also recognizes lung ultrasound as a possible diagnostic modality in settings with trained operators and suitable expertise. Imaging choice depends on the clinical setting and available resources. [1]

Imaging findings alone do not determine whether an infection is bacterial; noninfectious conditions may sometimes resemble pneumonia.

Blood and respiratory tests

Tests may include a complete blood count, selected inflammatory markers, blood cultures, sputum cultures, respiratory pathogen testing or urine antigen tests. Many patients with low-severity community-acquired pneumonia do not need extensive microbiological testing. NICE recommends considering selected tests primarily in moderate- or high-severity cases and when clinical factors warrant them. [2]

Blood cultures are not automatically needed for every outpatient. Sputum samples may be difficult to interpret when contaminated by organisms from the mouth. Even with investigation, the exact organism causing pneumonia is often not identified.

Determining severity

Severity is essential because it influences where a patient is treated. NICE advises the CRB65 assessment for adults in primary care and CURB65 for adults assessed in hospital, alongside clinical judgment. These tools account for features such as confusion, breathing rate, blood pressure and age; CURB65 also includes a blood urea measure. They are not designed to replace a clinician’s assessment, particularly when pregnancy, comorbidity or signs of sepsis are involved. [2]

Which antibiotics treat bacterial pneumonia?

The appropriate agent depends on community versus hospital acquisition, disease severity, the patient’s conditions and allergies, local resistance patterns and recent antibiotic exposure. Antibiotics effective for one bacterial species may have little activity against another.

Examples of drug classes used in selected pneumonia settings include:

Antibiotic family Examples Important context
Penicillins Amoxicillin, ampicillin-based regimens May be appropriate for selected susceptible community pathogens
Cephalosporins Ceftriaxone, cefotaxime Common hospital options for selected bacterial pneumonias
Macrolides Azithromycin, clarithromycin Activity against some atypical pathogens; resistance and cardiac interactions matter
Tetracyclines Doxycycline Option in selected adult community-acquired pneumonia settings
Respiratory fluoroquinolones Levofloxacin, moxifloxacin Reserved or selected according to setting because of important adverse-effect warnings

This table illustrates drug families, not a prescription algorithm. Severe pneumonia can require more than one agent or broader initial treatment while microbiological information is pending. Specific risk factors for Pseudomonas or MRSA may lead to a different regimen, but empiric coverage for these organisms should not be universal.

Oral versus intravenous antibiotics

Patients who can take and absorb oral medicines and are clinically stable may receive oral treatment. Serious illness may require intravenous antibiotics, oxygen, fluids, monitoring or higher levels of care.

NICE recommends reviewing intravenous therapy within 48 hours and considering an oral switch when appropriate. Antibiotics are reviewed once microbiological and clinical information becomes available so treatment can be narrowed or stopped when justified. [2]

Treatment duration

A blanket ‘seven to fourteen days’ rule is outdated. NICE recommends five days for most adults with community-acquired pneumonia, unless microbiology or lack of clinical stability indicates a longer course. The newer ATS guidance also considers shorter treatment in appropriately selected adults who have reached clinical stability. [1,2]

These are clinician-directed recommendations, not instructions to stop a prescription early. Complicated pneumonia, lung abscess, empyema, severe immunosuppression or unusual pathogens may require different durations and specialist management.

When antibiotics may not be needed

Not every respiratory illness is pneumonia, and not every pneumonia is bacterial. Antibiotics do not treat influenza or other respiratory viruses. Selected otherwise healthy outpatients with evidence of viral pneumonia may avoid unnecessary antibacterial therapy following clinical assessment, consistent with ATS 2025 recommendations. [1]

If the illness is believed to be bacterial or bacterial coinfection cannot safely be excluded, appropriate antibiotics may be indicated. Clinicians must weigh undertreatment of serious disease against the harms of unnecessary antibiotic use.

Recovery from pneumonia

Improvement in fever and acute symptoms may begin after effective treatment, but fatigue, cough and reduced exercise tolerance can persist after the infection has been controlled. Recovery is influenced by age, severity and underlying conditions.

Patients should follow a clinician’s instructions regarding rest, fluids, symptom control and any follow-up. Worsening breathing, recurring fever, persistent severe weakness or inability to maintain hydration warrants reassessment. A patient who is not improving may need evaluation for a resistant pathogen, a different diagnosis, complications or inadequate source control.

Follow-up chest imaging is not universally required after an uncomplicated recovery. It may be considered when symptoms persist or specific risk factors suggest a need to investigate underlying lung disease, including malignancy risk in some patients.

Potential complications

Complications can include pleural effusion, empyema (infected fluid around the lung), lung abscess, respiratory failure, bloodstream infection and sepsis. Some complications require drainage, surgery or prolonged individualized treatment rather than antibiotic selection alone.

Antibiotics can also cause adverse effects, including diarrhea, allergy, Clostridioides difficile infection and drug-specific toxicity. For example, macrolides and some fluoroquinolones have important cardiac safety considerations, while certain beta-lactams require changes in patients with reduced kidney function.

Prevention

Risk reduction includes recommended pneumococcal, influenza, COVID-19 and other age- or risk-appropriate vaccinations; smoking cessation; management of chronic illnesses; and infection prevention practices such as hand hygiene and improving ventilation when respiratory infections are circulating. Vaccine schedules vary by country, age and risk status and should be checked against current local recommendations.

Aspiration risk reduction and oral health may be relevant for selected patients. Antibiotics should not be used routinely to prevent ordinary community respiratory infections unless there is a specific medical indication.

Antibiotic resistance and pneumonia

Resistance complicates pneumonia treatment. Macrolide resistance among pneumococci varies geographically, and hospitalized patients may encounter organisms resistant to multiple antibiotic families. Recent antibiotic exposure, prior microbiological results and known colonization can inform empiric selection.

An antibiotic described as broad-spectrum is not inherently better. Stewardship aims to use the most appropriate treatment for the likely or confirmed pathogen while minimizing unnecessary exposure and adverse effects.

Antibiotics profiled for this topic

These medicine profiles discuss this infection or resistance pattern. Inclusion is not a treatment recommendation: the right choice depends on diagnosis, testing, local guidance and the individual patient.

Practical questions

Frequently Asked Questions

Is bacterial pneumonia contagious?

The responsible bacteria may spread between people, but transmission and the risk of developing pneumonia depend on the organism and host factors. Follow the treating clinician’s advice on precautions.

How do doctors know if pneumonia is bacterial?

They combine clinical findings, imaging, epidemiology and sometimes microbiological testing. Symptoms and sputum color alone are not reliable enough to identify the cause.

Can pneumonia be treated at home?

Some mild cases can be treated outside hospital. Severity, oxygen status, comorbidities, ability to take medicines and access to follow-up all matter.

Does yellow or green mucus mean antibiotics are needed?

No. Mucus color is not a reliable stand-alone test for a bacterial infection.

Is amoxicillin always the best treatment?

No. It may be suitable for some patients with community-acquired pneumonia, but selection varies according to organism, severity, underlying health, allergies and local guidance.

Why am I still coughing after antibiotics?

Airway irritation and inflammation can persist after infection control. Persistent or worsening symptoms should be discussed with a clinician, particularly with fever or difficulty breathing.

Does viral pneumonia ever need antibiotics?

Only when bacterial coinfection is suspected or confirmed, or when clinical guidance supports empiric therapy because bacterial infection cannot safely be excluded.

Key Takeaways

Bacterial pneumonia can range from mild illness to a medical emergency. Diagnosis depends on clinical assessment and sometimes imaging and tests. Antibiotics are selected according to severity, likely pathogens, resistance patterns and individual factors. Viral pneumonia and bacterial coinfection must be distinguished carefully; newer guidelines do not support a one-size-fits-all approach. Worsening breathing or confusion requires urgent care.

References

  1. American Thoracic Society (ATS). Diagnosis and Management of Community-acquired Pneumonia: Official Clinical Practice Guideline. Published July 18, 2025. https://academic.oup.com/ajrccm/article/212/1/24/8435770
  2. NICE. Pneumonia: Diagnosis and Management (NG250). Recommendations updated 2025. https://www.nice.org.uk/guidance/NG250/chapter/recommendations
  3. ATS/IDSA. Diagnosis and Treatment of Adults with Community-acquired Pneumonia (2019 guideline; consult together with ATS 2025 update). https://www.idsociety.org/practice-guideline/community-acquired-pneumonia-cap-in-adults/