Treatment depends on what caused the pneumonia and how severe it is
Pneumonia treatment falls into two broad paths: care you manage at home, and care that requires hospitalization. A doctor determines which path you need by checking your oxygen level, how fast you're breathing, your age, and whether you have other health conditions. Bacterial pneumonia almost always needs antibiotics. Viral pneumonia usually doesn't—your immune system clears it on its own, though treatment focuses on keeping you comfortable while that happens. Fungal pneumonia, which is rare, requires antifungal medication and often hospitalization.
The goal of treatment is the same regardless of type: get oxygen into your bloodstream, clear the infection, and prevent complications like sepsis or respiratory failure. How long treatment takes varies widely. Some people recover in two to three weeks. Others, especially older adults or those with chronic illness, take months to feel fully normal again.
Key Takeaways
- Bacterial pneumonia requires antibiotics, usually started before test results confirm which bacteria caused it, because waiting delays recovery.
- Viral pneumonia has no specific antiviral treatment for most cases—recovery depends on rest, fluids, and letting your immune system work.
- Hospitalization is needed if your oxygen level drops below 92%, you're breathing faster than 30 times per minute, or you have sepsis or organ failure.
- Supportive care—oxygen, fluids, fever management, and cough relief—is part of treatment for every type of pneumonia.
- Recovery time ranges from weeks to months depending on your age, overall health, and how severe the infection was.
Antibiotics for bacterial pneumonia
If your doctor suspects bacterial pneumonia, you'll start antibiotics before lab results come back identifying which bacteria caused it. This matters because waiting for confirmation can let the infection worsen. Common first-choice antibiotics are amoxicillin-clavulanate (for outpatient treatment) or ceftriaxone (for hospitalized patients). If you're allergic to penicillin-based drugs, fluoroquinolones like levofloxacin are often used instead.
The antibiotic course typically lasts 5 to 7 days for outpatient treatment, though some doctors prescribe 10 days. You take the full course even if you feel better after a few days—stopping early can allow bacteria to survive and cause relapse. If you're hospitalized, you may receive antibiotics intravenously for the first few days, then switch to pills at home.
Your doctor may adjust the antibiotic if lab tests show the bacteria doesn't respond to the first choice, or if you develop side effects. This adjustment usually happens within 48 to 72 hours of starting treatment.
Managing viral pneumonia without antivirals
Most viral pneumonia doesn't have a specific antiviral drug that works well enough to use routinely. Your body's immune system clears the virus on its own, usually within one to three weeks. Treatment focuses on supporting your body while that happens: rest, fluids, and managing symptoms like fever and cough.
If you have severe viral pneumonia or you're immunocompromised—from HIV, chemotherapy, or organ transplant—your doctor may prescribe antivirals like oseltamivir (for influenza) or remdesivir (for severe COVID-19). These work best when started early, within the first few days of illness. For most people with mild to moderate viral pneumonia, they're not used.
Cough suppressants containing dextromethorphan can help you sleep, but they're not recommended if you need to clear mucus from your lungs. Expectorants like guaifenesin thin mucus so coughing is more productive. Over-the-counter pain relievers and fever reducers—acetaminophen or ibuprofen—make you more comfortable while your immune system works.
Oxygen therapy and hospital-level care
If your blood oxygen level falls below 92% (measured by pulse oximetry), you need supplemental oxygen. In the hospital, this comes through a nasal cannula—two small tubes in your nose—or a mask covering your nose and mouth. At home, if you're discharged with low oxygen, you'll use a portable oxygen concentrator that you rent or own.
Hospitalization is recommended if you have any of these: oxygen saturation below 92%, breathing rate above 30 breaths per minute, confusion or altered mental state, sepsis (bloodstream infection), organ failure, or severe underlying conditions like heart disease or COPD. In the hospital, doctors monitor your oxygen continuously, give intravenous fluids if you can't drink enough, and watch for complications.
Mechanical ventilation—a breathing machine—is used only if your lungs can't oxygenate your blood even with high-flow oxygen. This is a last resort, typically for severe pneumonia with respiratory failure, and it requires sedation and intensive care.
Supportive care that applies to all pneumonia
Regardless of whether your pneumonia is bacterial or viral, your body needs fluids to thin secretions in your lungs and prevent dehydration. Drink water, broth, or electrolyte drinks throughout the day. If you're hospitalized and can't drink enough, you'll receive intravenous fluids.
Rest is essential—your immune system uses energy to fight infection, and physical activity diverts that energy. Most doctors recommend staying home from work or school until you've been fever-free for 24 hours without fever-reducing medication, and your cough is improving. This usually takes one to two weeks for mild pneumonia, longer for severe cases.
Chest physiotherapy—percussion and vibration of the chest wall to loosen mucus—is sometimes used in hospitals, especially for patients who can't cough effectively. At home, changing positions frequently and using a humidifier can help. Avoid smoke and air pollution, which irritate already-inflamed airways.
When pneumonia doesn't improve with initial treatment
Most people start improving within 48 to 72 hours of starting antibiotics. If you're not better by day 3—still running fever, still short of breath, or getting worse—contact your doctor. This could mean the antibiotic isn't working against the bacteria you have, you have a fungal infection instead, or a complication has developed.
Your doctor may order a repeat chest X-ray or CT scan to check for complications like a pleural effusion (fluid around the lungs) or abscess (pocket of pus). They may switch antibiotics, add a second antibiotic, or refer you to a specialist. Some people need drainage of fluid or pus, which is done by a pulmonologist or interventional radiologist using ultrasound or CT guidance.
Complications that slow recovery include empyema (infection in the fluid around the lungs), which may need drainage; sepsis, which requires intensive care; and acute respiratory distress syndrome (ARDS), a life-threatening condition where the lungs fill with fluid. These are uncommon but more likely in older adults, people with weakened immune systems, and those who delay treatment.
Recovery and follow-up after pneumonia
After you finish antibiotics or after your viral pneumonia clears, recovery continues. A lingering cough is normal and can last weeks or even months, especially in smokers and people with chronic lung disease. Fatigue is also common—your body is healing, and this takes energy.
Your doctor may schedule a follow-up visit or a repeat chest X-ray 4 to 6 weeks after treatment ends, especially if you're over 50 or have chronic health conditions. This confirms the infection has cleared and rules out underlying problems like lung cancer that sometimes look like pneumonia on initial imaging.
Gradually return to normal activity as you feel able. Start with short walks and light tasks, then increase intensity over days or weeks. If shortness of breath, chest pain, or fever returns, contact your doctor—this could signal incomplete recovery or a new infection.
Frequently Asked Questions
Can pneumonia go away without antibiotics?
Viral pneumonia clears without antibiotics because your immune system handles it. Bacterial pneumonia almost always needs antibiotics—without them, the infection can spread to your bloodstream or cause permanent lung damage. If you have bacterial pneumonia and don't treat it, recovery takes much longer and the risk of serious complications rises sharply.
How long does it take to feel normal after pneumonia treatment?
Most people feel significantly better within one to two weeks of starting treatment. Full recovery—returning to your normal energy level and exercise tolerance—often takes four to six weeks, sometimes longer if you're over 65 or have other health conditions. A lingering cough for weeks is normal and doesn't mean treatment failed.
What should I do if I'm not improving after three days of antibiotics?
Contact your doctor. They'll assess whether the antibiotic is working, order imaging to check for complications, and may switch medications or add a second antibiotic. Don't wait—worsening pneumonia can deteriorate quickly, and early adjustment of treatment prevents that.
Is it safe to treat pneumonia at home?
Mild bacterial pneumonia and most viral pneumonia can be treated at home with antibiotics (if bacterial) and supportive care. You need hospitalization if your oxygen level is low, you're breathing very fast, you're confused, you have sepsis, or you have serious underlying conditions. Your doctor will tell you which setting is safe for your situation.
Can I exercise while recovering from pneumonia?
Rest is important during active infection and the first week or two after treatment starts. Once you're fever-free and feeling stronger, gentle activity like short walks is fine. Avoid strenuous exercise until your cough is mostly gone and your energy is back—pushing too hard can slow recovery or trigger relapse.