How pneumonia treatment works
Treatment for pneumonia depends on what caused it — bacterial, viral, or fungal — and how severe your infection is. A doctor diagnoses the type through a chest X-ray and sometimes a sputum culture (a sample of mucus from your lungs), then prescribes treatment based on that diagnosis. Bacterial pneumonia is treated with antibiotics. Viral pneumonia usually resolves on its own, though a doctor may prescribe antivirals in some cases. Fungal pneumonia requires antifungal medications and is less common.
Most people with pneumonia can be treated at home with rest, fluids, and medication. Hospital admission happens when oxygen levels drop, you have trouble breathing, you are over 65, have other serious health conditions, or cannot care for yourself at home. Severe cases may require oxygen therapy or, rarely, a ventilator to help you breathe.
Key Takeaways
- Bacterial pneumonia is treated with antibiotics prescribed by your doctor based on a chest X-ray or culture test.
- Viral pneumonia usually improves without antibiotics, but your doctor will monitor you to make sure your oxygen levels stay safe.
- Most pneumonia treatment happens at home with rest, fluids, and medication taken by mouth.
- Hospital care becomes necessary if your oxygen level drops below a certain threshold, you cannot breathe easily, or you have other serious health problems.
Antibiotics for bacterial pneumonia
If your doctor determines you have bacterial pneumonia, you will receive a prescription for an antibiotic. Common first-line antibiotics include amoxicillin-clavulanate, azithromycin, or fluoroquinolones like levofloxacin. Your doctor chooses based on the bacteria most likely causing your infection, your age, other medications you take, and any drug allergies.
Take the full course of antibiotics exactly as prescribed, even if you feel better after a few days. Stopping early allows bacteria to survive and can lead to relapse or antibiotic resistance. Most people start feeling better within 48 to 72 hours of starting antibiotics. If you do not feel better after three days, or if you feel worse, contact your doctor — you may need a different antibiotic or a hospital evaluation.
Managing symptoms at home
While your body fights the infection, rest is essential. Sleep helps your immune system work. Stay hydrated by drinking water, warm tea, or broth — fluids help loosen mucus so you can cough it up more easily. A humidifier or steam from a hot shower can also help with congestion.
Over-the-counter pain relievers like acetaminophen or ibuprofen can reduce fever and chest pain. Cough suppressants may help you sleep, but coughing is actually helpful because it clears mucus from your lungs — do not suppress it completely during the day. If you smoke, stop during treatment; smoking slows healing and increases the risk of complications.
When to go to the hospital
Seek immediate medical care if you have severe shortness of breath, chest pain that worsens, confusion, or lips or fingernails that turn blue or gray. These are signs your oxygen level is dangerously low. Also go to the hospital if you cough up blood, have a very high fever (above 103°F) that does not respond to medication, or feel faint or dizzy.
If you are being treated at home and develop any of these symptoms, call 911 or go to the nearest emergency room. Do not wait to see if it improves on its own. Hospital staff can measure your oxygen level with a pulse oximeter, give you oxygen if needed, and monitor you continuously.
Recovery and follow-up care
Most people recover from pneumonia within two to four weeks, though fatigue can linger for several weeks after that. Your doctor may schedule a follow-up chest X-ray four to six weeks after treatment starts to confirm the infection has cleared, especially if you are over 50 or have other health conditions.
During recovery, return to normal activities gradually. Start with light activity like short walks, then increase as your energy returns. If you still have a cough or shortness of breath after four weeks, contact your doctor. Lingering symptoms can sometimes indicate a complication or a different problem that needs attention.
Preventing pneumonia from coming back
After you recover, reduce your risk of future pneumonia by getting a pneumococcal vaccine if you have not had one. Your doctor can tell you which vaccines are right for your age and health status. Also get a flu shot each year, because the flu can lead to pneumonia.
Wash your hands regularly, avoid smoke and air pollution, and do not ignore respiratory infections like colds or bronchitis — treat them early so they do not progress to pneumonia. If you have a chronic condition like asthma, COPD, or heart disease, work with your doctor on a plan to manage it, because these conditions increase pneumonia risk.
Frequently Asked Questions
How long does it take for antibiotics to work?
Most people feel noticeably better within 48 to 72 hours of starting antibiotics. However, it can take one to two weeks for the infection to clear completely and for your chest X-ray to show improvement. Finish the full course even if you feel better.
Can pneumonia go away without antibiotics?
Viral pneumonia usually improves without antibiotics because antibiotics do not kill viruses. Your immune system clears the infection over one to three weeks. Bacterial pneumonia, however, almost always requires antibiotics — without them, it can worsen and become life-threatening.
What should I eat while recovering from pneumonia?
Eat nutritious foods that support your immune system: fruits, vegetables, lean proteins, and whole grains. Stay hydrated with water and warm liquids. If you have no appetite, small frequent meals are better than trying to eat large ones. Avoid alcohol while taking antibiotics.
Is pneumonia contagious?
Pneumonia itself is not contagious, but the virus or bacteria that caused it may be. If you have bacterial pneumonia, you are generally not contagious after 24 hours of antibiotics. Viral pneumonia can spread to others for several days. Wash your hands, cover your cough, and stay home until your doctor says it is safe to return to work or school.
What if I have a reaction to my antibiotic?
Contact your doctor immediately if you develop a rash, difficulty swallowing, severe nausea, or difficulty breathing after starting an antibiotic. These can be signs of an allergic reaction. Your doctor can switch you to a different antibiotic that is safe for you.