Pneumonia is treated with antibiotics, but only when bacteria are the cause. Pneumonia can also be caused by viruses or fungi, and antibiotics won’t help in those cases. Since bacterial pneumonia is the most common type that requires medical treatment, antibiotics are the standard first-line approach for most people diagnosed with pneumonia.
Which Types Need Antibiotics
Bacterial pneumonia is the type that calls for antibiotics. The most common culprit is a bacterium called Streptococcus pneumoniae, and treatment typically involves oral antibiotics that you take at home. You’ll usually start feeling better within a couple of days, though it’s important to finish the full course even after symptoms improve.
Viral pneumonia, on the other hand, usually resolves on its own without medication. In some cases, antiviral drugs can shorten the illness and reduce its severity, particularly for flu-related pneumonia. Fungal pneumonia requires antifungal medications, which are an entirely separate class of drugs from antibiotics.
In many cases, doctors can’t immediately pinpoint whether pneumonia is bacterial or viral. When the cause is uncertain, treatment focuses on managing symptoms and monitoring for worsening. If bacterial infection is suspected but not confirmed, antibiotics may still be prescribed as a precaution, since untreated bacterial pneumonia can become dangerous.
What Treatment Looks Like at Home
Most people with bacterial pneumonia are treated as outpatients, meaning you pick up a prescription and recover at home. Common antibiotics for pneumonia belong to a few drug families, and your doctor will choose one based on your health history and the suspected bacteria involved. A typical course lasts about five days, though some infections require longer treatment.
You’ll likely notice your fever dropping and your energy improving within the first two to three days. Cough and fatigue can linger for weeks after the infection itself has cleared. Nausea, diarrhea, and vomiting are the most common side effects of the antibiotics used for pneumonia. These are usually mild, but severe diarrhea (especially if it’s bloody or watery) can signal a complication that needs medical attention.
When Hospital Treatment Is Needed
People with severe symptoms, low oxygen levels, or underlying health conditions may need to be hospitalized. In the hospital, antibiotics are given through an IV to deliver higher concentrations directly into the bloodstream. Doctors monitor several markers to determine when you’re stable enough to switch to oral antibiotics and eventually go home. These markers include temperature, heart rate, breathing rate, oxygen levels, blood pressure, and mental clarity all returning to safe ranges.
Certain resistant bacteria, like MRSA, require specialized antibiotics that aren’t part of the standard outpatient prescriptions. If you’ve been hospitalized recently or have a weakened immune system, your care team will tailor the antibiotic choice to cover those harder-to-treat organisms.
Antibiotic Resistance Is a Growing Concern
About 2 in 5 Streptococcus pneumoniae infections now involve bacteria that are resistant to at least one antibiotic. The CDC classifies antibiotic-resistant pneumococcal bacteria as a “serious threat.” Resistance doesn’t mean the infection is untreatable, but it can mean the first antibiotic tried doesn’t work, leading to longer illness, a switch to more expensive or potent drugs, and a higher risk of complications.
Your risk of having a resistant infection goes up if you’ve recently taken antibiotics for any reason, if you’ve been hospitalized, or if your immune system is compromised. This is one of the key reasons doctors emphasize finishing your full antibiotic course. Stopping early when you feel better gives surviving bacteria a chance to develop resistance, making future infections harder to treat.
Recovery Takes Longer Than You Expect
Even with the right antibiotics, pneumonia recovery isn’t quick. The infection itself may clear within a week, but the body’s healing process takes much longer. Fatigue, mild cough, and reduced exercise tolerance commonly persist for several weeks. Some people, especially older adults, don’t feel fully back to normal for a month or more. Rest, hydration, and gradually increasing activity are the practical pillars of recovery once you’ve finished your antibiotics.

