What Makes Mucus Yellow and When to Worry

Yellow mucus gets its color from white blood cells. When your immune system fights off an infection or irritant, it sends a flood of infection-fighting cells called neutrophils to the area. These cells contain an iron-based enzyme that produces a greenish-yellow pigment, and as they accumulate in your mucus, the color shifts from clear to yellow or green.

The Enzyme Behind the Color

The specific enzyme responsible is called myeloperoxidase, or MPO. It lives inside neutrophils and helps them destroy bacteria and other pathogens. MPO contains a heme pigment, similar to the iron-containing molecule in your red blood cells, but instead of making things red, this particular pigment produces a green color. When neutrophils are present in moderate numbers, mucus looks yellow. Pack in enough of them and the color deepens to green.

This means the difference between yellow and green mucus isn’t really about what kind of infection you have. It’s about how many neutrophils are present. A lighter yellow signals a moderate immune response. A darker green signals a heavier concentration of these cells and their enzymes. The color is a byproduct of your immune system doing its job, not a direct signal of danger.

Why Mucus Changes Color During a Cold

When a cold virus first infects your nose and sinuses, your body produces clear, watery mucus to help flush the virus out. After two or three days, the immune system ramps up and sends neutrophils to the site. That’s when the mucus thickens and shifts to white, then yellow or green. According to the CDC, this progression is completely normal and does not mean you need an antibiotic.

The typical timeline during a cold looks like this: symptoms like sore throat, fatigue, and mild fever dominate the first three days. Around days four through seven, nasal congestion worsens and mucus commonly turns yellow or green. By day seven and beyond, most symptoms improve, though a cough and mild congestion can linger for a couple of weeks. The yellow phase usually sits right in the middle of the illness, when inflammation peaks.

Yellow Mucus Doesn’t Always Mean Bacterial Infection

One of the most persistent myths, even among some healthcare providers, is that yellow or green mucus means a bacterial infection that needs antibiotics. The Mayo Clinic has specifically addressed this: both viral and bacterial upper respiratory infections cause similar changes in mucus color. The color alone cannot tell you which type of germ is responsible.

That said, the timing of the color change can offer a clue. With a viral infection, mucus typically starts clear and turns yellow or green a few days in. With a bacterial infection, thick colored mucus tends to show up earlier, often right at the start. Bacterial infections also tend to last more 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 one).

Non-Infectious Causes

Infections aren’t the only trigger. Anything that causes sustained inflammation in your nasal passages can recruit enough neutrophils to tint your mucus yellow. Environmental irritants like dust, smog, cigarette smoke, and chemical fumes can all inflame your airways and trigger an immune response. Strong odors, including perfumes and cleaning products, can do the same. Even weather changes, particularly shifts in temperature or humidity, can swell the nasal lining enough to change mucus consistency and color.

Allergies play a role too. When airborne allergens disrupt the airway lining, they trigger a cascade of immune activity. Neutrophils recruited to the lungs and sinuses during this process release compounds that increase mucus production, particularly of a thick, sticky type of mucin. This heavier mucus traps more cellular debris and can take on a yellowish hue even without any infection present.

How Dehydration Affects Mucus Color

Your hydration level influences how your mucus looks. When you’re well-hydrated, mucus stays thinner and more translucent. When you’re dehydrated, whether from not drinking enough water or from consuming too much coffee or soda, mucus loses moisture and becomes thicker, more opaque, and darker in appearance. Congestion compounds this effect: swollen nasal tissues slow the flow of mucus, giving it more time to dry out and concentrate. White, thick mucus is often the first sign of dehydration or congestion, and it can shade toward yellow as immune cells accumulate in the stagnant secretion.

Staying hydrated during a cold won’t prevent the yellow phase entirely, since the color comes from immune cells rather than dehydration alone. But adequate fluids keep mucus thinner and easier to clear, which can reduce discomfort and help your sinuses drain more effectively.

Signs That Yellow Mucus Needs Attention

Most of the time, yellow mucus resolves on its own within a week or two. But certain combinations of symptoms suggest something more than a routine cold. Yellow or green nasal discharge paired with sinus pain and fever may point to a bacterial sinus infection. Mucus that stays discolored for more than 10 days without any improvement is another signal worth investigating. Facial pain or pressure, especially around the forehead or cheeks, adds to the concern. And if nasal discharge is bloody or follows a head injury, that warrants prompt evaluation regardless of color.