Dish soap on its own won’t do much to fruit flies, but a few drops in a bowl of apple cider vinegar make one of the most effective homemade traps there is.

The vinegar smells like rotting fruit and draws the flies in; the dish soap breaks the surface tension, so they sink instead of landing safely.

The trap will clear the adults in your kitchen within a few days. The harder question, and the one a home inspector cares about, is why they showed up in the first place. Here’s the recipe, plus how to find and shut down the source.

Fruit Flies vs. Drain Flies: What They Tell an Inspector

This is where a home inspector sees things a pest-control article won’t mention. Two different insects get lumped together as “those little flies by the sink,” and they point to very different problems.

Fruit flies are small with red eyes and hover around fruit and food. The vinegar trap works on them.

Drain flies (also called moth flies) are fuzzy and moth-shaped, and they rest on walls near drains. The vinegar trap does almost nothing to them because they don’t breed in fruit. They breed in the slimy organic film inside your pipes. If your soap-and-vinegar trap isn’t catching anything but the flies persist, that’s your clue.

To an inspector, persistent drain flies are a symptom, not just a nuisance. They can point to a slow or rarely used drain, a dried-out P-trap letting sewer gas into the home, a hidden leak under a sink feeding constant moisture, biofilm in a sewer or vent line, or buildup in an HVAC condensate line.

Those are exactly the kinds of plumbing and moisture issues we document during a home buyer inspection, which covers the electrical, plumbing, drainage, and moisture conditions throughout a house.

A quick way to confirm a drain is the source: tape a clear plastic bag loosely over the drain overnight; if flies are inside in the morning, that drain is breeding them.

Lingering moisture is also the foundation for bigger problems, which is why we often connect drain issues to how inspectors test for mold in a home and to home septic system maintenance.

A comparison infographic titled "Is It a Fruit Fly or a Drain Fly?" that outlines the distinct appearances, habits, remedies, and household implications for both types of flies.

Does Dish Soap Actually Kill Fruit Flies?

Yes, but only as part of a trap. Plain dish soap isn’t bait. What makes the classic trap work is the combination: apple cider vinegar provides the fermented, fruity smell that fruit flies can’t resist, and the dish soap changes the physics of the liquid.

Normally, a fruit fly can land on water and stand on the surface, held up by surface tension. Dish soap is a surfactant, which means it breaks that surface tension. When a fly lands on vinegar dosed with soap, nothing is holding it up, so it sinks and drowns.

That’s the whole trick, and it’s why the soap matters even though the vinegar is the lure.

The Trap Recipe (and Variations)

Here’s the standard version:

  1. Pour about half an inch of apple cider vinegar into a small bowl, jar, or glass.
  2. Add one to three drops of liquid dish soap (the kind you wash dishes with by hand, not dishwasher detergent).
  3. Optionally, stretch plastic wrap over the top, secure it with a rubber band, and poke a few small holes. Flies get in but can’t find their way out.
  4. Set it near the activity, usually the counter, the trash, or the sink. Refresh every couple of days.

Variations that work just as well: a splash of red wine or beer instead of vinegar, or a piece of overripe banana in a covered jar. They all rely on the same fermented smell, plus a way to trap the flies once they arrive.

An infographic titled "2-Minute DIY Fruit Fly Trap" outlining bulleted instructions and ingredients, including apple cider vinegar and liquid dish soap, to create a homemade fruit fly trap.

Why They Keep Coming Back

A trap catches adult flies, but it does nothing about eggs and larvae. Fruit flies breed fast. According to the University of Kentucky’s entomology guide to fruit flies, a single female lays around 500 eggs, and the entire life cycle, egg to adult, takes only about a week.

That same guide makes the key point: they breed in drains, garbage disposals, empty bottles and cans, trash containers, and damp mops, and no amount of trapping or spraying will fix the problem until you find and eliminate those breeding sites.

So while your trap is working, go hunting. Toss overripe produce, take out recycling, rinse the containers, wipe up spills, and clean your drains and disposal (boiling water, or baking soda and vinegar, or ice and salt in the disposal).

If you do that and the flies still won’t quit, you may not be dealing with fruit flies at all.

Related Questions to Explore

Does dish soap and vinegar kill fruit flies?
Yes. The apple cider vinegar lures them in, and the dish soap breaks the surface tension so they sink and drown. Together, they make an effective trap.

Why does dish soap kill fruit flies?
Dish soap is a surfactant. It removes the surface tension that normally lets a fly rest on liquid, so flies that land can’t float, and they drown.

What is the best homemade fruit fly trap?
Apple cider vinegar with a few drops of dish soap, optionally covered with poked plastic wrap. Red wine or overripe fruit works as an alternative lure.

How do I get rid of fruit flies in my drain?
Clean the organic film inside the drain with boiling water, baking soda, vinegar, or an enzyme cleaner. A surface trap won’t reach the breeding site inside the pipe.

Do I have fruit flies or drain flies?
Fruit flies have red eyes and hover around fruit. Drain flies are fuzzy and moth-like and rest near drains. Drain flies signal a plumbing or moisture problem, not a food one.

When to Call a Professional

Call a plumber or schedule an inspection if drain flies keep returning after you’ve cleaned the drains, if you notice a sewer-gas smell, if there’s persistent dampness under a sink, or if you’re buying a home and want to know whether those little flies are hiding a moisture or plumbing issue. For homeowners and buyers across New Hampshire and eastern Vermont, Norway Hill Home Inspections can take a closer look.

Conclusion

Dish soap and apple cider vinegar make a genuinely good fruit fly trap, and it’s worth setting one up tonight. But traps only catch adults.

If the flies keep coming back, find the breeding source, and if your trap catches nothing while the flies persist, you may have drain flies pointing to a plumbing or moisture problem.

When you want to know what those signs really mean for a house, especially one you’re about to buy, reach out to Norway Hill Home Inspections at (603) 525-7025.