A milk jug fly trap is one of the simplest and most effective DIY pest control tools you can make. All you need is an empty plastic milk jug, a sharp knife, some bait, and about five minutes. The design works by luring flies through small openings with a scented bait, then trapping them inside where they can’t find their way back out.
How to Build the Trap
Start with a clean, empty gallon milk jug with the cap removed. Using a sharp knife or box cutter, cut three or four flap-shaped openings around the upper third of the jug, just below where it starts to narrow toward the spout. Cut along three sides of each flap (roughly 2 inches square) so the flap folds inward. Push each flap toward the inside of the jug. These inward-angled flaps act as one-way entrances: flies crawl in easily but struggle to navigate back out through the same opening.
Pour your bait liquid into the bottom of the jug, filling it about two inches deep. Leave the cap off to let the scent escape through the top as well. If you want to hang the trap, poke two holes near the rim and thread a piece of wire or string through them.
The Best Bait for Different Flies
What you put inside matters more than the trap design itself, and the best bait depends on which flies you’re dealing with.
For fruit flies, apple cider vinegar is the gold standard. These flies are drawn to anything fermenting: vinegar, wine, beer, overripe fruit. A simple and reliable recipe is one cup of apple cider vinegar with a teaspoon of dish soap stirred in. The vinegar draws the flies in, and the dish soap breaks the surface tension of the liquid so when flies land on it, they sink immediately and can’t escape. You don’t need to measure precisely. A splash of vinegar and a drop of soap will work in a pinch.
For a broader range of flies, including common houseflies, a sugar-and-yeast mixture creates a stronger fermentation smell that carries further. Mix one cup of sugar, one teaspoon of baker’s yeast, and one cup of warm water. As the yeast feeds on the sugar, it produces carbon dioxide and fermentation odors that mimic rotting organic matter. This bait tends to attract more species than vinegar alone. You can also try one cup of apple cider vinegar, one cup of sugar, and half a cup of water for a hybrid approach that combines the sweetness with the acidity flies find irresistible.
For larger outdoor flies like blowflies and flesh flies, protein-based baits work better. A small piece of raw meat or fish scraps in water will attract these species, which are naturally drawn to decaying animal matter. Fair warning: protein baits smell terrible and should only be used in outdoor traps placed well away from where people spend time.
Where to Place Your Trap
Placement can make or break a fly trap’s effectiveness. For indoor fruit fly problems, set the trap near the source of activity: next to fruit bowls, near the kitchen sink, or beside trash cans. Fruit flies have a limited flight range, so the closer the trap is to where they’re breeding, the faster it works.
Outdoor traps need a different strategy. Place them at least 20 to 30 feet away from doors, patios, decks, and any area where people eat or gather. Position the trap downwind of your living space and closer to the actual sources of fly activity, like trash bins, compost piles, or animal pens. The idea is to intercept flies before they reach you, not to attract more flies toward your porch. Bait traps, especially protein-based ones, produce strong odors that are unpleasant to humans but highly effective at pulling flies away from outdoor living areas when placed at a distance.
Hanging the trap about 3 to 5 feet off the ground, roughly at the height where flies cruise, improves catch rates compared to setting it on the ground.
Keeping the Trap Working
A milk jug trap isn’t a set-it-and-forget-it solution. The bait loses its potency as it dries out or becomes saturated with dead flies. Check your trap every few days. When the liquid looks murky and full of insects, or when the smell fades noticeably, it’s time to refresh.
To empty the trap, seal the top with the original cap or a piece of tape, then toss the entire jug in the trash. This is the main advantage of using a disposable milk jug over a reusable container: you never have to deal with cleaning out a slurry of dead flies. Just make a new one. If you prefer to reuse the jug, dump the contents into a plastic bag, seal it, and rinse the jug before adding fresh bait.
In hot weather, bait breaks down faster and the smell intensifies. You may need to replace outdoor traps every three to five days during peak summer. Indoor traps with vinegar-based bait last a bit longer, often a week or more, since they’re in cooler, more stable conditions.
Protecting Bees and Other Beneficial Insects
One concern with any sweet bait trap is accidentally catching honeybees or other pollinators. Sugar-based and vinegar-based baits can attract bees, especially if placed near flowers or gardens. To reduce this risk, keep traps away from blooming plants and flowering areas. Using pure vinegar without added sugar is less attractive to bees while still effective for fruit flies.
If yellowjackets are a problem alongside flies, protein-based baits like meat scraps attract yellowjackets without drawing in honeybees. This gives you a way to target the pests you actually want to catch while leaving beneficial insects alone.
Why the Milk Jug Design Works
Flies navigate primarily by smell and light. They follow scent gradients toward the bait, enter through the openings, and then become disoriented once inside. When they try to leave, they tend to fly upward toward the light coming through the translucent walls of the jug rather than back through the small flap openings they entered. The narrow spout opening at the top lets scent out but is too small for most flies to easily locate as an exit. This combination of scent lure, one-way entry, and visual confusion is the same principle behind commercial fly traps, just built from something you’d otherwise recycle.
The translucent white plastic of a standard milk jug is actually ideal for this purpose. It lets in enough light to confuse trapped flies while being opaque enough that the entry holes don’t stand out visually from inside. Darker containers don’t work as well because flies won’t fly toward them as readily, and fully transparent containers make it too easy for flies to orient toward the exits.