Why Do Gnats Fly Up Your Nose, Eyes, and Mouth

Gnats zero in on your face because your nose, eyes, and mouth produce exactly what they’re searching for: carbon dioxide, moisture, warmth, and chemical signals that together form a beacon these tiny insects can’t resist. Your head is essentially ground zero for the cues gnats use to find food, hydration, and breeding resources. Different gnat species target different parts of your face for different reasons, and understanding what’s actually driving them toward your airways and eyes makes it much easier to keep them away.

Carbon Dioxide Is the Primary Homing Signal

Every time you exhale, you release a plume of carbon dioxide that spreads outward from your nose and mouth. For many small flies, this gas functions like a long-range dinner bell. Research on host-seeking black flies found that when exhaled breath was removed from the equation, the insects’ attraction dropped to roughly 15% of its previous level. When subject-specific CO2 concentrations were restored, attractiveness bounced back to about 90% of the original level.

But CO2 alone doesn’t tell the whole story. The same study showed that exhaled breath with the CO2 stripped out (using a soda-lime filter) and then re-supplemented with bottled CO2 was still more attractive than plain CO2 at the same concentration. That means your breath contains other volatile compounds beyond carbon dioxide that gnats find appealing.1PubMed. Human individuals vary in attractiveness for host-seeking black flies (Diptera: Simuliidae) based on exhaled carbon dioxide These likely include traces of lactic acid, acetone, and other metabolic byproducts that ride along in the exhaled air stream. Because all of these chemicals exit through your nose and mouth, the area immediately in front of your face is the densest cloud of attractants your body produces.

Why Your Eyes Are a Separate Target

Your eyes offer something your nose and mouth don’t: a readily accessible pool of protein-rich fluid. Tears contain proteins, salts, and moisture that many gnat species need in order to reproduce. A whole group of insects known colloquially as eye gnats, belonging to the genus Liohippelates, have evolved specifically to feed on the secretions around eyes. These tiny flies, usually just a couple of millimeters long, don’t bite. Instead, they land near the corners of your eyes and lap up tears and mucus.2EDIS. Eye Gnats, Grass Flies, Eye Flies, Fruit Flies Liohippelates spp. (Insecta: Diptera: Chloropidae)

Your mouth and nostrils are attractive for similar reasons. Saliva and nasal mucus are warm, wet, and chemically rich. For a creature that weighs a fraction of a gram, the moisture film on your lips or the humidity just inside your nostrils can represent a significant resource. Sweat around your forehead and temples adds another moisture layer, which is why gnats tend to swarm your whole head rather than, say, your ankles.

Dark Colors and Visual Cues Help Gnats Find You

Chemical signals get gnats headed in your direction, but once they’re close, vision takes over. Research on mosquitoes (which share similar sensory strategies with many small flies) has demonstrated that after CO2 activates their flight behavior, the insects preferentially approach dark objects that contrast with a lighter background. In controlled experiments, darker objects drew dramatically more investigation than lighter ones, and the effect was strongly linked to the presence of CO2: without a CO2 trigger, the visual preference largely disappeared.3PubMed Central. The olfactory gating of visual preferences to human skin and visible spectra in mosquitoes>

Your pupils, nostrils, and open mouth are among the darkest spots on your face. Against the lighter skin of your cheeks and forehead, these openings stand out visually in exactly the way that attracts small flies. Dark hair frames the picture further. This is why wearing a lighter-colored hat can sometimes reduce gnat harassment around your face: you’re lowering the visual contrast that helps them target you once they’ve already picked up your chemical trail.

Why Some People Seem to Be Gnat Magnets

If you’ve ever noticed that gnats swarm around you while leaving your friend alone, you’re not imagining it. Individual variation in gnat attractiveness is real and measurable. The black fly research described above found clear differences in how attractive individual people were to host-seeking flies, and those differences disappeared when exhaled breath was removed. When breath-specific CO2 levels were added back, the individual rankings returned.1PubMed. Human individuals vary in attractiveness for host-seeking black flies (Diptera: Simuliidae) based on exhaled carbon dioxide This suggests that the amount of CO2 you produce, along with whatever other volatiles come along with it, varies enough from person to person to make a practical difference in how many gnats come your way.

