Health Library
We have a vast digital library of medical information, including wellness and psychiatry topics as well as general medical topics. For more information or to schedule an appointment, don’t hesitate to call us.
Our Health Library information does not replace the advice of a doctor. Please be advised that this information is made available to assist our patients to learn more about their health. Our providers may not see and/or treat all topics found herein. Pneumonia is a lung infection that can make you very sick. You may cough, have a fever, and have trouble breathing. It can usually be treated at home. But some people, like older adults and babies, may need to go to the hospital. It may take a few weeks or longer to recover fully. Germs called bacteria or viruses usually cause pneumonia. Pneumonia usually starts when you breathe the germs into your lungs. You may be more likely to get it after having a cold or the flu. Having a chronic disease like asthma, COPD, heart disease, cancer, or diabetes also makes you more likely to get pneumonia. Symptoms of pneumonia may include a cough, a fever, shortness of breath, or the chills. You may feel very tired or very weak. You may cough up yellow, green, dark brown, or bloody mucus. Or you may have chest pain that often feels worse when you cough or breathe in. Your doctor will ask you about your symptoms and do a physical exam. Your doctor may order a chest X-ray and blood tests. This is usually enough for your doctor to know if you have pneumonia. You may need more tests if your symptoms are bad or you have other health problems. Pneumonia that is caused by bacteria is treated with antibiotics. Rest, fluids, and medicines to reduce fever can help you feel better. If your symptoms are bad or you have a weak immune system, you may need hospital care. If pneumonia is caused by a virus, antibiotics don't help. Germs called bacteria or viruses usually cause pneumonia. You may get pneumonia: A healthy person's nose and throat often contain bacteria or viruses that cause pneumonia. Pneumonia can develop when these organisms spread to your lungs at times when your lungs are more likely to be infected. For example, this can happen during or soon after you have a cold. Or it can happen if you have a long-term (chronic) illness, like COPD, asthma, heart disease, cancer, or diabetes. You are more likely to get pneumonia if you: You are more likely to have problems from pneumonia and need to go to the hospital if you: To help prevent pneumonia, stay up to date on pneumococcal, flu, and COVID-19 vaccines. Wash your hands often to prevent spreading viruses and bacteria that may cause pneumonia. Taking care of your teeth and gums may help reduce any harmful bacteria from being inhaled into the lungs and may prevent some types of pneumonia. Symptoms of pneumonia may include: Older adults may have different, fewer, or milder symptoms. They may not have a fever. Or they may have a cough but not bring up mucus. The main sign of pneumonia in older adults may be a change in how well they think (confusion or delirium). Or, if they already have a lung disease, that disease may get worse. Pneumonia symptoms caused by a virus are the same as those caused by bacteria. After you've been infected with pneumonia, symptoms usually develop within a few days to over a week. The infection can grow in the lungs and cause shortness of breath, cough, and fever. How severe pneumonia is and how long it lasts depends on many factors. These include your age, the type of pneumonia (bacterial or viral), and your overall health. In healthy people, pneumonia can be a mild illness that can be treated at home. It may take a few weeks to recover fully. In older adults and in people with other health problems, recovery may take a few months. If you have severe pneumonia, you may have to go to the hospital. Call 911 or other emergency services immediately if you: Contact a doctor now if you: Contact a doctor if your cough: Also call your doctor if you have new chest pain (more than just discomfort when you cough) that gets worse with deep breathing. Watchful waiting is a wait-and-see approach. If you get better on your own, you won't need treatment. If you get worse, you and your doctor will decide what to do next. Home treatment may be okay if: Your doctor will ask you about your symptoms and do a physical exam. They may order a chest X-ray and a blood test called a complete blood count (CBC). This is usually enough for your doctor to know if you have pneumonia. You may need more tests if your symptoms are bad, you are an older adult, or you have other health problems. In general, the sicker you are, the more tests you may need. Your doctor may also test mucus from your lungs to find out if bacteria or a virus is causing your pneumonia. Finding out what is causing your pneumonia can help your doctor choose the best treatment for you. If pneumonia is caused by bacteria, your doctor will give you antibiotics. They almost always cure pneumonia caused by bacteria. Be sure to take the antibiotics exactly as instructed. Don't stop taking them just because you feel better. You need to take the full course of antibiotics. If pneumonia is caused by a virus, antibiotics don't help. Sometimes antiviral medicine may be used. There are things you can do to feel better during your treatment. Get plenty of rest and sleep, and drink lots of fluids. Taking medicine to treat a fever can also help. Don't smoke or vape or be exposed to secondhand smoke. If your cough keeps you awake at night, talk to your doctor about using cough medicine. You may need to go to the hospital if your symptoms are bad, you have a weak immune system, or you have another serious health condition. In some cases, you may need oxygen or medicines you breathe using an inhaler or nebulizer to help shortness of breath and wheezing. Home treatment can help you recover from pneumonia. Here are some things you can do to help you recover and avoid problems: Your doctor may want to see you after a week of treatment to make sure you are getting better. If your pneumonia is caused by a virus or bacteria, you may spread the infection to other people while you are contagious. When you cough or sneeze, pneumonia is spread to others through infected droplets. How long you are contagious depends on what is causing the pneumonia and whether you get treatment. You may be contagious for several days to a week. If you get antibiotics, you usually can't spread the infection to others after a day of treatment. Current as of: February 27, 2026 Author: Ignite Healthwise, LLC Staff Current as of: February 27, 2026 Author: Ignite Healthwise, LLC Staff Clinical Review Board This information does not replace the advice of a doctor. Ignite Healthwise, LLC disclaims any warranty or liability for your use of this information. Your use of this information means that you agree to the Terms of Use and Privacy Policy. Learn how we develop our content. To learn more about Ignite Healthwise, LLC, visit webmdignite.com. © 2024-2026 Ignite Healthwise, LLC.Pneumonia
What is pneumonia?
What causes it?
What are the symptoms?
How is it diagnosed?
How is pneumonia treated?
Cause
What Increases Your Risk
Prevention
Symptoms
What Happens
When to Call a Doctor
Watchful waiting
Exams and Tests
Treatment Overview
Self-Care
Avoid infecting others
Related Information
Credits
Clinical Review Board
All Ignite Healthwise, LLC education is reviewed by a team that includes physicians, nurses, advanced practitioners, registered dieticians, and other healthcare professionals.
All Ignite Healthwise, LLC education is reviewed by a team that includes physicians, nurses, advanced practitioners, registered dieticians, and other healthcare professionals.

