Controlling flies outdoors starts with removing what attracts them — garbage, pet waste, and decaying matter — before any trap or spray is used.
For the full breakdown, see our best Outdoor Fly Control guide.
Flies buzzing around a patio or yard are almost always a sign of a nearby food source or breeding site. The reliable way to control flies outdoors is to cut off those attractants first, then use traps and targeted sprays only on the resting spots where flies gather. Skip the source reduction and every trap and spray becomes a losing battle.
Step 1: Remove What Draws Flies In
Sanitation is the foundation of outdoor fly control. Purdue Extension’s guidance on fly management is blunt: remove animal and pet wastes, garbage, and decaying plant or animal matter, and you remove most of the reason flies are there. Pet feces, in particular, is a major attractant that should be picked up regularly.
Work through these weekly habits and fly numbers drop on their own:
- Empty and clean garbage cans often; keep lids tight-fitting.
- Pick up fallen fruit, grass clippings, leaves, and food scraps quickly.
- Fix moisture problems — standing water, clogged gutters, leaky spigots, and chronically damp soil all give flies a place to breed.
- Keep outdoor food covered and wipe up spills and grease right away.
Step 2: Use Traps Strategically
Traps reduce the flies that actually reach your seating area, but placement matters. Set traps well away from people so they intercept flies before the insects get to the table. Commercial traps work, and so do simple DIY jars with sugar water or apple-cider-vinegar mixtures — though these homemade options need frequent emptying and refilling to stay effective.
Fans are a non-chemical option that works surprisingly well. A fan aimed across a patio or eating area creates airflow that flies struggle to fly through, which keeps them off your food without any chemicals.
If you’re ready to buy traps or repellents, see our roundup of the best outdoor fly control products for tested picks that actually hold up in a yard.
Step 3: Apply Residual Sprays Where Flies Rest
When sanitation and traps aren’t enough, a residual outdoor spray aimed at fly resting sites is the defensible next step. Purdue Extension recommends treating porches, covered patios, garages, breezeways, doghouses and kennels, and garbage cans — the surfaces where flies land and rest — to the point of runoff.
Permethrin and related pyrethroids are the active ingredients Purdue lists as recommended for this job. Before any spray, check the product label to confirm the active ingredient and follow the directions exactly.
Spray Safety Rules That Matter
Keep pets out of treated areas until the spray is fully dry. Cover or remove picnic tables, benches, chairs, and outdoor furniture before spraying so they don’t get coated. And never spray indiscriminately — the official guidance limits outdoor residual use to fly resting sites and similar target surfaces, not the whole yard.
What About Baits and Repellents?
Outdoor insecticide baits kill flies quickly but stay effective only briefly and need repeated applications, per Purdue’s guidance. They work best as a supplement to a spray program. Dry baits placed around garbage cans or near fly resting areas can help knock down surges in activity.
Scent-based options like basil, mint, lavender, eucalyptus, and citronella get mentioned often, but treat them as a minor supplement at best. They are not proven stand-alone control, and the research literature on plant-based repellents shows their effect is modest and short-lived compared to source removal.
When Flies Won’t Quit
If you’ve removed the attractants, tightened the sanitation, placed traps, and sprayed the resting sites and the flies keep coming, the source may not be on your property at all. A neighbor’s compost pile, a nearby farm, or a shared dumpster can keep a steady stream of flies moving toward your yard no matter what you do. This is when repeated treatment matters — bait plus residual spray, maintained over several weeks — or when a professional pest control visit is worth the cost.
FAQs
Does vinegar actually attract or repel flies?
Apple cider vinegar attracts flies, which is why it works as the base for a DIY trap. A jar filled with vinegar and a drop of dish soap breaks the surface tension so flies drown instead of landing and flying off. It’s a solid supplemental tactic, not a replacement for removing the garbage or pet waste drawing flies in.
What smell do flies hate the most?
Flies dislike strong scents like basil, mint, lavender, eucalyptus, and citronella, and these can offer a mild deterrent around a seating area. But these plants and oils are a weak defense at best — if a food source is nearby, a scent won’t keep flies away for long. Source removal always beats scent.
Is it safe to spray fly killer around pets?
Residual fly sprays are safe to use around pets only if you follow the label. Keep animals out of the treated area until the spray has dried completely, and never spray directly on pets, their food, or their water bowls. Target only fly resting surfaces like garage walls and porch ceilings, not the ground where pets walk.
References & Sources
- Purdue Extension. “Flies — Biology and Management.” Official guidance on sanitation, residual sprays, and bait use for outdoor fly control.
- PMC (National Institutes of Health). “Plant-Based Insect Repellents: A Review.” Research on the limited and short-lived effectiveness of scent-based repellents.
