Coughing Up Phlegm? Here's What to Know (2025)

Coughing up mucus is often a sign of a respiratory infection, allergies, gastroesophageal reflux disease (GERD), or an environmental irritant like smoke or pollution. In some instances, it can be related to a more serious medical condition, including cancer.

Phlegm, the mucus that comes from your respiratory system (also known assputum) is released when you have aproductive cough. The mucus will usually clear on its own as you get over an infection. If you have phlegm and no signs of illness, you should see your healthcare provider for a diagnosis.

Coughing Up Phlegm? Here's What to Know (1)

Causes

Mucus is a normal part of the respiratory system. It plays an important role in lubricating the airways and defending us against irritants and pathogens.

However, inflammation from various causes results in an increase in mucus production and a thicker consistency. This results in the familiar symptoms of runny nose, congestion, and coughing up phlegm.

Respiratory infections, including COVID-19, are a common cause of inflammation resulting in a productive cough. A dry cough is one of the most common coronavirus symptoms, but coughing up phlegm can also be a symptom of COVID-19.

Bronchitis and pneumonia are two types of infections that typically lead to a productive cough. With bronchitis, the branches of the airways become inflamed and produce thicker mucus. In pneumonia, the lung tissue is infected.

Cough and Other Infection Symptoms

Respiratory infections can be due to viruses or bacteria. The cough is typically accompanied by other symptoms, like fever, chills, sore throat, muscle aches, fatigue, and a general ill feeling. Talk to your healthcare provider if you experience these symptoms with a cough.

Causes Unrelated to Infection

While infection is a common cause, there are several noninfectious causes of phlegm production, including:

  • Allergies: People with allergies often develop postnasal drip (excess mucus leaks down the throat), which can cause them to cough up phlegm.
  • GERD: Stomach acid may irritate the throat and voice box, causing a cough with phlegm.
  • Cystic fibrosis: An inherited lung condition in which mucus is thick and sticky and clogs airways, it causes a chronic cough with mucus.
  • Lung diseases, such as asthma, chronic obstructive lung disease (COPD), and bronchiectasis: Mucus builds up in the lungs and triggers a cough as the body tries to expel the mucus.
  • Heart failure: Fluid builds up in the lungs and airways (pulmonary edema), which leads to chronic coughing and mucus.

Some environmental and lifestyle factors can also increase phlegm, such as:

  • Smoking: It causes the body to produce thicker mucus and increases the amount of mucus in the airways.
  • Relative humidity: Moist, humid air increases allergy symptoms, including increased mucus production.
  • Dehydration: One of the body's responses to dehydration is to concentrate and thicken mucus.
  • Exposure to air pollution: The body increases mucus production to help expel pollutants when coughing.
  • Alcohol use: Because alcohol acts as a diuretic, it can dehydrate the body, which increases mucus production to help counter dryness.

Is Coughing Up Mucus Good for Your Lungs?

It's important to keep your airways clear and coughing up mucus is one way the body responds to respiratory congestion. Coughing up mucus helps you clear infections and get rid of irritants and allergens from your body. With certain diseases like cystic fibrosis, coughing up mucus is necessary and treatments promote it.

An occasional cough with an illness is a healthy way to eliminate mucus. However, the American Lung Association notes if you are coughing up mucus for more than a few weeks, it should be assessed by your healthcare provider.

Is Mucus a Sign of Lung Cancer?

Mucus production occurs with certain types of lung cancer. It is a main symptom of invasive mucinous adenocarcinoma (IMA), a less common subtype of lung cancer.

Coughing up mucus, sometimes tinged with blood, can be a sign of other types of lung cancer, but most people also have related symptoms, such as:

  • A hoarse voice
  • Constant chest pain
  • Shortness of breath
  • Unexplained weight loss

A productive cough can also be a sign of other cancers, such as thymus cancer affecting a gland in your chest. Thymus tumors are often seen in people diagnosed with myasthenia gravis and other autoimmune disorders.

Coughing also is a symptom of pleural mesothelioma, a cancer of the chest cavity lining often associated with asbestos exposure.

What Does the Color of Phlegm Mean?

While diagnosing the cause of a productive cough does not rely on phlegm color, it can suggest certain causes. Normally, mucus is clear, but phlegm can come in a range of colors that may point to the underlying cause:

  • Clear or white phlegm may be seen with allergies, viral infection, underlying lung disease, GERD, and heart failure.
  • Green phlegm may be seen with a bacterial infection.
  • Pink phlegm suggests fluid in the lungs, known as pulmonary edema, such as in heart failure.
  • Red phlegm indicates the presence of blood and may be seen with lung cancer or pulmonary embolism.
  • Black phlegm can occur with pollutant exposure, such as from cigarette smoke or air pollution, smoke from fire, or fungal infection.

