Before Doctorby dhananjaytech

Coughing up phlegm

Phlegm (balgam) is the thick mucus you cough up from your chest. Its colour, how long it lasts and what you were around give useful clues, though colour alone cannot name an infection.

Below are the usual patterns. Read them, then watch yours for a week or two: when it happens, what came just before, and how long it lasts.

Chest and lungs 8 patterns

Which one sounds like you?

After an illnessCoughing up phlegm
After an illnessUsually harmless

Yellow or green phlegm with a cold

Chest cold or bronchitis

When
During a cold or flu and for a week or two after
How to spot it
Clear or white phlegm at first that turns thick yellow or green, with a sore throat or runny nose, then slowly gets less.
Why
Infections make the airways produce extra mucus to trap germs. Yellow often shows an early infection and green one that has lasted longer.
How common
Very common
Should I worry?
Usually clears on its own; see a doctor if the cough lasts more than 2 weeks or comes with fever or wheeze.
PollenCoughing up phlegm
PollenUsually harmless

Clear phlegm with sneezing

Allergy

When
Pollen season, dusting, near pets
How to spot it
Clear, watery phlegm with sneezing or a runny nose, and no fever.
Why
The body makes extra clear mucus to flush out pollen, pet dander and other allergens.
How common
Common
Should I worry?
Avoiding the trigger helps; see a doctor if it comes with wheeze.
A big mealCoughing up phlegm
A big mealWorth a check

White phlegm with heartburn

Acid reflux (GERD)

When
After big, late or oily meals
How to spot it
Clearing your throat a lot and bringing up white phlegm, with heartburn, burping or a sour taste.
Why
Acid rising from the stomach irritates the throat and airways, which make mucus in response.
How common
Common
Should I worry?
Treating the reflux often helps; a doctor can confirm it.
SmokeCoughing up phlegm
SmokeWorth a check

Phlegm most days in someone who smokes

Smoker's cough, possible COPD

When
Most days, for months or years
How to spot it
A cough with white, grey, brown or even black phlegm on most days, in someone who smokes cigarettes or beedis.
Why
Smoke irritates the airways so they make extra mucus. Over years this damages the lungs and can lead to COPD.
How common
Common in smokers
Should I worry?
Worth a check-up; stopping smoking is the biggest help.
DustCoughing up phlegm
DustWorth a check

Brown or black phlegm after dust or soot

Dust, coal and fume exposure

When
After work on building sites, in mines or with coal, cement or other dark dust
How to spot it
Dark brown, grey or black specks in the phlegm after a dusty or sooty day.
Why
Dark dust and soot get trapped in the mucus and are coughed out.
How common
Common in dusty jobs
Should I worry?
See a doctor if it goes on, or if you also feel breathless.
Not drinking enoughCoughing up phlegm
Not drinking enoughUsually harmless

Thick, sticky phlegm when you drink too little

Dehydration and dry air

When
Hot days, long hours in AC, after alcohol or many cups of tea or coffee
How to spot it
Phlegm that is hard to cough up and feels stuck in the throat, better after drinking water.
Why
Without enough water, mucus becomes thicker and stickier. Dry air, caffeine and alcohol can add to it.
How common
Common
Should I worry?
Drinking more water usually helps.
No clear triggerCoughing up phlegm
No clear triggerSee a doctor soon

Cough with phlegm for weeks, with fever or weight loss

Possible tuberculosis (TB)

When
A cough lasting more than 2 to 3 weeks
How to spot it
Phlegm, sometimes with blood in it, plus a fever or night sweats, tiredness, poor appetite and losing weight without trying.
Why
TB is a germ that infects the lungs and grows slowly, so the cough drags on for weeks.
How common
Less common than colds, but important not to miss
Should I worry?
See a doctor and ask about a TB test; any blood in the phlegm needs an urgent visit.
No clear triggerCoughing up phlegm
No clear triggerUrgent

Pink, frothy phlegm with breathlessness

Possible heart failure

When
With sudden or worsening breathlessness
How to spot it
Pink, bubbly phlegm along with breathlessness, sweating, chest pain, tiredness or weak legs.
Why
When the heart cannot pump well, fluid backs up into the lungs and can be coughed up as pink froth.
How common
Rare
Should I worry?
Call 112 or 108.

Keep a diary for 1–2 weeks

Every time it happens, note:

  • Colour of the phlegm each day (clear, white, yellow, green, brown, black, pink, red)
  • How many days or weeks the cough has lasted
  • Fever, night sweats or weight change
  • Smoke, dust or pets you were around
  • Heartburn or a sour taste after meals
  • Water drunk each day
Write my doctor note

See a doctor soon if

  • A cough lasting more than 2 weeks
  • Phlegm that is not clear, or comes with fever
  • Wheezing or difficulty breathing
  • Night sweats, weight loss or feeling tired all the time
  • Any spots or streaks of blood in the phlegm (ask for an urgent appointment)

Don't wait if

  • Coughing up more than a few streaks of blood, or blood without phlegm: call 112 or 108
  • Coughing up blood with trouble breathing, a very fast heartbeat, or chest or upper back pain
  • Pink, frothy phlegm with breathlessness or chest pain

Call 112 or 108. All warning signs

More in Chest and lungs

Sources

  1. Coughing Up Phlegm: Causes and Treatment · Cleveland Clinic
  2. Tuberculosis (TB) · NHS
  3. Coughing up blood · NHS

Checked in November 2026. Health advice changes; if a source says something different now, trust the source and your doctor.