What Do Fruit Flies Eat? Fermenting Fruit and Yeast
What do fruit flies eat? Drosophila melanogaster feeds mainly on the yeast growing on rotting or fermenting fruit, not the fruit itself. The sugar draws them in, but yeast is what keeps them alive and lets the larvae develop.
Where They Feed
Drosophilid flies feed and breed in damaged, fermenting, overripe produce. Most Drosophila species do not feed on undamaged fruit, which is why a fruit bowl of firm, unbroken produce rarely draws them in until the skin splits or bruises. Kitchens, compost bins, orchards, and wineries all supply the same thing: soft, broken-down plant matter with an active yeast colony on the surface.

What They’re Actually Eating
Fermenting Fruit
Bananas, peaches, grapes, and berries become attractive once the skin breaks and sugars start converting to alcohol. Bananas and grapes are especially common breeding sites because they soften and split quickly at room temperature.
Vegetables
Overripe tomatoes, squash, and onions ferment the same way fruit does once cut or bruised. A fruit fly doesn’t distinguish between a browning banana peel and a soft tomato; both are fermenting plant sugar with yeast on top.
Yeast
Yeast is the real nutritional target, not the fruit sugar itself. Yeast supplies nitrogen, amino acids, B vitamins, sterols, and fatty acids that fermenting fruit alone can’t provide, and larvae raised on yeast-free fruit develop poorly compared with larvae that have yeast available. Sugar draws flies in, but yeast is what lets a generation of larvae actually reach adulthood.
How They Feed
Adult fruit flies have a proboscis built for sponging up liquid, not chewing. They land on a wet or softened surface and draw up the liquid film, which is why fermenting produce (wet and yeasty) is a better food source than dry, intact fruit. Their antennae carry olfactory receptors tuned to fermentation byproducts like ethanol and acetic acid, so they can locate a ripening banana on a counter from across a room.
Diet, Eggs, and Development
Females begin laying eggs as early as their second day of adulthood, and a mature female can lay 50 to 75 eggs a day, roughly 400 to 500 over ten days. Eggs go directly onto the fermenting surface so larvae can start feeding the moment they hatch. Larvae feed on the same yeast-rich substrate as adults until they’re ready to pupate, then crawl off the food to a drier spot to form a puparium.
Diet composition during the larval stage also affects adult behavior later. Larvae raised on a high-sugar substrate tend to prefer sweeter food as adults, while larvae raised on a more varied, protein-inclusive diet show broader food preferences, including protein-rich options.
Decomposers, Not Pollinators
Fruit flies break down soft, decaying produce and cycle nutrients back into the soil faster than the fruit would decompose on its own. They aren’t meaningful pollinators; their mouthparts and behavior are built for feeding on liquid, not carrying pollen between flowers.
Cutting Off Their Food Supply
Remove the Fermentation Source
Wipe up spilled juice, rinse recycling before it sits, and don’t leave cut fruit or vegetable scraps out. A single overripe banana on the counter is enough to start a breeding cycle.
Trap What’s Already Hatched
A shallow dish of apple cider vinegar with a drop of dish soap, or a jar with a paper funnel and a piece of ripe fruit inside, will draw in and trap adults that have already emerged.
Check Drains and Disposal
Fermenting residue in a garbage disposal or drain is a common breeding site people overlook. If flies keep reappearing after the counters are clean, check there next.
Why This Matters Beyond the Kitchen
The same yeast-feeding biology that makes fruit flies a kitchen nuisance is what makes Drosophila melanogaster one of the most studied organisms in genetics. Their short life cycle and predictable feeding response to fermentation are part of why they became a lab standard in the first place, not an unrelated fact bolted onto a pest profile.