How Pneumonia Is Treated

pneumonia pneumococcal vaccine
TommL / E+ / Getty Images

Treatment for pneumonia depends on the type that you have, as well as how severe it is. Most times, pneumonia﻿﻿ can be managed with home remedies, but other treatments may be necessary, including over-the-counter medications, antibiotics, antivirals, antifungals, and breathing treatments. In some cases, hospitalization may be necessary. 

If you're being treated for pneumonia, but feel like your symptoms aren't improving, or they start to get better, but then get worse, see your doctor again. These could be signs that your condition is not responding to treatment or that you have developed another infection.

Home Remedies and Lifestyle

Most cases of pneumonia can be treated at home with the following measures:

  • Get as much rest as possible. If you have pneumonia,﻿﻿ you need rest so that your body can fight the infection and heal. Don't try to do everything you normally do and rest when you feel tired. The more you're able to rest, the quicker you will get better.
  • Drink plenty of fluids. You hear this often no matter what illness you have, but it's really important.﻿﻿ Drinking more water will help thin the mucus in your body, making it easier to expel when you cough, an important part of recovering from pneumonia. Drink broth, soup, tea, or even hot water to help ward off chills and get some extra hydration.
  • Drink a cup of caffeinated coffee or tea. Caffeine is known to be a mild bronchodilator and it's chemically similar to theophylline, a drug that's used to treat asthma. Studies have shown that caffeine can improve breathing﻿﻿ by opening up the airways for up to four hours.
  • Take medications as directed. Your doctor may put you on an antibiotic, antiviral, or antifungal depending on what type of pneumonia you have.﻿﻿ Make sure you take it as instructed and finish the entire prescription, even if you feel better.
  • Run a humidifier. Similar to drinking water, running a humidifier will keep your airways moist, especially when the air is dry in your house.﻿﻿
  • Gargle salt water. Gargling several times a day can help wash away some of the mucus in your throat and relieve a sore throat.﻿﻿ If you hate salt water, gargling plain water works too.
  • Talk to your doctor about cough medicines. Because you need to cough﻿﻿ to help get rid of the infection, talk to your doctor before taking any kind of a cough suppressant, even if your cough is making it difficult to sleep. You may be able to take a low dose of a cough medicine or your doctor might have other options.
  • Stop smoking and stay away from smoke. Smoke aggravates your symptoms and may prolong your recovery time.﻿﻿


There are a variety of prescriptions your doctor may give you, again, depending on the type of pneumonia you have and your symptoms.

Antibiotics: If you have bacterial or aspiration pneumonia, your doctor will prescribe an antibiotic.﻿﻿ Finding the best antibiotic depends on being able to figure out which type of bacteria you've been infected with, so there might be some trial and error before your symptoms begin to improve.

If your pneumonia is mild and you're healthy overall, your doctor will probably prescribe Zithromax (azithromycin), Biaxin (clarithromycin), or Erythrocin (erythromycin). You may need stronger antibiotics if you have certain medical conditions such as heart disease, chronic obstructive pulmonary disease (COPD), diabetes, or kidney disease.

Breathing Treatments: Your doctor may also prescribe an inhaler or a nebulizer treatment to help loosen the mucus in your lungs and help you breathe better.﻿﻿ The most common medication for this is Ventolin, ProAir, or Proventil (albuterol).

Antivirals: If you have viral pneumonia, your doctor may prescribe an antiviral, especially if your pneumonia was caused by influenza or herpes and it's caught early.﻿﻿ Antivirals that might be prescribed include Tamiflu (oseltamivir), Relenza (zanamivir), Rapivab (peramivir), Zovirax (acyclovir), Cytovene (ganciclovir), Foscavir (foscarnet), Vistide (cidofovir), Nizoral (ketoconazole), and Virazol (ribavirin).

Antifungals: If you have fungal pneumonia and your immune system is suppressed or you have other serious underlying conditions, your doctor may give you an antifungal treatment.﻿﻿ These medications include Amphotericin B, Diflucan (fluconazole), Onmel or Sporanox (itraconazole), Vfend (voriconazole), Noxafil (posaconazole), or Cresemba (isavuconazole).

Over-the-Counter Therapies

