Yellow phlegm is a sign that your immune system is actively fighting an infection, most commonly a cold, sinus infection, or bronchitis. The yellow color comes from white blood cells that have rushed to the site of infection and released their contents into your mucus. While it can look alarming, yellow phlegm alone doesn’t tell you whether you’re dealing with something bacterial or viral, and in most cases it resolves on its own.
Why Phlegm Turns Yellow
Your body produces clear mucus all the time to keep your airways moist and trap dust and germs. When an infection takes hold, your immune system sends neutrophils, the most abundant white blood cells in your body, to fight it off. These cells contain a green-tinted enzyme that acts as a powerful antimicrobial weapon, combining with hydrogen peroxide and chloride to kill bacteria and other invaders.
As neutrophils do their work and break down, they release this enzyme into the surrounding mucus. In smaller concentrations, the pigment looks yellow. As more white blood cells accumulate over time, the color can deepen to yellow-green or green. This is why people often notice yellow phlegm early in an illness that shifts greener as the days go on. The color change reflects the intensity of your immune response, not necessarily how serious the infection is.
Common Conditions That Cause It
The most frequent causes of yellow phlegm are everyday respiratory infections:
- Common cold: A viral infection that typically starts with a sore throat and runny nose. Mucus often turns from clear to yellow around days two through four, then may shift toward green before clearing up over one to two weeks.
- Sinusitis: Inflammation of the sinus cavities, usually triggered by a cold. Yellow or green drainage from the nose, facial pressure, and congestion are hallmarks. Most sinus infections are viral and clear without antibiotics.
- Acute bronchitis: An infection of the airways that often begins as a cold or sinus infection and spreads downward. Coughing up yellow or greenish mucus is typical. According to Johns Hopkins Medicine, it’s usually caused by the same viruses responsible for colds.
- Pneumonia: A deeper lung infection caused by bacteria, viruses, or fungi. Pneumonia can produce yellow, green, or rust-colored phlegm, but it also brings more serious symptoms like high fever, chills, chest pain, and difficulty breathing.
- Cystic fibrosis: A chronic genetic condition that causes thick, sticky mucus to build up in the lungs, often yellow or green in color. This is far less common but relevant for people with a known diagnosis.
Yellow Phlegm Doesn’t Mean You Need Antibiotics
This is one of the most widespread misunderstandings in medicine. Many people (and even some doctors) assume yellow or green phlegm signals a bacterial infection that requires antibiotics. The evidence says otherwise.
A study published in the Scandinavian Journal of Primary Health Care tested sputum samples from patients with acute cough and found that only 12% had a confirmed bacterial infection. While yellow or green phlegm did correlate somewhat with bacterial presence, the test had a specificity of just 46%, meaning that more than half the time, discolored phlegm came from a non-bacterial cause. The researchers concluded that sputum color in otherwise healthy adults “cannot be used to differentiate between viral and bacterial infections” and should not drive antibiotic decisions.
The CDC’s clinical guidelines reinforce this directly: “Colored sputum does not indicate bacterial infection,” and routine antibiotic treatment for acute bronchitis is not recommended regardless of how long the cough lasts or what color the mucus is. Antibiotics only help when a bacterial infection is actually present, and overusing them contributes to resistance.
When Yellow Phlegm Points to Something More Serious
For most people, yellow phlegm during a cold or upper respiratory infection is completely normal and nothing to worry about. But certain patterns and accompanying symptoms warrant attention.
The CDC considers a sinus infection potentially bacterial if symptoms are severe (fever of 102°F or higher with facial pain and thick nasal discharge lasting more than three to four days), persistent (more than 10 days with no improvement), or worsening (new fever or worsening symptoms after an initial improvement around days five to six). These patterns, not just the color of the mucus, help distinguish infections that might benefit from treatment.
Pneumonia is the more serious concern. What separates it from a cold or bronchitis is the combination of high fever, shaking chills, chest pain, difficulty breathing, and sometimes nausea or vomiting. If you’re coughing up yellow phlegm but also struggling to breathe, experiencing chest pain, or running a fever above 102°F, those symptoms together point to something that needs medical evaluation. People with existing lung conditions like COPD or asthma should pay especially close attention to any change in phlegm quality paired with shortness of breath or chest pain.
Red, brown, black, or frothy phlegm is a separate category entirely and warrants immediate attention, as it can indicate bleeding in the airways or other urgent problems.
Managing Yellow Phlegm at Home
Since most cases of yellow phlegm stem from viral infections that resolve on their own, the goal is comfort and helping your body clear the mucus efficiently.
Staying well-hydrated helps keep mucus thinner and easier to cough up. A humidifier or vaporizer in your room adds moisture to the air, which can reduce irritation in your nose and throat. Applying a warm, damp washcloth to your face can relieve sinus pressure and loosen congestion.
Nasal saline rinses or sprays are effective for clearing mucus from the nasal passages. If you make your own rinse at home, use only distilled, sterile, or previously boiled water to avoid introducing new pathogens. Over-the-counter expectorants can thin chest mucus and make it easier to cough out. Decongestants reduce swelling in the nasal passages and slow mucus production, though using them for more than a few days can cause rebound congestion and make things worse. Antihistamines are helpful when allergies are contributing to the problem but won’t do much for a viral infection.
Most viral respiratory infections resolve within 7 to 14 days. Your phlegm may cycle through several colors during that window, from clear to yellow to green and back, all as part of the normal immune response. The color on any given day matters far less than the overall trajectory: are you gradually getting better, or are new symptoms appearing?

