The treatment depends on what caused your pneumonia and how sick you are
Pneumonia treatment falls into two main paths: bacterial pneumonia, which is treated with antibiotics, and viral pneumonia, which is not. Your doctor determines which type you have by listening to your lungs, looking at a chest X-ray, and sometimes ordering a sputum culture or blood test. If it is bacterial, you will receive antibiotics—usually starting with a broad-spectrum drug like amoxicillin or azithromycin, then narrowing to a specific antibiotic once the bacteria is identified. If it is viral, antibiotics will not help, and treatment focuses on rest, fluids, and managing symptoms while your immune system clears the infection.
Severity matters enormously. Mild pneumonia (called walking pneumonia) is often treated at home with oral antibiotics and rest. Moderate to severe pneumonia usually requires hospitalization, where you receive intravenous antibiotics, oxygen if your blood oxygen drops below normal, and monitoring to catch complications early. Your doctor will also check for underlying conditions—heart disease, diabetes, weakened immunity—that change how aggressively you need to be treated.
Key Takeaways
- Bacterial pneumonia is treated with antibiotics; viral pneumonia is not, and treatment focuses on rest and symptom management.
- Your doctor identifies the type through chest X-ray, sputum culture, or blood tests before prescribing antibiotics.
- Mild pneumonia is usually managed at home with oral antibiotics and rest; moderate to severe cases require hospitalization and oxygen support.
- Symptom relief—fever reducers, cough suppressants, fluids—happens alongside the main treatment and helps you recover faster.
- Most people recover fully within two to four weeks, though fatigue and a lingering cough can last longer.
Antibiotics for bacterial pneumonia and when they start
If your doctor suspects bacterial pneumonia, antibiotics usually start immediately—often before culture results come back, because waiting can be risky. The first antibiotic is broad-spectrum, meaning it targets multiple types of bacteria. Common choices are amoxicillin (oral, for milder cases), amoxicillin-clavulanate (which covers more resistant bacteria), azithromycin, or fluoroquinolones like levofloxacin. If you are hospitalized, you will receive intravenous ceftriaxone, cefotaxime, or piperacillin-tazobactam.
Once the lab identifies the exact bacteria—usually within 24 to 48 hours—your doctor may switch you to a narrower antibiotic that targets that specific organism. This reduces unnecessary exposure to broad-spectrum drugs and lowers the risk of side effects. You will take antibiotics for 5 to 7 days for most cases, though some doctors extend to 10 days depending on severity and your response. Do not stop early even if you feel better; stopping too soon allows the infection to return.
Oxygen and hospital care for moderate to severe cases
If your blood oxygen level falls below 90 percent (measured by pulse oximetry), you will receive supplemental oxygen through a nasal cannula or mask. Oxygen is not a treatment for pneumonia itself—it keeps your organs from being starved of oxygen while antibiotics and your immune system fight the infection. Most people hospitalized for pneumonia stay for 3 to 7 days, depending on how quickly they improve and whether complications develop.
In the hospital, nurses monitor your vital signs, draw blood cultures to track the infection, and watch for complications like sepsis (bloodstream infection), acute respiratory distress syndrome (ARDS), or pleural effusion (fluid around the lungs). If you develop sepsis or your oxygen needs rise sharply, you may be moved to intensive care. Mechanical ventilation (a breathing tube) is used only if your lungs cannot oxygenate your blood adequately on their own—this is uncommon but necessary in severe cases.
Managing symptoms at home while you recover
Symptom relief makes recovery more bearable and helps you rest, which your body needs to fight infection. Acetaminophen or ibuprofen reduce fever and body aches; use them as directed on the label. A cough suppressant containing dextromethorphan (DM) can help you sleep at night, though some doctors prefer you cough during the day to clear mucus from your lungs. Expectorants like guaifenesin thin mucus and make coughing more productive.
Drink plenty of water, warm tea, or broth—dehydration thickens mucus and makes it harder to clear. Use a humidifier or breathe steam from a hot shower to ease congestion. Avoid smoking and secondhand smoke, which irritates your lungs and slows healing. Rest as much as possible; your body is fighting a serious infection, and pushing yourself prolongs recovery. Most people feel significantly better within a week of starting antibiotics, but fatigue and a dry cough can linger for weeks.
Viral pneumonia and why antibiotics do not work
Viral pneumonia—often caused by influenza, respiratory syncytial virus (RSV), or coronavirus—cannot be treated with antibiotics because antibiotics kill bacteria, not viruses. Your immune system has to clear the virus on its own. Treatment is supportive: rest, fluids, fever management, and oxygen if needed. Some antivirals like oseltamivir (Tamiflu) can shorten flu-related pneumonia if started within 48 hours of symptom onset, but they are not effective for all viral causes.
Viral pneumonia is often milder than bacterial pneumonia, but it can be severe, especially in older adults or people with chronic lung disease. The risk of secondary bacterial infection is real—if you start feeling worse after a few days of improvement, or if your fever returns, tell your doctor immediately. A secondary bacterial infection requires antibiotics and sometimes hospitalization.
When pneumonia requires hospitalization
Your doctor will recommend hospitalization if you are over 65, have chronic heart or lung disease, are immunocompromised, or show signs of severe pneumonia: confusion, very low blood pressure, rapid breathing (over 30 breaths per minute), or blood oxygen below 90 percent. Hospitalization is also considered if you cannot keep down oral medications or fluids, or if you live alone and cannot manage at home safely.
The hospital setting allows continuous monitoring, intravenous antibiotics and fluids, oxygen therapy, and rapid intervention if complications arise. Most people hospitalized for pneumonia improve within 48 to 72 hours of starting the right antibiotic, though full recovery takes longer. Before discharge, your doctor will confirm your oxygen level is stable off supplemental oxygen and that you can take oral medications and eat normally.
Recovery timeline and when to contact your doctor
Most people with bacterial pneumonia treated with antibiotics feel noticeably better within 3 to 5 days. Fever usually breaks within 24 to 48 hours of starting the right antibiotic. However, full recovery—returning to normal energy and clearing the cough—takes 2 to 4 weeks. A lingering dry cough for 3 to 4 weeks after treatment ends is normal and does not mean the infection is still active.
Contact your doctor if you develop chest pain, shortness of breath that worsens, confusion, very high fever that does not respond to fever reducers, or if you were improving but suddenly get worse. These can signal complications like pleural effusion, empyema (pus in the pleural space), or secondary infection. If you are at high risk—over 65, with heart disease, diabetes, or a weakened immune system—ask your doctor about pneumonia vaccines (pneumococcal and annual flu shots) to prevent future cases.
Frequently Asked Questions
Can pneumonia go away on its own without antibiotics?
Viral pneumonia sometimes resolves without treatment, though recovery is slower and the risk of complications is higher. Bacterial pneumonia almost always requires antibiotics; without them, the infection can spread to the bloodstream or cause sepsis. If your doctor suspects bacterial pneumonia, do not delay antibiotics hoping it will clear on its own.
How long do I have to take antibiotics?
Most pneumonia is treated with 5 to 7 days of antibiotics. Some doctors prescribe 10 days, especially for severe cases or certain bacteria. Finish the full course even if you feel better after a few days; stopping early allows the infection to return and can lead to antibiotic resistance.
What if antibiotics are not working?
If you are not improving after 48 to 72 hours on antibiotics, your doctor will order new cultures and imaging to check for resistant bacteria, a secondary infection, or a complication like pleural effusion. They may switch antibiotics or add additional treatment. Hospitalization is usually recommended if you are not responding at home.
Is pneumonia contagious after I start antibiotics?
Bacterial pneumonia becomes much less contagious after 24 to 48 hours of antibiotics. Viral pneumonia remains contagious for several days even after treatment starts. Wash your hands frequently, cover your cough, and avoid close contact with others—especially older adults and people with weakened immunity—until your doctor says it is safe.
Will I have permanent lung damage from pneumonia?
Most people recover completely with no lasting lung damage. However, severe pneumonia requiring hospitalization or mechanical ventilation can cause scarring or reduced lung function, especially if you have underlying lung disease. Your doctor can order follow-up imaging or breathing tests weeks after recovery if you have concerns.