Dogs that snap or bite at the air, as if catching invisible flies, are usually responding to a physical sensation you can’t see. This behavior, sometimes called “fly-biting” or “fly-catching syndrome,” looks odd but often has a medical explanation. The most common underlying cause, surprisingly, is gastrointestinal discomfort, though focal seizures, compulsive disorders, and vision problems can also be responsible.
Stomach Problems Are the Most Common Cause
The strongest research link between air biting and a medical condition points to the gut, not the brain. A prospective study of seven dogs presented for fly-biting behavior found that six of them had inflammatory changes in the stomach or upper intestine, and two had delayed gastric emptying. Two dogs also showed acid reflux during examination. The researchers concluded that gastrointestinal disease was the most common cause of fly biting in their study group.
The connection makes more sense when you compare it to something that happens in human infants. Babies with severe acid reflux sometimes develop Sandifer syndrome, a condition where they arch their necks and make unusual head movements in response to esophageal pain. Dogs with fly-biting behavior often raise their heads and extend their necks before snapping at the air, which may be the same type of reflexive response to discomfort traveling up the esophagus. Your dog isn’t seeing things. It may be reacting to a burning or uncomfortable sensation rising from its stomach.
One case report documented a six-year-old French Bulldog with a two-month history of sudden jumping and air-snapping episodes alongside chronic digestive issues. The dog tested positive for antibodies associated with gluten sensitivity. After switching to an exclusively gluten-free diet, the episodes resolved completely within three months. An earlier case in a Cavalier King Charles Spaniel also linked fly biting to dietary intolerance. These cases suggest that for some dogs, the fix can be as straightforward as changing what they eat.
Focal Seizures Can Look Like Air Snapping
Focal seizures affect only one part of the brain, unlike the full-body convulsions most people picture when they hear “seizure.” When a focal seizure activates the part of the brain controlling jaw movement or visual processing, the result can look exactly like a dog snapping at invisible flies. The dog may appear fully conscious during the episode, which is why owners often don’t suspect a neurological cause.
A few clues can help distinguish seizure-related air biting from other causes. Dogs experiencing focal seizures typically cannot be interrupted or distracted mid-episode. They may also seem briefly dazed or disoriented afterward. The episodes tend to follow a pattern, looking nearly identical each time in duration and movement. If your dog’s air biting always involves the same sequence of motions and you can’t snap them out of it by calling their name or offering a treat, a neurological evaluation is worth pursuing. Only about 70% of dogs with seizure disorders respond well to anti-seizure medication, and fewer than half achieve full seizure control without side effects, so accurate diagnosis matters before starting any treatment.
Compulsive Behavior and Anxiety
Dogs can develop compulsive disorders that are strikingly similar to obsessive-compulsive disorder in humans. Air snapping is one of several repetitive behaviors seen in canine compulsive disorder, alongside tail chasing, excessive licking, chewing with an empty mouth, and monotonous barking that never changes in pitch or volume. These behaviors are rooted in stress and anxiety, and they’re often misdiagnosed as neurological problems.
The key difference is context. Compulsive air snapping typically ramps up during stressful situations: when the dog is left alone, when there’s conflict in the household, during transitions in routine, or in high-arousal environments. It may start as a normal behavior that the dog repeats so often it becomes involuntary. Researchers at Purdue University have used brain imaging to study these dogs and found neurological changes similar to those seen in humans with OCD, confirming that canine compulsive disorder is a real condition with measurable brain differences, not just a quirky habit.
Vision Changes and Eye Floaters
Some dogs, particularly older ones, may snap at the air because they’re genuinely seeing something. As dogs age, the gel-like substance inside the eye can break down and create tiny floating specks that drift across their field of vision. To a dog, these floaters might look like small insects worth catching. This cause is harder to confirm diagnostically, but it’s worth considering if your dog is older, the snapping seems visually tracked (their eyes follow something before they snap), and no other medical issues are found.
What to Watch For at Home
Before your vet visit, recording a few episodes on your phone is one of the most helpful things you can do. Video gives your vet far more information than a verbal description. While you’re observing, pay attention to a few details that will help narrow down the cause:
- Can you interrupt it? If calling your dog’s name, clapping, or offering food stops the behavior immediately, it’s less likely to be a seizure and more likely to be compulsive or GI-related.
- When does it happen? Episodes that cluster around mealtimes or occur shortly after eating point toward a digestive cause. Episodes that happen during stressful situations suggest a compulsive component.
- What does the body do? Head raising and neck extension before snapping suggest esophageal discomfort. A blank, unresponsive stare during episodes leans toward seizure activity.
- Are there digestive symptoms too? Vomiting, loose stools, excessive grass eating, lip licking, or gulping sounds between episodes all support a gastrointestinal connection.
How Vets Figure Out the Cause
Because air biting sits at the intersection of neurology, gastroenterology, and behavioral medicine, vets typically work through a process of elimination. The workup often starts with bloodwork and a physical exam, then moves to more targeted testing based on what the initial results and your observations suggest. If digestive disease is suspected, endoscopy (a camera passed into the stomach) can reveal inflammation, reflux, or delayed emptying. For neurological concerns, brain imaging and analysis of spinal fluid may be recommended.
The good news from the research is that many cases respond to relatively simple interventions. Dogs whose air biting stems from GI issues often improve significantly with dietary changes, whether that means a hypoallergenic formula, a hydrolyzed protein diet, or in some cases a gluten-free diet. Dogs with compulsive disorders benefit from a combination of anxiety reduction strategies and, when needed, behavioral medication. Even dogs with focal seizures have treatment options, though finding the right medication and dose can take some adjustment. The first step is recognizing that this strange-looking behavior is your dog telling you something is wrong.

