Why Is My Phlegm Yellow? Causes and When to Worry

Yellow phlegm is your immune system at work. When your body detects an irritant or infection in your airways, it sends white blood cells to the area, and those cells release enzymes that tint your mucus yellow. In most cases, yellow phlegm shows up during a common cold or sinus irritation and clears up on its own within a week or two.

What Turns Phlegm Yellow

The color comes from the white blood cells your body deploys to fight off whatever is irritating your airways. During infections, the main players are neutrophils, a type of immune cell that contains an enzyme called myeloperoxidase. This enzyme has a heme group (an iron-containing molecule) that produces a greenish pigment. In lower concentrations, early in an immune response, the result looks yellow. As more neutrophils pile in and the enzyme becomes more concentrated, phlegm can shift from yellow toward green.

Allergic reactions use a slightly different pathway. Instead of neutrophils, your body sends eosinophils, another type of white blood cell. Eosinophils carry their own set of enzymes and proteins that can also tint mucus yellow. So even without an infection, a strong allergic response to pollen, dust mites, pet dander, or mold can produce yellow-tinged phlegm.

Most Common Causes

The most frequent reason for yellow phlegm is a simple upper respiratory infection like the common cold. Mucus often starts out clear and watery in the first day or two, then thickens and turns yellow or gray as your immune response ramps up. Most colds resolve on their own within seven to ten days, and the yellow color typically fades as the infection clears.

Beyond the common cold, yellow or green phlegm is associated with:

  • Sinusitis: inflammation or infection of the sinus cavities, often following a cold
  • Bronchitis: inflammation of the airways in the lungs, which can start viral and occasionally develop a secondary bacterial component
  • Pneumonia: a deeper lung infection that usually comes with more severe symptoms like high fever and shortness of breath
  • Cystic fibrosis: a chronic genetic condition that causes thick, sticky mucus buildup in the lungs

Seasonal allergies are another common culprit that people often overlook. Pollen exposure in spring and fall, or year-round exposure to indoor allergens like dust mites and mold, can trigger enough immune activity to change mucus color without any infection being present.

Yellow Phlegm Doesn’t Always Mean Bacteria

One of the most persistent misconceptions is that yellow or green phlegm signals a bacterial infection that needs antibiotics. The evidence doesn’t support this. Over 95% of patients who cough up discolored sputum do not have pneumonia, and the U.S. Centers for Disease Control and Prevention recommends against prescribing antibiotics based on sputum color alone. A large study published in the European Respiratory Journal found that physicians should not rely on phlegm color, either on its own or combined with feeling generally unwell, when deciding whether antibiotics are warranted.

Viral infections routinely produce yellow and green phlegm. The color reflects the intensity of your immune response, not the type of organism causing it. Antibiotics are generally only appropriate when there’s evidence of bacterial pneumonia, certain flare-ups of chronic lung disease, or specific risk factors like being over 75 with additional health conditions such as heart failure or diabetes.

Non-Infectious Causes

Several factors beyond infection can turn your phlegm yellow. Cigarette smoke and other airborne irritants like strong chemical odors trigger ongoing inflammation in the airways, which recruits white blood cells and changes mucus color over time. Dry air, particularly from indoor heating during winter, causes your body to ramp up mucus production as a protective measure. Humid environments encourage mold and dust mite growth, which can worsen allergic inflammation.

If you notice yellow phlegm that comes and goes with the seasons, lines up with exposure to pets or dusty environments, or improves when you change locations, allergies are a more likely explanation than infection. Reducing exposure to known triggers, keeping indoor humidity moderate, and avoiding smoke can all help.

When Yellow Phlegm Is a Concern

Yellow phlegm on its own, especially during cold and flu season, is rarely a reason for alarm. But certain accompanying symptoms change the picture. If you have yellow or green mucus along with fever, chills, persistent coughing, or sinus pain, it’s worth checking in with a doctor within a few days.

For people with existing lung conditions like asthma or COPD, a change in sputum quality combined with shortness of breath or chest pain warrants faster medical attention. And any phlegm that is red, brown, black, or frothy should be evaluated immediately, as these colors can indicate bleeding in the airways or other serious conditions.

What to Expect as It Clears

During a typical cold, you can expect yellow phlegm to appear around day two or three as your immune system responds, peak around days four through six, then gradually thin out and return to clear as you recover. The entire cycle usually wraps up within seven to ten days. If your phlegm stays yellow or green for more than about two weeks, or if it keeps getting thicker and darker rather than improving, that longer timeline is more reason to get evaluated for a possible secondary infection or another underlying cause.

Staying well hydrated helps thin mucus and makes it easier to clear. Warm liquids, steam from a shower, and keeping your head elevated while sleeping can all reduce the discomfort of congested airways while your body does the work of recovery.