The cough from pneumonia typically lasts two to three weeks, but can persist for six weeks or longer in some people
A pneumonia cough usually starts to improve within the first week of treatment, but the cough itself often lingers well after you feel better. Most people stop coughing within two to three weeks. However, some people—especially older adults, smokers, or those with other lung conditions—may cough for six weeks or even longer. The timeline depends on how severe the infection was, which type of pneumonia you had, and how quickly treatment started.
The cough tends to change as you recover. Early on, it may be dry or produce clear mucus. As your lungs heal, the cough often becomes productive, meaning you cough up thicker, colored mucus or phlegm. This is actually a sign of improvement—your body is clearing out the infection. The cough gradually becomes less frequent and less intense over time, even if it doesn't disappear completely for several weeks.
Key Takeaways
- Most pneumonia coughs last two to three weeks, though some people cough for six weeks or longer depending on severity and age.
- A productive cough that brings up mucus is a normal part of recovery and usually means your lungs are clearing the infection.
- Coughing that worsens after improving, or that lasts more than eight weeks, warrants a call to your doctor to rule out complications.
- Staying hydrated, using a humidifier, and avoiding irritants like smoke can help ease the cough while your lungs heal.
- Antibiotics treat bacterial pneumonia but do not speed up how long the cough lasts—your immune system still needs time to repair lung tissue.
Why the cough lingers after the infection clears
The cough persists because pneumonia damages the lining of your airways and air sacs. Even after antibiotics kill the bacteria or your immune system defeats the virus, that tissue needs time to heal. The inflammation doesn't disappear overnight. Your airways remain irritated and sensitive, which triggers coughing as a reflex to clear mucus and debris.
The longer or more severe the pneumonia was, the longer the cough usually lasts. Someone who had mild pneumonia and started treatment early might cough for just two weeks. Someone who had severe pneumonia, delayed treatment, or underlying lung disease might cough for two months or more. Age also matters—older adults tend to have longer recovery times than younger people.
What changes as you recover
In the first few days of pneumonia, the cough is often dry because the infection is still acute and airways are swollen. As treatment takes effect and your body begins clearing the infection, the cough becomes productive—you start bringing up mucus, which may be yellow, green, or rust-colored. This is progress, not a sign things are getting worse.
Over the next one to two weeks, the amount of mucus usually decreases and the color lightens. The cough becomes less frequent and less intense. By week three, many people cough only occasionally, often triggered by talking, laughing, or lying down. Some people notice the cough is worse in the morning or at night, when mucus pools in the airways.
When a lingering cough needs medical attention
A cough that continues for two to three weeks after pneumonia is normal. But contact your doctor if the cough worsens after improving, if you develop new symptoms like chest pain or shortness of breath, or if you cough up blood. These can signal a complication such as a secondary infection, fluid around the lungs, or scarring.
Also call your doctor if the cough lasts longer than eight weeks without improvement, or if you have a weakened immune system (from HIV, chemotherapy, or immunosuppressant medications). In those cases, a prolonged cough might indicate a different infection or a complication that needs investigation. Your doctor may order a chest X-ray to see whether the lungs have fully cleared.
What helps ease the cough while healing
Staying hydrated helps thin mucus, making it easier to cough up. Drink water, warm tea, or broth throughout the day. A humidifier or steam from a hot shower can also help by adding moisture to the air, which reduces airway irritation. Some people find that sleeping with an extra pillow to elevate the head reduces nighttime coughing.
Avoid smoke, strong perfumes, and other irritants that can trigger coughing fits. If you smoke, quitting now will help your lungs heal faster. Over-the-counter cough suppressants can help at night if the cough is keeping you awake, but coughing up mucus during the day is actually helpful—it clears your airways. Talk to your doctor before using any cough medicine, especially if you have other health conditions.
The difference between bacterial and viral pneumonia cough duration
Bacterial pneumonia and viral pneumonia both produce lingering coughs, but the timeline can differ slightly. Bacterial pneumonia often responds quickly to antibiotics, and people may feel better within a few days. However, the cough still lasts weeks because antibiotics kill the bacteria but do not speed up how fast your lungs repair themselves. Viral pneumonia has no antibiotic treatment, so recovery depends entirely on your immune system, and the cough may last slightly longer on average.
In both cases, the cough is the last symptom to resolve. You may feel well enough to return to normal activities before the cough is completely gone. That is normal. However, avoid strenuous exercise until you have been cough-free for at least a week, because pushing your lungs too hard while they are still healing can trigger a relapse.
When to expect the cough to fully stop
For most people, the cough becomes mild and infrequent by week three to four. By week six, the majority of people are cough-free or coughing only rarely. If you are still coughing regularly after eight weeks, or if the cough is getting worse instead of better, that warrants a follow-up with your doctor.
Keep in mind that some people experience a dry, ticklish cough for weeks after the main infection has cleared. This is post-viral or post-bacterial cough, and it is caused by lingering airway sensitivity rather than active infection. It usually resolves on its own but can be frustrating. Your doctor can help determine whether the cough is simply residual irritation or a sign of something else.
Frequently Asked Questions
Can I catch pneumonia again if I still have a cough?
No. A lingering cough does not mean you are still contagious or at risk of reinfection. Once your immune system has fought off the infection, you have some immunity to that specific strain. The cough is just your lungs healing. You can return to work or school once you have been fever-free for 24 hours without fever-reducing medication, even if you still cough.
Is it normal to cough up blood after pneumonia?
Coughing up small amounts of blood-tinged mucus can happen during severe pneumonia or in the early recovery phase, but it should stop within a few days of treatment. If you are still coughing up blood after a week of treatment, or if the amount increases, contact your doctor. This can indicate a complication that needs evaluation.
Why does my cough get worse at night?
Mucus pools in your airways when you lie down, which triggers coughing. Elevating your head with extra pillows helps gravity drain mucus and may reduce nighttime coughing. Staying hydrated during the day also helps thin mucus so it is easier to clear. If nighttime coughing is severe, ask your doctor whether a cough suppressant before bed is appropriate for you.
Should I use cough medicine to stop the cough faster?
Cough suppressants can help you sleep, but they do not speed up recovery. In fact, suppressing a productive cough during the day can trap mucus in your lungs, which may slow healing. Use cough suppressants only at night if needed, and only after talking to your doctor. Expectorants, which help thin mucus, are generally safer during the day.
Is a cough that lasts three months after pneumonia normal?
A cough lasting three months is unusual and warrants evaluation. While some people do experience prolonged coughs, this timeframe suggests either a complication, a secondary infection, or a different condition altogether. Contact your doctor for an examination and possibly a chest X-ray to determine what is causing the persistent cough.