Two of the more common types of pneumonia, an infection within your lungs, are viral and bacterial. “Both forms of pneumonia are very similar,” Dawn Turner, DO, attending physician at MedPost, Detroit Medical Center’s urgent care partner, tells Health.
So does it really matter which one you have?
Doctors will answer that question with a resounding yes, since treatment—and often, the severity of the illness—differs greatly. See what else is different between viral and bacterial pneumonia, along with the best ways to ward them off.
That depends on what type of pneumonia it is. All sorts of viruses—from the common cold to influenza—can lead to viral pneumonia, which is fairly contagious, Roger Lovell, MD, infectious disease specialist at Piedmont Athens Regional Medical Center, tells Health. It passes easily between coworkers, spouses, friends, and fellow commuters.
The good news? “Most cases of viral pneumonia are mild,” notes the National Heart, Lung, and Blood Institute (NHLBI). Typically, you’ll improve in a few weeks.
Bacterial pneumonia often occurs after another illness, like the cold or the flu. However, most of the time, the bacteria behind bacterial pneumonia do not spread from person to person, says Dr. Lovell.
That's true for the number one cause of bacterial pneumonia: a type of bacteria called Streptococcus pneumoniae, which is found in many people’s throats naturally, generally without causing harm, says Dr. Lovell. The exception: "If you are not healthy or have problems with your immune system or have conditions that make it harder to fight off bacteria, then you are more susceptible to these bacteria, and it can lead to pneumonia," he says.
Along with viral and bacterial pneumonia, there's a third type worth knowing: fungal. This variant is far more rare and generally seen only in people with a weakened immune system due to certain conditions. Other types of pneumonia to note: necrotizing pneumonia (a rare but quite serious type of bacterial pneumonia) and cryptogenic organizing pneumonia (another rare disease, with unknown causes, that’s typically treated with steroids).
You may also have heard of walking pneumonia, which the American Lung Association describes as a “non-medical term” for a case of pneumonia with symptoms so mild, you can walk around without realizing you’re ill.
“Good hygiene and health practices will help you from contracting most infections,” Turner says.
You probably already know the drill here: Wash your hands frequently, avoid sneezers and their trail of tissues, and clean frequently touched surfaces—elevator buttons, handles, doorknobs—where germs can linger.
And keep your immune system strong with a nutritious diet, lots of water, and adequate sleep, Turner adds.
Vaccines are also a powerful preventive measure. Get the flu vaccine annually—influenza on its own is unpleasant, but it can also lead to pneumonia. “Get the pneumococcal vaccine if you are 65 years or older,” Turner advises; the vaccine, which protects against bacterial pneumonia, is also recommended for cigarette smokers and younger people with certain medical conditions.
If you have pneumonia—either bacterial or viral—you’ll typically have a cough that brings up sputum, fever, shortness of breath, and chest pain when you cough or take a deep breath, says Kimberly Brown, MD, MPH, an emergency medicine doctor in Memphis, Tennessee.
“It can be difficult to tell by symptoms alone whether you have viral or bacterial pneumonia,” says Dr. Brown.
But there is one potential tip-off that it’s bacterial, and not viral. “Generally, bacterial pneumonia causes the more severe symptoms,” Turner says.
Along with a physical exam, your doctor may take a sputum culture, chest X-ray, and blood work to determine if you have a viral or bacterial form of pneumonia, Turner says.
Your diagnosis is important since it helps determine treatment. “If you have viral pneumonia, I wouldn’t prescribe to you an antibiotic,” says Dr. Brown.
That’s for three important reasons. First, antibiotics simply don’t work to treat viruses. And, they can lead to unpleasant side effects (possibly even more uncomfortable than your original symptoms). Finally, unnecessary use of antibiotics means that they might not be effective when you do actually need them for treatment, says Dr. Brown. “We always strive to give the right treatment to the right patient at the right time,” she notes.
Instead of antibiotics, if you have a viral form of pneumonia, your doctor will recommend either antiviral agents or over-the-counter medications to ease your symptoms, says Dr. Lovell. Tylenol can bring down your fever, for instance, while an expectorant thins out mucus so you can cough more productively.
Bottom line: Pneumonia is a serious illness. While sometimes—as with walking pneumonia—the symptoms are quite mild, the disease has the potential to be life-threatening. And while bacterial pneumonia is typically the more worrisome type, with more severe symptoms, viral can also be quite serious as well, Turner notes: “Viral pneumonia, especially in the very young, very old, and immunocompromised patients, can also become severe and may even warrant hospitalization.”