Over-the-counter remedies that are typically used to help treat the symptoms of pneumonia include:

  • Fever reducers/pain relievers: Tylenol (acetaminophen), Motrin or Advil (ibuprofen), Aleve (naproxen), or aspirin will help bring your fever down and decrease any pain you might have.﻿﻿ Remember to never give aspirin to children because it increases their risk of developing Reye's syndrome, a rare but potentially life-threatening illness.
  • Expectorants: These medications help loosen and move mucus out of your lungs.﻿﻿ Your doctor probably won't want you to take cough suppressants, or at the very least, will only want you to take a low dose because you need to be able to cough to move the infection out.


If your symptoms are severe or you have underlying conditions that make complications from pneumonia more likely, you may need to be hospitalized.﻿﻿ You may receive intravenous (IV) medications and/or breathing treatments to improve your ability to breathe easily, reduce coughing and irritation, and improve oxygenation. With any type of pneumonia, you may also need supplemental oxygen, or, rarely, even a ventilator to help you breathe.

Reasons for Hospitalization

Hospitalization is more likely if you any of the following situations or factors apply to you:

  • You're over age 65
  • You're confused or disoriented
  • You have another serious medical problem like diabetes, COPD, or heart disease
  • Your kidney function has gotten worse
  • You can't take care of yourself at home
  • The antibiotic you're on isn't helping
  • You're breathing fast
  • Your temperature is lower than normal
  • Your heart rate is slow or fast

In children, hospitalization﻿﻿ is more likely if the following factors are true:

  • The child is under 2 months old
  • He or she has trouble breathing
  • The child is lethargic or sleepier than normal
  • Blood oxygen levels are low
  • Symptoms of dehydration are present

Complementary Medicine (CAM)

Because pneumonia can be a life-threatening illness, you should never replace regular treatments with alternative therapy. However, complementary alternative medicine (CAM) can complement conventional treatments when they're used together.﻿﻿

Warm herbal teas can help soothe a sore throat and warm you up if you've got the chills. Peppermint and eucalyptus are particularly beneficial because they seem to break up mucus and reduce throat inflammation. 

Fenugreek﻿﻿ has been shown to clear congestion and cleanse your throat. Drinking tea made from fenugreek seeds can help break up mucus and decrease a persistent cough.

Be sure to talk to your doctor if you decide to use CAM.


Different types of pneumonia require their own specific treatments.

Bacterial Pneumonia: Bacterial pneumonia is typically treated with antibiotics, breathing treatments, over-the-counter medications, and comfort measures.﻿﻿ If your case becomes severe, though, you may need to be hospitalized to receive an antibiotic intravenously.

Your symptoms should begin to improve one to three days after being on the antibiotic, but it will take at least a week or longer before you feel completely better, depending on how healthy you were to begin with.

Viral Pneumonia: If you're diagnosed with viral pneumonia, antibiotics won't help. Most importantly, you need to rest and take care of yourself.﻿﻿ If you try to keep up with your usual routine, it will most likely take you longer to recover, so do your best to slow down and get extra rest.

Your healthcare provider may recommend over-the-counter or prescription medications to help manage your symptoms and bring you some relief from the discomfort they are causing, but these measures won't cure the illness.﻿﻿ Occasionally, an antiviral medication may be prescribed.

Most of the time, viral pneumonia goes away on its own in one to three weeks.

Mycoplasma Pneumonia: Mycoplasma pneumonia usually isn't as severe as bacterial or viral pneumonia, so the course of treatment may be slightly different. It's often referred to as "walking pneumonia," meaning that you don't feel so sick that you have to stay in bed all day.

Technically, mycoplasma pneumonia is caused by a bacteria and in some cases is treated with antibiotics, though it often goes away on its own without treatment as well. Although you may not need to stay in bed when you have mycoplasma pneumonia, getting extra rest, staying hydrated, and taking over-the-counter medications to relieve the symptoms you do experience should help you recover more quickly.

Aspiration Pneumonia: Aspiration pneumonia is treated by removing the foreign object, if possible, and stopping the aspiration of more food or fluids. This may mean that you're not permitted to eat and will be given calories and fluids through an IV or via a feeding tube. 

Antibiotics are also an important part of treatment to help minimize the bacteria collecting in your lungs and prevent the infection from worsening. This type of pneumonia can be challenging to treat and may require an extended course of antibiotic treatment.

