Why Do You Cough? Causes, Types, and Warning Signs

You cough because your body is trying to protect your airways. Coughing is a reflex, much like pulling your hand away from a hot surface. It forces air out of your lungs at high speed to clear anything that doesn’t belong there: mucus, dust, smoke, food particles, or pathogens. It’s one of your respiratory system’s most important defense mechanisms, and most of the time it’s doing exactly what it should.

How the Cough Reflex Works

Your airways are lined with sensory receptors, concentrated most heavily in the trachea (windpipe), the point where your airways first branch, and the larger airways deeper in the lungs. These receptors also exist in less obvious places: your throat, eardrums, sinuses, diaphragm, and even your stomach. That’s why conditions seemingly unrelated to your lungs can make you cough.

When something irritates these receptors, whether it’s a physical trigger like inhaled dust or a chemical one like stomach acid, they send signals through the vagus nerve up to a coordination center in your brainstem. That center processes the signal and fires back a command: slam the vocal cords shut, build pressure in the chest, then open them suddenly to blast air outward. The whole sequence happens in a fraction of a second, mostly without your conscious input, though you do have some voluntary control over it. Higher brain centers can suppress or initiate a cough, which is why you can stifle one during a quiet meeting or cough on purpose to clear your throat.

Three types of nerve fibers carry these signals. Fast-conducting fibers respond quickly to mechanical touch or irritation. Slower fibers respond to chemical irritants, temperature changes, and inflammatory compounds. The interplay between them determines how sensitive your cough reflex is at any given time.

Coughing as Airway Defense

Your lungs already have a built-in cleaning system. Tiny hair-like structures called cilia line your airways and continuously sweep mucus (along with trapped debris and bacteria) upward toward your throat, where you swallow it without noticing. This process, called mucociliary clearance, is your primary airway defense.

Coughing is the backup system. When the normal mucus-sweeping process can’t keep up, whether because of infection, excess mucus, or inhaled particles, coughing steps in to forcefully expel what the cilia can’t handle. In people born with defective cilia, coughing becomes essentially the only way to clear mucus from the lungs, which shows just how critical this reflex is.

Common Reasons You’re Coughing

A cough lasting less than three weeks is usually caused by an acute infection, most often a cold or bronchitis. Viruses inflame your upper airways, which directly irritates the sensory nerves and triggers excess mucus production. That mucus drips down the back of your throat and mechanically stimulates cough receptors. Even after the infection clears, the cough can linger for weeks because the inflammation leaves those nerve endings temporarily hypersensitive. About 25% of people with a long-lasting cough trace it back to a respiratory infection that technically resolved weeks earlier.

When a cough persists beyond eight weeks, three causes account for the majority of cases:

  • Postnasal drip (upper airway cough syndrome). Nasal and sinus conditions like allergies or chronic sinusitis cause mucus to drip down the back of your throat, irritating the upper airways. Sometimes the only symptom is a cough, with perhaps a subtle scratchy feeling in the throat. You may not even notice the drip itself.
  • Asthma. In a form called cough-variant asthma, coughing is the sole symptom. There’s no wheezing, no obvious shortness of breath. The cough tends to worsen at night, with exercise, or with cold air exposure, and it can go undiagnosed for a long time because people don’t associate it with asthma.
  • Acid reflux (GERD). Stomach acid that backs up into the esophagus can irritate the lower esophagus, the throat, and the voice box area, all of which trigger the cough reflex as a protective response. The cough often worsens after meals, when lying down, or without any obvious heartburn at all.

Why Your Cough Reflex Can Become Too Sensitive

Sometimes the problem isn’t what’s triggering the cough but how easily the reflex fires. After a viral infection, allergen exposure, or prolonged contact with air pollution, the sensory nerves in your airways can undergo a kind of rewiring. Receptors that respond to heat, capsaicin (the compound in chili peppers), and chemical irritants get upregulated on the nerve endings in your airway lining. The result is a cough that fires in response to stimuli that wouldn’t normally bother you: perfume, cold air, talking, or even just taking a deep breath.

This heightened state is sometimes called cough hypersensitivity. It explains why some people develop a persistent, frustrating cough with no clear infection or obvious lung disease. The reflex itself has been turned up, so normal, harmless stimuli now cross the threshold to trigger a cough.

Dry Cough vs. Wet Cough

A dry cough produces no mucus. It’s common with viral colds (especially early on), asthma, acid reflux, and irritant exposure. The cough is triggered by inflamed or hypersensitive nerve endings rather than by mucus that needs clearing.

A wet or productive cough brings up phlegm. This is more typical of bronchitis, bacterial infections, and conditions that cause excess mucus production. The cough is doing real mechanical work, physically moving secretions out of the lower airways. Clear or white mucus usually points to viral infection or mild irritation. Yellow or green mucus suggests the immune system is actively fighting an infection, though color alone doesn’t reliably distinguish viral from bacterial causes.

What Persistent Coughing Does to Your Body

A cough that goes on for weeks or months isn’t just annoying. The repeated forceful contractions take a physical toll. Chronic coughing commonly causes exhaustion, disrupted sleep, vomiting (from the sheer force of the cough), and urinary incontinence. Many people also experience significant social embarrassment, which can lead to isolation.

In more extreme cases, the repeated stress on the rib cage can cause fractures. Each cough forces the muscles attached to the ribs to contract powerfully, deforming the ribs slightly. Over hundreds or thousands of coughing episodes, this creates micro-fractures that can eventually become full breaks. Cough-related rib fractures are more common in people with lower bone density, but they can happen to anyone with a severe enough cough. These fractures create a painful cycle: the broken rib makes it hurt to cough, which leads to shallow breathing and poor mucus clearance, potentially worsening the underlying problem.

Warning Signs in a Cough

Most coughs resolve on their own or with treatment of the underlying cause. But certain features signal something more serious. Coughing up blood can point to infection, a mass in the lungs, or heart failure. Unexplained weight loss, night sweats, or persistent fever alongside a cough raise concern for chronic infection like tuberculosis or for cancer. Increasing shortness of breath suggests possible airway obstruction, worsening asthma, or fluid in the lungs. Thick, discolored sputum with fever may indicate pneumonia.

Any cough lasting longer than eight weeks warrants investigation, even if it seems mild. The three most common chronic causes (postnasal drip, asthma, and reflux) are all treatable, and identifying which one is responsible usually starts with a careful history of when the cough occurs, what makes it worse, and whether it produces mucus.