A hacking cough is a repeated, short, dry cough that sounds harsh and forced. It typically produces little or no mucus, which distinguishes it from a “wet” or “chesty” cough. The term describes the sound and pattern of the cough rather than a specific diagnosis, and it can stem from anything from a lingering cold to acid reflux to whooping cough.
How a Hacking Cough Sounds and Feels
Coughing is a protective reflex. When something irritates the lining of your airways, nerve endings send a signal to your brain, which triggers a rapid sequence: you inhale, your vocal cords briefly close to build pressure, then they snap open and air rushes out at high speed. That burst of air is what dislodges mucus, dust, or whatever else triggered the reflex.
With a hacking cough, the irritation is usually in the upper airways or throat rather than deep in the lungs. Because there’s little mucus to clear, the cough doesn’t feel productive. It just keeps firing. You may notice it worsens when you talk, breathe cold air, or lie down at night. The sound is sharp and repetitive, sometimes described as barking, and it can leave your throat raw and your chest muscles sore after a bad bout.
Where the irritation originates changes the cough’s character. Irritation near the voice box tends to produce a sudden, choking cough with no deep breath beforehand. Irritation deeper in the airways triggers a bigger inhale first, generating more force to push air outward. That’s why a hacking cough from post-nasal drip feels different from one caused by bronchitis, even though both are dry and persistent.
Common Causes
Viral and Bacterial Infections
The most common trigger is a respiratory infection. Colds, flu, and other viral illnesses frequently leave behind a hacking cough that persists well after other symptoms have cleared. The average cough from a respiratory infection lasts about 16 days, which surprises most people who expect it to resolve in a week. Viral coughs average about 15 days, while bacterial infections push closer to 17. The type of pathogen doesn’t strongly predict how long or how severe the cough will be.
Whooping cough (pertussis) deserves special mention. It’s a bacterial infection that often starts with mild cold-like symptoms, then progresses one to two weeks later into intense coughing fits that can last six weeks or longer, sometimes up to ten. In teens and adults, a persistent hacking cough may be the only symptom. The classic “whoop” sound on inhaling after a fit is more common in children. Coughing fits from pertussis can be violent enough to cause vomiting, rib fractures, or difficulty breathing.
Post-Nasal Drip
When excess mucus drains from your sinuses down the back of your throat, it irritates the nerve endings there and triggers a dry, hacking cough. Allergies, sinus infections, and even weather changes can set this off. The cough is often worse at night or first thing in the morning.
Acid Reflux (GERD)
Stomach acid creeping up into the esophagus and throat is one of the most overlooked causes of a chronic cough. Somewhere between 10% and 59% of chronic cough cases are linked to GERD, depending on the study. You don’t always feel obvious heartburn. The acid irritates the same nerve pathways in the throat that trigger the cough reflex, so the cough can appear without any burning sensation. Obesity raises the risk of reflux-related cough, and alcohol tends to worsen symptoms. Certain physical activities like bending, cycling, or weight lifting can also push acid upward, especially during or right after exercise.
Asthma
A variant of asthma called “cough-variant asthma” produces a dry, hacking cough as its primary symptom, sometimes without the wheezing or shortness of breath people associate with the condition. It often flares at night, with exercise, or after exposure to allergens or cold air.
Medications
A class of blood pressure drugs called ACE inhibitors is well known for causing a persistent dry cough in some users. If your hacking cough started within weeks of beginning a new medication, that connection is worth investigating.
Smoking and Air Quality
Cigarette smoke directly damages the airways’ self-cleaning mechanisms, leading to chronic irritation and cough. Air pollution, dust, and chemical fumes at work can do the same. Interestingly, people who quit smoking sometimes experience worsening acid reflux symptoms in the short term, which can itself trigger a cough.
How It’s Diagnosed
If a hacking cough hangs on for more than a few weeks, a doctor will typically start with a chest X-ray and a breathing test called spirometry. The X-ray checks for pneumonia, lung masses, or other structural problems. Spirometry measures how much air your lungs hold and how quickly you can push it out, which helps identify asthma or chronic obstructive lung disease.
If asthma is suspected but spirometry looks normal, you may be asked to do a challenge test where you inhale a substance that mildly narrows the airways. If your breathing drops measurably, it suggests asthma is the culprit. When reflux is suspected, the workup shifts to the digestive system. If colored mucus is present, a sample may be tested for bacteria. In less straightforward cases, a thin camera can be passed through the nose to examine the sinuses and upper airway, or through the mouth into the lungs to look at the bronchial lining directly.
Relief and Treatment at Home
For a dry, hacking cough, a cough suppressant containing dextromethorphan is generally the better over-the-counter choice. It works by dampening the cough signal in the brain, reducing the urge to cough. An expectorant like guaifenesin takes a different approach: it thins mucus and increases fluid in the airways, making it easier to cough things up. That’s more useful for a wet, congested cough. If your cough is dry and unproductive, an expectorant won’t do much.
Honey is a surprisingly effective option. For children ages 1 and older, half a teaspoon to one teaspoon can help calm a cough. (Never give honey to babies under 1 due to the risk of botulism.) Adults can take a spoonful straight or stir it into warm water or tea. Staying hydrated, using a humidifier, and avoiding known irritants like smoke or strong fragrances also help keep the airways less reactive.
When the underlying cause is acid reflux, treating the reflux treats the cough. Eating smaller meals, avoiding alcohol, staying upright after eating, and losing weight if needed can all reduce reflux episodes. For post-nasal drip, saline nasal rinses and antihistamines address the source of irritation.
Signs That Need Medical Attention
A cough that lingers beyond a few weeks deserves a medical evaluation, but certain symptoms call for more urgent action. Coughing up blood or pink-tinged mucus, significant shortness of breath, chest pain, difficulty swallowing, or fainting during coughing fits all warrant prompt care. Thick, greenish-yellow mucus with a fever suggests an active infection that may need treatment. Unexplained weight loss, ankle swelling, or wheezing alongside a persistent cough are also signals that something beyond a simple irritation is going on.

