Viral Pneumonia: Causes, Symptoms, and Treatment

Medically reviewed by Sumiran Racherla, MD, Internal Medicine. Last reviewed: October 23, 2026.

What kind of doctor treats Viral Pneumonia?

A pulmonologist, a doctor who treats lung problems, often cares for people with serious viral pneumonia. A primary care doctor or an infectious disease doctor, who treats infections, may also help. A direct primary care or concierge doctor can be a first stop for an evaluation and can refer you to a specialist when needed.

What is viral pneumonia?

Pneumonia is swollen, inflamed lung tissue caused by an infection with a germ. Viral pneumonia is pneumonia that is caused by a virus.

Most cases of viral pneumonia are mild and get better without treatment within 1 to 3 weeks. Some cases are more serious and need a hospital stay.

Symptoms

Symptoms of viral pneumonia often begin slowly and may not be severe at first.

  • Cough, which sometimes brings up mucus (thick fluid from the lungs) or even bloody mucus.
  • Fever and shaking chills.
  • Shortness of breath, which may only happen when you exert yourself.
  • Sharp or stabbing chest pain that gets worse when you breathe deeply or cough.
  • Loss of appetite, low energy, and tiredness.
  • Confusion, which is often seen in older people.

Causes and who gets it

Viral pneumonia is most often caused by one of several viruses. These include respiratory syncytial virus (RSV), the flu virus, parainfluenza virus, and measles virus. Coronaviruses, such as SARS-CoV-2, which causes COVID-19 pneumonia, can also cause it. RSV is a common cause in young children, and the flu virus is a common cause at all ages.

Viral pneumonia is more likely in young children and older adults. Their bodies have a harder time fighting off the virus. Serious viral pneumonia is more likely in people with a weakened immune system, which is the body's defense system.

  • Babies who are born too early.
  • People who have HIV/AIDS.
  • People getting chemotherapy for cancer, or other medicines that weaken the immune system.
  • People who have had an organ transplant.

How doctors diagnose it

A health care provider will do a physical exam and ask about your symptoms. If your provider thinks you have pneumonia, you will also have a chest x-ray. An exam alone may not be able to tell pneumonia from other respiratory infections. Depending on how bad your symptoms are, you may have other tests.

  • Throat and nose swab tests to check for viruses such as the flu virus or SARS-CoV-2.
  • A sputum culture, a test of the mucus you cough up, to check for other causes.

Treatment

Antibiotics do not treat viral pneumonia. Medicines that treat viral infections may work against some pneumonias caused by influenza, coronaviruses, and herpes viruses. These medicines may be tried if the infection is caught early. They do not work against every virus that causes pneumonia. Treatment may also include more fluids, oxygen, and humidified (moist) air.

Many people can be treated at home. At home, you can lower a fever with aspirin, acetaminophen, or an NSAID such as ibuprofen or naproxen. Do not give aspirin to children, because it may cause a dangerous illness called Reye syndrome. Talk to your provider before taking cough medicine, because it may make it harder to cough up sputum (mucus). Drink plenty of fluids to help loosen mucus. Get a lot of rest.

You may need a hospital stay if you cannot drink enough or if your oxygen levels are too low. You are more likely to be admitted if you are 65 or older or are a child.

More serious infections can lead to respiratory failure, liver failure, and heart failure. A bacterial infection can start during or right after viral pneumonia. This can lead to a more serious kind of pneumonia.

When to see a doctor

Contact your provider if you have symptoms of viral pneumonia, or if you get worse after starting to improve. Call 911 or go to the emergency room if you have severe trouble breathing. Do the same if you faint, or if you have a sudden change in mental state, such as being hard to wake up.

How a direct primary care or concierge doctor fits in

A direct primary care doctor charges a flat monthly fee instead of billing insurance, while a concierge doctor usually charges more and often works alongside insurance. A direct primary care or concierge doctor can examine you and arrange a chest x-ray if pneumonia is suspected.

Common questions

Is viral pneumonia contagious?

The viruses that cause it can spread from person to person, but the lung infection itself is not contagious.

How long does viral pneumonia last?

Most cases of viral pneumonia are mild and get better without treatment within 1 to 3 weeks. Some cases are more serious and need a hospital stay.

Do antibiotics work for viral pneumonia?

No, antibiotics do not treat viral pneumonia. Medicines that treat viral infections may work against some types if the infection is caught early.

Can viral pneumonia be prevented?

Yes, some steps can help prevent it. The flu vaccine, given each year, helps prevent pneumonia and other illnesses caused by the flu virus. The COVID-19 vaccine may help prevent severe pneumonia caused by SARS-CoV-2.

Sources

  1. MedlinePlus - Viral pneumonia
  2. American Lung Association - What Causes Pneumonia?
  3. National Heart, Lung, and Blood Institute - Pneumonia Treatment

Medical Disclaimer

This content is for general educational and informational purposes only and is not medical advice. It is not a substitute for professional medical advice, diagnosis, or treatment, and reading it does not create a doctor-patient relationship. Always seek the advice of your physician or another qualified health provider with any questions about a medical condition, and never disregard or delay seeking professional advice because of something you read here. If you think you may have a medical emergency, call 911 (or your local emergency number) immediately.