Mycoplasma pneumonia
A chest infection caused by Mycoplasma bacteria. It is often milder ('walking pneumonia') but can cause a lingering cough.
Mycoplasma pneumonia is a chest infection caused by Mycoplasma bacteria. It is a type of pneumonia, and a cough can linger afterwards.
What pneumonia feels like
Pneumonia is inflammation of the lungs, usually caused by an infection. You may have a cough, shortness of breath, a high temperature and chest pain. You may also have an aching body, tiredness and loss of appetite.
How it is treated
Bacterial pneumonia is usually treated with antibiotics. Finish the full course, even if you feel better. At home, rest, drink plenty of fluids and take paracetamol or ibuprofen if suitable for you. Avoid cough medicine, as coughing helps clear the infection, and do not smoke.
Most people feel better 2 to 4 weeks after starting treatment. Asthma + Lung UK says it can take up to 6 months or more to fully recover, and it varies from person to person.
When to get help
Get an urgent GP appointment or call NHS 111 if you have a cough, yellow or green phlegm, chest pain when breathing or coughing, or feel short of breath.
When to get urgent help
Call 999 or go to A&E if you have severe breathlessness, pale, blue or blotchy skin, lips or tongue, you cough up blood, or you suddenly feel confused. Do not drive yourself.
How I can help
If your cough lingers after a chest infection, I can arrange tests such as a chest X-ray, review your recovery and explain what the results mean.
Medically reviewed by Dr Sunil Patel, Consultant in Respiratory, General and Intensive Care Medicine. Last reviewed 19 October 2026.
Related terms
Pneumonia
An infection that inflames the air sacs in one or both lungs, which may fill with fluid. It causes cough, fever and breathlessness, and can be serious.
Bacteria
Tiny living organisms. Some cause infections such as pneumonia or whooping cough, which can be treated with antibiotics.
Antibiotics
Medicines that treat infections caused by bacteria. They do not work against viruses such as colds, flu or COVID-19.
Chest infection
An infection of the airways or lungs, such as bronchitis or pneumonia. Symptoms include cough, mucus, fever and breathlessness.
Lower respiratory tract infection (LRTI)
An infection of the airways below the voice box, such as bronchitis or pneumonia.
Post-viral cough
A cough that continues for weeks after a cold or other viral infection has cleared, because the airways are still sensitive.
Chronic cough
A cough that lasts longer than 8 weeks in adults.
Acute bronchitis
A short-term inflammation of the main airways, usually caused by a virus such as a cold or flu. It causes a cough, often with mucus, that usually settles within three weeks. Antibiotics are rarely needed.
Find out more
This information is for general guidance only and is not a substitute for medical advice. If you are worried about your symptoms, please speak to your GP or specialist. If you have severe breathlessness, chest pain, blue lips or are coughing up large amounts of blood, call 999 or go to A&E.