How to Get Rid of Flies in Your Backyard With Dogs

The fastest way to reduce flies in a backyard shared with dogs is to remove what attracts them: pet waste, standing water, and decaying organic matter. Pick up dog waste daily (or twice daily in warm months), and you’ll eliminate the single biggest fly magnet in most yards. From there, layering in traps, natural repellents, and moisture control can dramatically cut fly populations without putting your dogs at risk.

Pet Waste Is the Primary Problem

Flies don’t just visit dog waste. They breed in it. A single pile of feces in warm, moist conditions can attract egg-laying flies within minutes, and those eggs hatch within 24 hours. Each generation of flies that matures in your yard produces hundreds more, so a few missed piles can sustain a persistent fly population all season long.

Scoop waste at least once a day. If you have multiple dogs or your yard gets heavy use, twice daily makes a noticeable difference. Use a sealed container or bag for disposal rather than an open trash can, which just relocates the problem. If you use a designated dog waste bin outdoors, choose one with a tight-fitting lid and empty it frequently. Garbage cans with standing water or residue at the bottom are breeding sites on their own.

Eliminate Moisture and Breeding Sites

Flies need moisture and decaying organic matter to reproduce. Beyond pet waste, check your yard for standing water in saucers under planters, clogged gutters that drip into shaded spots, birdbaths that aren’t refreshed, and low areas where water pools after rain. Wet compost piles are another common breeding ground, especially if they contain food scraps close to the surface.

Matted leaf litter, piles of grass clippings, and forgotten dog food bowls left outside all contribute. Keep outdoor dog food and water bowls clean, and don’t leave uneaten food sitting out. If you compost, turn the pile regularly and keep it as far from your main outdoor living area as practical. Trimming back dense, shaded vegetation along fence lines also helps, since flies gravitate toward cool, moist, sheltered spots during the heat of the day.

Dog-Safe Fly Traps That Actually Work

Traps are one of the most effective tools for yards with dogs because they require no chemicals on the ground where your pets walk and roll. The two main types are sticky visual traps and baited liquid traps, and they serve different purposes.

Sticky traps (like hanging fly sticks designed for outdoor use) use a visual lure and weather-resistant adhesive. They’re odorless and work well for biting flies like horse flies, stable flies, and deer flies. Hang them near fly congregation spots: dog runs, trash storage areas, vegetation edges, or water sources. Because they rely on visual attraction, they need to be visible and hung at a height your dogs can’t reach.

Baited liquid traps use a scented lure that flies find irresistible. Flies enter, can’t escape, and drown. These traps smell terrible to humans, which is actually the point. Place them at least 20 to 30 feet away from your patio, deck, or anywhere you spend time. Position them downwind of your gathering areas and closer to where flies are most active. This intercepts flies before they reach you. For heavy fly pressure, large-capacity or disposable bag-style traps handle higher volumes. Reusable versions work well for ongoing seasonal control.

The key placement principle: traps go near the problem (waste areas, compost, fence lines), not near your living space. They pull flies away from you, not toward you.

Natural Repellents Safe for Dogs

Certain plants and herbs genuinely repel flies rather than just masking odors. Thyme is one of the most effective against common houseflies and is nontoxic to dogs. Planting it in pots near seating areas or along walkways adds a mild deterrent. Basil, lavender, and rosemary also repel flies to varying degrees and are safe around dogs.

If you want to use a spray-based repellent, be cautious with essential oils. Many concentrated essential oils are irritating or toxic to dogs if ingested or applied to skin, even ones derived from “natural” plants. Hydrosols (the water-based byproduct of steam distillation) are far milder than concentrated oils and can be a better option around pets. Lemon eucalyptus hydrosol, for example, provides insect-repelling protection over several hours without the potency that makes pure essential oils risky for animals.

Avoid spraying any essential oil mixture directly onto your dog or onto surfaces they lick. Use repellent sprays on perimeter fencing, patio furniture, or hanging cloths rather than on the ground where dogs nose around.

Chemical Sprays and Permethrin Safety

Permethrin is one of the most common active ingredients in outdoor fly and mosquito sprays. It attacks the nervous system of insects, causing paralysis and death, and it breaks down much more slowly in insects than in mammals. Dogs can tolerate permethrin at levels used in flea and tick spot-on treatments, but that doesn’t mean yard sprays are worry-free.

Dogs exposed to permethrin on their skin sometimes twitch their ears, flick their paws, or roll on the ground. Dogs that lick treated surfaces may drool excessively or smack their lips. Long-term feeding studies in dogs found increased liver weight and more frequent tremors compared to unexposed animals. The practical takeaway: if you spray permethrin-based products in your yard, keep dogs off treated areas until the product has fully dried (check the label for reentry times, typically a few hours). Never let dogs drink from puddles in recently sprayed areas.

For yards where dogs spend most of the day unsupervised, traps and sanitation are safer primary strategies than broadcast chemical sprays.

Protecting Your Dog From Fly Strike

Flies aren’t just a nuisance for dogs. In warm weather, certain species lay eggs in moist wounds, skin folds, or areas soiled with urine or feces. The resulting maggot infestation, called fly strike, can escalate from mild skin irritation to a life-threatening emergency within days.

Fly strike typically starts when adult flies are drawn to a moist wound, a skin lesion, or matted fur soaked in body fluids. Eggs hatch within 24 hours, and the larvae begin feeding on dead tissue and secretions. As they burrow deeper, they damage successive layers of skin and can create tissue cavities several centimeters across. The infestation produces a distinct, pungent odor. Affected dogs become depressed, stop eating, and may bite or scratch at the area obsessively. Severe cases can be fatal from shock or secondary infection if untreated.

Prevention is straightforward but requires attention:

  • Keep fur clean and dry. Dogs with matted coats soaked in urine or feces attract egg-laying flies rapidly. Regular grooming and bathing matter more in fly season.
  • Treat wounds promptly. Any open sore, hot spot, or surgical incision should be kept clean and monitored. Even minor scrapes can attract flies.
  • Check vulnerable dogs daily. Senior dogs, dogs with mobility issues, or those with skin conditions are at higher risk. Inspect skin folds, the base of the tail, and ears.
  • Limit outdoor time during peak fly hours. Flies are most active in warm, still conditions during midday. If your dog has open wounds, keep them indoors or in a screened area during these periods.

A Realistic Routine That Works

No single fix eliminates backyard flies. The combination that consistently works is a daily sanitation habit plus passive trapping plus reducing moisture. Pick up waste every morning. Hang two or three traps near the yard’s worst fly zones, replacing or refreshing them as directed. Walk the yard weekly looking for standing water, wet debris, or forgotten items collecting moisture. Keep your dog’s coat clean and check their skin regularly.

Most people see a dramatic reduction in fly activity within the first week of consistent waste removal alone. Adding traps and moisture control pushes the population down further. In heavy fly season (midsummer in most climates), you may need to increase trap density or swap to higher-capacity models, but the sanitation baseline stays the same.