A dog that keeps hacking is almost always coughing, and the most common cause is an upper respiratory infection, often called kennel cough. But hacking can also signal a collapsing windpipe, heart disease, something stuck in the throat, or lung problems. The sound of the hack, when it happens, and how long it lasts all point toward different causes.
Kennel Cough: The Most Likely Culprit
If your dog recently spent time around other dogs (a boarding facility, dog park, groomer, or daycare), a respiratory infection is the most probable explanation. Kennel cough is caused by a mix of bacteria and viruses that inflame the windpipe and upper airways. The hallmark is a harsh, dry, forceful hack that sounds like your dog is trying to clear something from the throat. Some dogs retch or gag at the end of a coughing fit, which can look alarming but is typical.
Most dogs with kennel cough start improving within the first five days, but the cough itself can linger for 10 to 20 days. During that time, your dog may eat normally, stay active, and seem fine between episodes. If the cough gets worse after the first week instead of better, or if your dog develops a fever, nasal discharge, or lethargy, a secondary bacterial infection may have set in, and that requires treatment.
Tracheal Collapse in Small Breeds
Small dogs, especially Yorkies, Pomeranians, Chihuahuas, and toy poodles, are prone to a condition where the cartilage rings of the windpipe weaken and flatten. The signature sound is a “goose honk,” a loud, harsh, honking hack that’s distinctly different from the wet or raspy cough of an infection. It tends to flare up when the dog gets excited, pulls on a leash, drinks water, or goes outside into hot or humid air.
Even slight pressure on the throat can trigger a coughing fit. If your small dog hacks every time the leash pulls against a collar, that’s a strong clue. Switching to a front-clip harness removes pressure from the trachea and can dramatically reduce episodes. Avoid retractable leashes, which put near-constant tension on the neck. Check the harness fit regularly since bands can loosen over time and allow your dog to wriggle free.
Heart Disease and Nighttime Coughing
In middle-aged and older dogs, a persistent hack, particularly one that’s worse at night or after resting, can be a sign of heart enlargement. As the heart grows larger, it presses against the airways branching off the windpipe. This compression produces a dry, hacking cough that may be the first outward sign of developing heart failure.
Heart-related coughing often shows up alongside other subtle changes: less stamina on walks, faster breathing while resting, or a reluctance to lie flat. If your older dog’s cough seems worst when they’ve been lying down for a while, a heart evaluation is worth pursuing. When caught early, medication that reduces the heart’s size can relieve the airway compression and significantly improve the cough.
Something Stuck in the Throat
A sudden onset of intense hacking in a dog that was perfectly fine an hour ago raises the possibility of a foreign object. Sticks, bone fragments, pieces of toys, and even grass blades can lodge in the throat or upper airway. The key difference from an infection is how abruptly it starts. Other signs to watch for:
- Repeated gulping or exaggerated swallowing attempts
- Pawing at the mouth or face
- Drooling, sometimes with blood
- Retching without producing anything
- Reluctance to eat or drink
- Pain when moving the head or neck
If your dog shows several of these signs together, this warrants a same-day vet visit. Don’t try to reach into your dog’s throat to remove something you can’t see, as you risk pushing it deeper or being bitten.
Is It Actually a Cough or a Reverse Sneeze?
Many dog owners describe reverse sneezing as “hacking,” and the two can look similar. During a reverse sneeze, your dog rapidly inhales through the nose in loud, snorting bursts while standing still with the neck extended, head tilted back, and mouth closed. The nostrils flare and the lips pull back. A coughing hack, by contrast, pushes air out forcefully through an open mouth. Reverse sneezing episodes usually last under 30 seconds, resolve completely on their own, and don’t indicate illness. If what you’re seeing matches that pattern, it’s likely harmless.
What the Vet Visit Looks Like
When hacking persists beyond a couple of weeks, happens in patterns (at night, with exercise, with excitement), or comes with other symptoms, the diagnostic process typically starts with three things: a blood panel, a heartworm test, and chest and neck X-rays. The X-rays are the single most useful first step, as they can reveal an enlarged heart, collapsed trachea, fluid in the lungs, or masses pressing on the airway.
X-rays don’t catch everything, though. Tracheal collapse, for instance, can be missed because a standard X-ray captures only a single moment. The trachea may look normal in that snapshot but collapse during breathing. If that’s suspected, your vet may recommend fluoroscopy, which is essentially a moving X-ray that captures the trachea in real time as your dog breathes in and out. In cases where X-rays and bloodwork don’t explain the cough, a scope inserted into the airway under anesthesia can visualize the problem directly and collect fluid samples for testing.
How Hacking Is Treated
Treatment depends entirely on the cause. Mild kennel cough in an otherwise healthy adult dog often resolves without medication. Your vet may prescribe a cough suppressant if the hacking is severe enough to disrupt sleep or cause throat irritation. These suppressants are opioid-based medications that quiet the cough reflex, and some cause noticeable drowsiness, which is normal. Antibiotics are added only if a bacterial infection is confirmed or strongly suspected.
For tracheal collapse, management is usually a combination of weight control (extra weight puts pressure on weakened airways), a harness instead of a collar, and avoiding triggers like extreme heat and overexcitement. More severe cases may require medication to reduce airway inflammation, and in advanced cases, a stent can be placed inside the trachea to hold it open.
Heart-related coughs improve when the underlying heart disease is managed. Medications that reduce fluid buildup and decrease the heart’s workload shrink the heart enough to relieve the pressure on the airways.
Signs That Need Emergency Care
Most hacking coughs can wait for a regular vet appointment. A few situations can’t. A normal breathing rate for dogs at rest is 12 to 30 breaths per minute. If your dog is breathing significantly faster than that, especially with visible effort from the abdomen, that’s respiratory distress. Other emergency signs include gums or the muzzle turning bluish or gray, your dog stretching the head and neck forward as if straining to get air, collapse, or extreme weakness between coughing episodes. These warrant an immediate trip to an emergency animal hospital, not a wait-and-see approach.

