Pneumonia is a lung infection that inflames the tiny air sacs in one or both lungs. When these air sacs fill with fluid or pus, your body has a harder time getting the oxygen it needs. Illness can be mild, but it can also be serious or even life-threatening, especially for young children, adults age 65 and older and people who have long-term health problems. Learning the common pneumonia causes, pneumonia symptoms, testing, treatment and ways to prevent infection can help you recognize the signs of pneumonia early and know when to seek care.

Pneumonia starts when a germ gets into the lungs and triggers inflammation in the alveoli, which are the small air sacs where oxygen enters the blood and carbon dioxide leaves. The inflamed air sacs can fill with fluid or pus. This makes it harder to breathe and can cause cough, fever and chest discomfort. Pneumonia may affect one section (lobe) of a lung or show up as patchy areas in one or both lungs.

Clinicians describe pneumonia by both the germ and where the infection started.

  • Bacterial pneumonia: Often caused by Streptococcus pneumoniae, a bacterium also called pneumococcus. This type of bacterial pneumonia can come on quickly with high fever, a cough that brings up mucus and chest pain. Other bacteria can cause similar illness. Some people get walking pneumonia from atypical bacteria like Mycoplasma pneumoniae. Walking pneumonia tends to be milder, with a dry cough and tiredness and people may still do daily activities.
     
  • Viral pneumonia: Caused by viruses such as influenza (flu), respiratory syncytial virus (RSV) or SARS-CoV-2 (the virus that causes COVID-19). Viral infections can cause fever, dry cough, body aches and fatigue. Some people become very short of breath if the inflammation worsens.
     
  • Fungal pneumonia: Seen more often in people with weak immune systems. Examples include Pneumocystis jirovecii pneumonia (PJP), histoplasmosis or coccidioidomycosis in certain regions.
     
  • Aspiration pneumonia: Happens when food, liquids, saliva or stomach contents go down the “wrong pipe” into the lungs. This can irritate the lungs and bring bacteria into the airways. The risk is higher if someone has trouble swallowing or is very sleepy or sedated.

Pneumonia is also described by the location of the patient:

  • Community-acquired pneumonia (CAP): Starts outside of a hospital or long-term care facility.
  • Hospital-acquired pneumonia (HAP): Starts 48 hours or more after being admitted to the hospital. Ventilator-associated pneumonia (VAP) is HAP that happens in people who are on a breathing machine.

Anyone can get pneumonia. Some people have a higher risk:

  • Adults age 65 and older and children under age 2
  • People with asthma, COPD, heart disease, diabetes, kidney disease or liver disease
  • People with weak immune systems due to cancer treatment, organ transplant, HIV or medicines like high-dose steroids
  • People who smoke or are exposed to secondhand smoke
  • People with swallowing problems, neurologic diseases or reduced mobility
  • People with recent hospital stays, recent antibiotic use or who live in long-term care facilities

Pneumonia Symptoms and When to Seek Care

Pneumonia symptoms can start suddenly or develop over a few days. The most common signs of pneumonia include:

  • Cough that may bring up green, yellow or bloody mucus
  • Fever or chills
  • Shortness of breath or fast breathing
  • Chest pain that gets worse when you breathe deeply or cough
  • Feeling very tired or weak
  • Loss of appetite, headache or muscle aches

Some people also have nausea, vomiting, diarrhea or wheezing. Pneumonia symptoms can look like a cold or the flu at first. Others may get very sick very quickly.

Go to urgent care or the emergency department if you have any of these warning signs of pneumonia:

  • Severe trouble breathing, very fast breathing or feeling like you cannot catch your breath
  • Blue or gray lips or face, or a home oxygen reading (SpO2) below 92% unless your clinician has given you a different target
  • High fever that does not improve with fever-reducing medicine or lasts more than 3 days
  • Confusion, new disorientation, fainting or severe weakness, especially in older adults
  • Severe chest pain, coughing up large amounts of blood or signs of dehydration such as very dark urine or dizziness

