Yes, you can catch pneumonia from someone, but the risk depends on which type of pneumonia they have

Some forms of pneumonia spread directly from person to person through respiratory droplets—the tiny particles released when someone coughs or sneezes. Others do not spread this way at all. Bacterial pneumonia caused by Streptococcus pneumoniae is contagious in the early stages, as is viral pneumonia. Fungal pneumonia and aspiration pneumonia (caused by inhaling food or liquid) cannot spread between people. Your actual risk of catching pneumonia from an infected person depends on whether you have close contact with them during their contagious window, and whether your immune system is strong enough to fight off the infection.

Key Takeaways

  • Bacterial and viral pneumonia spread through respiratory droplets when an infected person coughs, sneezes, or talks, but only during the first few days of illness.
  • You are at higher risk if you live with someone who has pneumonia, care for them, or spend prolonged time in close quarters with them.
  • Older adults, young children, people with chronic illnesses, and those with weakened immune systems are more likely to develop pneumonia after exposure.
  • Wearing a mask, maintaining distance, and practicing hand hygiene reduce transmission risk when you are around someone with pneumonia.
  • Fungal pneumonia and aspiration pneumonia do not spread from person to person, so contact with someone who has these types carries no infection risk.

How bacterial and viral pneumonia spread between people

When someone with bacterial or viral pneumonia coughs, sneezes, or even speaks, they release respiratory droplets into the air. These droplets travel a short distance—typically 3 to 6 feet—and can land on the mouth, nose, or eyes of someone nearby. If you breathe in these droplets or touch your face after touching a contaminated surface, you may inhale the bacteria or virus that causes pneumonia. The risk is highest during the first few days of illness, when symptoms are most active and the person is coughing frequently.

Not every exposure leads to infection. Your body's immune system may fight off the bacteria or virus before pneumonia develops. Many people are exposed to the organisms that cause pneumonia but never become sick. However, if your immune system is weakened or overwhelmed, the infection can take hold and develop into pneumonia in your lungs.

Who is most likely to catch pneumonia from someone else

Certain groups face higher risk after exposure to someone with pneumonia. Adults over 65 have weaker immune responses and are more likely to develop severe pneumonia. Young children under 5 are still building their immune systems and are also at increased risk. People with chronic conditions—such as asthma, COPD, heart disease, or diabetes—are more vulnerable because their bodies are already managing ongoing illness. Anyone taking medications that suppress the immune system, including those used for autoimmune diseases or after organ transplants, faces elevated risk.

Pregnant people, smokers, and people who have recently had the flu are also more susceptible. If you fall into one of these groups and have close contact with someone who has pneumonia, taking precautions like wearing a mask and maintaining distance becomes more important.

The contagious period: when someone with pneumonia can spread it

The window when pneumonia is most contagious is typically the first 3 to 5 days of illness, when coughing is heaviest and the person is shedding the most respiratory droplets. After someone starts taking antibiotics for bacterial pneumonia, they usually become less contagious within 24 to 48 hours. Viral pneumonia follows a similar pattern, though the exact timeline depends on which virus is responsible.

This means that if someone with pneumonia has been sick for a week and is already improving, the risk of transmission is much lower than if they are in the first few days of illness. However, some people continue to cough for weeks even after the infection has cleared, so a lingering cough does not necessarily mean they are still contagious.

Types of pneumonia that do not spread between people

Fungal pneumonia cannot spread from person to person. You catch fungal pneumonia by inhaling spores from the environment—often from soil, bird droppings, or contaminated water—not from another person. Aspiration pneumonia, which develops when food, liquid, or stomach contents accidentally enter the lungs, is also not contagious. Neither of these types poses a transmission risk to people around the infected person.

Knowing which type of pneumonia someone has matters for understanding your actual risk. If someone you know has fungal or aspiration pneumonia, standard respiratory precautions are unnecessary because the infection cannot spread to you through their coughs or sneezes.

Steps to reduce your risk if you are around someone with pneumonia

If you must be near someone with pneumonia, several practical steps lower your risk. Maintain at least 6 feet of distance when possible, especially during the first few days of their illness. Wear a well-fitting mask—an N95 or KN95 offers better protection than a surgical mask—if you are in the same room for extended periods. Wash your hands frequently with soap and water, particularly after touching your face, and avoid touching your eyes, nose, or mouth.

Improve ventilation in shared spaces by opening windows or using air filters if available. If you are caring for someone with pneumonia, wear a mask during direct care, wash your hands before and after contact, and clean frequently touched surfaces like doorknobs and light switches with disinfectant. These measures are especially important if you are older, have a chronic condition, or a weakened immune system.

When to seek medical attention after exposure

If you have been in close contact with someone who has pneumonia and you develop symptoms—such as a persistent cough, chest pain, shortness of breath, or fever—contact a doctor. Early treatment can prevent pneumonia from becoming severe. You do not need to wait for a specific number of days; symptoms can appear anywhere from a few days to two weeks after exposure, depending on the organism and your immune response.

Tell your doctor that you were exposed to pneumonia so they can consider that information when evaluating your symptoms. If you are in a high-risk group, your doctor may recommend preventive measures or closer monitoring after exposure, though this is not routine for all exposures.

Frequently Asked Questions

Can you catch pneumonia from someone who is already on antibiotics?

The risk drops significantly after someone starts antibiotics, usually within 24 to 48 hours. However, they may still be somewhat contagious during the first day or two of treatment, so precautions like masking and distance are still reasonable during that window.

How long after exposure to pneumonia do symptoms appear?

Symptoms typically develop within 3 to 14 days after exposure, though this varies depending on the type of pneumonia and your immune system. Some people never develop symptoms even after exposure because their immune system fights off the infection before it causes illness.

Is pneumonia contagious through touching or sharing objects?

Pneumonia spreads primarily through respiratory droplets in the air, not through touch or shared objects. However, the bacteria or virus can land on surfaces and survive for a short time, so washing your hands after touching contaminated surfaces is still a good practice.

Can you catch pneumonia twice from the same person?

Once you recover from pneumonia, your immune system has developed some protection against that specific organism. Catching the exact same pneumonia twice from the same person is unlikely, though you could catch a different type of pneumonia from them or from someone else.

Should I avoid someone who has pneumonia if I am vaccinated against pneumococcal disease?

Pneumococcal vaccines reduce your risk of developing severe pneumonia, but they do not eliminate it entirely. If you are vaccinated and have close contact with someone who has pneumonia, your risk is lower than someone unvaccinated, but precautions like masking are still sensible, especially if you are older or have other health conditions.