Beer, Wine or Cider Vinegar? Fruit Flies Follow Fermentation, and the Trap Is Not the Cure

No single liquid has been shown to be the best fruit fly bait. Fruit flies follow the smell of yeast fermentation, a blend of acid, alcohol and other compounds that yeast makes, and cider vinegar, beer and wine each carry part of that blend.

In cage tests, and in field tests on a related fly, blends drew more flies than single ingredients. In a field comparison at 10 locations across the United States, several homemade baits beat cider vinegar for that related fly. No published comparison of kitchen baits for the kitchen fruit fly in a home was found.

Whatever goes in the jar, a trap removes only the adults that find it. The flies keep coming until the place they breed is found and cleared, and Nebraska Extension says no insecticide is needed to do that.

The argument here comes from a thread on r/CleaningTips by someone who set out several liquids during an infestation and compared what each one caught.

One reply restates the result: beer caught the most, white wine came next, and vinegar did fine on its own but lost out once other choices sat nearby.

The replies then turned into a referendum on cider vinegar, which had not been in the lineup. Others backed red wine, kombucha, sourdough starter or a dish of ketchup, and someone who said they had worked in a fruit fly lab recommended yeast stirred into warm water until it bubbles.

A quieter set of replies made the point this article ends on. Catch as many as you like, they said, but if the flies are still breeding somewhere in the kitchen, they will keep coming.

One reader pours boiling water down the sink every day; another asked whether the flies come up the drains.

What the Flies Are Actually Following

The kitchen fruit fly, Drosophila melanogaster, is drawn to fermenting fruit, and the fermentation turns out to matter more than the fruit.

Becher and colleagues (2012, Functional Ecology, cited from the abstract) found that baker’s yeast on its own was enough to attract the flies, have them lay eggs and raise larvae.

Unfermented grape juice drew significantly fewer flies, and yeast fermenting with no fruit at all produced the same behavior as yeast fermenting on fruit. A synthetic blend of five yeast odor compounds, ethanol, acetic acid, acetoin, 2-phenyl ethanol and 3-methyl-1-butanol, was as attractive as fermenting grape juice.

Vinegar sits inside that picture rather than outside it. In a wind tunnel, Becher and colleagues (2010, Journal of Chemical Ecology, cited from the abstract) found that vapor from vinegar drew 62 percent of the flies tested within 15 minutes, and acetic acid, the main compound vinegar gives off into the air, attracted flies as a single compound.

Adding two other fermentation compounds, 2-phenyl ethanol and acetoin, to the acetic acid strengthened the response more than either would suggest alone.

So the thread’s question, acid or alcohol or sugar or yeast, has an awkward answer: the fly is following fermentation, and the acid and the alcohol are parts of one smell.

The evidence is weakest for sugar on its own: unfermented grape juice, sweet but not fermenting, drew fewer flies than fermented juice.

The reader from the fly lab has the closest support, since Becher’s flies came to fermenting yeast with no fruit involved. Whether yeast stirred into plain warm water ferments enough to match was not tested, and their report of it working best is one lab’s habit, not a comparison.

The reply crediting glycerol in beer has a real paper near it. Wisotsky and colleagues (2011, Nature Neuroscience, cited from the abstract) found that a taste receptor, Gr64e, is needed for the flies’ feeding preference for beer and other sources of fermenting yeast, and that it responds to glycerol, which growing yeast produces in quantity.

That receptor works by taste, on contact. It bears on what a fly prefers to feed on once it has landed, not on how it finds a glass from across the room, which is the job of smell.

Why a Blend Outdraws One Ingredient

The clearest single result comes from cages. Zhu, Park and Baker (2003, Journal of Chemical Ecology, cited from the abstract) found that a blend of ethanol, acetic acid and 2-phenylethanol attracted six times more flies than any one of those compounds alone, and four times more than traps baited with overripe mango.

The same abstract adds a warning that applies to every kitchen contest: in field trials the blend “was not as attractive as suggested by the laboratory bioassay.” A result in a cage is a start, not a verdict.

The larger field comparisons of baits found here were run on spotted wing drosophila, Drosophila suzukii, a related fly that attacks ripening berries.

It is not the kitchen fruit fly, so what follows applies to the kitchen by inference. In northwest Oregon, Landolt, Adams and Rogg (2011, Journal of Applied Entomology, cited from the abstract) baited traps with vinegar, wine and mixtures.

Vinegar and wine each caught large numbers, and a mixture of the two caught significantly more than either alone. Ethanol at 10 percent in water caught very few flies; acetic acid and ethanol together caught more than either solution; and the vinegar and wine mixture outdrew the two pure chemicals combined.

The largest comparison ran at 10 locations across the United States.

