DIY Indoor Fly Trap: Bottles, Baits & Placement

A simple DIY fly trap can start catching flies within hours using items already in your kitchen. The best design depends on which flies you’re dealing with: fruit flies respond to vinegar-based traps, while house flies are drawn to fermentation and carbon dioxide. Here’s how to build the most effective versions of each.

The Apple Cider Vinegar Trap for Fruit Flies

This is the go-to trap for the tiny flies hovering around your fruit bowl or kitchen sink. Pour about 1/4 cup of apple cider vinegar into a jar or small bowl and add a few drops of liquid dish soap. The vinegar smells irresistibly sweet to fruit flies, mimicking the fermentation of overripe produce. The dish soap is the key ingredient that makes it lethal: it breaks the surface tension of the liquid so flies can’t land and take off again. Their wings get weighed down the moment they touch the surface, and they sink.

You don’t need much dish soap. Two or three drops per 1/4 cup of vinegar is enough. Too much soap can overpower the vinegar scent and make the trap less attractive. Stir gently so it mixes without creating a layer of bubbles on top.

Why a Funnel Makes Any Trap Better

An open bowl of vinegar works, but adding a funnel dramatically improves your catch rate. Roll a piece of paper into a cone and place it in the mouth of a jar, pointed end down. Snip the very tip so the opening is about 1/8 inch in diameter. Too small and flies can’t enter. Too large and they’ll find their way back out.

The geometry is what makes this effective. Flies follow the scent down through the wide end of the cone and easily pass through the small opening. But to escape, they’d need to fly straight up and hit that tiny hole precisely, which they almost never do. If the paper were flat, they could leave as easily as they entered. The funnel shape turns a simple attractant into a one-way door. You can achieve the same effect by cutting a 2-liter plastic bottle in half and inverting the top portion into the bottom like a funnel.

The Bottle Trap for House Flies

House flies are bigger and not as interested in vinegar. They’re drawn to carbon dioxide, the same gas you exhale. A yeast-and-sugar trap exploits this by creating a miniature fermentation chamber.

Cut a 2-liter plastic bottle about a third of the way down from the top. In the bottom portion, combine 1 cup of warm water with 1/4 cup of brown sugar and stir until dissolved. Sprinkle 1 teaspoon of dry yeast on top (don’t stir it in, let it sit on the surface). Then invert the top of the bottle into the bottom half to create a funnel. The sugar feeds the yeast, which produces a steady stream of carbon dioxide that draws flies in through the narrow neck. Once inside, they can’t navigate back out.

Adding a small piece of ripe banana or apple inside the bottle boosts the trap’s effectiveness. The fruit adds a secondary scent that flies find hard to resist, and as it breaks down, it contributes to the fermentation process. This trap stays active for about a week before the yeast runs out of sugar and you need to refresh the mixture.

Other Baits That Work

Apple cider vinegar isn’t your only option for fruit flies. Red wine works just as well, sometimes better. Pour about 25 ml (roughly 2 tablespoons) of leftover red wine into a small container with a few drops of dish soap. The fermentation compounds in wine are essentially what fruit flies spend their lives seeking out. If you’ve ever noticed fruit flies appearing the moment you open a bottle, this is why.

You can also combine approaches. Place a slice of overripe banana or peach in a container, pour vinegar over it, and cover the top tightly with plastic wrap. Poke five or six small holes in the wrap with a toothpick. Flies squeeze through the holes to reach the fruit but can’t find the holes again to leave. This dual-bait method is especially useful during heavy infestations when a single attractant isn’t pulling flies fast enough.

White vinegar works in a pinch, but apple cider vinegar consistently outperforms it because its fermentation profile is closer to rotting fruit.

Where to Place Your Traps

Placement matters more than most people realize. Set traps near the source of the problem: next to fruit bowls, beside the kitchen sink, or near trash cans. For fruit flies, countertop level is ideal since they tend to hover close to their food sources.

For house flies, place traps slightly higher. Most flying insects are most active between about 5 and 8 feet off the ground, so a trap on top of a refrigerator or high shelf will intercept more of them than one sitting on the counter. Avoid placing traps in direct sunlight or right next to windows. Bright ambient light competes with any visual cues the trap provides, and a trap near an open window can actually attract outdoor flies into your home, making the problem worse.

Corners with still, warm air tend to outperform high-traffic areas with lots of airflow. If you have multiple problem areas, set out several traps rather than relying on one. Two or three small traps spread across a kitchen will always outperform a single large one.

Preventing the Problem at the Source

Traps catch flies that are already in your home, but they won’t solve an infestation on their own if the breeding source is still active. Fruit flies lay eggs on the surface of overripe produce and in the organic film inside drains. A single female can lay hundreds of eggs, and they hatch in about 24 hours.

Store ripe fruit in the refrigerator, not on the counter. Take out kitchen trash daily, especially in warm weather. Clean floor drains regularly using a bacterial or enzymatic drain cleaner followed by hot water. These cleaners break down the organic sludge where flies breed far more effectively than caustic lye-based products.

House flies carry serious pathogens, including E. coli, Salmonella, Shigella, Listeria, hepatitis A, and rotavirus. They pick up bacteria from garbage and animal waste and deposit it through their saliva and fecal spots on any surface they land on. This makes cleaning up traps a matter of basic hygiene: pour the contents down the toilet or drain, wash the container with hot soapy water, and wash your hands afterward. Don’t leave a full trap sitting on the counter for days.

How Quickly to Expect Results

A vinegar and dish soap trap in the right location will typically start catching fruit flies within 30 minutes to a few hours. You’ll often see the biggest catches overnight, when the trap is the strongest scent source in a dark kitchen. For a moderate infestation (a dozen or so visible flies), most people see a dramatic reduction within two to three days of setting out traps and removing breeding sources simultaneously.

Yeast traps for house flies take a bit longer to activate since the yeast needs time to begin fermenting, usually 15 to 30 minutes in warm water. These traps peak in effectiveness during the first three to four days, then taper off as the sugar is consumed. Refresh the mixture when you stop seeing bubbles forming on the surface.

If you’re still seeing large numbers of flies after a week of trapping, the issue is almost certainly a breeding source you haven’t found yet. Check underneath appliances, inside recycling bins, and in any drain you don’t use frequently. Eliminating where flies reproduce is always more effective than trapping the adults.