Was this page helpful?
Article Sources
  1. [Internet]. Cologne, Germany: Institute for Quality and Efficiency in Health Care (IQWiG); 2006-. Pneumonia: Overview. 2018 Aug 9. Available from:

  2. Freeman AM, Soman-Faulkner K, Leigh, Jr TR. Viral Pneumonia. [Updated 2019 May 10]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2019 Jan-. Available from:

  3. Guppy MP, Mickan SM, Del mar CB. "Drink plenty of fluids": a systematic review of evidence for this recommendation in acute respiratory infections. BMJ. 2004;328(7438):499-500.


  5. McCullers JA. Preventing and treating secondary bacterial infections with antiviral agentsAntivir Ther. 2011;16(2):123–135. doi:10.3851/IMP1730

  6. Kranabetter R, Leier M, Kammermeier D, Just HM, Heuser D. [The effects of active and passive humidification on ventilation-associated nosocomial pneumonia]. Anaesthesist. 2004;53(1):29-35.

  7. Moyad MA. Conventional and alternative medical advice for cold and flu prevention: what should be recommended and what should be avoided?. Urol Nurs. 2009;29(6):455-8.

  8. Hill AT, Gold PM, El solh AA, et al. Adult Outpatients With Acute Cough Due to Suspected Pneumonia or Influenza: CHEST Guideline and Expert Panel Report. Chest. 2019;155(1):155-167.

  9. Baskaran V, Murray RL, Hunter A, Lim WS, McKeever TM. Effect of tobacco smoking on the risk of developing community acquired pneumonia: A systematic review and meta-analysisPLoS One. 2019;14(7):e0220204. Published 2019 Jul 18. doi:10.1371/journal.pone.0220204

  10. Kollef MH, Betthauser KD. New antibiotics for community-acquired pneumonia. Curr Opin Infect Dis. 2019;32(2):169-175.

  11. Safdar A, Shelburne SA, Evans SE, Dickey BF. Inhaled therapeutics for prevention and treatment of pneumoniaExpert Opin Drug Saf. 2009;8(4):435–449. doi:10.1517/14740330903036083

  12. Mccullers JA. Effect of antiviral treatment on the outcome of secondary bacterial pneumonia after influenza. J Infect Dis. 2004;190(3):519-26.

  13. Mandanas, Romeo A; Soo Hoo, Guy W What Causes fungal pneumonia? Medscape. June 21, 2019

  14. Dirou S, Voiriot G. [Anti-inflammatory drugs and community-acquired pneumonia]. Rev Mal Respir. 2015;32(8):841-4.

  15. Fahy JV, Dickey BF. Airway mucus function and dysfunctionN Engl J Med. 2010;363(23):2233–2247. doi:10.1056/NEJMra0910061

  16. Jain S, Self WH, Wunderink RG, et al. Community-Acquired Pneumonia Requiring Hospitalization among U.S. AdultsN Engl J Med. 2015;373(5):415–427. doi:10.1056/NEJMoa1500245

  17. Hassen M, Toma A, Tesfay M, et al. Radiologic Diagnosis and Hospitalization among Children with Severe Community Acquired Pneumonia: A Prospective Cohort StudyBiomed Res Int. 2019;2019:6202405. Published 2019 Jan 9. doi:10.1155/2019/6202405

  18. Cazzola M, Page CP, Matera MG. Alternative and/or integrative therapies for pneumonia under development. Curr Opin Pulm Med. 2004;10(3):204-10.


  20. Pahal P, Sharma S. Typical Bacterial Pneumonia. [Updated 2019 Feb 23]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2019 Jan-. Available from:


  22. Dandachi D, Rodriguez-barradas MC. Viral pneumonia: etiologies and treatment. J Investig Med. 2018;66(6):957-965.

  23. Bajantri B, Venkatram S, Diaz-Fuentes G. Mycoplasma pneumoniae: A Potentially Severe InfectionJ Clin Med Res. 2018;10(7):535–544. doi:10.14740/jocmr3421w

  24. Saraya T. Mycoplasma pneumoniae infection: BasicsJ Gen Fam Med. 2017;18(3):118–125. Published 2017 Apr 17. doi:10.1002/jgf2.15

  25. Sanivarapu RR, Gibson JG. Aspiration Pneumonia. [Updated 2019 Aug 22]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2019 Jan-. Available from:

  26. Bowerman TJ, Zhang J, Waite LM. Antibacterial treatment of aspiration pneumonia in older people: a systematic reviewClin Interv Aging. 2018;13:2201–2213. Published 2018 Oct 30. doi:10.2147/CIA.S183344

Additional Reading