Flies are annoying because they’re biologically driven to land on you, persistently return after being swatted away, and process visual information so fast that they can dodge your hand with ease. It’s not random behavior. Your body is actively producing exactly what flies are looking for: sweat, warmth, dead skin cells, and exhaled carbon dioxide.
Your Body Is a Fly’s Meal
Flies taste with their feet. Every time one lands on your skin, it’s sampling what’s there, and what’s there is surprisingly appealing. Human sweat contains proteins, carbohydrates, salts, sugars, and dead skin cells. The bacteria that bloom in your sweat add to the buffet. Flies feed on all of it. So when a fly keeps circling back to land on your arm or forehead, it’s not being spiteful. It’s eating.
Bush flies are especially attracted to people and often park themselves on your back, one of the sweatiest parts of the body. House flies are slightly less fixated on humans but still readily land on exposed skin when the opportunity arises. Both species also seek out rotting food and organic waste for the same reason: bacteria. Whether it’s your sweat or a piece of decomposing fruit, flies are chasing the same microbial meal.
Why You Can’t Swat Them
A major part of the annoyance is that flies seem to dodge you effortlessly, no matter how fast you swing. That’s because their visual system operates on a completely different timescale than yours. Human eyes perceive a smooth, continuous image when something flickers more than about 30 times per second. Flies don’t see a fused image until the flicker rate hits 300 times per second. They effectively see the world in slow motion compared to you, which means your “fast” hand looks like it’s moving through molasses.
House flies can change course in response to what they see in just 30 milliseconds. That’s roughly ten times faster than a human blink. Their eyes have poor spatial resolution, so they’re not great at making out fine details, but their temporal resolution is extraordinary. They’re built to detect motion, not read letters.
Once a fly spots your incoming hand, it relies on a remarkable piece of biological hardware to escape. Behind each wing sits a tiny, lollipop-shaped organ called a haltere, an evolutionary remnant of a second pair of wings. Halteres beat in time with the wings but serve as gyroscopes, constantly measuring how the fly’s body is rotating in space. Sensory cells on the halteres relay signals directly to the wing muscles, allowing the fly to adjust its stroke and angle of attack almost instantly. Remove a fly’s halteres and it becomes unstable and crashes. With them, it can pull off sharp mid-air turns that make it nearly impossible to catch.
The Persistence Problem
Even if you manage to shoo a fly away, it comes right back. This is partly because the chemical signals drawing it to you (your sweat, your breath, your warmth) haven’t changed. You’re still emitting carbon dioxide and perspiration, so from the fly’s perspective, the food source is still there. Waving your hand creates a brief disruption, but it doesn’t remove the attraction. The fly simply circles, re-detects the same cues, and returns. This loop of landing, getting shooed, and returning is what makes a single fly feel relentless.
Flies also have short feeding windows. They need to eat frequently and can’t afford to be picky or patient. When they find a viable food source, they’re motivated to stick with it.
The Sound Factor
Beyond the landing and dodging, the buzzing itself triggers irritation. Fly wingbeats produce a sound in the 100 to 200 Hz range, a low, erratic drone that’s hard to tune out. Unlike white noise or steady background hum, a fly’s buzz changes pitch and direction unpredictably as it moves through the room. Your brain is wired to track irregular, nearby sounds as potential threats, so the buzzing grabs your attention whether you want it to or not. At night, when other sensory input drops away, a single fly buzzing near your ear can feel almost unbearable.
How to Keep Flies Away
The most effective strategy is eliminating what attracts them in the first place. Keep food covered or refrigerated, take out garbage frequently, and clean up pet waste. Cut fruit left on a counter is one of the strongest fly attractants in a typical kitchen. Flies are also drawn to moisture in drains, so pouring a cup of diluted bleach down kitchen and bathroom drains can help if you notice flies congregating near sinks.
Several scents act as natural repellents. Basil, mint, lavender, cloves, cinnamon, eucalyptus, peppermint, and lemongrass all deter flies. You can grow these plants near windows, use essential oil diffusers, or make a simple spray: a few drops of dish soap, a tablespoon each of vinegar and baking soda per cup of water, sprayed in areas where flies tend to gather.
For flies already inside, traps work well. An apple cider vinegar trap (a few tablespoons of vinegar, a drop of dish soap, and a tablespoon of sugar in a bowl) draws flies in, and the soap breaks the surface tension so they can’t escape. A piece of overripe fruit in a jar covered with plastic wrap poked with small holes works on the same principle. Sticky pads and electric zappers are also options for heavier infestations. Physical barriers like window screens remain the simplest long-term fix, keeping flies from entering while still letting air flow through.