Pneumonia treatment depends on what’s causing the infection. Bacterial pneumonia requires antibiotics, viral pneumonia often resolves with supportive care, and fungal pneumonia needs antifungal medication. Most cases in otherwise healthy adults can be treated at home, but severe cases require hospitalization. The type of pneumonia, your age, and your overall health all shape what treatment looks like.
Bacterial Pneumonia and Antibiotics
Bacterial pneumonia is the most common type that requires direct medical treatment. The standard course of antibiotics for community-acquired pneumonia runs 7 to 10 days of oral medication. Recent research, particularly a meta-analysis published in Clinical Infectious Diseases, has shown that shorter courses of 3 to 5 days can be equally effective and safe for uncomplicated cases, and some doctors are beginning to adopt this approach. Your prescriber will determine the length based on how severe your symptoms are and how quickly you improve.
One critical point: finish the full course your doctor prescribes, even if you feel better after a few days. Stopping early can allow resistant bacteria to survive and cause a relapse that’s harder to treat the second time around.
When Pneumonia Is Viral
Antibiotics don’t work against viruses, so viral pneumonia is managed differently. If the cause is influenza, antiviral medication can shorten the illness and reduce severity, but only if started within 48 hours of your first symptoms. After that window closes, the drugs lose much of their effectiveness. This is why getting evaluated early matters if you suspect flu-related pneumonia.
For most other viral causes, including many respiratory viruses, there’s no specific antiviral. Treatment focuses entirely on managing symptoms and supporting your body while it fights the infection. COVID-19 pneumonia may be treated with specific antivirals in high-risk patients, a decision your doctor makes based on timing and your risk profile.
Fungal Pneumonia
Fungal pneumonia is less common and typically affects people who live in or travel to regions where certain fungi thrive in the soil, or people with weakened immune systems. Mild to moderate cases caused by fungi like histoplasmosis or blastomycosis are generally treated with oral antifungal medication that may need to continue for weeks or months. Severe cases sometimes require intravenous antifungal treatment in a hospital. A randomized clinical trial found that newer formulations of these IV drugs achieve clinical success rates around 88%, with fewer side effects than older versions.
Home Care That Actually Helps
Whether your pneumonia is bacterial, viral, or fungal, supportive care at home plays a major role in how you feel during recovery.
Stay hydrated. Drinking plenty of fluids, especially water, helps loosen mucus in your lungs and makes it easier to cough up. Warm beverages, steamy showers, and a humidifier can also open your airways and ease breathing.
For fever and body aches, over-the-counter options like ibuprofen or acetaminophen are effective. Take them as needed for comfort rather than on a rigid schedule. Do not give aspirin to children.
Coughing is worth a separate note. Your instinct will be to suppress it, but coughing is one of the main ways your body clears infection from the lungs. Very few studies have found that over-the-counter cough medicines actually reduce pneumonia-related coughing. If your cough is so severe that you can’t sleep, use the lowest effective dose of a cough suppressant at night, but let yourself cough during the day.
Breathing Exercises During Recovery
Your doctor may recommend an incentive spirometer, a simple plastic device that trains you to take slow, deep breaths. It works by expanding your lungs fully, which helps clear mucus and fluid buildup and prevents secondary infections. The recommended frequency is at least 10 deep breaths every hour while you’re awake, followed by a deep cough to clear your lungs. Most people can stop using one once they’re up and walking around comfortably.
Even without the device, deliberate deep breathing helps. Shallow breathing feels easier when your chest hurts, but it allows fluid to pool in the lower lungs. Sitting upright rather than lying flat also improves lung expansion.
Who Needs Hospital Treatment
Doctors use scoring tools to decide whether pneumonia can be safely treated at home. One widely used system, called CURB-65, assigns one point each for confusion, elevated kidney waste products in the blood, a breathing rate of 30 or more breaths per minute, low blood pressure, and age 65 or older. A score of 0 or 1 typically means home treatment is safe. A score of 2 puts you in a gray zone where supervised care may be better. A score of 3 or higher means hospital admission, because the risk of serious complications is high.
In practical terms, you should seek emergency care if you’re struggling to breathe at rest, feel confused or disoriented, can’t keep fluids down, or notice your lips or fingertips turning blue. These signs indicate your body isn’t getting enough oxygen.
Complications to Watch For
Most pneumonia resolves without lasting problems, but complications can develop even during treatment. The most common is pleural effusion, where fluid collects in the space between the lung and the chest wall. A small amount of fluid may reabsorb on its own, but larger or infected collections need to be drained, usually through a small tube placed with imaging guidance. This procedure has a success rate up to 90% and is far less invasive than surgery.
If the fluid becomes infected (a condition called empyema), drainage becomes urgent. The tube stays in place until output drops below about 50 milliliters per day and the fluid runs clear. In some cases, doctors inject clot-dissolving agents through the drainage tube to break up pockets of trapped fluid. Lung abscesses, another possible complication, are initially treated with antibiotics alone, but 11 to 21% of patients eventually require drainage when medications aren’t enough.
What Recovery Looks Like
Pneumonia recovery is slower than most people expect. Fever typically breaks within the first week of appropriate treatment, but coughing, chest tightness, and especially fatigue can linger for weeks or even months. It’s common to feel wiped out for four to six weeks after the acute illness resolves, and some people notice reduced stamina for three months or longer.
During recovery, rest is not optional. Returning to full activity too soon is one of the most common reasons people relapse or develop a prolonged cough. Gradually increase your activity level as your energy allows, and don’t judge your progress by how your fever and cough are doing alone. Fatigue is often the last symptom to fully resolve.
Preventing Pneumonia
Vaccination is the most effective prevention tool. The CDC recommends pneumococcal vaccines for all children under 5 (a four-dose series starting at 2 months) and for all adults 50 and older. Adults under 50 with certain risk factors, including weakened immune systems, cochlear implants, or cerebrospinal fluid leaks, are also recommended to get vaccinated.
For adults, newer conjugate vaccines (PCV20 or PCV21) are given as a single dose with no follow-up shot needed. If you receive the older PCV15 instead, you’ll need an additional dose of a different pneumococcal vaccine about a year later. Annual flu vaccination also matters, since influenza is a common trigger for secondary bacterial pneumonia. Hand hygiene, not smoking, and managing chronic conditions like diabetes and heart disease all reduce your risk as well.

