You are contagious while you have a fever and are coughing up mucus, which usually means the first week of illness
The period when you can spread pneumonia to someone else depends on what caused it and whether you are on treatment. Bacterial pneumonia — the most common kind — becomes much less contagious within 24 to 48 hours after you start antibiotics. Viral pneumonia can remain contagious for a week or longer, even after you start feeling better. The safest rule is to assume you are contagious as long as you have a fever or are coughing up mucus or phlegm.
Contagiousness is not the same as recovery. You may stop spreading the infection before your cough goes away, and you may still feel weak long after you are no longer contagious. Knowing the difference matters because it affects when you can safely return to work, school, or be around vulnerable people like infants or those with weakened immune systems.
Key Takeaways
- Bacterial pneumonia stops being contagious about 24 to 48 hours after you start antibiotics, even if you still feel sick.
- Viral pneumonia can spread for a week or more, and antibiotics do not shorten that period because they do not treat viruses.
- You are most contagious when you have a fever and are coughing, which is usually the first three to seven days of illness.
- A lingering cough after pneumonia does not mean you are still spreading infection — most people stop being contagious before the cough clears.
- People over 65, infants, and those with chronic illness or weakened immunity should avoid contact with you until your fever is gone for at least 24 hours without fever-reducing medicine.
How bacterial pneumonia spreads and when it stops
Bacterial pneumonia spreads through respiratory droplets — the tiny particles you release when you cough, sneeze, or talk. Someone has to be close enough to breathe those droplets in, usually within about six feet. Once you start antibiotics, the bacteria in your lungs begin dying, and within a day or two you shed far fewer droplets. This is why people with bacterial pneumonia are usually no longer contagious after 24 to 48 hours of antibiotic treatment.
The catch is that you may not feel better yet. Your fever might still be high, your cough might be just as bad, and your energy might be completely gone. But from a contagion standpoint, you are already much safer to be around. This is why some workplaces and schools allow people to return after 24 hours fever-free on antibiotics, even though they are still recovering.
If you have not started antibiotics, assume you are contagious for the first week or until your fever has been gone for 24 hours without fever-reducing medicine, whichever is longer. Delaying antibiotics does not change how long pneumonia lasts overall — it just means you stay contagious longer and feel worse longer.
Viral pneumonia and why antibiotics do not change contagiousness
Viral pneumonia is caused by a virus, not bacteria, so antibiotics do not kill it and do not shorten how long you spread it. You remain contagious for roughly seven to ten days from when symptoms start, though some viruses — like influenza — can be contagious for longer. The virus has to run its course, which means your body's immune system has to clear it on its own.
Antiviral medications exist for some viruses (like flu), and they can shorten how long you are sick overall, but they do not dramatically cut the contagious period. If you have viral pneumonia and a doctor prescribes antibiotics anyway, that is usually because they are treating a secondary bacterial infection that developed on top of the viral one, not because antibiotics will help the original viral infection.
You are most contagious with viral pneumonia during the first three to five days when your symptoms are worst. After that, you shed fewer viral particles even though you may still cough and feel unwell for weeks.
When you can be around other people again
The standard guideline for returning to normal contact is: fever-free for 24 hours without using fever-reducing medicine like acetaminophen or ibuprofen. This applies to both bacterial and viral pneumonia. If you take fever reducer and your temperature drops, that does not count — you need 24 hours where your actual body temperature stays below 100.4°F on its own.
For people at high risk — infants under three months, adults over 65, people with heart disease or chronic lung disease, or anyone with a weakened immune system — you should wait longer. Aim for at least 48 hours fever-free without medicine, and consider wearing a mask around them for a few days after that if you still have a cough. These groups can develop severe complications from pneumonia, so the extra caution matters.
A cough that lingers for weeks after pneumonia does not make you contagious. Once your fever is gone and you have been on antibiotics (if bacterial) for 24 to 48 hours, you are not spreading infection anymore, even if you sound terrible. The cough is your lungs healing and clearing out inflammation and fluid.
What to do if you live with someone at high risk
If you have pneumonia and share a home with an infant, an older adult, or someone with a chronic illness, take extra steps. Sleep in a separate room if possible, especially during the first week. Wash your hands before touching shared surfaces, and cover your mouth when you cough. If you have bacterial pneumonia and start antibiotics, you can relax these precautions after 48 hours. If you have viral pneumonia, keep them up for about a week.
Masks help reduce spread, especially in the first few days when you are coughing the most. A surgical mask or N95 worn by the sick person is more effective than one worn by the well person, though both help. If the person at high risk wears a mask around you, that also reduces their risk.
Tell the people you live with that you have pneumonia so they can watch for symptoms in themselves. If they develop fever, cough, or shortness of breath within two weeks, they should contact their doctor and mention the exposure.
Signs you are still contagious and should stay home
Stay home if you have a fever, even a low one. Stay home if you are coughing up mucus or phlegm, especially if it is discolored (yellow, green, or brown). Stay home if you are short of breath or having chest pain — these are signs your pneumonia is still active and you should not be around others anyway.
If you have been on antibiotics for less than 24 hours, stay home. If you have viral pneumonia and it has been less than five days since symptoms started, stay home. If you are not sure whether you are contagious, assume you are until you have been fever-free for a full 24 hours without fever-reducing medicine.
Frequently Asked Questions
Can I spread pneumonia if I do not have a fever anymore but still have a cough?
Probably not. Once your fever is gone for 24 hours without medicine, you are no longer shedding enough virus or bacteria to infect others, even if your cough persists. A lingering cough is normal for weeks after pneumonia and does not mean you are contagious. The exception is if you develop a new fever — that suggests a complication or a second infection.
How long after starting antibiotics can I go back to work?
Most workplaces and schools allow return after 24 hours fever-free on antibiotics. Some require 48 hours. Check your workplace policy. Even if you are cleared to return, consider whether you feel well enough to work — pneumonia is exhausting, and returning too soon can slow your recovery or lead to a relapse.
Is pneumonia contagious if I am not coughing?
If you have pneumonia but are not coughing, you are shedding far fewer respiratory droplets, so contagion risk is lower. However, if you have a fever or are coughing even occasionally, assume you are still contagious. Some people with pneumonia have minimal cough but still spread infection through breathing and talking.
Can I catch pneumonia twice from the same person?
No. Once you have had pneumonia caused by a specific organism, your immune system recognizes it and protects you from that same strain. You can catch pneumonia from a different organism, but not the same one from the same person during the same outbreak.
What if I have pneumonia and my symptoms are getting worse after a week?
Contact your doctor. Worsening symptoms after a week can mean the antibiotic is not working, you have a resistant strain, or a complication has developed. This is a medical concern, not just a contagion question, and you should be evaluated. In the meantime, assume you are still contagious and take precautions around others.