Several factors influence your CO2 output and the chemical cocktail on your skin. Larger people generally exhale more CO2 per breath. Exercise temporarily spikes your exhalation rate. Alcohol consumption changes your skin chemistry and may increase CO2 production. Pregnancy raises metabolic rate. Even your skin microbiome, the particular mix of bacteria living on your skin surface, produces its own volatile compounds that vary from person to person. None of these factors alone turns you into a gnat magnet, but together they create a unique chemical profile that may land on the more-attractive or less-attractive end of the spectrum.

The Diseases Eye Gnats Can Carry

Most gnat encounters are just annoying, but eye gnats in particular carry a genuine health risk. Liohippelates species have been linked to the transmission of several diseases, including acute bacterial conjunctivitis (pink eye).2EDIS. Eye Gnats, Grass Flies, Eye Flies, Fruit Flies Liohippelates spp. (Insecta: Diptera: Chloropidae) Because these flies feed on the secretions around your eyes, they can pick up bacteria from one host and deposit them on the next. In parts of the world where sanitation infrastructure is limited, the persistent feeding behavior of eye gnats on children has been associated with outbreaks of trachoma, a chronic eye infection that can eventually lead to blindness.

In the United States, trachoma is not a significant concern, but pink eye outbreaks linked to eye gnats have been documented, particularly in rural communities with loose, sandy soils where these flies breed in high numbers. Livestock are affected too, as the same gnats will feed on the eyes and wounds of cattle and other animals, potentially spreading infection between animals and between animals and humans. If you’re in an area with heavy eye gnat activity and you develop redness, discharge, or irritation in your eyes, it’s worth mentioning the gnat exposure to a doctor rather than assuming simple allergies.

Where and When Gnats Are Worst

Geography and season matter a lot. Eye gnats thrive in areas with loose sandy soils, which is why the southern United States, especially agricultural regions in Florida, Georgia, and southern California, sees some of the densest populations.2EDIS. Eye Gnats, Grass Flies, Eye Flies, Fruit Flies Liohippelates spp. (Insecta: Diptera: Chloropidae) Fungus gnats and other non-biting species are more cosmopolitan and show up wherever there’s decaying organic matter and moisture, including your kitchen compost bin and overwatered houseplants.

Time of day also shifts gnat behavior. Many species are most active during the warmer parts of the day, particularly late morning through afternoon, when temperatures and humidity are high enough to support flight but not so extreme that they retreat to shade. Wind is a natural gnat deterrent; because gnats weigh almost nothing, even a modest breeze scatters them. Calm, humid days with temperatures in the 70s and 80s Fahrenheit are peak gnat-in-your-face conditions. That’s also when you’re most likely to be outside breathing hard from a run or a hike, pumping out extra CO2 and sweat.

Practical Ways to Keep Gnats Out of Your Face

Knowing what attracts gnats gives you a clear playbook for reducing the nuisance. No single trick eliminates gnat encounters entirely, but combining a few strategies makes a real difference.

  • Wear light colors: Since gnats (and many related insects) use visual contrast to home in on targets after detecting CO2, a light-colored hat and shirt reduce the visual signal your face presents against the sky.
  • Use a fan: If you’re sitting on a porch or patio, even a small fan creates enough air movement to keep gnats from hovering around your head. Their weak flight muscles can’t compete with a steady breeze.
  • Apply repellent strategically: DEET-based repellents work on gnats as well as mosquitoes. For people who prefer plant-based options, products containing oil of lemon eucalyptus have some effectiveness. Apply around the hairline, forehead, and neck, since that’s where gnats are trying to get close.
  • Avoid peak hours and places: Early mornings and evenings tend to be less gnat-heavy for many species. Sandy, irrigated areas near agriculture are breeding hotspots for eye gnats specifically.
  • Wear a head net: For hiking, gardening, or working in heavily infested areas, a fine-mesh head net is the most reliable physical barrier. It looks a bit goofy, but it works completely.

