Pneumonia itself is not directly passed from person to person, but the bacteria and viruses that cause it are. If you catch a respiratory infection from someone with pneumonia, you might develop a cold, the flu, or a mild chest infection rather than pneumonia itself. Whether the infection progresses to pneumonia depends on your immune system, your age, and your overall health.
Which Types Spread and Which Don’t
Bacterial and viral pneumonia are both contagious. Fungal pneumonia is not. That distinction matters because it changes how cautious you need to be around someone who’s sick.
Viral pneumonia can stem from the same viruses behind everyday illnesses: the common cold, influenza, RSV, and COVID-19. These viruses spread easily, but most people who catch them won’t develop pneumonia. The flu is a good example. It’s highly contagious, and it can lead to pneumonia, but the vast majority of flu cases resolve as upper respiratory infections. The virus is what spreads; pneumonia is one possible outcome.
Bacterial pneumonia works similarly. The most common culprit, Streptococcus pneumoniae, can live in the nose and throat of healthy people without causing any symptoms. Carriage rates among young children range from about 3% to nearly 60% depending on the population studied, with many studies finding roughly 30%. That means a large number of people carry pneumonia-causing bacteria at any given time and never get sick. When the bacteria do cause illness, it’s usually because something has weakened the person’s defenses, like a recent viral infection, chronic disease, or a suppressed immune system.
Fungal pneumonia comes from inhaling fungal spores found in soil or bird droppings. It does not spread between people.
How Pneumonia-Causing Germs Spread
The primary route is respiratory droplets. When someone with a bacterial or viral lung infection coughs, sneezes, or even talks, tiny droplets containing the pathogen enter the air. Another person breathes them in, and the infection can take hold. This is the same mechanism behind the spread of colds and flu.
Touching contaminated surfaces is a less common but real route. Pneumonia-causing bacteria and viruses can survive on hard surfaces for surprisingly long periods. The flu virus persists on stainless steel for up to two weeks in dark environments. Streptococcus pneumoniae survives on plastic for up to a month. SARS-CoV-2, which can cause viral pneumonia, lasts on stainless steel for several days. You won’t catch pneumonia by touching a doorknob, but if you touch a contaminated surface and then touch your nose or mouth, you can introduce the pathogen into your respiratory tract.
In hospitals, transmission risks are higher. Healthcare workers can carry germs on their hands, clothing, or instruments from one patient to another. Hospital-acquired pneumonia tends to be more serious because the patients are already vulnerable and the bacteria involved are often more resistant to treatment than those circulating in the community.
How Long Someone Stays Contagious
For bacterial pneumonia, a person is generally contagious until about 48 hours after starting antibiotics and once their fever has broken. Before treatment, and during those first two days on medication, close contact carries the most risk.
Viral pneumonia is harder to pin down because the contagious window depends on the specific virus. With the flu, people are most contagious in the first three to four days of illness but can shed virus for a week or more. COVID-related pneumonia follows its own timeline, with peak infectiousness in the days around symptom onset.
“Walking pneumonia,” caused by Mycoplasma pneumoniae, has a notably long incubation period of one to four weeks after exposure. Symptoms are usually mild, so people often go about their daily routines while contagious, spreading the bacteria through coughing and sneezing without realizing they have more than a common cold.
Who Faces the Highest Risk
Catching the germ doesn’t guarantee you’ll get pneumonia. Your risk depends heavily on how well your body can fight off the infection. Children under five and adults over 65 are most vulnerable because their immune systems are either still developing or naturally declining. People with chronic lung conditions, heart disease, diabetes, or weakened immune systems face a higher chance of a respiratory infection progressing into pneumonia.
Smoking damages the airways’ natural defenses, making it easier for bacteria and viruses to establish a deeper lung infection. A recent bout of cold or flu also raises the risk, because the initial virus can weaken the lining of the respiratory tract and open the door for a secondary bacterial infection.
Reducing Your Risk of Infection
Vaccination is the most effective preventive measure against the most common form of bacterial pneumonia. The CDC recommends pneumococcal vaccines for all children under five (a four-dose series starting at two months) and for all adults 50 and older. Several vaccine options exist, and some require only a single dose to complete the series. Staying current on flu and COVID vaccines also reduces the chance of viral infections that can lead to pneumonia.
Beyond vaccination, the same habits that protect against colds and flu apply here. Regular handwashing reduces surface transmission. Avoiding close contact with people who have active respiratory infections lowers your exposure to airborne droplets. If you’re the one who’s sick, covering coughs and sneezes and staying home during the most contagious window protects the people around you, especially those in high-risk groups.