Symptoms can look different based on age and health:

  • Children: May breathe fast, flare their nostrils, grunt or pull in the muscles between the ribs. Babies may feed poorly or seem extra sleepy or irritable. Fever can be high. Cough may be mild or even absent in young infants.
  • Older adults: Fever may be low or not present. They may show confusion, falls, new weakness or a sudden drop in daily function. Breathing can become shallow or fast.
  • People with COPD or asthma: May have more cough or wheezing, more mucus or lower oxygen than their usual. Even mild new pneumonia symptoms deserve early evaluation.

Call your healthcare team if you have pneumonia symptoms, especially if you are at higher risk or your symptoms are getting worse instead of better.

Diagnosis and Tests

Your visit starts with a careful history and exam. Your clinician will ask about pneumonia causes such as recent sick contacts, travel or a risk for aspiration. They will review your vaccination status for influenza, COVID-19 and pneumococcal disease. They will also ask about any health conditions or medicines that affect your immune system. During the exam, they will check your temperature, heart rate, breathing rate, blood oxygen level and listen for crackles or decreased breath sounds. They also check for dehydration and signs of sepsis.

Common tests include:

  • Chest X-ray: Often the first imaging test. It can show a solid area in one lobe or patchy spots in the lungs and helps tell pneumonia apart from other causes of cough or shortness of breath.
  • Chest CT scan: Used if the diagnosis is not clear, if complications are suspected (like abscess, empyema or blood clot in the lung), or if recovery is not going as expected.
  • Pulse oximetry and arterial blood gas: Measure oxygen levels. An arterial blood gas gives more detail about oxygen and carbon dioxide if needed.
  • Blood tests: A complete blood count may show a high white blood cell count. Other tests check kidney and liver function and inflammation. Blood cultures may be ordered if you are more ill.
  • Sputum tests: A sample of mucus can be checked under a microscope and cultured to find bacterial pneumonia germs. In more severe or hospital-acquired cases, broader respiratory panels may be used.
  • Rapid viral tests: Nose swabs can detect influenza, RSV, COVID-19 and other viruses. These results guide treatment and infection control. 

Special testing or referral may be needed for certain situations:

  • Repeated pneumonia in the same area may suggest a blockage or structural lung problem or aspiration.
  • Pneumonias in different areas can point to an immune problem that needs testing by an immunology specialist.
  • People with weak immune systems may need tests for fungal or mycobacterial infections and sometimes bronchoscopy.
  • Slow or no improvement after proper treatment may lead to checking for pleural effusion or empyema, or other diagnoses such as heart failure or pulmonary embolism.

Your care team will choose tests based on your pneumonia symptoms, risk factors and how sick you are when you are seen.

Treatment

Treatment depends on the germ causing the infection, how severe the illness is and your overall health. The goals are to clear the infection, support your breathing and prevent complications.

  • Antibiotics for bacterial pneumonia: The type of antibiotic depends on whether the infection was community-acquired or hospital-acquired, your age, other health problems and local resistance patterns. Many people with mild community-acquired bacterial pneumonia can be treated at home with pills. More serious infections may need intravenous antibiotics in the hospital.
  • Antiviral medicines: These may be used for influenza or some cases of COVID-19 if started in the recommended time window. Antivirals do not treat bacterial pneumonia.
  • Antifungal therapy: Used for fungal pneumonia, often with input from an infectious disease specialist.
  • Fever and pain relief: Acetaminophen or ibuprofen may help lower fever and ease discomfort, unless your clinician advises against them.
  • Oxygen therapy: Supplemental oxygen may be needed if your oxygen level is low. Severe cases can require noninvasive ventilation or a breathing machine in the intensive care unit.
  • Hospitalization: Needed for low oxygen, low blood pressure, confusion, dehydration, very fast breathing, inability to take fluids or medicines by mouth or other signs of severe pneumonia.

Prevention

You can lower your risk of pneumonia and reduce the chance of severe illness by following proven steps.

  • Vaccinations: Stay up to date on pneumococcal vaccines, your yearly flu shot and COVID-19 vaccines. Adults 65 and older and younger adults with certain health problems gain protection from pneumococcal vaccination. Your clinician can recommend the best vaccine product and schedule for you. Vaccinations are available at many of our Froedtert Pharmacy locations.
  • Hand hygiene and respiratory etiquette: Wash your hands often with soap and water or use an alcohol-based hand nitizer. Cover coughs and sneezes and throw away tissues right away.
  • Avoid smoking and secondhand smoke: Smoking harms the lungs’ natural defenses and raises the risk of pneumonia. Ask your care team for help and resources to quit.
  • Manage chronic conditions: Keep asthma or COPD under control with your inhalers. Manage diabetes and follow care plans for heart or kidney disease. This can lower the risk of complications if you get pneumonia.
  • Reduce aspiration risk: If you have trouble swallowing, work with a speech-language pathologist to learn safe swallowing techniques and proper body positions. Avoid sedatives when possible unless they are medically needed.
  • Seek timely care: If you develop pneumonia symptoms and you are at higher risk for complications, contact your healthcare team early. Quick evaluation can shorten illness and may prevent hospitalization.

