Get medical care as soon as symptoms appear
If you think you have pneumonia, see a doctor or go to an urgent care clinic or emergency room. Do not wait. Pneumonia can get worse quickly, and a doctor needs to confirm what you have before you treat it. Symptoms that warrant immediate attention include difficulty breathing, chest pain, confusion, or lips or fingernails turning blue.
When you arrive, tell the doctor or nurse about your symptoms: how long you have had a cough, whether you are coughing up mucus or blood, whether you have a fever, and whether you have shortness of breath. The doctor will listen to your lungs with a stethoscope and may order a chest X-ray or blood tests to confirm pneumonia and identify what is causing it—bacterial, viral, or fungal infection matter because treatment differs.
If you are very short of breath, have a high fever, are older than 65, or have other health conditions like heart disease or diabetes, you may need to be admitted to the hospital for monitoring and intravenous fluids or oxygen. If your case is mild to moderate, you can usually recover at home with treatment.
Key Takeaways
- See a doctor immediately if you have a persistent cough with mucus, fever, shortness of breath, or chest pain—do not assume it will clear on its own.
- The doctor will order a chest X-ray or blood test to confirm pneumonia and determine whether it is bacterial, viral, or fungal so treatment can be targeted.
- Bacterial pneumonia is treated with antibiotics; viral pneumonia usually requires supportive care like rest and fluids; fungal pneumonia requires antifungal medication.
- Recovery at home means taking all prescribed medication, staying hydrated, resting, and watching for warning signs like worsening shortness of breath or confusion.
- If you are hospitalized, ask your care team when you can go home and what to do after discharge, including when to return to work or normal activity.
Take antibiotics exactly as prescribed if you have bacterial pneumonia
If the doctor diagnoses bacterial pneumonia, you will receive a prescription for antibiotics. Take the full course even if you start feeling better after a few days. Stopping early allows bacteria to survive and can lead to relapse or antibiotic resistance. Most courses last 7 to 10 days, though some are longer.
Set a phone alarm or use a pill organizer to help you remember to take doses on time. If the antibiotic upsets your stomach, ask the doctor whether you can take it with food or if a different antibiotic might work better. Report any rash, severe nausea, or allergic reaction to the doctor right away.
Rest and stay hydrated while your body fights the infection
Pneumonia is exhausting. Your body is working hard to fight infection, so sleep as much as you can. Do not push yourself to return to work or exercise until you have recovered—doing so can prolong illness or cause complications.
Drink plenty of water, warm tea, broth, or other fluids to help loosen mucus in your lungs and prevent dehydration. A humidifier in your bedroom can also help ease coughing. Avoid alcohol and smoking, both of which slow recovery and can worsen lung damage.
Use over-the-counter pain relievers like acetaminophen or ibuprofen to manage fever and chest discomfort, following the label instructions. Do not use cough suppressants if you are coughing up mucus—coughing helps clear your lungs.
Know the warning signs that mean you need emergency care
Most people recover from pneumonia at home within 2 to 4 weeks, but some develop complications. Go to the emergency room or call 911 if you experience severe shortness of breath, confusion or difficulty staying awake, chest pain that does not improve with rest, coughing up blood, or lips or fingernails turning blue.
Also seek immediate care if your fever returns after improving, if you develop a new cough after recovering, or if you feel much worse suddenly. These can signal complications like a collapsed lung, fluid around the lungs, or sepsis.
Understand what happens if you are hospitalized
If pneumonia is severe, you will be admitted to the hospital for closer monitoring. You may receive oxygen through a mask or nasal tube to help you breathe, intravenous fluids to keep you hydrated, and antibiotics or other medications through an IV. A nurse will check your vital signs regularly and a doctor will examine you daily.
Hospital stays for pneumonia typically last 3 to 7 days, though it depends on your age, overall health, and how quickly you improve. Before you are discharged, ask the doctor for a written summary of your diagnosis, the medications you are taking, and any restrictions on activity. Ask when you can return to work and what symptoms should prompt you to call the doctor.
Plan your recovery after leaving the hospital or finishing home treatment
After pneumonia, fatigue can linger for weeks. Do not rush back to normal activity. Gradually increase what you do—start with short walks, then add more as you feel stronger. Most people can return to work or school within 1 to 2 weeks if their case was mild, but severe cases may take 4 to 6 weeks or longer.
Schedule a follow-up appointment with your doctor 4 to 6 weeks after diagnosis, especially if you are older, have chronic health conditions, or had severe pneumonia. The doctor may order another chest X-ray to confirm your lungs have cleared. If you smoke, this is a good time to talk with your doctor about quitting—smoking increases your risk of pneumonia and other lung disease.
If you have recurrent pneumonia or pneumonia that does not improve after treatment, ask your doctor about testing for underlying conditions like asthma, COPD, or immune system problems. Vaccines for pneumococcal bacteria and influenza can reduce your risk of future pneumonia.
Frequently Asked Questions
How long does pneumonia last?
Mild pneumonia usually improves within 1 to 3 weeks with treatment, though fatigue can last longer. Severe pneumonia may require hospitalization and can take 4 to 6 weeks or more to fully resolve. Recovery depends on your age, overall health, and how quickly you start treatment.
Can pneumonia go away on its own?
Viral pneumonia sometimes improves without antibiotics, but bacterial pneumonia requires treatment to prevent serious complications. Even with viral pneumonia, you should see a doctor to confirm what type you have and to monitor your recovery. Do not assume a cough will clear without medical evaluation.
What should I do if antibiotics are not working?
If you are not improving after 48 to 72 hours on antibiotics, contact your doctor. You may need a different antibiotic, a higher dose, or hospitalization. Sometimes pneumonia is caused by a virus or fungus, which requires different treatment than bacterial antibiotics.
Is it safe to exercise while recovering from pneumonia?
Rest is more important than exercise during acute pneumonia. Once you feel better, start with gentle activity like short walks and gradually increase as your energy returns. Avoid strenuous exercise or sports for at least 2 to 4 weeks after diagnosis, or until your doctor clears you.
When should I see a doctor after I recover?
Schedule a follow-up visit 4 to 6 weeks after your diagnosis so the doctor can confirm your lungs have healed. If you have ongoing shortness of breath, a persistent cough, or recurrent pneumonia, contact your doctor sooner. These can signal complications or underlying conditions that need attention.