Why Am I Coughing Up Phlegm?
The honest verdict
This is usually not an allergy
Coughing up phlegm is rarely caused by an allergy. Most cases are due to respiratory infections (viral or bacterial), chronic bronchitis from smoking, or post-nasal drip from sinusitis. Allergies can trigger a dry cough or clear, thin mucus, but thick, colored, or excessive phlegm is not typical of allergy alone. If phlegm is green, yellow, brown, or bloody, or accompanied by fever, chills, or shortness of breath, a non-allergic cause โ usually an infection โ is far more likely.
This is a general research summary, not a diagnosis. It can't tell you what's causing your symptom โ a clinician can.
Check this first
When coughing up phlegm is an emergency
Most of the time this can be handled calmly. But a few signs mean you shouldn't wait. Match what you're seeing to the right level of care below.
If any emergency sign below is present, call 911 or go to the ER now.
- Emergency
Coughing up blood (hemoptysis) โ even a small amount โ call 911 or go to the ER (possible pulmonary embolism, lung cancer, or severe infection).
Call 911 or go to the ER now
- Emergency
Shortness of breath, rapid breathing, or chest tightness that does not improve with rest โ call 911 (possible pneumonia, COPD exacerbation, or pulmonary embolism).
Call 911 or go to the ER now
- Emergency
High fever (over 103ยฐF / 39.4ยฐC) with chills, confusion, or blue lips/fingertips โ go to the ER (possible severe pneumonia or sepsis).
Call 911 or go to the ER now
- Urgent
Cough with thick, foul-smelling phlegm, especially after choking or near-drowning โ seek urgent care (possible lung abscess or aspiration pneumonia).
Get seen today โ urgent care or same-day visit
- See a doctor
Cough lasting more than 3 weeks, unexplained weight loss, night sweats, or persistent hoarseness โ see a clinician (possible chronic infection, tuberculosis, or lung cancer).
Book a routine visit with a clinician
When in doubt, err toward getting seen. These tiers are a general guide, not a substitute for a clinician's judgment about your specific situation.
Key facts
Acute bronchitis is one of the most common causes of coughing up phlegm, accounting for over 10 million outpatient visits in the U.S. each year.
Green or yellow phlegm is caused by an enzyme called myeloperoxidase released by immune cells โ it does not reliably distinguish bacterial from viral infections.
Chronic cough (lasting 8 weeks or longer) affects about 10% of adults in the U.S. and is most commonly caused by post-nasal drip, asthma, or GERD โ not allergies alone.
What's causing it
The same symptom can come from very different places. Here are the usual suspects for Respiratory tract โ the lungs, bronchi, trachea, and throat, where mucus (phlegm) is produced and expelled by coughing, tagged by mechanism and how common each one is โ so you can see where an allergy actually fits.
Acute bronchitis (chest cold)
A viral infection of the bronchial tubes causes a cough that brings up yellow, green, or clear phlegm, often after a cold or flu. It typically resolves in 1-3 weeks with rest and hydration. Antibiotics are not effective for viral bronchitis.
Common cold or upper respiratory infection
Viral infections of the nose, sinuses, and throat often cause post-nasal drip that triggers coughing up clear or white phlegm. Symptoms usually improve within 7-10 days.
Chronic bronchitis or COPD (smoking-related)
Long-term irritation from smoking or air pollutants causes chronic inflammation of the airways, leading to a daily cough with phlegm for at least 3 months of the year. This is a hallmark of chronic bronchitis and chronic obstructive pulmonary disease (COPD).
Post-nasal drip from sinusitis or allergies
Excess mucus from the sinuses drips down the back of the throat, triggering a cough that brings up clear or white phlegm. This can be caused by sinus infections, allergies, or irritants. The phlegm is typically thin and clear, not thick or colored.
Pneumonia
A lung infection (bacterial, viral, or fungal) causes coughing up yellow, green, or rust-colored phlegm, often with fever, chills, shortness of breath, and chest pain. Pneumonia requires medical diagnosis and treatment โ do not wait to see a clinician if you suspect it.
Allergic cough (rarely produces phlegm)
Allergies (allergic rhinitis, asthma) can cause a dry, tickly cough or clear, thin mucus. Thick, colored, or excessive phlegm is not typical of allergy alone. If you have known allergies and are coughing up phlegm, a concurrent infection or other cause is more likely.
Is this an allergy? Usually, no
It's a common assumption, so it's worth being clear about โ and pointing you toward what's more likely going on.
Coughing up phlegm is usually not an allergy. Allergies can cause a dry cough or clear, thin mucus from post-nasal drip, but thick, colored, or excessive phlegm is not typical of allergy alone. If you have known allergies and are coughing up phlegm, a concurrent respiratory infection (cold, bronchitis, sinusitis) is a more likely cause. True allergic asthma can produce mucus, but it is usually clear and accompanied by wheezing, chest tightness, and shortness of breath โ not colored phlegm or fever.
Because an allergy is unlikely to be the driver, the most useful next step is a clinician who can look at the actual cause โ not an allergy test.
Relief you can try at home
If your symptom is mild and you have no red-flag signs, these gentle steps often help. They soothe โ they don't replace figuring out the cause.
- 1
Stay hydrated
Drink plenty of water, warm tea, or broth throughout the day. Thin mucus is easier to cough up than thick mucus. Aim for at least 8 glasses of fluid daily unless your clinician advises otherwise.
- 2
Use a humidifier or steam
Moist air helps loosen phlegm and soothe irritated airways. Run a cool-mist humidifier in your bedroom, or inhale steam from a bowl of hot water (carefully) for 5-10 minutes several times a day.
- 3
Try honey for cough relief
A teaspoon of honey can soothe a sore throat and reduce coughing. Do not give honey to children under 1 year of age due to the risk of infant botulism.
- 4
Practice controlled coughing
Take a slow, deep breath, hold for 2 seconds, then cough firmly 2-3 times. This technique helps clear phlegm from the lungs more effectively than shallow, repeated coughing.
- 5
Avoid smoking and irritants
Smoking, vaping, and exposure to secondhand smoke or air pollution worsen phlegm production and delay healing. Avoid these completely while you are sick, and consider quitting for long-term lung health.
Stop any step that makes things worse. If the symptom isn't easing within a few days, check in with a clinician.
When to see a doctor
See a clinician if you are coughing up blood, have shortness of breath, chest pain, high fever with chills, or if your cough lasts more than 3 weeks. Also seek care if you have unexplained weight loss, night sweats, or a history of smoking and a new or worsening cough. If you have a chronic lung condition (asthma, COPD) and your symptoms are not responding to your usual medications, seek medical attention promptly.
โFrequently Asked Questions
Clear or white phlegm is common with colds, allergies, or post-nasal drip. Yellow or green phlegm suggests an immune response to infection โ often viral, not necessarily bacterial. Brown or gray phlegm can be from smoking or air pollution. Red or pink phlegm indicates blood and needs immediate medical evaluation. Color alone does not diagnose the cause, but it offers clues.
Allergies can cause clear, thin mucus from post-nasal drip that triggers a cough, but they rarely produce thick or colored phlegm. If you are coughing up yellow, green, or brown phlegm, an infection or other cause is far more likely than allergy alone. Allergic asthma can produce mucus, but it is usually clear and accompanied by wheezing.
Go to the ER if you cough up blood (even a small amount), have trouble breathing, chest tightness, high fever with chills, confusion, or blue lips or fingertips. These can signal pneumonia, a pulmonary embolism, or a severe COPD exacerbation โ all of which require emergency treatment.
A cough from a viral infection (cold, bronchitis) typically lasts 1-3 weeks. If it persists beyond 3 weeks, or if it keeps coming back, see a clinician to rule out chronic bronchitis, asthma, GERD, or other underlying conditions. A chronic cough lasting 8 weeks or more is considered a medical concern.
It is better to cough up and spit out phlegm rather than swallow it. Swallowing phlegm can irritate the stomach and may cause nausea or upset. Coughing it up also helps clear the airways and allows you to monitor its color and consistency for any concerning changes.
Medically reviewed by
Dr. Chet TharpeMD
Last reviewed July 2026
Related Articles
Tooth Pain: Causes, Relief & When to Worry
Tooth pain is rarely caused by allergies โ it's almost always dental (cavities, infection, gum disease, or a cracked tooth). Learn common causes, home care, and red-flag signs that need urgent dental or medical attention.
Read moreTongue Tingling: Causes, Relief & When to Worry
Tongue tingling can be allergic (oral allergy syndrome) or non-allergic (nerve, vitamin deficiency). Learn causes, red-flag signs, and when to see a doctor.
Read moreTongue Swelling: Causes, Relief & When to Worry
Tongue swelling can be a sign of an allergic reaction or other conditions. Learn common causes, when it's an emergency, and how to find relief.
Read moreWeight Gain: Causes, Relief & When to Worry
Weight gain is rarely caused by allergies โ it's usually linked to diet, activity, hormones, or medications. Learn common causes, when to see a doctor, and red-flag signs that need medical evaluation.
Read moreCoughing: Causes, Relief & When to Worry
Coughing is often from infections or allergies โ but not always. Learn common causes, home remedies, and red-flag signs that need medical attention.
Read moreTongue Sores: Causes, Relief & When to Worry
Tongue sores are rarely caused by allergies โ most are canker sores, irritation, or infections. Learn common causes, home care, and red-flag signs that need medical attention.
Read moreThe best next step is a real clinician
This symptom is usually not driven by an allergy, so an allergy test won't give you the answer. A primary care doctor or the right specialist can examine what's actually going on and guide you from there.
Curex focuses on at-home allergy testing and immunotherapy, which isn't the right fit for this symptom โ and never a substitute for medical care.
This content is for informational purposes only and does not constitute medical advice, diagnosis, or treatment. It cannot tell you what is causing your coughing up phlegm or whether it is an allergy. If you have any emergency sign โ trouble breathing, fast-spreading swelling, sudden weakness or confusion, or severe pain โ call 911 or go to the nearest emergency room. For anything that is new, worsening, or persistent, see a licensed healthcare provider. Curex focuses on at-home allergy testing and immunotherapy, which is not the appropriate care for this symptom and never a substitute for a clinician.