The main treatments for pneumonia
Treatment for pneumonia depends on what caused it — bacterial, viral, or fungal — and how severe it is. Bacterial pneumonia is treated with antibiotics, which kill the bacteria causing the infection. Viral pneumonia usually runs its course on its own, though your doctor may prescribe antivirals in some cases. The goal of treatment is to help your body fight the infection while managing symptoms like fever, cough, and difficulty breathing.
Most people with pneumonia recover at home with rest, fluids, and over-the-counter fever or pain relievers. Others need hospital care, especially if they have trouble breathing, low oxygen levels, or other serious health conditions. Your doctor will decide where you should be treated based on how sick you are and your medical history.
Key Takeaways
- Bacterial pneumonia is treated with antibiotics prescribed by your doctor, and you must take the full course even if you feel better.
- Viral pneumonia usually improves on its own with rest and fluids, though some cases may need antiviral medication or hospital care.
- Most people recover at home, but your doctor may recommend hospital treatment if you have low oxygen levels, severe breathing trouble, or serious underlying health conditions.
- Oxygen therapy, intravenous fluids, and breathing support are available in hospitals for people who need them.
- Recovery takes weeks to months depending on the type of pneumonia and your overall health.
Antibiotics for bacterial pneumonia
If your doctor determines you have bacterial pneumonia, they will prescribe an antibiotic. Common choices include amoxicillin, azithromycin, or fluoroquinolones like levofloxacin. Your doctor picks the antibiotic based on which bacteria is most likely causing your infection, your age, and any other medications you take.
It is critical to take the full course of antibiotics even if you start feeling better after a few days. Stopping early can allow the bacteria to survive and multiply, making the infection worse or harder to treat later. Most courses last 7 to 14 days. If you do not feel better within a few days of starting antibiotics, or if you feel worse, contact your doctor — you may need a different antibiotic or further testing.
Managing viral pneumonia at home
Viral pneumonia cannot be treated with antibiotics because antibiotics only work against bacteria. Instead, treatment focuses on letting your immune system fight the virus while you rest and stay hydrated. Drink plenty of water, warm tea, or broth. Use a humidifier or breathe steam from a hot shower to ease congestion and coughing.
Over-the-counter pain relievers like acetaminophen or ibuprofen can lower fever and ease body aches. Cough suppressants or expectorants may help you sleep better, though coughing is your body's way of clearing mucus from your lungs. Most viral pneumonia improves within one to three weeks. If your symptoms worsen or you develop severe shortness of breath, seek medical care right away.
When you need hospital treatment
Your doctor may recommend hospital care if your oxygen level is too low, you are having severe difficulty breathing, you are coughing up blood, or you have chest pain. People over 65, those with heart disease or diabetes, and anyone with a weakened immune system are more likely to need hospital care even with milder symptoms.
In the hospital, you will receive oxygen through a mask or nasal tube to keep your blood oxygen level safe. Doctors may give you intravenous fluids if you cannot drink enough on your own, and antibiotics through an IV if you cannot swallow pills. If your breathing becomes very difficult, you may need a ventilator — a machine that helps you breathe. Hospital stays for pneumonia typically last three to seven days, though some people need longer.
Oxygen therapy and breathing support
Oxygen therapy is one of the most important treatments in the hospital. A pulse oximeter — a small clip on your finger — measures how much oxygen is in your blood. If the level drops below 90 percent, your doctor will start oxygen. You breathe it through a nasal cannula (two small tubes in your nose) or a face mask.
In severe cases, a ventilator takes over the work of breathing. A tube is placed in your windpipe, and the machine pushes air in and out of your lungs. This is used only when your own breathing is not strong enough to keep you alive. Most people who need a ventilator for pneumonia are taken off it within days to weeks as their lungs heal.
Recovery and what to expect
Recovery from pneumonia is not always quick. Even after you go home or leave the hospital, you may feel tired for weeks. Your cough may linger for a month or longer. This is normal — your lungs are healing. Gradually increase your activity as you feel stronger, but do not rush back to work or exercise.
Some people develop complications like a collapsed lung, fluid around the lungs, or sepsis (a life-threatening blood infection). These are more common in older adults and people with other serious health conditions. Your doctor will watch for signs of complications during follow-up visits. Most people recover fully, though it may take two to three months to feel completely back to normal.
Preventing pneumonia from coming back
After you recover, you can lower your risk of getting pneumonia again. The pneumococcal vaccine protects against the most common bacterial cause of pneumonia and is recommended for adults 65 and older and for younger people with certain health conditions. The flu vaccine also helps because the flu can lead to pneumonia. Ask your doctor which vaccines are right for you.
Wash your hands regularly, avoid smoke and air pollution, and do not smoke yourself — smoking damages your lungs and makes them more vulnerable to infection. If you have a chronic lung disease like asthma or COPD, follow your treatment plan closely. These steps reduce your chances of pneumonia returning.
Frequently Asked Questions
How long does it take for antibiotics to work?
Most people start feeling better within 48 to 72 hours of beginning antibiotics. Your fever usually drops and you may cough less. However, you should take the full course as prescribed, even if you feel much better after a few days. Stopping early can cause the infection to return.
Can I go back to work while I still have a cough?
A lingering cough does not mean you are still contagious or unable to work, especially if you have been on antibiotics for at least 24 hours and your fever is gone. However, if you are still very tired or short of breath, rest a few more days. Talk to your doctor about when it is safe to return to your normal routine.
What should I do if my symptoms get worse after starting treatment?
Contact your doctor right away. Worsening symptoms can mean the antibiotic is not working, you have a different type of pneumonia, or a complication has developed. Your doctor may order a chest X-ray or switch you to a different antibiotic. Do not wait — seek care the same day if possible.
Is pneumonia contagious after I start treatment?
Bacterial pneumonia becomes much less contagious after you have been on antibiotics for 24 hours. Viral pneumonia is contagious for as long as you have symptoms, usually one to two weeks. Wear a mask around others, cover your cough, and wash your hands frequently to reduce spread.
Can pneumonia turn into something more serious?
Yes, though it is uncommon with treatment. Complications include fluid or pus around the lungs, a collapsed lung, or sepsis. Older adults and people with heart disease, diabetes, or weakened immunity are at higher risk. Your doctor will monitor you for signs of complications during and after treatment.