provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content
HomeHealth ConditionsPneumonia

Pneumonia Treatment: What to Know About Your Options

Amy Walsh, MD, MDPChristine Giordano, MD
Published on December 19, 2024

Key takeaways:

  • Pneumonia treatment depends on what type of infection you have, how sick you are, and whether you have any chronic lung conditions.

  • Pneumonia that’s caused by a bacterial infection should be treated with antibiotics. But other types of pneumonia won’t get better with antibiotic treatment. 

  • Corticosteroids, inhalers, and oxygen therapy can also be used in some cases to help treat pneumonia.

Woman using an inhalation mask at home
FG Trade/E+ via Getty Images

If you’ve ever been sick with pneumonia, you know that it can be a miserable experience. 

Pneumonia is an infection in the lungs. It can be caused by bacteria, viruses, or even fungus. People with pneumonia often have a cough, difficulty breathing, and fever. Some cases of pneumonia can be quite mild, while others may be life-threatening. 

There’s no single treatment for pneumonia that will work for everyone. That’s because every case of pneumonia is different. The best treatment for pneumonia depends on what’s causing pneumonia, how severe the symptoms are, and what other medical problems are affecting the lungs. 

Let’s look closer at how pneumonia is treated. 

Determining treatment for pneumonia

Pneumonia treatment should target the germ that’s causing the infection. A wide range of bacteria, viruses, and (rarely) fungi can cause pneumonia. 

Bacteria

Bacterial pneumonia is often caused by infection with Streptococcus pneumoniae. But Mycoplasma pneumoniae causes atypical or “walking” pneumonia

GoodRx icon

Virus

Viral pneumonia can come from infection with many different viruses including:

Fungus

Fungal pneumonia is rare. But histoplasmosis and coccidioidomycosis are two kinds of fungal pneumonia. 

In addition to attacking the underlying cause of the pneumonia, pneumonia treatment should help relieve symptoms and support the lungs while they recover. 

Pneumonia treatment options

The kind of treatment you’ll receive for pneumonia can be different from someone else’s. Your healthcare team will come up with a specific treatment plan for you. They’ll consider all of the pneumonia treatment options below. 

Antibiotics 

Antibiotics are helpful if your pneumonia is caused by a bacteria. You may need more than one antibiotic if you’re at high risk for severe infection or your infection is caused by antibiotic-resistant bacteria

Most people with bacterial pneumonia can take an oral antibiotic at home. Be sure to take antibiotics as prescribed, even after you’re feeling better. Stopping antibiotics early increases the likelihood the infection will come back. And it increases the risk of antibiotic resistance.

Some people may need to be admitted to the hospital for antibiotics delivered through an IV. This happens when:

  • Oral antibiotics haven’t cleared the infection 

  • Oral antibiotics won't work because the infection is caused by antibiotic-resistant bacteria

  • Someone is unable to take oral antibiotics down due to nausea or vomiting

  • Someone is severely ill 

Antivirals 

Antiviral medications can be used to help treat certain types of viral pneumonia. 

If you've been diagnosed with pneumonia caused by the flu, your primary care provider may recommend taking an antiviral like Tamiflu (oseltamivir). This will help reduce the length of time you're sick. 

Some people with COVID pneumonia may benefit from taking Paxlovid (nirmatrelvir / ritonavir). This will reduce the risk of developing severe COVID symptoms. 

But not all cases of viral pneumonia can be treated with antivirals. And not everyone with viral pneumonia needs antiviral medication. 

Antifungals

If you're diagnosed with pneumonia from a fungal infection, you’ll need treatment with an antifungal medication like voriconazole or amphotericin B. Fungal infections can be challenging to diagnose and treat. People may need treatment in a hospital. Specialists like infectious disease experts often help guide treatment decisions.

Corticosteroids

Corticosteroids like prednisone and dexamethasone are sometimes used to treat pneumonia. In cases of severe pneumonia, these medications can reduce the risk of death. They may also be used when people have underlying lung conditions like asthma or chronic obstructive pulmonary disease (COPD). 

Corticosteroids can have side effects such as increased blood sugar and blood pressure. They can also cause anxiety, agitation, and confusion. This is especially true when people are severely ill and require treatment in the intensive care unit (ICU).

Inhalers and nebulizers

Medications like corticosteroids can help open up the airways so that you can breathe easier. Two examples are albuterol (a beta agonist) and ipratropium (an anticholinergic). 