Treatment

Treating a productive cough depends on the underlying cause. Medications and supportive care at home can help treat a productive cough.

Medications: Treating the underlying cause of a productive cough may include OTC or prescription medications, such as:

  • Antibiotics for cough due to bacterial infection, like bacterial pneumonia
  • Allergy medications
  • Inhalers and corticosteroids for asthma or COPD flares
  • Diuretics if cough is due to heart failure
  • Proton pump inhibitors (PPI) and other medications to treat GERD
  • Cough medications which include expectorants and mucolytics (discussed below), and cough suppressants

The Issue With Antibiotics

A productive cough may not need antibiotics, since most infectious causes of cough are due to viruses, but antibiotics can treat a bacterial infection. Antibiotics should be used sparingly because they can have significant side effects and overuse contributes to antibiotic resistance.

Home Remedies: Supportive treatment for productive cough includes the following measures to encourage getting rid of phlegm and underlying irritants:

  • Drink plenty of fluids
  • Use a humidifier
  • Take a hot shower
  • Try a teaspoon of honey
  • Gargle with salt water to loosen phlegm
  • Use over-the-counter (OTC) expectorants and mucolytics like Mucinex (guaifenesin)

When to See a Healthcare Provider

If your cough doesn't improve after 10 to 14 days, you should discuss your symptoms with your healthcare provider. Other concerning symptoms should be reported to your healthcare provider for further investigation, such as:

  • Difficulty breathing
  • Fever, especially if lasting more than four days
  • Weight loss
  • Coughing up mucus that isn't clear
  • Coughing up blood
  • Signs of heart failure, such as swollen legs and difficulty breathing when lying flat

Summary

Phlegm is a thick mucus arising in the lower airways in response to lung inflammation or injury. Infection is a common cause, but other conditions like allergies, lung disease, and GERD can cause a productive cough.

Treatment depends on the underlying cause and includes supportive care and medications. Your healthcare provider can help determine the underlying cause and recommend a treatment plan if you are coughing up mucus.

Read more:

  • Health A-Z
  • Infectious Diseases
  • Respiratory Infections

17 Sources

Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.

  1. Merck Manual Professional Version. Cough in Adults.

  2. National Institutes of Health. Marvels of mucus and phlegm.

  3. Kato T, Asakura T, Edwards CE, Dang H, Mikami Y, Okuda K, et al. Prevalence and Mechanisms of Mucus Accumulation in COVID-19 Lung Disease. Am J Respir Crit Care Med. 2022 Dec 1;206(11):1336-1352. doi: 10.1164/rccm.202111-2606OC.

  4. National Health Service UK. Long COVID: cough.

  5. Hill DB, Button B, Rubinstein M, Boucher RC. Physiology and pathophysiology of human airway mucus. Physiol Rev. 2022 Oct 1;102(4):1757-1836. doi: 10.1152/physrev.00004.2021.

  6. American Lung Association. Understanding Mucus in Your Lungs.

  7. Guarnieri G, Olivieri B, Senna G, Vianello A. Relative Humidity and Its Impact on the Immune System and Infections. Int J Mol Sci. 2023 May 29;24(11):9456. doi:10.3390/ijms24119456.

  8. United States Environmental Protection Agency. Particle pollution exposure.

  9. Rasmussen L, Stafford D, LaFontaine J, et al. Alcohol-Induced Mucociliary Dysfunction: Role of Defective CFTR Channel Function. bioRxiv [Preprint]. 2023 Jul 19:2023.07.17.548927. doi: 10.1101/2023.07.17.548927

  10. Otsuka S, Hiraoka K, Iwashiro N, Kimura N, Ohara M. Mixed invasive mucinous and non-mucinous adenocarcinoma of the lung with hematogenous metastases to multiple organs. Respir Med Case Rep. 2024 May 1;49:102033. doi: 10.1016/j.rmcr.2024.102033

  11. American Lung Association. Lung Cancer Symptoms.

  12. American Cancer Society. Signs and Symptoms of Thymus Cancers.

  13. American Cancer Society. Signs and Symptoms of Mesothelioma.

  14. Medline Plus. Sputum culture.

  15. Michaudet C, Malaty J. Chronic cough: evaluation and management.Am Fam Physician. 2017;96(9):575-580.

  16. American Lung Association. Diagnosing and treating cough.

  17. MedlinePlus. Common cold.

Coughing Up Phlegm? Here's What to Know (2)

By Angela Ryan Lee, MD
Dr. Lee is an Ohio-based board-certified physician specializing in cardiovascular diseases and internal medicine.

See Our Editorial Process

Meet Our Medical Expert Board

Was this page helpful?

Thanks for your feedback!

What is your feedback?

Coughing Up Phlegm? Here's What to Know (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6077

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.