Pneumonia is both an infection and a disease

Pneumonia is a lung infection caused by bacteria, viruses, or fungi. When these germs enter your lungs, they trigger inflammation — your body's immune response to the invader. This inflammation is what makes pneumonia a disease: it damages lung tissue and interferes with how your lungs work. So pneumonia is the disease that results from a respiratory infection.

The distinction matters because it shapes how doctors treat it. If bacteria caused your pneumonia, antibiotics can kill the germs. If a virus caused it, antibiotics won't work, and your doctor will focus on supporting your body while it fights the infection itself. Fungal pneumonia requires antifungal medication. Understanding which type you have changes the treatment plan.

Key Takeaways

  • Pneumonia is a lung infection that becomes a disease when the infection causes inflammation and damage to lung tissue.
  • Bacterial pneumonia responds to antibiotics, but viral and fungal pneumonia require different treatments.
  • A chest X-ray or CT scan can show whether pneumonia is present, but additional tests determine what caused it.
  • Pneumonia ranges from mild (walking pneumonia) to severe (requiring hospitalization), depending on the germ type and your overall health.
  • Recovery time varies from weeks for mild cases to months for severe pneumonia, even after treatment begins.

How infection becomes disease in the lungs

Your lungs are designed to filter air and exchange oxygen with your blood. When germs reach the tiny air sacs in your lungs (called alveoli), your immune system responds by sending white blood cells to fight them. This immune response causes swelling and fluid buildup in those air sacs. That swelling is inflammation, and it's what turns a simple respiratory infection into pneumonia disease.

The inflammation makes it harder for oxygen to cross from your lungs into your bloodstream. That's why pneumonia causes shortness of breath, chest pain, and fatigue. Your body is working overtime to get enough oxygen while fighting the infection at the same time. The severity depends on how many air sacs are affected and how strong your immune system is.

The three main types of pneumonia and what causes them

Bacterial pneumonia is the most common type in adults. The bacterium Streptococcus pneumoniae causes it most often, though other bacteria like Haemophilus influenzae and Legionella can too. Bacterial pneumonia usually develops suddenly, with high fever, cough, and chest pain. Antibiotics can stop the infection if started early enough.

Viral pneumonia is often milder than bacterial pneumonia, though it can be serious. Respiratory viruses like influenza, respiratory syncytial virus (RSV), and coronaviruses can all cause it. Viral pneumonia develops more gradually, and your doctor cannot stop it with antibiotics — your immune system has to clear the virus on its own. Treatment focuses on rest, fluids, and managing symptoms while you recover.

Fungal pneumonia is less common and usually affects people with weakened immune systems. Fungi like Histoplasma, Coccidioides, and Cryptococcus can cause it. Fungal pneumonia requires antifungal medication and often takes longer to treat than bacterial or viral pneumonia.

How doctors determine whether you have pneumonia

Your doctor starts by listening to your lungs with a stethoscope. Pneumonia often produces crackling sounds or abnormal breathing patterns that a stethoscope can detect. They'll also ask about your symptoms, how long you've had them, and whether you've been around people who were sick.

A chest X-ray is the standard imaging test. It shows white areas in your lungs where inflammation and fluid have accumulated — these are called infiltrates. A CT scan provides more detail if your doctor needs it, especially if the X-ray is unclear or if you're very ill. Blood tests can show signs of infection, and a sputum culture (a sample of mucus you cough up) can identify which germ is causing the pneumonia. This last test is crucial because it tells your doctor whether antibiotics will work.

Mild pneumonia versus severe pneumonia

Mild pneumonia, sometimes called walking pneumonia, causes symptoms you can manage at home: a persistent cough, mild fever, fatigue, and chest discomfort. You may feel well enough to go about your day, though you'll tire easily. Walking pneumonia is usually viral or caused by certain bacteria like Mycoplasma. Most people recover in two to three weeks with rest and fluids.

Severe pneumonia requires hospitalization. Symptoms include high fever, severe shortness of breath, confusion, rapid heart rate, and low blood oxygen levels. Severe pneumonia can develop from any type of germ, but it's more likely in older adults, people with chronic illnesses, or those with weakened immune systems. Hospital treatment may include oxygen therapy, intravenous antibiotics or antivirals, and monitoring to prevent complications like sepsis or respiratory failure.

What happens after pneumonia treatment starts

If you have bacterial pneumonia, antibiotics begin working within 24 to 48 hours. Your fever usually drops, and you'll start feeling better. However, you should finish the entire course of antibiotics even after you feel well — stopping early can allow the infection to return or develop antibiotic resistance.

Viral pneumonia doesn't respond to antibiotics, so recovery depends on your immune system. This typically takes longer — often two to four weeks. Your doctor will recommend rest, fluids, and over-the-counter fever reducers. A persistent cough can linger for weeks even after the infection clears.

After treatment, a follow-up chest X-ray may be ordered to confirm the infection has cleared, especially if you're older or have other health conditions. Some people experience lingering fatigue or a nagging cough for months after pneumonia, particularly if the case was severe. This doesn't mean the infection is still active — it's just your lungs healing.

Who is at higher risk for pneumonia

Certain groups face higher risk of developing pneumonia or experiencing severe disease. Adults over 65, people with chronic lung disease (like COPD or asthma), and those with heart disease are more vulnerable. People with weakened immune systems — from HIV, cancer treatment, or immunosuppressant medications — are also at greater risk.

Smokers have damaged lung defenses and are more likely to develop pneumonia. Recent respiratory infections, hospitalization, or surgery can increase risk too. Vaccines against pneumococcal bacteria and influenza virus can reduce your risk of pneumonia, though they don't prevent all cases.

Frequently Asked Questions

Can pneumonia go away on its own without treatment?

Mild viral pneumonia sometimes resolves without treatment, though recovery takes longer and symptoms are more uncomfortable. Bacterial pneumonia almost always requires antibiotics — without them, the infection can worsen and lead to serious complications. If you suspect pneumonia, see a doctor for diagnosis rather than waiting to see if it clears.

Is pneumonia contagious?

The germs that cause pneumonia are contagious, but pneumonia itself is not. You can catch the virus or bacteria from someone with pneumonia, but whether you develop pneumonia depends on your immune system and overall health. Most people exposed to these germs don't develop pneumonia.

Can you get pneumonia more than once?

Yes. Having pneumonia once doesn't make you immune to future cases. You can catch different strains of bacteria or viruses, or develop pneumonia from a different germ entirely. Vaccines and good hygiene (handwashing, avoiding smoke) reduce your risk of recurrence.

What's the difference between pneumonia and bronchitis?

Bronchitis is inflammation of the airways that carry air to your lungs, while pneumonia is infection in the air sacs themselves. Bronchitis usually causes a cough but doesn't show up on chest X-rays the way pneumonia does. Bronchitis often clears without antibiotics, whereas bacterial pneumonia typically requires them.

How long does it take to recover from pneumonia?

Mild pneumonia usually improves within one to two weeks of starting treatment, though a cough may linger for several weeks. Severe pneumonia can take four to six weeks or longer to recover from, even after hospitalization. Older adults and people with other health conditions often take longer to fully recover.