Pneumonia is an infection that fills your lungs with fluid or pus
Pneumonia happens when germs—bacteria, viruses, or fungi—get into your lungs and cause an infection. Your lungs have tiny air sacs called alveoli where oxygen normally enters your bloodstream. When you have pneumonia, these air sacs fill with fluid or pus instead of air. This makes it harder for oxygen to reach your blood, which is why pneumonia can make you feel very sick.
The infection can start in different ways. You might breathe in germs from the air, or germs from your mouth or throat can travel down into your lungs. Sometimes pneumonia develops after another illness like the flu weakens your immune system. Other times it happens because you aspirate—accidentally breathe in food, saliva, or vomit instead of swallowing it.
Pneumonia is not one disease but several, depending on what caused it. Bacterial pneumonia tends to come on suddenly and cause severe symptoms. Viral pneumonia often develops more gradually and may feel like a bad cold at first. Fungal pneumonia is less common and usually only happens in people with weakened immune systems.
Key Takeaways
- Pneumonia fills your lungs with fluid or pus, making it harder for oxygen to reach your blood.
- Common symptoms include a persistent cough, fever, shortness of breath, and chest pain that worsens when you breathe or cough.
- Bacterial pneumonia usually comes on suddenly with severe symptoms, while viral pneumonia develops more gradually.
- Seek medical attention if you have a cough lasting more than a week, difficulty breathing, or chest pain, especially if you are over 65 or have chronic health conditions.
Early symptoms often feel like a cold or flu
Pneumonia usually starts with symptoms that resemble a respiratory infection. You might have a runny or stuffy nose, sore throat, or mild cough. You may feel tired, have body aches, or run a low fever. At this stage, many people think they have a cold and do not realize pneumonia is developing.
The difference becomes clear over the next few days. While a cold typically improves, pneumonia gets worse. Your cough becomes more persistent and may start producing mucus—clear, yellow, green, or even tinged with blood. You develop a higher fever. You start to feel short of breath, even when sitting still. These changes signal that the infection has moved into your lungs.
A persistent cough is the hallmark symptom
Almost everyone with pneumonia develops a cough that lasts for weeks. Early on, the cough may be dry. As the infection progresses, it usually produces mucus. The color and thickness of the mucus varies—it might be clear and watery, thick and yellow, greenish, or occasionally blood-tinged. The cough often feels worse at night or when you lie down.
The cough itself can cause chest discomfort. Your chest muscles get sore from coughing repeatedly. You might also feel a sharp pain in your chest when you breathe deeply or cough—this is called pleurisy, which means the lining around your lungs is inflamed. This pain can make you reluctant to breathe deeply or cough, which actually makes pneumonia harder to treat because your lungs need to clear the mucus.
Fever and chills often accompany the respiratory symptoms
Most people with bacterial pneumonia develop a fever, sometimes quite high—103°F (39.4°C) or above. The fever may come and go throughout the day. You might have chills and feel cold even though your body temperature is elevated. Some people sweat heavily, especially at night.
Viral pneumonia may cause a lower fever or sometimes no fever at all, which is one reason viral pneumonia can be harder to recognize. The absence of a high fever does not mean the infection is mild—viral pneumonia can still be serious.
Shortness of breath and chest pain signal more severe infection
As pneumonia progresses, you may notice you are short of breath during normal activities—walking around your house, getting dressed, or climbing stairs. In more severe cases, you might feel short of breath even at rest. Your breathing may become faster and shallower than normal. Some people describe a feeling of tightness in their chest.
Chest pain is common and usually feels worse when you breathe in deeply or cough. The pain may be sharp and localized to one spot, or it may feel like a dull ache across your chest. This pain comes from inflammation in the lung tissue or the lining around the lungs, not from your heart, but the sensation can be frightening.
Symptoms vary by age and overall health
Older adults sometimes have milder or different symptoms than younger people with the same infection. An older person might not develop a high fever, or the fever might be lower than expected. They may not cough much, or the cough might be dry. Instead, they might become confused, lose their appetite, or simply feel unusually weak. These subtle changes can make pneumonia harder to spot in older people, which is why it is important to take any new respiratory symptoms seriously in someone over 65.
People with chronic conditions like heart disease, diabetes, or chronic lung disease often have more severe pneumonia. Their symptoms may develop faster and be more intense. People with weakened immune systems—from HIV, chemotherapy, or certain medications—may have pneumonia that spreads more widely in the lungs or causes complications.
When to seek medical attention
Contact a doctor if you have a cough that lasts more than a week, especially if it produces mucus. Seek medical attention if you develop shortness of breath, chest pain when breathing or coughing, or a fever above 102°F (38.9°C) that does not improve with over-the-counter fever reducers. If you are over 65, have a chronic health condition, or have a weakened immune system, contact your doctor sooner rather than later—do not wait to see if symptoms improve on their own.
Seek immediate care if you have severe shortness of breath, confusion, severe chest pain, or lips or fingernails that look bluish or gray. These signs mean your blood oxygen is dangerously low and you need emergency evaluation.
Frequently Asked Questions
Can you have pneumonia without a fever?
Yes, especially with viral pneumonia. Some people develop pneumonia with little or no fever, or with a very low fever. This is one reason pneumonia can be missed—people assume they do not have a serious infection because they do not feel feverish. If you have a persistent cough, shortness of breath, or chest pain, those symptoms matter even without a fever.
How long does a pneumonia cough last?
The cough usually lasts at least two to three weeks, even after other symptoms improve and you start feeling better. Some people cough for six weeks or longer. The cough gradually becomes less frequent and produces less mucus, but it can be frustrating and exhausting while it lasts.
Is pneumonia contagious?
Pneumonia itself is not contagious, but the germs that cause it are. If you have bacterial pneumonia caused by a specific bacterium, you are generally not contagious after you have been on antibiotics for 24 to 48 hours. Viral pneumonia is contagious while you have symptoms, similar to how the flu spreads. Wash your hands frequently and cover your cough to avoid spreading the infection to others.
Can pneumonia go away on its own?
Viral pneumonia sometimes improves without treatment as your immune system fights the infection, though recovery is slower and symptoms may be more severe. Bacterial pneumonia almost always requires antibiotics—without them, the infection can worsen and lead to serious complications. Do not assume pneumonia will resolve on its own; get it evaluated by a doctor.