Burrack and colleagues (2015, Environmental Entomology, cited from the abstract) found that several homemade baits were more efficient than apple cider vinegar, which they call “a commonly used standard”, and every alternative caught flies one to two weeks earlier than cider vinegar did.

The abstract does not name the winning baits, so neither does this article. It does report that over half of the Drosophila caught with any bait were other species, a reminder that fermentation baits draw several kinds of Drosophila, not one.

Beer, Wine or Cider Vinegar

Beer is not one bait. Dzialo and colleagues (2024, iScience) tested 45 beers against a low-aroma blank beer in laboratory traps, with flies starved for a day first. The kitchen fruit fly leaned toward darker beers, browns, ambers, dubbels and Flemish ales.

The authors associate browns and dubbels with yeast and malt aromas. The kitchen fly’s most preferred beer was a Flemish ale and its least preferred an alcohol-free lager. Across the chemical work, fruity-smelling compounds called esters, made by yeast, drew the kitchen fly more specifically than its berry-eating relative, which leaned toward plant aromas.

The same study shows that the strength of the acid matters. Acetic acid at 0.5 to 2 percent, the range found in some beers, attracted the berry fly but less so the kitchen fly, and the authors note that household vinegar is typically 5 percent. Apple cider vinegar caught the two species in almost equal numbers.

Stronger is not simply better. Semmelhack and Wang (2009, Nature, cited from the abstract) found that apple cider vinegar triggers robust attraction at a relatively low concentration, while a higher concentration activates an additional processing unit, a glomerulus, in the fly’s smell center and is less attractive.

A second study pulls the other way. Kim and colleagues (2023, Insects, cited from the abstract) found the kitchen fly preferred higher concentrations of ethanol, acetic acid and 2-phenylethanol than its relative did, and mated females more than virgins.

The concentrations are not given in the abstracts, so no dilution for a kitchen jar can be drawn from them.

Read together, the studies show that every fermented bait tested on this fly drew it, vinegar, beer and fermenting yeast among them, and the strength that works best in a jar has not been measured. In the studies found, wine has been field-tested only on the related fly, and red against white has not been compared at all.

Why One Kitchen’s Winner Loses in Another

The laboratory results above came from hungry flies. Becher’s 2010 flies responded at any age, sex or mating state, “provided they had been starved”, and Dzialo’s were starved for a day before each test. A kitchen with a fruit bowl and a bin is not that setting.

No test has measured how a kitchen’s other food changes what a trap catches. The thread’s original result, vinegar holding its own alone but losing when other choices sat beside it, is one household’s observation, and no test has checked it.

Two other differences have a source behind them. Mated females respond more strongly than virgins (Kim and colleagues), and laboratory rankings can weaken in the field (Zhu and colleagues).

One reader keeps identical traps in several rooms and sees very different catches. No study of trap placement inside a home was found, so where a trap belongs has no measured answer beyond the obvious one, near where the flies are.

Building the Trap, and Checking the Fly First

Before choosing a bait, check what is flying. Nebraska Extension (Browning, 2024) says fruit flies have obviously red eyes, and that small flies without them are probably something else. Fungus gnats look similar and are a common houseplant pest; see what actually controls fungus gnats.

Purdue Extension’s guide to small flies (E-233, 2018) separates them further: fruit flies are about an eighth of an inch, tan, with red eyes; moth flies have bodies and wings covered in tiny hairs; fungus gnats are very thin with long legs.

Purdue lists drains among the breeding places for this whole group of small flies, so a fly rising from a drain is not necessarily a fruit fly. If the flies rise from plant pots, the gnat treatments that have been tested are a different subject.

For fruit flies, Nebraska Extension describes the trap. Pour about an inch of apple cider vinegar into a small jar or cup, add a drop of dish soap and swirl it. Then either push a paper funnel into the top or cover it with plastic wrap and poke a few holes with a toothpick.

The soap is not decoration. It is a surfactant, a substance that lowers the surface tension of the liquid, so flies that land sink instead of standing on the surface. Flies find their way in through the funnel or the holes and do not find their way back out.

Readers argued over whether soap alone makes the cover unnecessary.

Nebraska’s build uses soap with a funnel or a cover, and no source compared them, so neither side has a test behind it. Beer and fermenting yeast are the swaps with laboratory evidence for this fly; the other baits readers named have none.

Why the Flies Keep Coming

The trap catches adults. The flies that matter are the ones not yet hatched. Females lay eggs on overripe or damaged fruit, and the larvae feed near the surface of the fermenting food. Nebraska Extension puts egg to adult at as little as a week, which is why numbers climb so fast.

New flies also arrive from outside. Eggs and larvae come home on produce, from the store or the garden, and adults are small enough to pass through window screens. A trap does nothing about any of that.

Nebraska Extension is blunt about the remedy: “No insecticide is needed to eliminate fruit flies; the key is eliminating food sources and breeding sites.” Purdue’s guide also puts the breeding sites first: the best way to end an infestation, it says, is to find and remove every breeding site, actual and potential.

