A cough from walking pneumonia typically lasts four to six weeks total, but it can persist for months in some cases. The cough is usually the last symptom to resolve, lingering well after fatigue, sore throat, and fever have cleared. Most people feel better and return to normal routines within one to two weeks, yet the cough often hangs on stubbornly beyond that point.
The Typical Cough Timeline
Walking pneumonia, caused by the bacterium Mycoplasma pneumoniae, follows a slower arc than a standard cold or flu. The illness itself runs four to six weeks from start to finish, and the cough is the symptom that bookends that entire window. In the first week or two, you’ll likely deal with fever, headache, sore throat, and general fatigue alongside the cough. Those symptoms tend to fade relatively quickly, especially if you start antibiotics. The cough, though, operates on its own schedule.
For most people, the cough gradually improves over weeks three through six. It shifts from productive (bringing up some mucus) to a dry, nagging hack that shows up most noticeably at night or after physical exertion. Some people find their cough stretches beyond six weeks and into the range of two to three months. This is frustrating but not unusual. The cough at that stage is rarely a sign that the infection is still active. It’s a sign that your airways are still healing.
Why the Cough Lingers So Long
The bacterium behind walking pneumonia does something specific that explains the drawn-out cough. It attaches directly to the cells lining your airways, particularly the tiny hair-like structures called cilia that sweep mucus and debris out of your lungs. Once attached, the bacterium disrupts these cells’ ability to take in nutrients and produce proteins. The cells essentially starve, their internal structures break down, and the cilia stop functioning or fall off entirely.
This damage also involves oxidative stress, a process where harmful molecules injure the airway lining further. The result is a respiratory tract that’s been stripped of its normal cleaning mechanism. Even after the infection itself clears, your airways remain irritated and hypersensitive. Dust, cold air, exercise, or even a deep breath can trigger a coughing fit because the protective lining hasn’t regenerated yet. Regrowing cilia and restoring the airway surface takes weeks, which is why the cough outlasts every other symptom.
Are You Still Contagious?
This is a common concern, especially when you feel fine but can’t stop coughing in meetings or around family. Walking pneumonia has an unusually long contagious window. You can spread the bacterium for two to four weeks before symptoms even appear, and you remain contagious until symptoms fully resolve. That can add up to several weeks of potential transmission.
If you’re prescribed antibiotics, you become significantly less contagious within about 48 hours of starting them, provided your fever has also broken. The lingering dry cough in weeks four, five, and six is generally not a major transmission risk if you’ve completed a course of antibiotics, because the bacterium is no longer actively replicating. Still, good hygiene (covering coughs, hand washing) makes sense throughout recovery.
Managing the Cough During Recovery
There’s no magic fix for a post-walking-pneumonia cough, but a few strategies can reduce its intensity and frequency. Staying well hydrated helps thin any residual mucus in your airways, making it easier for your recovering cilia to do their job. Warm liquids like tea or broth can soothe irritated airways temporarily. Honey (for adults and children over one year) has modest evidence behind it as a cough suppressant, particularly for nighttime cough.
Breathing exercises can also help. Slow, controlled exhalations through pursed lips keep your airways open longer during each breath, reducing the irritation that triggers coughing. Some people benefit from a technique called active cycle breathing: alternating between relaxed breathing, deep breaths to expand the lungs, and gentle “huffing” exhales to move mucus upward without the violent force of a full cough. Sessions of about 20 minutes, two to three times a day, can help clear residual secretions.
Humid air from a cool-mist humidifier, especially in your bedroom at night, can also reduce the dryness that provokes coughing. Avoid irritants like cigarette smoke, strong cleaning products, and very cold air during recovery. If you exercise, expect the cough to flare up during and after workouts for several weeks. Scaling back intensity temporarily and warming up gradually can help.
Signs the Cough Needs Attention
A slowly improving cough, even one that takes two or three months to fully disappear, is generally part of normal recovery. But certain changes signal that something beyond routine healing is happening. New or worsening wheezing is one red flag, particularly if you’ve never had asthma. Mycoplasma pneumoniae infections can trigger new asthma symptoms or worsen existing asthma, sometimes as a lasting complication.
Difficulty breathing, a return of fever after it had resolved, or coughing up blood are all reasons to seek medical care promptly. In rare cases, walking pneumonia can lead to serious complications including severe pneumonia (a deeper lung infection than the original), kidney problems, or neurological issues like brain inflammation. These are uncommon, but they tend to show up as a clear worsening rather than a slow plateau. The key distinction: a cough that’s stable or gradually fading is healing. A cough that reverses course and gets worse, or brings new symptoms along with it, is not.
A Recent Spike in Cases
If it feels like walking pneumonia is everywhere lately, the numbers back that up. Hospitalizations for Mycoplasma pneumoniae among children surged in 2024, jumping from roughly 2 per 1,000 pediatric hospitalizations in prior years to 12.5 per 1,000. At its peak in July 2024, this bacterium accounted for over half of all childhood pneumonia hospitalizations. The infections affected younger children (under five) more than historically expected.
The reassuring finding: despite the sharp increase in cases, the infections were not more severe than in previous years. Hospital stays were actually slightly shorter in 2024 (a median of two days versus three), and fewer children required intensive care. The wave of cases means more families are dealing with that persistent post-infection cough right now, but the recovery trajectory remains the same. Four to six weeks for most, with outliers stretching to a few months.

