Pneumonia is an infection that fills your lungs with fluid or pus, making it hard to breathe and get oxygen into your blood
Pneumonia happens when germs—bacteria, viruses, or fungi—get into your lungs and cause inflammation. Your lungs have tiny air sacs called alveoli. When you have pneumonia, these sacs fill with fluid or pus instead of air. That means less oxygen reaches your bloodstream, which is why you feel short of breath and tired.
The infection can start in one lung or both. It can develop slowly over days or come on suddenly. Some people have mild pneumonia that feels like a bad cold; others get very sick and need hospital care. How severe it is depends on which germ caused it, your age, and whether your immune system is already weakened.
Key Takeaways
- Pneumonia fills the air sacs in your lungs with fluid or pus, blocking oxygen from reaching your blood.
- Bacteria, viruses, and fungi can all cause pneumonia, and each type spreads and responds to treatment differently.
- Common symptoms include cough, fever, chest pain, and shortness of breath, though older adults may have fewer obvious signs.
- A chest X-ray or CT scan is how doctors confirm pneumonia; blood tests and sputum cultures help identify what caused it.
- Pneumonia can follow a cold or flu, or develop on its own, and ranges from mild to life-threatening depending on the cause and your health.
How pneumonia develops: the step-by-step process
Pneumonia usually starts when you breathe in germs that land in your lungs. Your lungs have defenses—mucus, cilia (tiny hairs that sweep debris out), and white blood cells—that normally clear out invaders. But if the germs are strong, or your defenses are weak, the infection takes hold.
Once the germs multiply, your immune system fights back by sending more white blood cells to the area. This causes inflammation and swelling. The infected air sacs start leaking fluid or pus. Your body tries to cough it up, which is why cough is often the first symptom. As more sacs fill, you have less room for air, so you start feeling short of breath.
The infection can stay in one spot (lobar pneumonia) or spread throughout both lungs (bronchopneumonia). It can also move into your bloodstream, which is serious and requires immediate hospital care.
The three main types of pneumonia and what causes each
Bacterial pneumonia is often caused by Streptococcus pneumoniae, Haemophilus influenzae, or Legionella. It tends to come on suddenly with high fever, cough with colored sputum (mucus), and chest pain. Bacterial pneumonia usually responds to antibiotics, but it can be severe if not treated.
Viral pneumonia is often caused by influenza (flu), respiratory syncytial virus (RSV), or coronaviruses. It usually starts with cold-like symptoms—runny nose, sore throat—and then moves into the lungs. Viral pneumonia does not respond to antibiotics. Your body has to fight it off on its own, though doctors can help manage symptoms and prevent secondary bacterial infection.
Fungal pneumonia is less common and usually only serious in people with very weak immune systems. It develops slowly and can be harder to diagnose. Fungal pneumonia requires antifungal medications.
Symptoms that signal pneumonia rather than a regular cold
A cold stays in your upper airways—nose, throat, sinuses. Pneumonia goes deeper into your lungs. The key difference is a productive cough (one that brings up mucus), chest pain when you breathe or cough, and shortness of breath. You may also have fever, chills, and fatigue.
Some people cough up mucus that is clear, white, yellowish, or even tinged with blood. Others have a dry cough. Chest pain from pneumonia often feels sharp and gets worse when you take a deep breath or cough.
Older adults and people with weakened immune systems may not show typical symptoms. They might just feel confused, very tired, or lose their appetite. This is why pneumonia can be missed in elderly people—they do not always run a high fever or cough much.
How doctors confirm pneumonia and identify the cause
Your doctor will listen to your lungs with a stethoscope. Pneumonia often makes a crackling or bubbling sound. To confirm it, they order a chest X-ray, which shows white patches where fluid or pus has filled the air sacs. A CT scan gives more detail if the X-ray is unclear.
To find out what caused the pneumonia, doctors may take a sputum sample (mucus you cough up) and send it to a lab to grow and identify the germ. They may also do a blood culture, which takes a sample of your blood and checks for bacteria or fungi. These tests take a few days to come back, so doctors often start treatment before results arrive based on what type of pneumonia they think you have.
A pulse oximeter (a small clip on your finger) measures how much oxygen is in your blood. If the level is too low, that signals your lungs are not working well enough.
Why pneumonia can follow a cold or flu
When you have a cold or flu, the virus damages the lining of your airways and lungs. This damage makes it easier for bacteria to move in and cause a secondary infection. Your immune system is also busy fighting the first infection, so it is less able to stop the bacteria.
This is why people often develop bacterial pneumonia a week or two after the flu starts to get better. They think they are recovering, then suddenly feel worse with new symptoms like high fever, colored sputum, and chest pain.
Pneumonia can also develop on its own without a cold or flu first. You can breathe in bacteria or other germs directly, or they can spread from an infection elsewhere in your body.
Risk factors that make pneumonia more likely or more serious
Age matters: very young children and adults over 65 are at higher risk. So are people with chronic lung disease (asthma, COPD), heart disease, diabetes, or a weakened immune system from HIV, cancer treatment, or transplant medications.
Smoking damages your lungs' defenses, so smokers get pneumonia more often and have worse cases. Alcohol misuse also weakens immunity. Recent surgery or hospitalization increases risk because you may have been exposed to hospital germs or had a breathing tube that irritated your lungs.
People who are bedridden or have trouble swallowing are at risk for aspiration pneumonia, which happens when food, liquid, or saliva accidentally goes into the lungs instead of the stomach.
What happens if pneumonia is not treated
Mild pneumonia may clear on its own as your immune system fights the infection, though you will feel sick for weeks. But untreated pneumonia can get worse. The infection can spread to your bloodstream (sepsis), which is life-threatening. It can also cause pleural effusion (fluid around the lungs that makes breathing harder) or empyema (pus around the lungs).
In severe cases, pneumonia can cause respiratory failure, where your lungs cannot get enough oxygen into your blood and you need a ventilator to breathe. This is why doctors take pneumonia seriously and start treatment quickly, even before test results confirm the diagnosis.
Frequently Asked Questions
Is pneumonia contagious?
The germs that cause pneumonia are contagious, but not everyone who is exposed gets pneumonia. Viral pneumonia spreads more easily through coughs and sneezes. Bacterial pneumonia is less contagious. People with weakened immune systems or chronic lung disease are more likely to catch it and get sicker.
Can you have pneumonia without a fever?
Yes, especially if you are older, very young, or have a weakened immune system. Some people with pneumonia have a normal temperature or only a low-grade fever. This is one reason pneumonia can be missed—people assume they do not have it because they do not feel hot.
What is the difference between pneumonia and bronchitis?
Bronchitis is inflammation of the tubes that carry air to your lungs (the bronchi). Pneumonia is infection in the air sacs themselves. Bronchitis usually causes a cough but does not show up on a chest X-ray. Pneumonia shows white patches on X-ray and causes more severe shortness of breath and chest pain.
Can you get pneumonia more than once?
Yes. Having pneumonia once does not make you immune. You can catch it again from a different germ, or even the same type if your immune system is weak. People with chronic lung disease or weakened immunity are at higher risk for repeated pneumonia.
How long does it take to recover from pneumonia?
Mild pneumonia may improve in one to two weeks with treatment, but fatigue and cough can last for weeks or months. Severe pneumonia requiring hospitalization takes longer—recovery can take several weeks to months, and some people have lasting lung damage or weakness.