These medications are given through inhalers or nebulizers:

  • An inhaler is a small, handheld device that administers medication directly to the lungs. 

  • A nebulizer is a machine that helps deliver medication to the lungs by turning liquid into a mist that you inhale. 

Not everyone who’s sick with pneumonia needs these medications. Your healthcare team can help determine if these medications are right for you.

Over-the-counter medications

Over-the-counter (OTC) pain relievers can help treat symptoms of pneumonia such as fever, headache, and chest pain. 

Your healthcare team may recommend using:

These medications can help relieve aches and pains and reduce fever

Keep in mind that children under the age of 12 shouldn’t use aspirin. Aspirin can cause a serious illness called Reye’s syndrome in children. 

Home remedies

In addition to OTC medications, there are other things you can do at home to help aid your recovery. If you're sick with pneumonia, try the following:

  • Increase your fluid intake. This can help loosen mucus and make it easier to cough up phlegm.

  • Drink warm beverages. You can also spend time in a steamy bath or shower, or turn on a humidifier to help clear out mucus. 

  • Avoid smoke. This means cigarette smoke, secondhand smoke, and wood smoke. All of these can further irritate your lungs while you're sick. 

  • Get enough rest. Ask for help with preparing meals and chores until you’re feeling better. It can take weeks to fully recover from pneumonia. 

Can you prevent pneumonia?

Yes, there are safe and effective vaccines that can decrease your likelihood of getting pneumonia. And if you do get sick but are up-to-date with your vaccinations, you're more likely to have a mild infection. 

When people refer to the “pneumonia shot,” they're usually talking about vaccines that prevent S. pneumoniae, the most common cause of bacterial pneumonia. Pneumococcal vaccines don't prevent every kind of pneumonia. But they do protect against infection from multiple strains of S. pneumoniae

Other important vaccines that can reduce your chances of getting pneumonia include:

You can also help prevent pneumonia and improve your overall health by: 

  • Washing your hands

  • Not smoking 

  • Getting enough sleep

  • Eating well

The bottom line

There’s no one standard treatment for pneumonia. That’s because pneumonia can be caused by a wide range of viruses, bacteria, and even fungi. If you have bacterial pneumonia, you’ll need treatment with an antibiotic. 

But other types of pneumonia won’t get better with antibiotic treatment. Other pneumonia treatments like corticosteroids and inhaler therapy may be used. This depends on the severity of the infection and whether you have any underlying lung conditions. Vaccines against the most common causes of lung infection are the best way to prevent pneumonia. 

why trust our exports reliability shield

Why trust our experts?

Amy Walsh, MD, MDP
I have worked as an emergency physician for 15 years, including care at both rural hospitals and trauma centers. I am the former Global Emergency Medicine fellowship director at Health Partners.
Patricia Pinto-Garcia, MD, MPH
Patricia Pinto-Garcia, MD, MPH, is a medical editor at GoodRx. She is a licensed, board-certified pediatrician with more than a decade of experience in academic medicine.
Christine Giordano, MD
Christine Giordano, MD, is board-certified in general internal medicine. She received her medical degree from Rutgers New Jersey Medical School and completed residency at Thomas Jefferson University.

References

American Lung Association. (2024). How to use a nebulizer

American Lung Association. (2024). Pneumonia treatment and recovery

View All References (10)

Centers for Disease Control and Prevention. (2024). About histoplasmosis

Centers for Disease Control and Prevention. (2024). About valley fever

Centers for Disease Control and Prevention. (2024). COVID-19 treatment clinical care for outpatients

Centers for Disease Control and Prevention. (2024). Treating flu with antiviral drugs.

Cochrane Library. (n.d.). Is treatment with corticosteroids beneficial and safe for people with pneumonia?

Limper, A. H., et al. (2008). An official American Thoracic Society Statement: Treatment of fungal infections in adult pulmonary and critical care patients. American Journal of Respiratory and Critical Care Medicine

MedlinePlus. (2023). Pneumonia

National heart, Lung and Blood Institute. (2022). Pneumonia: Prevention.

National heart, Lung and Blood Institute. (2022). Pneumonia: Recovery

Schreiber, M. P., et al. (2015). Corticosteroids and transition to delirium in patients with acute lung injury. Critical Care in Medicine.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Get the facts on Pneumonia.

Sign up for our newsletter to get expert tips on condition management and prescription savings.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.

Related Articles