Yellow phlegm usually means your airways are inflamed and your immune system is clearing mucus, cells and debris. A cold, another viral respiratory infection, acute bronchitis or mucus draining from the sinuses are common explanations. The colour alone does not tell you whether the infection is viral or bacterial, whether you are getting better, or whether you need antibiotics.
The rest of the picture matters more: how long the cough has lasted, whether it is improving or worsening, and whether you also have fever, shortness of breath, chest pain, wheezing, blood in the phlegm or an important medical condition. This guide is for adults. Children, pregnant people, older adults and people with significant heart, lung or immune conditions may need more individualized advice.
What is phlegm, and why can it turn yellow?
Mucus lines and protects the airways. It traps particles and germs, keeps tissues moist and helps move unwanted material out of the respiratory tract. “Phlegm” or “sputum” usually refers to the thicker mucus that is coughed up from the throat or lower airways.
When the respiratory tract becomes inflamed, your body can make more mucus and send immune cells into it. The mix of immune cells, proteins, germs and cellular debris can make phlegm look white, cream, yellow or green. As Cleveland Clinic’s mucus overview explains, colour may offer a clue, but it cannot identify a specific illness by itself.
It is also easy to confuse phlegm from the chest with nasal mucus draining down the back of the throat. If you mainly feel congestion, facial pressure, frequent throat-clearing or mucus when you wake up, postnasal drainage may be contributing.
Common causes of coughing up yellow phlegm
Several short-term and long-term problems can cause a productive cough. The most likely explanation depends on your other symptoms, health history and timeline.
Cold, flu and other viral respiratory infections
Colds and other respiratory viruses can begin with a sore throat, runny or blocked nose, fatigue and a dry cough. The cough may become wetter after a few days as mucus builds up and the airways become irritated. Yellow or green mucus can occur during a viral illness; it does not automatically mean that bacteria have taken over.
Influenza more often causes a sudden fever, chills, headache, body aches and marked fatigue, although symptoms vary. COVID-19 can also cause a cough, with or without phlegm. A test may be useful when the result would affect precautions, treatment eligibility or contact with higher-risk people. Provincial advice changes over time, so use current BC respiratory-illness guidance when deciding how to limit spread.
Acute bronchitis
Acute bronchitis is inflammation of the large airways. It often follows a cold or flu and is usually caused by a virus. The cough can bring up clear, white, yellow or green mucus and may linger after the fever, congestion and body aches have improved.
A cough from uncomplicated acute bronchitis commonly lasts two to three weeks and sometimes up to four weeks. That can feel surprisingly long, but duration alone does not prove that antibiotics are needed. What matters is whether the overall trend is improving and whether concerning symptoms appear.
Postnasal drip and sinus inflammation
Mucus from the nose or sinuses can drain into the throat and trigger coughing. This is common with a cold, allergies and sinus inflammation. The mucus may look yellow after sitting in the nose or throat overnight, which is one reason some people notice it mainly in the morning.
Facial pain or pressure, reduced smell, nasal blockage and thick nasal discharge point more toward the upper airways. Symptoms that persist without improvement, become much worse after starting to improve, or are accompanied by severe facial swelling need assessment. Seasonal allergies can also increase mucus and throat-clearing; see our guide to managing seasonal allergies for broader allergy information.
Pneumonia and other lower-respiratory infections
Pneumonia can cause a productive cough, but there is no single “pneumonia colour.” Yellow, green, rust-coloured or blood-streaked phlegm can occur, and some people with pneumonia do not produce much sputum at all. Fever, shaking chills, shortness of breath, chest pain that worsens with breathing or coughing, confusion, or feeling much sicker than expected are more important warning signs.
Older adults and people with chronic heart or lung disease, a weakened immune system or frailty may have less typical symptoms. A new decline in alertness, breathing, mobility or fluid intake can be significant even without a high fever.
Asthma, COPD, smoke and other irritants
Asthma and chronic obstructive pulmonary disease can both involve mucus, wheezing and breathlessness. A change from your usual amount, colour or thickness of phlegm may matter more than the colour itself. Follow any existing action plan and seek advice if reliever medication is needed more often, symptoms wake you at night, or breathing is worsening.
Wildfire smoke, tobacco, vaping, dust and workplace chemicals can irritate the airways and increase mucus. Improving air quality and avoiding the trigger may help, but persistent symptoms still need assessment—especially if exposure was heavy or involved a chemical or fire in an enclosed space.
Does yellow phlegm mean you need antibiotics?
No. Yellow or green phlegm does not reliably distinguish a viral infection from a bacterial one. A physician considers the full pattern: your age and medical history, how long you have been ill, whether symptoms are improving, your breathing and temperature, and examination findings. Testing or an in-person examination may be appropriate when pneumonia, influenza, COVID-19 or another condition is possible.
HealthLink BC’s bronchitis decision aid notes that acute bronchitis is usually viral, most cases improve with home care, and antibiotics are generally not helpful for otherwise healthy people with uncomplicated acute bronchitis. Antibiotics can cause side effects and contribute to antibiotic resistance when they are used unnecessarily.
There are situations in which an antibiotic or another prescription treatment may be appropriate—for example, a confirmed or strongly suspected bacterial infection, pneumonia, or an exacerbation in someone with certain chronic lung conditions. That decision cannot be made from phlegm colour alone. Do not use leftover antibiotics or someone else’s prescription.
What your symptoms and timeline can tell you
Yellow phlegm with no fever
No fever is reassuring but does not rule out every infection. A mild viral illness, postnasal drip, airway irritation, asthma or a resolving infection can all occur without fever. Monitor your breathing, energy, hydration and overall trend rather than focusing only on the thermometer.
Yellow phlegm mainly in the morning
Mucus can collect overnight because you are lying down and swallowing less often. Morning phlegm may come from postnasal drainage, dry air, smoking or a chronic airway condition. If it happens most days for weeks, is increasing, or comes with wheezing, breathlessness, reflux symptoms or weight loss, arrange an assessment.
Does it mean you are getting better?
Not necessarily. Mucus can change colour during a normal immune response, but colour is not a recovery clock. Signs of improvement include easier breathing, less fever and fatigue, better sleep and appetite, and a cough that is gradually becoming less frequent or intense. Worsening breathlessness, a returning fever or a sudden decline after initial improvement deserves attention.
A cough that lasts for weeks
A post-viral cough can continue after the main infection has cleared. However, a cough lasting more than about three weeks, repeated episodes, or a cough that is not improving should be assessed. Asthma, postnasal drip, reflux, medication effects and chronic lung disease are among the possibilities. A cough lasting eight weeks or longer is considered chronic and needs a structured evaluation.
When to seek medical care
Seek emergency help now
Call 911 or seek emergency care for severe trouble breathing, blue or grey lips, new confusion, fainting, crushing or severe chest pain, choking, or coughing up more than a small streak of blood. Pink frothy sputum with major breathlessness is also an emergency. Do not wait for a virtual appointment when symptoms suggest an immediate threat to breathing or circulation.
Arrange prompt medical assessment
Seek timely care if you have shortness of breath, wheezing that is new or worsening, chest pain with breathing, persistent or high fever, repeated vomiting, difficulty keeping fluids down, dehydration, coughing up blood, a foul-smelling sputum change, or symptoms that improve and then become clearly worse.
Contact a physician earlier if you are pregnant, over 65, immunocompromised, or have asthma, COPD, cystic fibrosis, heart failure or another important chronic condition. The same applies if the cough began after choking, a significant smoke or chemical exposure, or recent travel or contact that raises concern for tuberculosis.
Book a routine appointment
Arrange an assessment if the cough has lasted about three weeks without clear improvement, keeps returning, disrupts sleep or daily activity, or comes with unexplained weight loss, night sweats or persistent fatigue. Bring a medication list and note when the cough started, what the phlegm looks like, and what makes symptoms better or worse.
What can help at home
For a mild cough that is improving and has no red flags, supportive care can make mucus easier to clear and reduce throat irritation.
- Drink enough fluid. Water, soup and warm drinks can help prevent dehydration and may make thick secretions easier to clear. You do not need to force excessive fluid.
- Rest and avoid smoke. Tobacco, vaping, wildfire smoke and strong fumes can prolong airway irritation.
- Use moisture safely. A warm shower or a clean cool-mist humidifier may feel soothing. Empty and clean humidifiers as directed so they do not spread mould or bacteria.
- Try saline for nasal symptoms. A premixed saline spray can help with dry or congested nasal passages. If you use a rinse device, follow the manufacturer’s instructions and use appropriately treated water.
- Use honey if suitable. A spoonful of honey or honey in a warm drink may soothe an adult cough. Honey must never be given to a baby under one year old.
- Use over-the-counter products carefully. Expectorants, cough suppressants and decongestants are not suitable for everyone and may interact with medicines or medical conditions. Read the label, avoid combining products with duplicate ingredients, and ask a pharmacist if you are unsure.
Do not deliberately suppress every productive cough; coughing is one way the body clears secretions. At the same time, violent or constant coughing can exhaust you and irritate the chest. The right approach depends on the cause and whether the cough is helping clear mucus or simply disrupting sleep and recovery.
How a physician may assess a productive cough
A physician may ask about the timing of symptoms, fever, breathing, chest pain, nasal symptoms, sick contacts, smoking or vaping, allergies, reflux, travel, medications and chronic conditions. During a video visit, visible breathing effort and the ability to speak comfortably may offer useful information, but they do not replace listening to the lungs or measuring vital signs when those are needed.
Depending on the history and findings, a physician may recommend home care, respiratory-virus testing, an in-person chest examination, oxygen measurement, a chest X-ray or other testing. Prescription treatment is based on the suspected cause and clinical assessment, not the colour of the mucus. A virtual appointment is not appropriate for severe breathing difficulty or other emergency symptoms.
Frequently asked questions
What colour is pneumonia phlegm?
Pneumonia can produce yellow, green, rust-coloured or blood-streaked phlegm, but there is no diagnostic colour. Some people with pneumonia have a dry cough. Breathing difficulty, fever, chest pain, confusion and overall severity are more important than colour alone.
Is it better to spit out phlegm or swallow it?
Either is generally safe. Swallowed phlegm is broken down in the digestive system. If spitting is more comfortable, use a tissue, dispose of it and wash your hands. Avoid spitting where it could expose other people.
Can COVID-19 cause yellow phlegm?
Yes, COVID-19 can cause a productive cough, although many people have a dry cough. Phlegm colour cannot identify the virus. Consider current testing and public-health guidance, especially if you are at higher risk or will be around vulnerable people.
Is yellow phlegm contagious?
The phlegm itself is a symptom, not a diagnosis. If the cause is a respiratory virus or another transmissible infection, you may be contagious. Cover coughs, clean your hands, stay home when you feel unwell and consider a mask when you cannot avoid close indoor contact.
How long should yellow phlegm last?
There is no fixed colour timeline. A viral illness may improve over several days while the cough continues for two to three weeks. Seek assessment if you are worsening, develop red flags, or the cough persists without clear improvement.
Sources
- HealthLink BC: Bronchitis—Should I Take Antibiotics?
- Province of British Columbia: Viral Respiratory Illness Guidance
- Cleveland Clinic: Mucus—Causes, Colours and Care
- Cleveland Clinic: Coughing Up Phlegm
- Mayo Clinic: Cough—Causes and When to Seek Care
Physicians on the Walk In platform can assess suitable cough concerns through phone or video appointments for eligible patients in selected Metro Vancouver communities. Some symptoms require an in-person examination, vital-sign measurement or urgent care. A physician can advise on appropriate next steps based on the assessment. Learn how appointments work, or use the booking link below to check eligibility and availability.
Speak to a Doctor Online About Yellow Phlegm and Cough
Please note:
Walk In does not provide medical advice. The contents of this website, including text, graphics, images and any other material are intended for informational and educational purposes only and are not intended to substitute for professional medical advice, diagnosis or treatment. Although efforts are taken to keep any medical information on the website updated, we cannot guarantee that the information on our website is correct or reflects the most up-to-date medical information.
Please consult your physician for medical advice. Always seek the advice of a physician or other qualified healthcare provider with any questions regarding a medical condition. Never disregard or delay seeking professional medical advice or treatment because of something you have read on this website or on the internet.


