Pneumonia treatment depends on what caused it and how severe it is
Bacterial pneumonia is treated with antibiotics, which your doctor prescribes based on which bacteria they suspect or identify. Viral pneumonia has no antibiotic cure — your body's immune system clears it on its own, though your doctor may prescribe antivirals in some cases. Fungal pneumonia requires antifungal medication and is less common. The first step is always a doctor visit: they listen to your lungs, may order a chest X-ray, and sometimes test sputum or blood to identify the cause. Without knowing what caused your pneumonia, treatment is guesswork.
Recovery time varies widely. Bacterial pneumonia treated with antibiotics often improves within a week, though fatigue and a lingering cough can last weeks longer. Viral pneumonia typically takes two to three weeks to clear completely. Severe pneumonia requiring hospitalization takes longer — sometimes months before you feel fully normal. Age, overall health, and whether you have other conditions like heart disease or diabetes all affect how fast you recover.
Key Takeaways
- Bacterial pneumonia requires antibiotics prescribed by a doctor; viral pneumonia resolves on its own but your doctor can help manage symptoms.
- A chest X-ray or sputum test helps your doctor identify what caused your pneumonia so they can prescribe the right treatment.
- Antibiotics work only for bacterial pneumonia and must be taken exactly as prescribed, even after you feel better.
- Supportive care — rest, fluids, fever management, and cough relief — is part of treatment for all types of pneumonia.
- Hospitalization is necessary if you have severe pneumonia, low oxygen levels, or serious underlying health conditions.
When to see a doctor and what happens at the visit
See a doctor if you have a cough lasting more than a week, chest pain that worsens when you breathe or cough, shortness of breath, or a fever above 100.4°F that does not improve with over-the-counter fever reducers. Do not wait if you are coughing up blood, have severe difficulty breathing, or feel confused or disoriented — go to an emergency room instead.
At the visit, your doctor will ask how long you have been sick, what your symptoms are, and whether you have other health conditions. They will listen to your lungs with a stethoscope — pneumonia often produces crackling sounds or areas where breath sounds are quieter than normal. They may order a chest X-ray to see inflammation in your lungs and sometimes a blood test or sputum culture to identify the specific cause. This information determines whether you need antibiotics, antivirals, or just supportive care.
Antibiotics: how they work and how to use them
Antibiotics kill bacteria or stop them from multiplying. Your doctor chooses an antibiotic based on which bacteria are most likely causing your pneumonia in your area, or based on test results if available. Common choices include amoxicillin, azithromycin, or fluoroquinolones like levofloxacin. If you have a penicillin allergy, tell your doctor — they have other options.
Take antibiotics exactly as prescribed: the right dose at the right intervals for the full number of days, even if you feel better after a few days. Stopping early allows bacteria to survive and multiply, which can lead to treatment failure or antibiotic resistance. If you have side effects — nausea, diarrhea, rash — contact your doctor rather than stopping on your own; they may switch you to a different antibiotic. Most people start feeling better within 48 to 72 hours of starting antibiotics, but the infection is not fully cleared until you finish the course.
Supportive care that speeds recovery
Rest is essential — your body needs energy to fight infection. Sleep as much as you can, and avoid strenuous activity until your doctor says it is safe. Drink plenty of fluids: water, warm tea, broth, or juice help loosen mucus and prevent dehydration. Avoid alcohol and smoking, both of which slow healing.
For fever and body aches, acetaminophen or ibuprofen work well. Use a humidifier or breathe steam from a hot shower to ease congestion and soothe your airways. For a cough, over-the-counter cough suppressants containing dextromethorphan can help you sleep, though some doctors prefer you cough to clear mucus — ask yours. Honey can soothe throat irritation. Avoid irritants like smoke, strong perfumes, and air pollution.
When hospitalization is necessary
You need hospital care if you have severe pneumonia — meaning low oxygen levels (below 92% on a pulse oximeter), rapid or labored breathing, confusion, or signs of sepsis like a very high fever with chills and low blood pressure. You also need hospitalization if you are over 65, have serious underlying conditions like heart failure or COPD, are immunocompromised, or cannot care for yourself at home.
In the hospital, you receive oxygen therapy if needed, intravenous antibiotics or fluids, and close monitoring of your vital signs and oxygen levels. Doctors can also manage complications like pleural effusion (fluid around the lungs) or respiratory failure. Most people hospitalized for pneumonia stay three to seven days, though severe cases take longer.
Complications and warning signs during recovery
Most people recover without complications, but watch for signs that something is wrong. Worsening shortness of breath, chest pain, coughing up blood, or a fever that returns after improving all warrant a call to your doctor or a trip to the emergency room. Confusion, extreme fatigue, or fainting also need immediate attention.
Rare complications include sepsis (infection spreading to the bloodstream), acute respiratory distress syndrome (ARDS), or pleural effusion. These are more likely in older adults, people with weakened immune systems, or those with serious underlying diseases. If you were hospitalized, your doctor will schedule a follow-up visit and possibly a repeat chest X-ray to confirm the pneumonia has cleared.
Recovery timeline and what to expect
In the first week of treatment, fever usually drops and you start feeling less acutely ill. By week two, most people can return to light activity. However, fatigue and a lingering cough are normal for weeks or even months after pneumonia, especially if it was severe. Do not rush back to full activity — pushing too hard can trigger a relapse or lead to secondary infections.
Ask your doctor when it is safe to return to work, exercise, or other normal activities. Many people feel ready before they actually are. If you are still short of breath, fatigued, or coughing heavily after four weeks, contact your doctor — sometimes pneumonia takes longer to clear or a secondary issue has developed. Smoking, air pollution, and respiratory infections can all slow recovery, so protect your lungs during healing.
Frequently Asked Questions
Can I treat pneumonia at home without antibiotics?
If your pneumonia is viral, antibiotics will not help anyway — your immune system clears it with rest and supportive care. But you still need a doctor to confirm it is viral and not bacterial. Bacterial pneumonia requires antibiotics; treating it with rest alone risks serious complications like sepsis or respiratory failure.
How long do I need to take antibiotics?
Most courses are five to seven days, though some are longer. Your doctor will tell you the exact number of days. Finish the entire course even if you feel better, because stopping early allows bacteria to survive and can lead to treatment failure or antibiotic resistance.
What if antibiotics are not working?
Contact your doctor if you are not improving after 48 to 72 hours of antibiotics, or if you get worse. They may switch you to a different antibiotic, order tests to identify the bacteria more precisely, or admit you to the hospital if your condition is deteriorating.
Is it normal to cough for weeks after pneumonia treatment?
Yes. A lingering cough for two to four weeks after pneumonia clears is common, especially if you smoke or have asthma. If the cough persists beyond four weeks, worsens, or is accompanied by fever or shortness of breath, contact your doctor to rule out complications or a secondary infection.
Can pneumonia come back?
You can get pneumonia again, but it is a new infection, not the same one returning. People with chronic lung disease, weakened immune systems, or who smoke are at higher risk for recurrent pneumonia. Vaccines against pneumococcal bacteria and influenza reduce your risk.