About Fruit Flies

What Do Fruit Flies Eat?

Yeast, sugars and fermenting matter — what actually feeds the adults and their larvae.

It is easy to assume fruit flies eat fruit. In truth they are far more interested in what grows on the fruit: the invisible film of yeasts and bacteria feasting on the sugars of anything overripe or fermenting. Understanding their real diet explains everything from why vinegar traps work to why a spotless kitchen can still host a swarm. Here is what fruit flies actually consume.

⚡ Quick answer

Fruit flies feed mainly on the yeast and microbes growing in fermenting, sugary matter rather than the fruit itself. Adults sip juice from overripe produce, spilled soda, wine, vinegar and beer, while the larvae graze on the yeast in rotting fruit and damp organic film. Remove those fermenting foods and the flies lose their fuel.

In short

Adults eat
Liquid and semi-liquid food, mainly yeast and microbes on fermenting sugars
Larvae eat
The same microbe-rich, decaying material they hatch in
Key attractant
The smell of fermentation — alcohol and acetic acid, not fruit itself
How they feed
A sponging proboscis; they cannot bite or chew
Protein source
Yeast, which females need to produce eggs

Yeast, not fruit, is the real meal

When fruit ripens past its peak, wild yeasts and bacteria colonise its sugary surface and begin fermenting them into alcohol and acids. That microbial bloom — not the fruit flesh — is the fruit fly's staple food. Adults lap up the liquid produced by fermentation and graze on the yeast itself, which supplies the protein a female needs to develop her eggs. This is why the flies gather on fruit only once it is soft, bruised or split: intact, fresh fruit hasn't started fermenting and offers them little. For the baseline on the insect itself, see what fruit flies are.

They also have no biting or chewing mouthparts. Instead they use a soft, sponge-like proboscis to soak up liquids and dissolved sugars, much as a house fly does. That means their food has to be moist — a fermenting spill, juice, the film on rotting fruit, or the residue in a drain. Dry sugar or whole solid fruit is of little use to them until moisture and microbes get to work on it. Because they can only sponge up liquid, they also cannot bite you; that misconception is cleared up in do fruit flies bite.

What the larvae eat

The larvae — small, legless maggots — are the truly hungry stage. A female lays her eggs directly on or just below the surface of the fermenting material so the larvae can start eating the instant they hatch. They plough through the soft, decaying food, consuming the yeast and bacteria within it and growing rapidly through three stages before pupating. In effect, the larvae eat their nursery. This is why removing the breeding material is so decisive: you are cutting off the entire food supply of the next generation at once. The full sequence is laid out in the fruit fly life cycle.

The everyday menu in your home

In a typical kitchen, "fermenting sugars" covers a lot of ground. The flies are happy with any of the following once it starts to break down:

Notice that most of these are not fruit at all — which is exactly why fruit flies appear in kitchens with no visible fruit. That surprisingly common situation has its own guide: fruit flies without fruit. To track down whichever of these is feeding your problem, work through the sources hub and how to find the breeding source.

Why their diet is the secret to trapping them

Because fruit flies hunt by the smell of fermentation, you can beat them at their own game. A trap baited with apple cider vinegar, red wine or a yeast-and-sugar mix mimics exactly the odours they are wired to seek, luring adults in. A drop of dish soap breaks the surface tension so they sink instead of walking back out. In other words, effective baits are just concentrated versions of their natural food. We cover the best options in best bait for fruit flies and the classic recipe in the apple cider vinegar trap.

Tip: A ripe banana or a splash of wine often out-performs plain vinegar precisely because it offers a richer yeast-and-sugar buffet — closer to their real diet.

Sugar, protein and why the balance matters

A fruit fly's diet is really two things at once. The sugars in fermenting food supply quick energy for flying and daily activity, while the yeast supplies protein — and protein is what a female must have to build and lay eggs. A fly living on sugar alone can survive but struggles to reproduce well; add a protein-rich yeast source and egg production climbs. This is why the richest breeding sites are the ones combining both, such as a rotting, yeast-covered piece of fruit. It also means the flies are not fussy gourmets so much as opportunists chasing whichever fermenting scrap offers the best mix. One thing they cannot use, though, is dry or sealed food: without moisture and exposed surface for microbes, sugar stays locked away and of no interest to them — which is exactly why sealing produce and wiping up spills works so well.

Can you starve them out?

Up to a point. Adults can survive for a few days on very little, but they cannot breed without food, and the larvae will die if their fermenting food is removed. So denying them food — sealing produce, cleaning residue, emptying the bin — genuinely collapses a population over a couple of weeks. It rarely works instantly, though, because adults linger and hidden sources are easy to miss. Just how long they last with nothing to eat is covered in how long fruit flies can live without food, and their overall lifespan in how long fruit flies live.

The takeaway

Fruit flies are not really after your fruit — they are after the fermentation feast on top of it, and after every other sugary, microbe-rich film in the room. Once you see their diet clearly, control stops feeling mysterious: remove the fermenting food, deny the yeast, and bait the survivors with the very smells they crave. Put it all together with the remove fruit flies hub, or return to the about fruit flies overview.

Sources

Ready to take action?

Now that you know what you're dealing with, the next step is getting rid of them.