What Phlegm Color Really Means About Infection

Green or yellow phlegm is the color most associated with bacterial infection, but color alone is not a reliable way to diagnose one. The green tint comes from a specific enzyme released by white blood cells as they fight off invaders, so darker, more saturated colors generally reflect more intense immune activity. Here’s what each color actually tells you, and what it doesn’t.

Why Phlegm Changes Color

The green pigment in infected phlegm comes from an enzyme called myeloperoxidase, stored inside neutrophils (the white blood cells your body sends first to fight infection). When neutrophils swarm to your airways and activate, they release this dark green, iron-containing enzyme. The more neutrophils that show up, the greener and thicker your phlegm becomes. Yellow phlegm reflects the same process at a lower intensity, with fewer activated white blood cells in the mix.

This means green phlegm is a sign of inflammation, not necessarily a bacterial infection. Your immune system mounts the same neutrophil response against viruses, allergens, and irritants. A bad cold can produce bright green phlegm for days without any bacteria being involved.

What Each Color Suggests

Clear or White

Clear phlegm is normal. Your airways produce mucus constantly to trap dust and microbes, and when everything is working well, you barely notice it. White or slightly thickened clear phlegm typically shows up with allergies, asthma, or early-stage viral infections. It indicates your body is producing more mucus than usual, but there isn’t significant immune cell activity yet. If allergies are the cause, antihistamines or nasal steroids usually help. If it’s viral, it tends to resolve on its own.

Yellow

Yellow phlegm means your immune system has ramped up and white blood cells are present in your mucus. This is extremely common during a regular cold or flu and typically appears a few days into an illness. It does not mean you need antibiotics. Most yellow phlegm clears within one to two weeks as the infection runs its course.

Green

Green phlegm signals a higher concentration of those activated neutrophils and their green enzyme. It can appear with both viral and bacterial infections. Research on patients with bronchiectasis (a chronic lung condition) found that bacterial colonization was present in about 86% of people producing dark green, purulent phlegm, compared to only 5% of those with clear phlegm. That’s a dramatic difference, but it applies to a population already living with chronic lung disease, not to someone with an otherwise healthy set of lungs fighting off a winter cold.

For most people, green phlegm during an acute cough does not reliably distinguish bacterial from viral illness. A large study of acute flare-ups found that when patients self-reported their phlegm color, the sensitivity for detecting bacteria was 73% but the specificity was only 39%. That means green phlegm catches most bacterial cases, but it also flags many non-bacterial ones. Even when a clinician assessed the color directly, specificity only reached 52%.

Brown or Black

Brown phlegm is most often linked to smoking or inhaling environmental pollutants like dust, soot, or coal particles. Old, dried blood can also appear brown. In rare cases, black phlegm can signal a serious fungal infection called mucormycosis, which primarily affects people with weakened immune systems (such as those with uncontrolled diabetes or organ transplant recipients). If you’re coughing up black mucus and you don’t smoke or work in a dusty environment, that warrants prompt medical attention.

Pink or Red

Blood in phlegm can range from faint pink streaks to bright red. Small streaks of blood are common with forceful coughing, dry air, or minor irritation, especially during a bad cold. This is usually not dangerous.

Pink, frothy phlegm is a different situation entirely. It can indicate pulmonary edema, a condition where fluid leaks into the lungs, and it requires emergency care. The same applies if you’re coughing up more than a few teaspoons of blood, or if bloody phlegm lasts longer than a week, particularly alongside fever, chest pain, shortness of breath, or unintentional weight loss.

Phlegm Color Does Not Justify Antibiotics

One of the most important things to know is that clinical guidelines explicitly recommend against using phlegm color to decide whether someone needs antibiotics. The UK’s National Institute for Health and Care Excellence states that green, yellow, or clear sputum “should not be used to justify an antibiotic prescription” for acute cough. The reasoning is simple: viral infections cause colored phlegm just as often as bacterial ones, and most acute coughs resolve without antibiotics regardless of what color comes up.

Antibiotics are appropriate when someone is systemically unwell (high fever, rapid breathing, confusion) or at high risk of complications due to an underlying condition. The color of what you’re coughing up is one piece of the picture, not the deciding factor.

When Color Matters More

Phlegm color becomes a much more useful signal if you have a chronic lung condition like bronchiectasis or COPD. Researchers developed a sputum color chart with three categories: clear (mucoid), pale yellow or pale green (mucopurulent), and dark yellow or dark green (purulent). In bronchiectasis patients, bacterial colonization jumped from 5% in those with clear sputum to 43.5% with mucopurulent and 86.4% with purulent. Agreement between doctors and patients on categorizing color was strong, making it a practical daily monitoring tool.

If you live with one of these conditions, a shift from your baseline phlegm color toward darker green is a meaningful change worth discussing with your care team. It may signal the start of a flare-up that benefits from early treatment.

What to Actually Watch For

Rather than fixating on color, pay attention to the full picture. A combination of colored phlegm with a fever lasting more than a few days, worsening shortness of breath, chest pain, or symptoms that improve and then suddenly get worse again is more suggestive of a bacterial infection than color alone. Phlegm that persists beyond two or three weeks, regardless of color, also deserves a closer look.

For an otherwise healthy person fighting off a respiratory bug, green or yellow phlegm in the first week or two is your immune system doing its job. It looks alarming, but it’s one of the most normal things your body does when it’s under attack.