Standard window screens at home keep gnats out, but only if the mesh is fine enough. Many fungus gnats and eye gnats can slip through standard 16-mesh window screening. If gnats inside the house are a problem, check for breeding sources first: overwatered potted plants, fruit left on counters, and moist drains are the usual culprits indoors.

Swarming Behavior and Why It Looks Like They’re Targeting You

Sometimes what feels like a personal attack is actually just bad positioning. Many gnat species form mating swarms, columns of dozens or hundreds of tiny flies hovering in a loose cluster over a visual landmark. That landmark might be a fence post, a garbage can, or the top of your head. The swarm isn’t feeding on you; it’s using you as a reference point for its mating dance. Male gnats gather in these swarms and wait for females to fly through, so the swarm has to hover over something conspicuous. Your head, especially if you’re the tallest object in a flat yard or on a trail, fits the bill.

You can usually tell a mating swarm from a feeding swarm by its behavior. Mating swarms tend to hover in one place relative to the landmark, bobbing up and down but not persistently landing on your skin or seeking out your eyes and mouth. If you step aside, the swarm often stays where your head was for a moment before slowly drifting to re-center over you or finding a new landmark. Feeding gnats, by contrast, follow the CO2 plume and actively try to land on your face. If the gnats are landing and crawling toward your eyes or lips, they’re after your secretions. If they’re hovering above your head in a cloud, you’ve walked into a singles mixer.

How Gnats Differ from Mosquitoes in Finding You

Gnats and mosquitoes share the basic CO2-plus-visual-cues playbook, but mosquitoes have a more sophisticated sensory system for tracking humans at longer distances. Mosquitoes can detect a CO2 plume from over ten meters away and then switch to thermal and visual sensing as they close in. Most gnat species have a much shorter detection range, which is why gnats tend to be a sudden, close-range nuisance rather than something that tracks you across a yard.

Mosquitoes also showed a strong preference for long-wavelength visual stimuli, meaning reds and oranges and the general spectral signature of human skin, once activated by CO2.4PubMed Central. The olfactory gating of visual preferences to human skin and visible spectra in mosquitoes Whether gnats have the same spectral preference is less well studied. What’s clear is that both groups use CO2 as a gating mechanism that unlocks their visual search behavior. Without the smell of breath, the visual cues alone are not enough to provoke strong approach behavior. This is why a fan blowing your CO2 plume away from your head is so effective: it disrupts the first step in the detection chain, and without that chemical trigger, the insects largely ignore the visual target sitting right in front of them.

Indoor Gnats and Why They Hover Near Your Face at Home

If tiny flies are buzzing around your face inside your house, they’re usually fungus gnats or drain flies rather than the eye gnats or black flies found outdoors. Fungus gnats breed in the moist organic soil of houseplants, feeding on fungi and decaying roots. Drain flies breed in the biofilm that accumulates inside sink drains, shower drains, and garbage disposals. Neither species is actively looking for your eyes or nose the way an outdoor eye gnat would be, but they’re still attracted to CO2 and moisture, so they end up hovering around your face for the same basic reason.

The fix for indoor gnats is almost always about eliminating the breeding site rather than repelling the adults. Let your houseplant soil dry out completely between waterings. Clean drains with an enzymatic cleaner that breaks down the biofilm where larvae live. Placing a shallow dish of apple cider vinegar with a drop of dish soap near the problem area traps adults and gives you a quick population census: if the dish fills up, the source is nearby. If the gnats persist after you’ve addressed plants and drains, check for hidden moisture sources like a slow leak under a cabinet or a forgotten tray of standing water behind a refrigerator.

Dong-hyun Choi

Pollination ecologist Dong-hyun Choi studies native bees and the flowering plants they rely on. Since completing his PhD in entomology at the University of California, Riverside, he has spent seven years surveying bee diversity on farmland, in cities and in restored grasslands, and testing how pesticides and habitat loss affect solitary bees and bumble bees. He writes about bees, wasps, butterflies and other pollinators, insect declines, and practical steps that help them.