Few things test your patience in July like flies. They swarm the porch, sneak through the screen door, and cloud around the animals the moment the temperature climbs. If you want to know how to keep flies away without dousing your home and barn in chemical sprays, the good news is that the natural methods actually work, as long as you understand what draws flies in the first place. Flies are not random. They come for food, moisture, and above all a place to breed, and once you cut off those attractions the swarm thins out on its own. Here is how to handle them naturally, indoors, in the yard, and around your animals.
Key Takeaways
Why Do You Have So Many Flies?
Before you fight flies, it helps to know what they want, because every natural method is really about removing an attraction. Flies are drawn to three things: food (anything from a crumb to ripe fruit to pet waste), moisture (standing water, damp mulch, wet bedding), and breeding sites (manure, rotting organic matter, garbage). A single house fly can lay hundreds of eggs, and in summer heat those eggs become adults in about a week. That is why a fly problem seems to explode overnight. You are not seeing the flies that flew in. You are seeing the ones that hatched in your own yard.
This is the reason sanitation always comes first. You can trap and repel adults all day, but if there is a rich breeding site nearby, they will out-reproduce anything you do. Find and eliminate the source, and every other method suddenly works far better.
How to Keep Flies Away Indoors
Start by making the house unwelcoming. Take out the kitchen trash often and keep the can lidded, wipe up spills and crumbs, and do not leave dirty dishes sitting. Cover fruit bowls or refrigerate ripe produce, since a bowl of peaches is a fly beacon in July. Empty and rinse recycling before it sits, and keep compost bins away from the door with a tight lid.
Physical barriers do a lot of the work for you. Make sure window and door screens fit tightly and have no tears, and consider a screen door if you do not have one. A box fan aimed across a doorway is remarkably effective, because flies are weak fliers and simply cannot push through the moving air.
Then add natural repellents. Flies dislike several strong herb scents, and you can use that against them. Set out small bunches of fresh basil or mint on the counter, or grow them in a sunny window. A few drops of eucalyptus, lavender, peppermint, or lemongrass essential oil on a cotton ball tucked near entry points helps too.
Lavender, Peppermint, Eucalyptus, Lemon, Tea Tree 100% Pure, Natural Aromatherapy, for Diffusion & Topical Use, Therapeutic Grade 10 mL (1/3 oz)
A simple apple cider vinegar trap catches the ones that get in: pour an inch of vinegar in a jar, add a drop of dish soap to break the surface tension, cover with plastic wrap, and poke a few small holes. The flies go in and cannot get out.
Planting those repellent herbs by the doors is one of the easiest long-term defenses, and it gives you a cooking supply at the same time. If you do not have bed space, a container herb garden of basil, mint, and lavender by the porch steps pulls double duty all summer.
Keeping Flies Away in the Yard
Outdoors, the same logic applies at a larger scale. Pick up pet waste daily, because it is one of the richest breeding grounds a fly could ask for. Eliminate standing water in buckets, saucers, clogged gutters, and low spots, since even damp areas invite flies. Keep the compost pile turned and balanced with plenty of dry brown material so it breaks down cleanly instead of turning into a wet, smelly fly nursery.
Repellent plants earn their keep in the yard too. Basil, mint, marigolds, lavender, rosemary, and lemongrass all help hold flies at bay, so tuck them into beds and containers near seating areas and doorways. For an outdoor gathering, a fan on the patio and a few citronella or essential-oil candles make a real difference. Hanging fly traps work, but hang them at the far edge of the yard to draw flies away from where people sit, not toward it.
Ambiance Enhancing Centerpiece, Burns for up to 25 Hours, 8 oz (Pack of 2)
Natural Fly Control Around Animals
Livestock and poultry areas are the toughest fly battle on any homestead, and it is almost entirely a moisture-and-manure problem. Clean coops, stalls, and pens regularly, and keep bedding dry, because damp bedding mixed with droppings is the perfect fly habitat. Compost or spread manure well away from the animals rather than letting it pile up next to them. Fix leaky waterers and drain the muddy spots that form around them.
For barns and runs, beneficial fly predators are the homesteader’s secret weapon. These are tiny, harmless parasitic wasps that never bother animals or people but lay their eggs in fly pupae, breaking the breeding cycle. Released regularly through the summer, they keep populations down without any spraying. Sticky traps and jug-style baited traps placed around (but not directly over) animal areas mop up the adults. Keeping animals cool and their environment dry does double duty, since the same clean, well-managed conditions that reduce flies also reduce the heat stress in chickens and other summer problems that come with a hot, dirty coop.
A light dusting of food-grade diatomaceous earth in bedding and around (not on) animals can help in dry conditions, though it stops working once it gets wet. For a deeper look at safe, research-based fly management around livestock and the home, the University of Minnesota Extension offers solid, chemical-light guidance worth following.
Put it all together (cut the breeding sites, repel with herbs and scents, trap the stragglers, and keep animal areas clean and dry) and you will spend far less of your July swatting and far more of it enjoying the porch.
Frequently Asked Questions About Keeping Flies Away Naturally
How do I get rid of flies without chemicals?
Start with sanitation: remove food scraps, standing water, pet waste, and manure where flies breed. Then repel adults with herbs like basil and mint or essential oils like eucalyptus and lavender, and catch stragglers with an apple cider vinegar trap. Tight screens and a fan across the doorway keep them out of the house.
What scents keep flies away?
Flies dislike basil, mint, lavender, eucalyptus, peppermint, lemongrass, rosemary, and citronella. Growing these herbs near doorways or using a few drops of the essential oils on cotton balls at entry points helps repel flies naturally.
How do I keep flies away from my chickens or livestock?
Keep bedding dry and coops and stalls clean, since damp manure is the main breeding site. Move manure well away from animals, fix leaky waterers, set sticky and baited traps around the area, and release beneficial fly predators through the summer to break the breeding cycle.
Does apple cider vinegar really trap flies?
Yes. Flies are attracted to the smell of vinegar. Put an inch of apple cider vinegar in a jar with a drop of dish soap to break the surface tension, cover it with plastic wrap, and poke small holes. Flies enter and cannot escape. It is a cheap, effective indoor trap.
Why do I suddenly have so many flies?
A sudden swarm usually means flies are breeding on your property, not just visiting. In summer heat, eggs become adults in about a week, so a nearby breeding site (manure, wet compost, trash, or standing water) can cause a population to explode. Finding and removing that source is the fastest fix.