Recovery and Home Care

Most people begin to feel better a few days after starting the right treatment for pneumonia, but cough and tiredness can last for weeks. Recovery is gradual. Pushing yourself too hard can slow healing. These tips can help:

  • Rest and pace your activities. Add more movement slowly as your energy returns.
  • Drink plenty of fluids. Water and warm liquids help thin mucus and prevent dehydration.
  • Take medicines exactly as prescribed. Finish the entire course of antibiotics for bacterial pneumonia, even if you feel better sooner.
  • Use a humidifier or take steamy showers to loosen mucus and ease coughing.
  • Practice gentle breathing exercises. An incentive spirometer, if recommended, can help reopen air sacs and lower the chance of complications.
  • Use cough suppressants only if your clinician advises them. Coughing helps clear mucus. Suppressing cough too much can slow recovery.
  • Watch your symptoms. Call your care team if you are not improving within 48 to 72 hours after starting treatment, if fever returns, or if breathing gets worse.
  • Plan follow-up. Older adults and people with a history of smoking or other health issues may need a repeat chest X-ray weeks after recovery to make sure the pneumonia has cleared and to check for other problems.

Hospital-Acquired and Ventilator-Associated Pneumonia

Some people develop pneumonia while in the hospital. Hospital-acquired pneumonia (HAP) starts 48 hours or more after admission and was not present before. Ventilator-associated pneumonia (VAP) happens in people who need a breathing tube and a ventilator.

HAP and VAP matter because pneumonia causes in the hospital are often different than in the community. Hospital germs can be harder to treat and may resist standard antibiotics. These infections can be more severe, lengthen hospital stays and raise the risk of complications.

Risk factors include:

  • Mechanical ventilation and longer time on a breathing tube
  • Recent surgery or procedures that require sedation
  • Advanced age, frailty or limited mobility
  • Chronic lung disease, heart failure or neurologic conditions
  • Trouble swallowing or aspiration of stomach contents
  • Weak immune system
  • Recent antibiotic use
  • Use of invasive devices such as central lines or urinary catheters

Hospitals use proven steps to prevent HAP and VAP:

  • Keeping the head of the bed raised 30 to 45 degrees to lower aspiration risk
  • Regular mouth care with antiseptic solutions and suctioning secretions when needed
  • Daily checks to reduce sedation and remove the breathing tube as soon as it is safe
  • Early mobility and physical therapy when possible
  • Strict hand hygiene for everyone
  • Smart antibiotic use to reduce resistance
  • Vaccinations for patients and staff for influenza and COVID-19

When HAP or VAP is suspected, clinicians use imaging, measure oxygen levels and collect blood and respiratory cultures. Treatment often starts with broad antibiotics that cover likely hospital germs and then narrows based on test results. Supportive care includes oxygen, good nutrition, careful fluid balance and early movement as it is safe.

Causes and Risk Overview

