Eliminating Pests in Compost

I have to admit, when I first started composting, I was horrified to find bugs in my pile. I didn’t want earwigs and sow bugs in there! What I didn’t realize is that those bugs were all a part of the decomposition process. Some bugs commonly found in compost actually feed on the decaying matter, while some feed on other bugs. Nematodes, mites, snails, slugs, earthworms, millipedes, sow bugs, and whiteworms are the primary consumers of the organic matter in a compost pile. The bigger bugs in the pile – centipedes and beetles, say – are secondary or tertiary consumers, meaning that while they’re not technically helping break down the compost, by eating those primary consumers they are part of the life cycle there. (Check out the compost food chain that’s shown on this page about invertebrates in the compost pile if you’re really interested in the science of your compost heap)

fruit flies,compost, pests

Photo: Flickr user net_efekt under Creative Commons

Much as I understand now that bugs are just part of the process, I really don’t like the fruit flies that populate my compost pile. When their population is out of control, they fly up in a cloud of wings every time I toss something new on the pile, seemingly intent on making their way into my nose. Getting rid of the flies once they’ve taken over the pile is harder than simply preventing the problem in the first place, so I do my best to keep the problem in check.

  • I find that the best way to prevent an overabundance of fruit flies is to make it harder for them to get to the material they like. They’re after the kitchen cast offs, not the dry leaves and grass clippings. I try to maintain a layer of undesirable materials at the top of the pile. When I add something to the compost, I lift this layer and tuck the kitchen waste below it.
  • Fruit fly traps hung above or near the compost pile will attract the flies and prevent them from reproducing. I have one that I made out of a plastic bottle (kind of like this) with a lure inside and it attracts a fair amount of flies. (This glass fruit fly trap is prettier, though!) I’ve also had success with banana peels and wine as an attractant.
  • When I’ve kept lidded compost bins, the fruit flies seemed to be worse. Maybe because the flies are trapped inside where they lay more eggs, multiplying quickly? I honestly don’t know, but I don’t keep a lid on my compost any more. (Remember, we don’t have much in the way of compost raiding critters, so I can get away with this.)
  • If your pile is really overrun, I’ve read that dousing it in boiling water will kill the eggs and interrupt the life cycle of the flies, though I’ve not tried this method.
  • A hot compost pile (as opposed to a lazy one) will prevent the larval stage of fruit flies (maggots) from surviving in all but the outer (cooler) areas of the pile. If you’ve got a hot compost pile I’d be curious to know if fruit flies are an issue for you.

Do you have any other tricks for taming the fruit fly population in a compost pile? Please share!

This article has 8 comments

  1. I’m a little creeped out now. And, itchy. I feel itchy.

  2. But wouldn’t the hot water kill the good bugs as well as the fruit fly eggs?

    • Yes, the boiling water will kill all the little buggies. I wouldn’t do this unless it was a really dire fruit fly situation.

  3. Hmm. I’m still at a quandary as to why you have to eliminate them, except that you don’t like them because they fly up your nose. :) I’m inclined to let the natural order of things take over the compost pile.

    • Living Large, I try to keep the fruit fly population in check because the fruit flies actually sting/damage the vegetables growing in my garden.

  4. Thanks for the tips. I also get annoyed with the fruit flies in summer and worry that I’m just breeding them so they can fly around and ruin all the fruit and veges in my garden. I will try the lid off next summer. At the moment, being winter here in Aus, I don’t have any flies, but I have been battling a family of rats that took up residence in my compost bin! I ended up trapping them (and only because I thought they would attract snakes to my garden, otherwise I would have let them stay).

  5. So how do you keep rats and mice out?

Leave a Reply