The most effective way to attract and kill flies combines something they can’t resist (fermenting sugars, rotting protein, or UV light) with a mechanism that traps or poisons them on contact. But the best approach depends on which flies you’re dealing with, because house flies, fruit flies, and blow flies respond to different attractants and breed in different places.
What Attracts Flies in the First Place
Flies locate food sources primarily through smell. House flies are drawn to compounds released by decomposing organic matter: ammonia, ethanol, acetic acid, and sulfur-containing chemicals like those found in manure and garbage. Fruit flies zero in on fermenting sugars, which is why they swarm overripe bananas, spilled wine, and open vinegar bottles. Both species also respond to visual cues. House flies are particularly attracted to blue-colored surfaces and UV light in the 360 to 370 nanometer range, which is why commercial traps use blacklight bulbs in that spectrum.
Understanding these preferences lets you build or buy traps that exploit them. A trap that works beautifully for fruit flies may do nothing for house flies, and vice versa.
DIY Traps That Actually Work
Apple Cider Vinegar Trap (Fruit Flies)
Pour about a quarter cup of apple cider vinegar into a jar or bowl, then add a few drops of liquid dish soap. The vinegar mimics the smell of fermenting fruit, which fruit flies find irresistible. The dish soap breaks the surface tension of the liquid so flies can’t land on top and fly away. Instead, they sink and drown. You can boost the trap’s pull by adding a pinch of yeast, which produces carbon dioxide and amplifies the fermentation scent. Wine, beer, and overripe banana pieces all work as alternative baits.
Place traps near the source of the problem: next to fruit bowls, beside trash cans, or near drains. Replace the liquid every two to three days as it loses potency.
Sugar Water Bottle Trap (House Flies)
Cut a plastic bottle in half and invert the top into the bottom to create a funnel. Fill the base with a mixture of sugar water and a splash of vinegar, or use a piece of raw meat or fish for an even stronger draw. House flies crawl in through the funnel opening but struggle to find their way back out. Adding a drop of dish soap to any liquid bait improves drowning rates. For outdoor use, hanging the trap a few feet off the ground near garbage cans or compost bins captures the most flies.
Red Wine Trap (Fruit Flies)
Leave the last inch of wine in a bottle and cover the opening with plastic wrap, poking a few small holes with a toothpick. Fruit flies enter through the holes, attracted by the ethanol and fermentation odors, but can’t navigate back out. This works especially well in kitchens and near recycling bins with unrinsed bottles.
Commercial Traps and Zappers
UV light traps use fluorescent blacklight bulbs emitting light at 360 to 370 nanometers, a wavelength highly attractive to house flies and other flying insects. Some models electrocute flies on a charged wire grid, while others use glue boards mounted behind the bulbs to catch insects on contact. Glue board traps are generally better for indoor use because they don’t scatter insect fragments the way zappers do, which matters in kitchens and food preparation areas.
Research from the University of Nebraska found that traps with standard blacklight bulbs attracted and captured significantly more flies than those with blacklight blue bulbs, which emit slightly less intensity in the attractive range. Open-front designs, where flies have unobstructed access to the glue boards, outperformed closed designs. If you’re buying a UV trap, look for one with standard blacklight bulbs and exposed or easily accessible glue boards.
Sticky fly ribbons and window-mounted fly traps work through simple adhesion. They’re cheap and non-toxic, though they only capture flies that happen to land on them rather than actively drawing flies in from a distance. Hanging them near windows or light sources improves their catch rate.
Chemical Fly Baits
Commercial fly baits typically combine a food attractant (often sugar) with an insecticide. Some products also include a synthetic version of a fly sex pheromone to draw flies from greater distances. The fly eats the bait and dies within minutes to hours depending on the active ingredient.
These baits are effective for heavy infestations, particularly in garages, barns, and outdoor areas, but they carry real risks. Some contain chemicals that inhibit a critical enzyme in the nervous system, and the EPA notes these same compounds can cause nausea, dizziness, and confusion in humans through skin contact, ingestion, or inhalation. At high exposures, they can cause respiratory failure.
If you have pets, chemical baits require extreme caution. Baits are designed to smell and taste appealing, which means dogs and cats are just as likely to eat them as flies are. Always use tamper-resistant bait stations, place them where pets and children cannot reach, and store unused product in a locked cabinet. Remove pet food bowls, water dishes, toys, and bedding from any area before applying chemical fly control. If a pet ingests fly bait and shows tremors, seizures, or difficulty breathing, contact animal poison control immediately.
Match Your Approach to the Fly Species
Fruit Flies
These tiny flies (about 1/8 inch long) usually have red eyes and a stout body. They breed in any moist, fermenting organic matter: the wet bottom of a trash can where the liner leaked, a forgotten bag of potatoes in the pantry, spillage under a soda dispenser, or a dirty mop left damp in a corner. Dark-eyed fruit flies, a less common variety, prefer drains and bathroom areas. Vinegar traps, wine traps, and eliminating breeding material are the primary tools. One overlooked breeding site is the recycling bin with unrinsed beer or soda cans.
House Flies
Larger and louder than fruit flies, house flies breed in animal feces, garbage, and decaying food waste. They’re attracted to protein-based odors (rotting meat, manure) and fermented sugars. UV light traps, sugar-and-vinegar bottle traps, and sticky ribbons all work. Outdoors, baited bottle traps placed near garbage and pet waste areas pull them away from doorways.
Blow Flies and Flesh Flies
These large, metallic-looking flies invade homes to lay eggs on decaying animal matter: a dead mouse in a wall, a forgotten piece of raw meat, or pet waste. If you suddenly see several large, shiny flies indoors, search for a carcass or rotting protein source. Traps help in the short term, but the only real fix is finding and removing whatever they’re breeding in.
Eliminate Breeding Sites First
No trap or bait will solve a fly problem if the breeding source stays in place. A single fruit fly can lay hundreds of eggs in a thin film of fermenting juice at the bottom of a trash can, and those eggs hatch into adults in about a week. Traps kill the adults you can see, but the next generation is already developing.
Start with these steps:
- Clean trash cans thoroughly, not just the liner but the can itself, especially the bottom where liquids pool.
- Store produce properly. Refrigerate ripe fruit. Inspect bags of potatoes and onions for soft or rotting pieces.
- Rinse recyclables before tossing them in the bin. A beer can with a few drops left is a fruit fly nursery.
- Pick up pet waste daily. Outdoor feces are a major breeding site for house flies.
- Clean drains. Organic buildup inside kitchen and bathroom drains supports fruit fly larvae. A stiff brush and enzymatic drain cleaner break up the film they feed on.
- Seal your home. Window screens, door sweeps, and sealed cracks around pipes prevent flies from entering in the first place.
Combining sanitation with the right trap for your fly species is what turns a losing battle into a quick one. Remove what’s feeding and breeding them, trap the remaining adults, and seal entry points to keep new ones out.