Where the flies come from

A trap removes the adults that find it. The breeding site keeps making more until it is found and removed.

Where the flies come from A loop, schematic and not to scale. A breeding site of fermenting food, a drain or dregs feeds eggs and larvae, which become adults in as little as a week, and females lay eggs back at a site. A side branch takes some adults into a trap. The loop stops only when the site is removed. Breeding site fermenting food, drains, dregs Eggs and larvae larvae feed in wet, fermenting food Adults fly to fermenting smells to feed egg to adult in as little as a week females lay eggs Trap removes the adults that find it some adults The loop stops only when the site is gone.

Site Larvae feed near the surface of fermenting food: overripe or damaged produce, a rotting potato or onion, bottles and cans with dregs, a garbage disposal, mops, rags and drains (Nebraska Extension; Purdue). Purdue says hot water and bleach do not clear breeding sites in a drain.
Cycle Egg to adult can take as little as a week (Nebraska Extension). New flies also come in on produce as eggs or larvae, and adults can pass window screens.
Trap Catches the adults drawn into it. A blend of fermentation smells drew more flies than any single one in cages (Zhu 2003), and vinegar with wine beat either alone in the field for a related fly (Landolt 2011). No test has compared kitchen baits for this fly in homes.
Site gone Breaks the loop. With the food sources removed, the adults left can take a couple of weeks to die (Nebraska Extension).

Schematic, not to scale. Boxes are stages, not amounts, and arrow lengths do not show time. Terracotta edge: the breeding site; sage: the trap.

Trapping thins the adults. Finding and removing the breeding site is the control extension guidance gives, and no insecticide is needed.

Nebraska Extension (Browning), 2024; Purdue Extension E-233, 2018; Zhu, Park and Baker, 2003; Landolt, Adams and Rogg, 2011.

Finding and Removing the Source

Nebraska Extension’s list is a search plan for the kitchen. Put fresh fruit and vegetables in sealed containers or the refrigerator, and check onions and potatoes, which are easy to overlook; a rotting potato is a strong food source. Wipe sugar off counters and do not leave unwashed dishes standing in the sink.

Rinse bottles and cans for recycling, since flies feed on the last of the beer, wine or soda, and take recycling out every few days. Keep compost scraps in the freezer or an outdoor bin, clean the garbage disposal, and wash mops, sponges, dishcloths, trash cans and recycling bins.

Drains are the hard case. Purdue lists drains among the places small flies breed, because larvae survive in moist organic matter, and its guide says plainly that bleach and hot water will not eliminate breeding sites in drains.

That bears on the boiling water reply. Purdue says hot water will not clear a drain’s breeding site, and no source found tested boiling water itself.

Purdue’s own instruction, written for food preparation areas, is to clean the drain with a brush and an industrial strength drain cleaner. This article does not recommend a product. If you use one, follow its label and never mix it with anything else.

That warning matters more than usual here, because vinegar traps get emptied into the same sink. The New Jersey Department of Health warns that mixing bleach with vinegar or other acids can create a toxic gas. Do not pour bleach where a vinegar trap has just gone.

Once the sources are gone, the flies do not vanish overnight. Nebraska Extension says it can take a couple of weeks for the remaining adults to die. That is where the trap earns its place: once the source is gone, it speeds up the end of the adults that are left.

Local Regulations and Safety Advisory

If you use pest control products or household chemicals, follow the label. Rules on them vary by country and locality, and your pesticide regulator or hazardous waste service can say what applies where you live. This article is general information, not legal or medical advice.

Authorities to consult:

  • Pesticide regulatory authority or environmental protection agency
  • Public health department or hazardous waste service

What Remains to Be Explored

No published trial compares kitchen baits for the kitchen fruit fly in homes. The closest evidence is cage work (Zhu and colleagues), a wind tunnel (Becher and colleagues), laboratory arenas with starved flies (Dzialo and colleagues), and berry fields for a related fly (Landolt and colleagues; Burrack and colleagues).

A trial that would settle the thread’s argument is not hard to describe: identical jars, the same volume of each bait, positions rotated, repeated in several kitchens.

The baits readers swear by, cider vinegar, red wine, beer, yeast water, kombucha and sourdough starter, have not been put side by side that way in any study found.

The 10-location comparison’s abstract does not name the baits that beat cider vinegar.

The best strength for a kitchen jar has not been measured, and the abstracts that tested concentration do not give their figures. Funnel against plastic wrap against soap alone has not been compared, and neither has trap placement inside a home.

Development speed was given only as “as little as a week”; no figure for how long it takes in an ordinary kitchen through the year was found. Whether daily boiling water lowers numbers, short of clearing a drain, has not been tested. Any of these results could change the advice above.

Sources

More in