Yes, pneumonia can be contagious, depending on what caused it
Whether pneumonia spreads to other people depends entirely on what caused it in the first place. Pneumonia triggered by bacteria, viruses, or fungi can pass from one person to another. Pneumonia caused by aspiration (when food or liquid enters the lungs by accident) or by a chemical irritant cannot spread—those are not contagious because they are not infections.
The most common contagious types are bacterial pneumonia and viral pneumonia. Bacterial pneumonia spreads less readily than viral pneumonia, but both can transmit to people nearby. Fungal pneumonia is rare and usually only spreads in specific circumstances, such as in healthcare settings or among people with severely weakened immune systems.
Key Takeaways
- Bacterial and viral pneumonia are contagious and spread through respiratory droplets when an infected person coughs, sneezes, or talks.
- Viral pneumonia spreads more easily than bacterial pneumonia, and people are most contagious in the first few days of illness.
- You can reduce transmission risk by covering your mouth when coughing, washing your hands, and staying home while symptomatic.
- Pneumonia caused by aspiration or chemical exposure is not contagious because it is not an infection.
- Antibiotics treat bacterial pneumonia but do not work on viral pneumonia, which usually resolves on its own.
How contagious pneumonia spreads between people
Contagious pneumonia travels through respiratory droplets—tiny particles released when someone coughs, sneezes, talks, or breathes heavily. These droplets can land on the mouth, nose, or eyes of a person nearby, or be inhaled directly into the lungs. Close contact—typically within 6 feet—makes transmission more likely, which is why family members and coworkers of someone with pneumonia face higher risk.
The droplets do not travel far or stay in the air for long. They fall to surfaces or evaporate within seconds to minutes. This means pneumonia is not spread by touching a contaminated doorknob or phone screen hours later, though the virus or bacteria can survive briefly on surfaces. The main route is direct inhalation of fresh droplets from an infected person.
Bacterial pneumonia and how it spreads
Bacterial pneumonia is less contagious than viral pneumonia, but it can still spread. The most common cause is a bacterium called Streptococcus pneumoniae. Other bacteria that cause pneumonia include Haemophilus influenzae and Legionella. These bacteria live in the respiratory tract and are shed when an infected person coughs or sneezes.
Bacterial pneumonia spreads more slowly because the bacteria need to reach the lungs and establish infection—not everyone exposed will develop pneumonia. People with weakened immune systems, chronic lung disease, or recent viral illness are at higher risk of developing bacterial pneumonia after exposure. Healthy people may be exposed and never become ill.
Bacterial pneumonia is treated with antibiotics, which reduce the bacterial load and make a person less contagious within 24 to 48 hours of starting treatment. Someone taking antibiotics for bacterial pneumonia can usually return to normal activities after 24 hours if fever has resolved and they feel well enough.
Viral pneumonia and how it spreads
Viral pneumonia is more contagious than bacterial pneumonia. Common viruses that cause pneumonia include influenza (flu), respiratory syncytial virus (RSV), and coronaviruses such as SARS-CoV-2. Viral pneumonia spreads more readily because viruses are smaller and more numerous in respiratory secretions, and they can infect the lungs more easily.
People with viral pneumonia are most contagious during the first few days of illness, when symptoms like cough and fever are strongest. Contagiousness decreases over time, though some people shed virus for a week or longer. Unlike bacterial pneumonia, viral pneumonia does not respond to antibiotics. Treatment focuses on rest, fluids, and managing symptoms while the immune system clears the virus.
Vaccination can prevent some types of viral pneumonia. The flu vaccine reduces the risk of influenza-related pneumonia each year. COVID-19 vaccines reduce the risk of severe pneumonia from coronavirus infection. RSV vaccines are now available for older adults and certain high-risk groups.
When someone with pneumonia is no longer contagious
For bacterial pneumonia, a person is generally no longer contagious after 24 hours of antibiotic treatment, provided fever has resolved. The antibiotics kill the bacteria, reducing the amount shed in respiratory droplets. Without treatment, bacterial pneumonia can remain contagious for days or weeks.
For viral pneumonia, contagiousness depends on the specific virus. Most people stop shedding significant amounts of virus after 5 to 7 days, though some viruses (such as RSV) can be shed for longer. A general guideline is to stay home until fever has been gone for 24 hours without fever-reducing medication and symptoms are improving. Your doctor can advise based on the specific virus.
Steps to reduce the spread of contagious pneumonia
If you have pneumonia, you can reduce the risk of spreading it to others by following these steps:
- Cover your mouth and nose with a tissue when you cough or sneeze, and throw the tissue away immediately.
- Wash your hands with soap and water for at least 20 seconds after coughing, sneezing, or blowing your nose.
- Stay home while you have symptoms, especially fever and cough.
- Keep distance from other people, particularly those over 65, young children, or people with weakened immune systems.
- Clean and disinfect surfaces you touch frequently, such as doorknobs, light switches, and phones.
- Wear a mask if you must be around others while symptomatic.
If you take antibiotics for bacterial pneumonia, you can usually return to work or school after 24 hours if fever has resolved and you feel well. For viral pneumonia, wait until symptoms have improved and fever is gone for 24 hours without medication.
Pneumonia types that are not contagious
Aspiration pneumonia occurs when food, liquid, or stomach contents accidentally enter the lungs instead of going down the esophagus. This is not an infection and cannot spread to other people. It happens most often in people who have difficulty swallowing, are sedated, or are unconscious. Treatment focuses on clearing the lungs and managing any secondary bacterial infection that may develop.
Chemical pneumonia results from inhaling toxic fumes or irritating substances. It is not contagious because it is not caused by an infection. Examples include pneumonia from inhaling chlorine gas or aspiration of petroleum products. Treatment involves removing the person from the exposure and providing supportive care.
Frequently Asked Questions
Can I catch pneumonia from someone who has it?
Yes, if their pneumonia is caused by bacteria or a virus. You cannot catch pneumonia caused by aspiration or chemical exposure. Your risk depends on how close you are, how long you are exposed, and whether your immune system can fight off the infection. People with weakened immunity, chronic lung disease, or recent illness face higher risk.
How long should someone with pneumonia stay away from others?
For bacterial pneumonia treated with antibiotics, 24 hours after starting treatment and once fever is gone. For viral pneumonia, stay home until fever has been absent for 24 hours without medication and symptoms are improving. Your doctor can give you a more specific timeline based on your illness.
Can pneumonia spread through food or water?
No. Pneumonia spreads through respiratory droplets from coughing and sneezing, not through food or water. You cannot catch pneumonia by sharing a meal or drinking from the same glass as someone who has it, though close contact during eating increases droplet exposure.
Do I need a mask if I am around someone with pneumonia?
A mask helps reduce your risk if you must be near someone with contagious pneumonia, especially if you are older, have lung disease, or have a weakened immune system. The infected person wearing a mask is more effective at reducing spread than the exposed person wearing one, but both together offer the most protection.
Can antibiotics make pneumonia less contagious?
Yes, but only for bacterial pneumonia. Antibiotics kill the bacteria and reduce the amount shed in respiratory droplets within 24 to 48 hours. Viral pneumonia does not respond to antibiotics, so antiviral medications (if available) or time are needed to reduce contagiousness.