Fly biting in dogs is a behavior where a dog snaps or bites at the air as if trying to catch an invisible fly. The episodes can last anywhere from a few seconds to several minutes and may happen multiple times a day. While it looks odd or even amusing at first, fly biting is increasingly recognized as a sign of an underlying medical problem, most commonly a gastrointestinal disorder, rather than a simple quirk or bad habit.
What Fly Biting Looks Like
A dog with fly biting syndrome will suddenly jerk its head and snap its jaws at nothing. Some dogs track the “fly” with their eyes before biting, while others lunge forward or upward repeatedly. The behavior can appear random, interrupting normal activities like eating, resting, or playing. Episodes typically last a few minutes and may be accompanied by excessive drooling or lip licking.
The term is sometimes used interchangeably with “fly snapping” or “fly catching syndrome.” All describe the same pattern: a dog reacting to something that isn’t there.
The GI Connection
For years, fly biting was assumed to be either a seizure disorder or a compulsive behavior. A landmark study from the University of Montreal changed that picture. Researchers evaluated seven dogs referred specifically for fly biting and found that six of the seven had inflammatory changes in the stomach or upper intestine. Two had acid reflux visible during endoscopy. Two had delayed gastric emptying, meaning food sat in the stomach longer than normal. The most common finding was inflammation of the stomach and duodenal lining.
The connection makes more sense than it first sounds. Dogs experiencing nausea, acid reflux, or abdominal discomfort may posture or snap their heads in response to the sensation. The researchers compared it to Sandifer syndrome in humans, where infants with severe reflux arch their backs and twist their necks in unusual ways. The discomfort triggers a reflexive movement that looks neurological but is actually gastrointestinal in origin.
One of the study’s cases involved a Labrador retriever with fly biting that occurred several times daily alongside episodes of excessive drooling that had gone on for four years. When the dog was diagnosed with a specific type of stomach inflammation (eosinophilic gastritis) and treated with a hypoallergenic diet and anti-inflammatory medication, both the drooling and the fly biting resolved completely.
Dietary Sensitivities and Food Intolerance
Because GI inflammation is so often involved, dietary changes can sometimes stop fly biting entirely. A Cavalier King Charles Spaniel with fly biting linked to dietary intolerance was one of the early reported cases that pointed researchers toward the gut. More recently, a French Bulldog with fly catching syndrome was found to have antibodies associated with gluten sensitivity. When the dog was switched to an exclusively gluten-free diet, the episodes resolved completely within three months of follow-up.
Hypoallergenic and highly digestible diets are often one of the first interventions a vet will try. These eliminate common triggers like certain proteins or grains that can cause low-grade inflammation in the stomach and intestines. If the fly biting is driven by GI discomfort, a diet change alone may be enough to stop it.
Focal Seizures as a Cause
Fly biting can also be a type of focal seizure, which is a seizure that affects only one part of the brain rather than the whole brain. Unlike a generalized seizure where a dog falls over and convulses, focal seizures are subtle. A dog might twitch one side of its face, stare blankly, or, in this case, snap at the air repeatedly. Cornell University’s veterinary college lists fly biting specifically as an example of behavior that may stem from focal seizures.
The tricky part is that focal seizures and GI-related fly biting can look nearly identical from the outside. Both produce brief, repetitive episodes that seem to come out of nowhere. The distinction matters because the treatments are completely different: seizure-related fly biting typically requires anti-seizure medication, while GI-related fly biting responds to dietary changes or treatment of the underlying stomach or intestinal condition.
Not Usually a Compulsive Disorder
Fly biting was historically lumped in with compulsive behaviors in dogs, similar to tail chasing or excessive licking. That classification is falling out of favor. A review in The Canadian Veterinary Journal noted that conditions previously labeled as compulsive disorders, including fly biting and repetitive surface licking, are turning out to be secondary to medical problems far more often than expected. To qualify as a true compulsive disorder, the behavior has to occur in the absence of any underlying skin, neurological, or other medical condition. Given how frequently GI disease and seizure activity show up in fly-biting dogs, a purely behavioral diagnosis should only come after medical causes have been ruled out.
That said, stress and anxiety can worsen or trigger episodes in some dogs, particularly if there’s already an underlying vulnerability. Dogs that fly-bite more during high-stress situations like thunderstorms or when left alone may have both a medical and behavioral component.
How Vets Figure Out the Cause
Because fly biting sits at the intersection of GI disease, neurology, and behavior, diagnosis usually involves a process of elimination. Your vet will likely start with a thorough physical exam and blood work. If GI disease is suspected, the next steps often include imaging of the abdomen and endoscopy, where a camera is passed into the stomach and upper intestine to look for inflammation, reflux, or delayed emptying. Biopsies taken during endoscopy can reveal the type of inflammation present.
If the GI workup comes back clean, neurological evaluation becomes the focus. This may include an MRI of the brain to rule out structural problems and sometimes an electroencephalogram (EEG) to look for seizure activity. Video of the episodes taken at home is extremely helpful for the vet, so recording your dog during a fly biting episode on your phone is one of the most useful things you can do before the appointment.
What Treatment Looks Like
Treatment depends entirely on the underlying cause. For dogs with GI-driven fly biting, a dietary trial with a hypoallergenic, highly digestible, or novel-protein food is typically the starting point. Some dogs respond within weeks, though a full trial may run two to three months before results are clear. If inflammation is confirmed through biopsy, anti-inflammatory medication may be added alongside the diet change.
For dogs whose fly biting is caused by focal seizures, anti-seizure medication becomes the primary treatment. These medications are taken daily and require periodic blood work to make sure levels stay in the right range. Most dogs tolerate them well, though drowsiness and increased appetite are common early side effects that often improve over time.
The good news is that fly biting frequently improves or resolves once the right cause is identified. In the University of Montreal study, treating the underlying GI disease led to improvement in the majority of the dogs evaluated. The key is not dismissing the behavior as a harmless quirk. A dog that repeatedly snaps at invisible flies is telling you something is wrong, and identifying what that is can make a real difference in their comfort and quality of life.

