Most coughs are preventable, whether the trigger is a respiratory virus, an environmental irritant, or a chronic condition like acid reflux. The strategies that work best depend on what’s causing the cough in the first place, but a few habits, like regular handwashing and keeping your airways hydrated, protect against nearly all of them. Here’s what actually makes a difference.
Wash Your Hands the Right Way
Respiratory infections cause the majority of acute coughs, and your hands are the primary vehicle for getting those viruses into your body. You touch your face dozens of times per hour without realizing it, transferring viruses from doorknobs, phones, and shared surfaces straight to your nose, mouth, and eyes. Regular handwashing reduces the risk of respiratory infections like colds by about 20%, according to CDC data. The key detail most people skip: scrub for at least 20 seconds. Washing for shorter periods removes significantly fewer germs.
Cold and flu viruses can survive on hard surfaces for several hours to days, so cleaning frequently touched objects (light switches, keyboards, phone screens) matters too, especially during cold and flu season or when someone in your household is sick.
Stay Hydrated to Keep Airways Clear
Your airways are lined with a thin layer of mucus that traps irritants and pathogens before they can trigger a cough. That mucus layer depends on hydration to stay at the right consistency. When you’re well-hydrated, your airway cells actively secrete fluid that dilutes mucus to a favorable thickness, keeping it moving smoothly. When you’re dehydrated, mucus becomes thick and sticky, cilia (the tiny hair-like structures that sweep debris out of your lungs) struggle to move it, and irritants linger longer in your airways.
There’s no magic number of glasses per day that works for everyone. A practical rule: if your urine is pale yellow, you’re likely well-hydrated. Drink more in dry climates, at altitude, during illness, and when exercising.
Control Your Indoor Air
Dry, dusty, or polluted indoor air is one of the most overlooked cough triggers. Two adjustments make the biggest difference:
Humidity. The EPA recommends keeping indoor humidity between 30 and 50 percent. Below 30%, your airways dry out and become more reactive to irritants. Above 50%, mold and dust mites thrive, which can trigger allergic coughs. A simple hygrometer (under $15 at most hardware stores) lets you monitor levels, and a humidifier or dehumidifier can bring you into range.
Air filtration. HEPA-grade air purifiers effectively remove respirable-size particles, the invisible irritants small enough to penetrate deep into your lungs. These include tobacco smoke, fine dust, pet dander, and pollen. If you live near a busy road, in a wildfire-prone area, or with a smoker, a HEPA filter in the room where you sleep can noticeably reduce airway irritation. Make sure the purifier is rated for your room size, and replace filters on schedule.
Get Vaccinated Against Cough-Causing Illnesses
Some of the worst coughs come from vaccine-preventable diseases. Pertussis (whooping cough) causes violent, weeks-long coughing fits that can persist for months. The CDC recommends one dose of Tdap vaccine, followed by a booster every 10 years. Many adults haven’t had a booster since childhood and have little remaining protection.
Annual flu shots and staying current on COVID vaccines also prevent the respiratory infections most likely to leave you coughing for weeks. Pneumococcal vaccines, recommended for adults 65 and older and for younger adults with certain health conditions, protect against bacterial pneumonia, another common cause of persistent cough.
Prevent Acid Reflux Cough
A chronic, dry cough that’s worse at night or after meals often has nothing to do with your lungs. Acid reflux (GERD) is one of the top three causes of chronic cough. Stomach acid creeps up into the esophagus and sometimes reaches the throat, irritating the airways and triggering a cough reflex, sometimes without any heartburn at all.
Dietary triggers to watch for include citrus fruits, tomatoes, chocolate, coffee, mint, spicy foods, high-fat meals, and alcohol. You don’t need to eliminate all of them. Pay attention to which ones precede your coughing episodes and cut those first. Meal timing matters too: eating at least three hours before lying down or going to bed significantly reduces nighttime reflux symptoms. Sleeping with your head elevated by 6 to 8 inches (using a wedge pillow, not just extra pillows) also helps keep acid where it belongs.
Wear a Mask When Exposure Is High
In crowded indoor spaces during respiratory virus season, a well-fitting mask remains one of the most effective tools for preventing infection. Not all masks perform equally. A duckbill N95 respirator reduces exhaled viral particles by 98%, far outperforming surgical masks and KN95s in controlled testing. If you’re trying to avoid catching a virus on a plane, in a hospital waiting room, or during a local outbreak, an N95 provides substantially more protection than a cloth or surgical mask.
Quit Smoking (or Avoid Secondhand Smoke)
Smoking paralyzes and eventually destroys the cilia that clear irritants from your airways. Without functioning cilia, mucus and debris accumulate, producing the persistent “smoker’s cough.” After quitting, coughing and shortness of breath typically decrease within 1 to 12 months as cilia begin to recover. The cough may actually worsen briefly in the first few weeks after quitting because the cilia are waking back up and starting to clear accumulated debris, a sign that healing is underway.
If you don’t smoke but live or work with someone who does, your airways are still taking damage. Secondhand smoke contains the same fine particles that a HEPA filter can remove, so air filtration is especially important in these situations.
Support Your Immune Defenses
Vitamin D plays a measurable role in respiratory defense. A pooled analysis of 11 clinical trials with over 5,600 participants found that vitamin D supplementation reduced the risk of respiratory tract infections by about 36%. Importantly, daily low doses (300 to 2,000 IU per day) were far more protective than large monthly or quarterly mega-doses, which showed little benefit. If you spend limited time outdoors, live at a northern latitude, or have darker skin, your vitamin D levels are more likely to be low.
Beyond supplementation, the basics matter: consistent sleep (7 to 9 hours), regular physical activity, and a diet rich in fruits and vegetables all support immune function. None of these are dramatic on their own, but combined with the other strategies here, they meaningfully reduce how often you get sick and how severely infections hit your airways.
Avoid Common Chemical Irritants
Cleaning products, air fresheners, strong perfumes, and volatile chemicals (paint, adhesives, new furniture off-gassing) can all trigger or worsen a cough, especially in people with sensitive airways. When using harsh cleaning products, open windows or run an exhaust fan. Switch to fragrance-free versions where possible. If your cough consistently appears in a specific environment, like your workplace or a freshly cleaned room, chemical irritants are a likely culprit.

