When a person contracts pneumonia, the air sacs in one or both lungs, called alveoli, fill with pus or fluid.
This fluid can make it difficult to breathe. While pneumonia can be mild, it can also cause severe illness, especially in young children, older adults, and those with other medical problems.
In 2019, more than 40,000 Americans died of pneumonia.
Pneumonia happnes when a virus or bacteria that’s living in your body—in your nose, sinuses, or mouth, for example—spreads into your lungs.
You may also directly breathe the virus or bacteria into your lungs, triggering pneumonia.
Pneumonia is typically caused by viruses or bacteria.
Antibiotics won’t help with viral pneumonia.
Bacterial pneumonia is more common, and usually more severe, and can sometimes occur secondary to a viral infection.
If your doctor suspects that you have bacterial pneumonia, they will treat you with antibiotics.
In this article, I’ll explain how pneumonia is diagnosed, and when and how it’s treated with antibiotics.
I’ll also talk about when pneumonia requires hospitalization.
I’ll also tell you when you should talk to your doctor to see if a persistent cough, shortness of breath, or other upper respiratory symptoms could be pneumonia.
Types of Antibiotics for Pneumonia
Pneumonia is a respiratory infection that affects the lower part of the respiratory system, primarily the lungs or the bronchi.
The bronchi are the air passages that connect the lungs to the windpipe.
Because pneumonia causes the air sacs in your lungs fill with pus and fluid, pneumonia can make it harder to take in oxygen and expel carbon dioxide.
Pneumonia is typically caused by a virus or bacterial infection.
Sometimes fungal infections can lead to pneumonia, but that is rarer, and typically occurs in people with weak immune systems due to other diseases.
Viral pneumonia will often resolve on its own, though it still frequently requires medical care for supportive treatment.
If your pneumonia is caused by a virus, antibiotics won’t help unless there is also a secondary bacterial infection.
If you have bacterial pneumonia, you will need antibiotics to prevent complications and to help your body clear the infection.
Even with antibiotics, it can still take 4-6 weeks to recover from bacterial pneumonia.
Most bacterial pneumonia that is community-acquired (meaning you do not get it while you are in the hospital) comes from the bacteria Streptococcus pneumoniae.
There are several different antibiotics are effective at treating this bacterial infection.
Azithromycin is a first-line treatment for healthy adults under age 65 with bacterial pneumonia.
It is often paired with another antibiotic like doxycycline or amoxicillin.
Azithromycin is currently being studied for its effectiveness in treating secondary bacterial pneumonia that is sometimes associated with COVID-19.
Patients who are allergic to penicillin or amoxicillin may be given a cephalosporin antibiotic along with azithromycin or doxycycline.
Clarithromycin is another macrolide antibiotic that is commonly used for pneumonia.
It is often used with other antibiotics, particularly in older adults or in those with compromised immune systems.
It is used to treat pneumonia, STIs, UTIs, and other bacterial infections.
Recarbrio is a newer combination antibiotic that pairs imipenem-cilastatin with relebactam.
It is used for treating hospital-acquired pneumonia, secondary pneumonia infections, and ventilator-associated pneumonia.
Lefamulin is another recent antibiotic that is FDA-approved for treating community-acquired pneumonia.
Your doctor will choose the right antibiotic combination for you based on your age, the severity of illness, your other medical problems,, and medication allergies.
Children with pneumonia are commonly treated with amoxicillin, ampicillin, cephalosporin, and other macrolide-class antibiotics.
That’s because penicillin-derived antibiotics attack the cell wall of bacteria, and mycoplasma bacteria don’t have cell walls, so they are ineffective.
Instead, macrolides and tetracyclines are most often used to treat this common and milder form of pneumonia.
Walking pneumonia such as that caused by mycoplasma commonly follows a viral infection, like a cold, and may happen more frequently in children and young adults.
Diagnosis for Pneumonia
If you get a cold or the flu and you don’t seem to be improving within 7-10 days, especially if you feel difficulty breathing, a persistent cough or fever, talk to your doctor.
They will evaluate your symptoms, perform an exam, and may have a chest X-ray done to confirm that you have pneumonia.
Pneumonia does not always produce the same symptoms.
Symptoms can range in severity, and children may have different symptoms than adults.
Newborns, older adults, and people with weakened immune systems may have milder symptoms, but this does not mean that they are less ill.
Common pneumonia symptoms include:
- Shortness of breath or chest tightness
- Cough, with or without phlegm or mucus
- Chest pain when you breathe in and out, or when you cough
- Nausea and vomiting
It is possible to have pneumonia without fever or the other common symptoms listed above, so if you feel sick and have an upper respiratory infection that’s not getting any better, see your doctor.
The primary way to confirm the diagnosis of pneumonia is with a chest X-ray, which will show a consolidation of fluid in your lungs.
Other tests, including labs and sputum cultures, may be used to differentiate between viral or bacterial pneumonia, and to determine the severity of the infection.
Treatment for Pneumonia
Treatment for pneumonia depends on the symptoms, severity of illness, and other co-existing health factors.
If you aren prescribed antibiotics for pneumonia, they will likely be prescribed for 5-10 days, depending on which antibiotic is used and the severity of your infection.
It is always important to complete the entire course of antibiotics and to take them as prescribed, even if you start to feel better quickly.
If you have concerns about the length of your prescription, speak to your doctor.
Each year, 1.5 million people visit emergency departments because of pneumonia.
Patients may be hospitalized for pneumonia if they are at risk for complications, or if they are having trouble breathing.
Even if they seem to be breathing easily, patients may also require admission to the hospital if their oxygen saturation levels are too low.
The average hospital stay for pneumonia is 3-5 days.
You may be sent home from the hospital before you are feeling completely better.
Sometimes breathing treatments or oxygen are required for at-home care following hospitalization.
Lifestyle and home remedies
If you have bacterial pneumonia, you must be treated with an antibiotic.
Certain lifestyle changes and home remedies may be helpful to alleviate symptoms or speed up your recovery.
Here are some things to try:
- Gargle salt water or drink warm tea to help soothe a sore throat
- Drink a cup of caffeinated coffee, which might ease feelings of breathlessness
- Over-the-counter pain relievers, like acetaminophen or ibuprofen, can help ease fever, discomfort, and aches
- Drink plenty of fluids – it’s very important to stay well hydrated to help your body fight off the infection.
When to See a Doctor
If you have been sick with what seems like a cold or the flu without improvement for 5-7 days, check in with your doctor.
This could be a sign that you have pneumonia or have developed a secondary infection.
Call your doctor sooner if you have a high fever, have trouble breathing, or otherwise feel like you are getting worse.
If you have a compromised immune system, are over age 65, or have other medical problems, call your doctor sooner.
Children who have symptoms of pneumonia should be seen by their pediatrician right away, since they may not display common signs of pneumonia, even if they are very ill.
How K Health Can Help
Did you know you can access online urgent care with K Health?
Check your symptoms, explore conditions and treatments, and if needed, text with a healthcare provider in minutes.
K Health’s AI-powered app is HIPAA compliant and is based on 20 years of clinical data.
Frequently Asked Questions
K Health articles are all written and reviewed by MDs, PhDs, NPs, or PharmDs and are for informational purposes only. This information does not constitute and should not be relied on for professional medical advice. Always talk to your doctor about the risks and benefits of any treatment.
K Health has strict sourcing guidelines and relies on peer-reviewed studies, academic research institutions, and medical associations. We avoid using tertiary references.
Viral pneumonia: etiologies and treatment. (2018).
Community-acquired pneumonia in adults. (2021).
FDA Approves Antibiotic to Treat Hospital-Acquired Bacterial Pneumonia and Ventilator-Associated Bacterial Pneumonia. (2020).
FDA approves new antibiotic to treat community-acquired bacterial pneumonia. (2019).
Mycoplasma pneumoniae infections. (2020).
Pneumonia in adults - discharge. (2020).
Possible beneficial actions of caffeine in SARS-CoV-2. (2021).
Doxycycline for community treatment of suspected COVID-19 in people at high risk of adverse outcomes in the UK (PRINCIPLE): a randomised, controlled, open-label, adaptive platform trial. (2021).