How to Get Rid of Fruit Flies in Your Compost Bin

Lift the lid of the green bin and a cloud of tiny flies comes out. Fruit flies are the most common compost complaint we hear, especially from late summer into fall. The good news is that they're easy to beat once you remove what they're breeding in.

Why Fruit Flies Love Your Compost

Fruit flies lay their eggs on fermenting fruit and vegetable scraps. A warm green bin or kitchen catcher full of peels is the perfect nursery, and a new generation can hatch in about a week. Sticky residue on the bin walls keeps them coming back even after the bin is emptied.

Get Rid of Them Fast

  1. Empty the kitchen catcher daily while you have flies, and wash it with hot soapy water (kitchen pail tips).
  2. Clean the green bin after the next pickup. Residue in the bottom and under the lid is where eggs survive.
  3. Set a simple trap in the kitchen: a little apple cider vinegar with a drop of dish soap in a small dish. The soap breaks the surface tension so flies sink.
  4. Check the fruit bowl. One overripe banana can restart the cycle.

Keep Them Away

  • Wrap scraps in newspaper or a paper bag before they go in the bin.
  • Keep the kitchen catcher lid closed, and the green bin lid shut tight.
  • Freeze fruit scraps in hot weather and add them the night before pickup.
  • Put the green bin out every collection day, even if it isn't full.
  • Keep the bin out of direct sun if you can.

When the Bin Itself Is the Problem

If flies keep coming back after you've done all of the above, the bin needs a proper clean. Our green bin cleaning removes the residue fruit flies breed in, at the curb on pickup day. For more on odours, see why your green bin smells.

FAQ

Why do I have fruit flies in my compost bin?

They breed in fermenting fruit and vegetable scraps and in residue left on the bin walls. Warm weather speeds up the cycle.

What kills fruit flies in a green bin?

Removing what they breed in: empty and wash the kitchen catcher, clean the green bin after pickup, and wrap scraps going forward.

Are fruit flies the same as maggots?

No. Maggots are fly larvae, usually from house flies or blow flies on meat. See our maggot guide for those.

Related

Fly-Free Bins, Every Pickup

Monthly bin cleaning from $14.99 · No need to be home · No payment today.