Pneumonia results from germs that get past the lungs’ normal defenses. The type of germ and how it spreads shape the illness. Knowing common pneumonia causes can help you prevent infection and understand why certain treatments are needed.

  • Cause: Bacteria (e.g., Streptococcus pneumoniae)
    How It Spreads: Often after a viral illness or from bacteria in the mouth and throat entering the lungs
    Typical Features: Sudden fever, cough with mucus, chest pain; imaging may show a single lobe filled with infection
    Who Is at Risk: Older adults, people with chronic disease, smokers and those with weak immunity
     
  • Cause: Atypical bacteria (e.g., Mycoplasma pneumoniae)
    How It Spreads: Respiratory droplets in schools, dorms or close-contact settings
    Typical Features: Mild fever, dry cough, headache, fatigue; often called walking pneumonia
    Who Is at Risk: School-age children, teens, young adults and people in crowded settings
     
  • Cause: Viruses (influenza, RSV, SARS-CoV-2)
    How It Spreads: Respiratory droplets and aerosols
    Typical Features: Fever, dry cough, body aches, fatigue; can lead to low oxygen in severe cases
    Who Is at Risk: Young children, older adults, pregnant people and those who are immunocompromised
     
  • Cause: Fungi (e.g., PJP, Histoplasma)
    How It Spreads: Environmental exposure or reactivation when immunity is low
    Typical Features: Subacute symptoms; diffuse changes on imaging; needs special testing
    Who Is at Risk: People with suppressed immunity or certain geographic exposures
     
  • Cause: Aspiration
    How It Spreads: Inhaling food, liquids, saliva or stomach contents
    Typical Features: Cough after meals, foul-smelling sputum; often affects lower back parts of the lungs
    Who Is at Risk: People with swallowing disorders, reflux, sedation, stroke or neurologic disease
     
  • Cause: Hospital-acquired pathogens
    How It Spreads: Healthcare environment, invasive devices, ventilators
    Typical Features: More severe illness; higher chance of antibiotic resistance
    Who Is at Risk: Hospitalized and critically ill patients

Complications

Most people recover fully with the right care, but complications can happen, especially in severe cases of pneumonia or in people with risk factors:

  • Pleural effusion: Fluid builds up around the lungs and can cause ongoing shortness of breath.
  • Empyema: Infected fluid in the pleural space that may need drainage.
  • Lung abscess: A pocket of pus inside the lung that may require longer antibiotics or a procedure.
  • Sepsis and septic shock: A dangerous whole-body response to infection that can lead to organ failure.
  • Acute respiratory failure: Severe trouble exchanging oxygen that may require a breathing machine.
  • Worsening of other conditions: Flares of heart failure, COPD or asthma can be triggered by pneumonia.

Frequently Asked Questions

  • Early signs of pneumonia often include fever, cough and shortness of breath. Some people notice chest pain with deep breaths, chills or a sudden drop in energy. If you are older or have chronic conditions, call your care team early when these symptoms begin.

  • Walking pneumonia is a milder form of pneumonia, usually from atypical bacteria like mycoplasma. People may have a dry cough, low fever, headache and fatigue, but can still move around and do daily tasks. Even though it is milder, it still needs evaluation and may need antibiotics.

  • Pneumococcal refers to Streptococcus pneumoniae, a common cause of bacterial pneumonia. There are pneumococcal vaccines that lower the risk of serious infections from this germ. Your clinician can advise which vaccine is right for you and when to get it.

  • Yes. Influenza can lead to viral pneumonia and can also set the stage for bacterial pneumonia. Getting your yearly flu shot, along with pneumococcal and COVID-19 vaccines, reduces your risk of pneumonia and its complications.

Your Next Steps

If you think you or your child may have pneumonia, reach out to your healthcare team. Early diagnosis and treatment can shorten the illness and lower the chance of complications. Seek emergency care right away for severe signs of pneumonia such as trouble breathing, confusion, bluish lips or very low oxygen readings at home.

If you are at higher risk due to age, chronic disease or a weak immune system, ask about pneumococcal vaccination and a plan for early evaluation if pneumonia symptoms start. If you or a loved one is in the hospital, talk with the care team about pneumonia prevention, including mobility, oral care and steps to reduce aspiration risk. Staying informed about pneumonia causes and treatments helps you take action quickly and recover safely.

Virtual Visits Are Available

Safe and convenient virtual visits by video let you get the care you need via a mobile device, tablet or computer wherever you are. We'll assess your condition and develop a treatment plan right away. To schedule a virtual visit, call 414-777-7700.

Learn More

Nationally Ranked and Rated as High Performing by U.S. News & World Report

Froedtert Hospital is nationally ranked by U.S. News & World Report in three specialties, including pulmonology and lung surgery. Froedtert Hospital is also rated as high performing in four adult specialties and 22 procedures and conditions, including lung cancer surgery, pneumonia and COPD. Froedtert Menomonee Falls Hospital is rated as high performing in five procedures and conditions, including pneumonia.