Green phlegm is a sign that your immune system is fighting off an infection. The green color comes from a protein called myeloperoxidase, which is released by white blood cells called neutrophils as they attack bacteria or other invaders. While many people believe green phlegm means you need antibiotics, that is not always true — the color alone does not tell you whether the cause is viral or bacterial.
What Causes Phlegm To Turn Green?
Phlegm is mucus produced by your respiratory tract. Mucus lines your airways, traps dust and microbes, and keeps tissues moist. When you get sick, your body produces more mucus to flush out the irritant.
White blood cells rush to the site of infection. Neutrophils are the most common type and they contain granules filled with enzymes, including myeloperoxidase. This enzyme produces hypochlorous acid, the same compound in bleach, and it has a greenish tint. When large numbers of neutrophils die after fighting an infection, they release this enzyme into the mucus, turning it green.
This process happens with both viral and bacterial infections. A cold virus can trigger the same immune response as a bacterial pneumonia. That is why green phlegm alone cannot diagnose a bacterial infection.
Does Green Phlegm Mean You Need Antibiotics?
No. Green phlegm does not automatically mean you need antibiotics. Most respiratory infections, including those with green phlegm, are caused by viruses. Antibiotics do nothing against viruses.
Antibiotics are only effective against bacterial infections. A doctor may consider antibiotics if you have other signs of a bacterial infection, such as a fever lasting more than a few days, difficulty breathing, or symptoms that worsen after initially improving. Some research suggests that thicker, darker phlegm is slightly more common in bacterial infections, but the overlap is too large for color to be a reliable diagnostic tool.
Taking antibiotics when you do not need them contributes to antibiotic resistance. It also kills beneficial bacteria in your gut and can cause side effects like diarrhea or allergic reactions. If you are otherwise healthy and your symptoms are consistent with a common cold, green phlegm alone is not a reason to seek antibiotics.
What Other Colors Of Phlegm Mean
Phlegm color can vary for several reasons, and not all colors indicate infection.
- Clear: Normal. Your airways always produce some mucus to stay moist and trap particles.
- White: Often seen with early infections, asthma, or acid reflux. It can mean thickened mucus without significant immune activity.
- Yellow: Indicates the presence of dead white blood cells. Usually appears a few days into a viral infection.
- Green: Indicates a higher concentration of dead neutrophils and the enzyme myeloperoxidase. More common in later stages of infection.
- Brown or black: Can be from old blood, cigarette smoke, or inhaled dust. In heavy smokers, black phlegm may indicate a serious lung condition called coal worker’s pneumoconiosis.
- Red or pink: Indicates blood. A small streak can come from coughing hard and irritating your throat. Larger amounts of blood require medical attention.
One common misconception is that phlegm color follows a timeline — clear to white to yellow to green — and that green means the infection is getting worse. In reality, the color often reflects how long your immune system has been working, not how severe the infection is.
How Long Does Green Phlegm Last?
For a typical viral respiratory infection, green phlegm usually appears around day three to five and can last for up to a week. It often turns yellow or clear again as your immune system clears the infection.
A post-viral cough can linger for three to four weeks after the infection resolves. During this time, you may continue to cough up small amounts of colored phlegm. This does not necessarily mean the infection is still active — it can just be your airways clearing out leftover mucus and dead cells.
If green phlegm persists for more than two weeks without improvement, or if it gets progressively worse, you should see a doctor. Persistent green phlegm can indicate a bacterial infection, bronchiectasis, or another underlying lung condition that needs evaluation.
When To See A Doctor
Green phlegm by itself is rarely an emergency. But certain combinations of symptoms warrant medical attention.
See a doctor if you have green phlegm along with any of the following:
- Fever above 103°F (39.4°C) that does not come down with medication
- Fever lasting more than three days
- Difficulty breathing, wheezing, or shortness of breath
- Chest pain that is sharp or worsens with deep breaths
- Coughing up more than a teaspoon of blood
- Green phlegm lasting more than two weeks
- Symptoms that improve then suddenly worsen
People with chronic conditions like asthma, COPD, heart failure, or weakened immune systems should have a lower threshold for seeking care. The same applies to pregnant women and older adults, who may develop complications from respiratory infections more quickly.
If you are coughing up significant blood, having trouble breathing, or experiencing severe chest pain, go to an emergency department rather than waiting for a clinic appointment.
Home Care For Green Phlegm
Most cases of green phlegm from a viral infection resolve on their own. Home care focuses on thinning the mucus so it is easier to cough up and keeping you comfortable while your immune system does its work.
Staying hydrated is the most effective way to thin mucus. Water, warm tea, and broth all help. There is no need for special supplements or expensive throat sprays.
Using a cool-mist humidifier in your bedroom can add moisture to the air and reduce throat irritation. Steam from a hot shower can also help loosen mucus temporarily.
Over-the-counter expectorants like guaifenesin (the active ingredient in Mucinex) may help thin mucus, though clinical evidence for their effectiveness is modest. They work by increasing the water content of mucus, making it less thick. Some studies show they reduce cough frequency, while others show minimal benefit. They are generally safe for short-term use in healthy adults.
Honey has been shown in some research to soothe coughs and may have mild antibacterial properties. A spoonful of honey before bed can help reduce nighttime coughing in adults and children over one year old. Never give honey to infants under 12 months due to the risk of infant botulism.
Saltwater gargles can soothe a sore throat but do not directly treat phlegm in the lungs. They work on the throat, not the lower airways.
Can You Prevent Green Phlegm?
Since green phlegm is a byproduct of your immune response, preventing it means preventing respiratory infections in the first place.
Hand washing is the single most effective measure. Respiratory viruses spread through droplets and contaminated surfaces. Washing your hands with soap and water for at least 20 seconds, especially before touching your face, reduces your risk significantly.
Annual influenza vaccination reduces your chances of getting the flu, which is a common cause of productive coughs with colored phlegm. Pneumococcal vaccines are recommended for adults over 65 and for younger adults with certain chronic conditions. COVID-19 vaccination also reduces the risk of severe respiratory illness.
Avoiding smoking and secondhand smoke keeps your airways healthier and better able to clear mucus. Smokers tend to produce more phlegm overall and have a harder time clearing it, which increases their risk of respiratory infections.
Frequently Asked Questions
Is green phlegm always a sign of infection?
Yes, green phlegm indicates that white blood cells have been fighting an infection in your respiratory tract. However, the infection can be viral or bacterial — the color alone does not tell you which type you have.
Can allergies cause green phlegm?
Allergies typically cause clear or white mucus. If your phlegm turns green, it usually means an infection has developed on top of your allergy symptoms, such as a sinus infection following nasal congestion from allergies.
Should I go to work with green phlegm?
If you have a fever, you are likely contagious and should stay home. If you have no fever and feel well enough, you can return to normal activities, but practice good hand hygiene since you may still be shedding the virus.
Does coughing up green phlegm mean pneumonia?
No. Green phlegm is common with bronchitis, sinusitis, and many viral infections that do not involve the lungs. Pneumonia typically also causes fever, rapid breathing, and chest pain — see a doctor if you have these symptoms together.
Green phlegm is your immune system’s visible handiwork. It looks alarming, but for most healthy people it is a normal part of recovering from a respiratory infection. Watch your other symptoms, stay hydrated, and give your body time to clear the infection. If things do not improve within two weeks, or if you develop high fever or breathing trouble, seek medical care.

