Bacterial pneumonia develops when bacteria reach your lungs and your immune system can’t clear them before they cause infection. This can happen several ways: breathing in respiratory droplets from a sick person, inhaling bacteria from contaminated water sources, or aspirating (accidentally drawing) bacteria from your own mouth and throat into your lungs. The route depends on the type of bacteria involved, and some people are far more vulnerable than others.
Person-to-Person Spread
The most common bacterial pneumonias spread through direct contact with respiratory secretions like saliva or mucus. When someone carrying the bacteria coughs, sneezes, or talks, they release tiny droplets that another person can breathe in. This is the primary route for the two most common causes of community-acquired bacterial pneumonia: Streptococcus pneumoniae (pneumococcal disease) and Mycoplasma pneumoniae.
An important detail: many people, especially children, carry pneumococcal bacteria in their nose or throat without ever getting sick. Doctors call this “carriage,” and it only rarely leads to actual illness. Your immune system usually keeps these bacteria in check. Pneumonia develops when something tips the balance, whether that’s a weakened immune system, a recent viral infection that damaged your airways, or simply being very young or very old.
Mycoplasma pneumoniae, the cause of so-called “walking pneumonia,” also spreads through coughing and sneezing. People with this form often look better than you’d expect for someone with a lung infection. Symptoms tend to be milder (cough, fatigue, fever, shortness of breath), and many people don’t even stay in bed, which is how the nickname originated. That also means they’re out in public spreading the bacteria for longer.
Aspiration: Bacteria From Your Own Body
Not all bacterial pneumonia comes from another person. Aspiration pneumonia happens when bacteria that normally live in your mouth or throat get pulled down into your lungs. Everyone aspirates tiny amounts of saliva during sleep, but a healthy body clears it easily. Problems arise when someone aspirates larger amounts, or when their cough reflex or immune defenses are impaired.
This type of pneumonia is especially common in people who have difficulty swallowing, whether from neurological conditions, heavy sedation, or the effects of alcohol. When food, liquid, or stomach contents enter the lungs, they can carry oral bacteria like Streptococcus pneumoniae, Haemophilus influenzae, and Staphylococcus aureus with them. Even if the initial event is a chemical injury from stomach acid, bacterial infection often follows. Many cases of both community-acquired and hospital-acquired pneumonia actually trace back to small-volume aspiration that went unnoticed.
Environmental Water Sources
Legionnaires’ disease is a less common but serious form of bacterial pneumonia that you don’t catch from other people. Legionella bacteria occur naturally in freshwater lakes and streams at levels too low to cause illness. The danger comes when they get into human-made water systems and multiply.
Contaminated water systems can aerosolize tiny droplets containing the bacteria, which people then breathe in. The CDC identifies several common sources: showerheads, sink faucets, hot tubs, decorative fountains, cooling towers (the large structures used in building air-conditioning systems), and even windshield wiper fluid tanks filled with plain water instead of cleaning fluid. Legionella thrives in warm water between 77°F and 113°F, particularly in systems with slow water movement, low disinfectant levels, or built-up biofilm (the slime layer inside pipes where germs grow).
Hospital-Acquired Pneumonia
Pneumonia acquired during a hospital stay is a distinct category. Patients on ventilators are at particularly high risk because the breathing tube bypasses the body’s normal defenses against inhaling bacteria. Being sedated, lying flat for extended periods, and having a weakened immune system from illness or surgery all contribute. The bacteria responsible tend to differ from community-acquired strains and are often more resistant to antibiotics, which is one reason hospital-acquired pneumonia is generally more serious.
Who Is Most Vulnerable
Age is the single biggest risk factor. Adults 65 and older face elevated risk that continues climbing with age: an 80-year-old is at higher risk than a 65-year-old. On the other end, children under 5 are especially susceptible, with risk increasing at younger ages. Globally, pneumonia accounts for 14% of all deaths in children under 5.
Chronic health conditions also increase susceptibility significantly. Heart disease, liver disease, lung disease (including COPD and asthma), and diabetes all raise your odds. People with weakened immune systems, whether from a medical condition or medication, face the greatest risk of all.
Lifestyle factors matter too. Smoking cigarettes damages the airways’ natural cleaning mechanisms, making it easier for bacteria to establish an infection. Excessive alcohol use impairs the cough reflex and immune response, increasing the chance of both aspiration and infection. Simply spending a lot of time around sick people, in crowded living conditions or healthcare settings, raises your exposure.
Vaccination and Prevention
Pneumococcal vaccines are the most effective tool for preventing the most common type of bacterial pneumonia. Current CDC recommendations call for a four-dose vaccine series for all children under 5, starting at 2 months of age. For adults 50 and older who have never received a pneumococcal conjugate vaccine, a single dose of PCV15, PCV20, or PCV21 is recommended. If PCV20 or PCV21 is used, no additional doses are needed. If PCV15 is used, a follow-up dose with a different vaccine (PPSV23) is recommended about a year later.
Beyond vaccination, practical steps reduce your risk. Washing your hands frequently limits exposure to respiratory bacteria. Avoiding smoking or quitting protects your airways’ ability to trap and clear bacteria before they reach the lungs. Managing chronic conditions like diabetes and heart disease keeps your immune system in the best position to fight off infections before they take hold. And if you’re recovering from a viral respiratory illness like the flu, be aware that the temporary damage to your airways makes you more vulnerable to bacterial pneumonia in the weeks that follow.

