Walking pneumonia typically lasts two to three weeks, though a lingering cough can persist for a month or longer

Walking pneumonia—caused most often by the bacterium Mycoplasma pneumoniae—usually clears within two to three weeks once you start treatment with antibiotics. The infection itself responds relatively quickly: most people feel noticeably better within three to five days of starting the right antibiotic. However, the cough that defines walking pneumonia is stubborn. Even after the infection has cleared and you return to normal activity, you may cough for four to six weeks, sometimes longer.

The timeline varies based on how quickly you start treatment, which antibiotic your doctor prescribes, and how your immune system responds. People who delay seeking care or who have underlying lung conditions may take longer to recover. Age matters too—older adults and very young children tend to have slower recoveries than healthy adults in their 20s and 30s.

Key Takeaways

  • Antibiotics typically reduce symptoms within three to five days, but the infection itself takes two to three weeks to fully clear.
  • A dry cough often persists for four to six weeks after the infection is gone, even though you are no longer contagious.
  • Completing your full course of antibiotics—even if you feel better—prevents the infection from returning and reduces the risk of antibiotic resistance.
  • Most people can return to light activity within one to two weeks, but strenuous exercise should wait until the cough improves significantly.

Why the cough lasts longer than the infection

Walking pneumonia damages the lining of your airways. Even after the bacteria die and your immune system clears the infection, that damaged tissue needs time to heal. The cough is your body's way of clearing mucus and irritation from the healing airways—it is a sign of recovery, not ongoing infection.

This is why you stop being contagious long before the cough stops. Once you have been on antibiotics for 24 to 48 hours, you are unlikely to spread the infection to others, even though you may still be coughing. The cough itself is not contagious; the bacteria are gone.

When to expect improvement at each stage

Days 1 to 5: After starting antibiotics, fever usually drops within 24 to 48 hours. Fatigue and body aches improve noticeably by day three or four. You will likely feel well enough to move around the house and handle light tasks.

Weeks 2 to 3: The cough begins to loosen and become productive (bringing up mucus rather than staying dry). You can usually return to work or school by the end of week two, though you may still tire easily. Appetite returns and energy improves steadily.

Weeks 4 to 6: The cough gradually decreases in frequency and intensity. Some days it barely bothers you; other days it flares up, especially when you lie down or talk for long periods. This is normal and does not mean the infection is returning.

Beyond six weeks: A small percentage of people cough for two months or longer. This is more common in smokers, people with asthma, and older adults. If your cough is still severe after eight weeks, mention it to your doctor to rule out other causes.

Factors that slow recovery

Starting antibiotics late extends your recovery. If you wait a week or more after symptoms begin before seeing a doctor, the infection has more time to damage your airways, and healing takes longer. People who initially receive the wrong antibiotic—or who are allergic to the first choice and must switch—also experience delayed improvement.

Smoking, asthma, chronic bronchitis, and other lung conditions all slow recovery. Older adults and very young children (under five) tend to cough longer than healthy adults. Continuing strenuous exercise while still symptomatic can also delay healing by irritating your airways further.

What to do while you wait for the cough to clear

Finish your entire course of antibiotics even if you feel better after a few days. Stopping early allows the infection to return and increases the risk that the bacteria will develop resistance to that antibiotic. Most walking pneumonia prescriptions are 7 to 14 days; take every dose.

For the lingering cough, over-the-counter cough suppressants containing dextromethorphan (DM) can help you sleep at night. Honey is also effective for cough relief and is safe for most adults and children over one year old. Stay hydrated—drinking water helps loosen mucus and makes coughing less irritating.

Return to exercise gradually. Light walking is usually fine by week two, but avoid running, intense gym workouts, or sports until the cough improves significantly. Pushing too hard too soon can trigger coughing fits and delay healing.

When a lingering cough means something else

Most coughs after walking pneumonia resolve on their own within six weeks. However, contact your doctor if the cough worsens after improving, if you develop a fever again, if you cough up blood, or if you experience chest pain. These can signal a complication or a different infection.

A cough that persists beyond eight weeks, especially if it is getting worse rather than better, warrants a follow-up visit. Your doctor may order a chest X-ray to confirm the infection has cleared and to rule out other causes like asthma, acid reflux, or a secondary bacterial infection.

Frequently Asked Questions

Can I go back to work while I still have a cough?

Yes, once you have been on antibiotics for 24 to 48 hours. You are no longer contagious at that point. If your cough is severe enough that it disrupts others or exhausts you, waiting another few days makes sense, but the cough itself does not make you a transmission risk.

What if my symptoms get worse after I start antibiotics?

Mild worsening in the first 24 hours is not unusual as your immune system ramps up. However, if you develop a high fever, severe chest pain, or shortness of breath after starting treatment, contact your doctor. This could indicate a different infection or a complication.

Is it normal to still cough after four weeks?

Yes. A cough lasting four to six weeks is typical for walking pneumonia. It does not mean the infection is still active or that you need more antibiotics. If the cough is improving—becoming less frequent or less intense—that is a sign of normal healing.

Can walking pneumonia come back?

Reinfection is possible but uncommon. Finishing your full antibiotic course greatly reduces the risk. If you develop pneumonia symptoms again weeks or months later, it is usually a new infection rather than the same one returning.

How do I know when I can exercise again?

A good rule: if you can talk while walking without triggering a coughing fit, light exercise is probably safe. Wait until the cough is mild and infrequent before returning to running or intense workouts. Most people can resume normal exercise by week three or four.