Phlegm color gives you a rough snapshot of what’s happening in your airways, but it’s far less precise than most people think. Clear or white phlegm is typical of allergies and viral infections. Yellow and green signal that your immune system is actively fighting something. Red or pink means blood is present. Brown and black point to inhaled particles, old blood, or smoking. Here’s what each color actually tells you, and just as importantly, what it doesn’t.
Why Phlegm Changes Color
Healthy mucus is clear, thin, and slippery. Your body produces it constantly to trap dust, allergens, and germs before they reach deeper into your lungs. When your immune system detects a threat, white blood cells called neutrophils flood the area. These cells contain a dark green enzyme called myeloperoxidase, which gets released as the cells fight off invaders. The more neutrophils that show up and the harder they work, the more that green pigment accumulates, shifting your phlegm from clear to white to yellow to green.
Color isn’t the only thing that changes. Texture shifts too. During an active infection, immune cells thicken the mucus, making it sticky and creamy instead of watery. Thin, stringy mucus tends to come with allergies, while thicker, more liquid mucus is more common with viral colds. Conditions like cystic fibrosis produce unusually thick, sticky mucus that gets trapped in the lungs and pancreas.
Clear Phlegm
Clear phlegm is the baseline. Your body produces it all day to keep your airways moist and protected. When the volume ramps up noticeably, your body is usually responding to an irritant: pollen, pet dander, dust, or dry air. Seasonal allergies are one of the most common causes of excess clear mucus.
That said, clear phlegm can also appear early in viral bronchitis or viral pneumonia, before the immune response kicks into higher gear. A common cold often starts with watery, clear mucus that thickens and changes color over the following days.
White Phlegm
White or creamy phlegm usually means your immune system has started responding to something, but the fight is still in its early stages. The color and thicker texture come from immune cells accumulating in the mucus. Common causes include the early phase of a cold, mild bronchitis, acid reflux (GERD), and COPD. In children, white mucus that persists for more than two weeks, or is accompanied by sinus pain or fever, can signal a developing infection.
Yellow Phlegm
Yellow phlegm means white blood cells are actively battling an infection. The yellowish tint comes from those same neutrophil enzymes at lower concentrations. This is a normal part of your body’s defense and shows up in both viral and bacterial infections.
Here’s the important part: yellow phlegm alone does not mean you need antibiotics. Viruses cause the vast majority of colds and upper respiratory infections in both adults and children, and antibiotics do nothing against viruses. A viral cold commonly progresses from clear to yellow mucus over several days, and that color change is expected, not alarming.
Green Phlegm
Green phlegm indicates a more intense immune response. The concentration of myeloperoxidase is higher, giving the mucus its deeper color. Many people assume green automatically means a bacterial infection, but this is a widespread myth, even among some healthcare providers. Both viral and bacterial infections cause green phlegm.
So how do you tell the difference? Timing matters more than color. With a viral infection, mucus typically starts clear and gradually turns yellow or green over several days. With a bacterial infection, thick colored mucus often appears right from the start. Bacterial infections also tend to last longer than 10 days without improvement, or follow a pattern where symptoms get better and then suddenly worsen again, suggesting a bacterial infection has developed on top of a viral cold.
Studies looking at whether phlegm color can reliably identify bacterial infections have found it’s not very accurate. In one study of COPD patients, colored sputum had a sensitivity of about 73% for detecting bacteria (meaning it caught most cases) but a specificity of only 39% (meaning it produced a lot of false alarms). Even when clinicians used a standardized color chart, specificity only reached 52%. In other words, green phlegm raises the possibility of bacteria but is far from proof.
Red, Pink, or Rust-Colored Phlegm
Any shade of red in your phlegm means blood is mixing with mucus somewhere in your respiratory tract. It often looks bubbly or frothy and typically appears in small amounts. The most common causes are bronchitis, pneumonia, and heavy coughing that irritates the throat. Dry climates and high elevations can also dry out the tiny capillaries inside your nasal passages, causing them to rupture easily, which is especially common in children and people with nasal allergies or asthma.
Rust-colored phlegm specifically can show up with pneumonia. Pink, frothy sputum is sometimes associated with fluid buildup in the lungs. Less common but more serious causes include blood clots in the lung (pulmonary embolism), COPD, bronchiectasis, tuberculosis, and lung cancer, particularly in smokers over 40. Coughing up more than a small streak of blood, or blood that appears repeatedly over several days, warrants prompt medical evaluation.
Brown Phlegm
Brown phlegm has several possible explanations depending on your circumstances. Old blood that has oxidized turns brown rather than red, so it can appear after a nosebleed or a previous respiratory infection. Chronic inflammation from conditions like COPD, cystic fibrosis, or bronchiectasis can also produce dark brown, sticky phlegm.
One of the most common causes is smoking, or more precisely, quitting smoking. Within about a week of your last cigarette, the tiny hair-like structures in your lungs (cilia) start working again. These cilia sweep mucus out of your airways, and as they recover, they begin clearing out accumulated tar. The result is brown mucus that can last for weeks. This is actually a sign that your lungs are healing.
Exposure to certain fungi can also produce brown-flecked phlegm. Aspergillus, a fungus found in soil and decaying vegetation, can inflame the lungs in people who are allergic to it, particularly those with asthma or cystic fibrosis. A lung abscess is a rarer cause, producing foul-smelling brown or blood-streaked phlegm along with fever and night sweats.
Black Phlegm
Black phlegm is uncommon and typically linked to heavy environmental exposure. Coal miners, welders, and people regularly exposed to heavy air pollution or soot may cough up darkly discolored mucus. Heavy smoking over many years can produce very dark brown or black phlegm. In children, black mucus is a warning sign of a serious fungal infection and needs immediate medical attention. For adults, it also justifies a prompt visit to a healthcare provider, since it can indicate a significant fungal or other infection in the lungs.
What Phlegm Color Can’t Tell You
The biggest takeaway is that phlegm color is a clue, not a diagnosis. It tells you your immune system is active, but it can’t reliably distinguish a virus from bacteria, and it can’t tell you which specific condition you have. Doctors consider phlegm color alongside other factors: how long you’ve been sick, whether symptoms are improving or worsening, whether you have a fever, and your overall health history.
For most short-lived colds and upper respiratory infections, yellow or green phlegm is part of the normal immune response and resolves on its own. The timeline to pay closer attention to is the 10-day mark. If colored phlegm persists beyond 10 days without improvement, or if symptoms initially improve and then get worse again, that pattern is more suggestive of a bacterial component than the color itself.

