Why Is My Dog Acting Like He’s Seeing Things?

Dogs that appear to track, snap at, or startle at invisible things are usually responding to a real internal stimulus, not ghosts. The behavior can stem from something as treatable as digestive discomfort or as serious as seizures or cognitive decline. What looks like your dog hallucinating is almost always a clue that something physical is going on.

Fly-Snapping Syndrome

The most recognizable version of this behavior is called fly biting or fly snapping: your dog suddenly jerks their head up, extends their neck, and snaps their jaws at the air as though catching an invisible fly. For decades, veterinarians debated whether this was a hallucination, a compulsive behavior, or something neurological. A study published in The Canadian Veterinary Journal found that the answer may be surprisingly mundane: gastrointestinal discomfort.

The head raising and neck extension that dogs perform during fly-snapping episodes closely resembles Sandifer syndrome, a movement disorder seen in human infants with gastroesophageal reflux. The theory is that some dogs raise their heads and stretch their necks because of pain or discomfort in the esophagus or stomach. One documented case involved a Cavalier King Charles Spaniel whose fly-biting behavior was linked to a dietary intolerance. When the GI problem was treated, the strange visual-tracking behavior improved.

This doesn’t mean every case of fly snapping is stomach-related. It has also been categorized as a type of compulsive behavior and, in some dogs, as a sign of focal seizures. But the GI connection is worth knowing because it’s one of the most treatable causes.

Focal Seizures

Focal seizures (sometimes called partial seizures) affect only one part of the brain, so they don’t cause the full-body convulsions most people associate with epilepsy. Instead, they can produce brief, strange behavioral episodes: staring at nothing, snapping at the air, sudden fearfulness, or tracking something invisible across the room. Between episodes, a dog with focal seizures typically acts completely normal, and a standard neurological exam may come back clean.

What distinguishes a seizure from a behavioral quirk is often what happens around the episode. Dogs experiencing a focal seizure may show altered consciousness (a glazed or “checked out” look), autonomic signs like drooling or dilated pupils, or a distinct before-and-after phase where they seem confused or disoriented. The definitive way to diagnose it is with an EEG, which records electrical activity in the brain and can detect abnormal discharges even between visible episodes.

Vitreous Floaters and Eye Problems

Back in 1962, a veterinary researcher proposed that some dogs who snap at invisible flies are actually seeing something real: tiny opacities floating inside their eyes. These vitreous floaters are clumps of collagen fibers or other debris drifting through the gel-like fluid inside the eyeball. As they move, they cast shadows on the retina, and a dog may try to catch or track them.

Floaters become more common with age as the vitreous gel naturally breaks down. They can also result from bleeding inside the eye, retinal tears, or pigment dispersion. Interestingly, a standard eye exam catches them only about 8% of the time, while ultrasound detects vitreous changes in roughly 20% of eyes examined. If your vet suspects eye floaters, they may refer you to a veterinary ophthalmologist who can use ultrasound for a more thorough look.

Canine Cognitive Dysfunction

If your dog is a senior, cognitive decline is one of the most likely explanations. Canine cognitive dysfunction (CCD) is essentially the dog equivalent of dementia, and it becomes dramatically more common with age. About 18% of dogs 14 and older show signs of it, but the numbers climb steeply: 36% of 16-year-old dogs and 80% of dogs 17 and older are affected.

Vision impairment is the single most strongly associated physical sign. More than 90% of dogs with CCD in one study had impaired vision, and the underlying mechanism may mirror what happens in human Alzheimer’s patients, where the brain’s ability to process motion becomes selectively damaged. A dog with CCD might stare at walls, appear startled by familiar objects, seem confused in well-known spaces, or track things that aren’t there. You might also notice pacing, changes in sleep patterns, getting stuck in corners, or forgetting previously learned behaviors.

Liver Disease and Toxin Buildup

The liver filters toxins from the blood, including ammonia. When liver function is impaired, whether from chronic disease, a portosystemic shunt (an abnormal blood vessel that bypasses the liver), or acute liver failure, ammonia levels rise. That ammonia crosses into the brain, where it gets absorbed by brain cells called astrocytes. The astrocytes swell with water as they try to process it, creating a form of brain swelling that disrupts normal function.

This condition, hepatic encephalopathy, produces a spectrum of neurological symptoms: confusion, disorientation, altered consciousness, behavioral changes, and in severe cases, seizures or coma. A dog in the early stages might seem “off,” stare into space, act dazed, or react to things that aren’t visible. Dogs with portosystemic shunts are often young (the defect is frequently congenital), so this isn’t limited to older dogs. Blood work that includes ammonia levels and liver values can identify the problem.

THC and Other Toxins

If your dog’s strange behavior came on suddenly, especially after being outside, at a park, or in a new environment, accidental ingestion of marijuana or THC edibles is a real possibility. A study of 223 confirmed cases found that 88% of affected dogs showed ataxia (wobbly, uncoordinated movement) and 75% showed hyperesthesia, an exaggerated sensitivity to touch, sound, or visual stimuli. A hyperesthetic dog may flinch, startle, or track things in the environment that wouldn’t normally catch their attention. Urinary incontinence (46% of cases) and lethargy (63%) round out the typical picture.

The most common presentation was a young dog with sudden wobbliness and heightened sensitivity after going outside or visiting a public place. THC toxicity is rarely fatal in dogs, but it can look alarming. Other toxins, including certain mushrooms, prescription medications, and rodenticides, can also cause neurological symptoms that mimic hallucinations.

Compulsive Light and Shadow Chasing

Some dogs develop a fixation on lights, shadows, or reflections that can look like they’re seeing invisible things. This is most common in high-energy, high-drive breeds, particularly herding and hunting dogs from working lines. What often starts as a playful quirk, chasing a sunbeam across the floor or fixating on a reflection, can escalate into a full obsessive-compulsive pattern where the dog compulsively scans walls and floors for any flicker of light or shadow movement.

Laser pointers are a common trigger. The dot activates prey drive but never provides the satisfaction of a “catch,” which can wire a susceptible dog into an anxiety loop. If your dog is staring at walls, scanning floors, or pouncing at spots of light that have long since disappeared, compulsive behavior is worth considering, especially if the episodes intensify over time or your dog seems unable to disengage on their own.

What to Watch For

Video is the single most useful thing you can bring to a vet appointment. These episodes are often brief and hard to describe verbally, but a recording lets your vet see exactly what’s happening: whether your dog’s eyes are tracking something specific, whether their jaw is snapping, whether they seem conscious or glazed, and what the rest of their body is doing. Try to capture a few episodes from different angles if you can.

Pay attention to patterns. Episodes that happen around mealtimes or shortly after eating point toward GI causes. Behavior that’s identical every time and involves a period of confusion afterward suggests seizures. Gradual worsening in a senior dog, combined with disorientation or sleep changes, fits cognitive dysfunction. A sudden onset after an outing, paired with wobbliness and jumpiness, raises the question of toxin exposure. The timing, frequency, and surrounding context often matter as much as the behavior itself.