Getting rid of maggots

by Peter
(Camden NSW Australia )

We recently had a very hot day, temperature in excess of 40 degrees C, and my shade cloth cover for my worm farm became detached and was blown off and my worm farm was exposed to full sunlight and nearly all of my worms died.

When I opened my farm I was swarmed by flies and despite my attempts to shoo the flies away I now have maggots in my castings.

My question is, before I restock my worm farm should I...

a. Try to eliminate the castings infested by maggots?
b. Empty the worm farm and start from scratch?
c. Spray the castings with a domestic fly spray? ( If so what affect would this have on a future worm population?)
d. Ignore the maggots and restock? or
e. Has anyone an alternative suggestion?
I have tried to remove the decaying vegetable scraps to reduce the sustenance for the maggots.

Comments for Getting rid of maggots

Average Rating starstarstarstarstar

Click here to add your own comments

Dec 09, 2014
Maggots in a Worm Bin
by: Pauly

Also I would leave the worm bin "as is" and not get rid of anything. The maggot poop will be food for the worms and you will surely have some worm cocoons and babies in the bedding/castings.

Letting the maggots finish eating the kitchen scraps and letting them run there course will not hurt anything as they turn into adults quickly.

the worms will continue to eat the carbon bedding as the flies will not.


Dec 09, 2014
Getting Rid of Maggots In a Worm Bin
by: Pauly

Hi Peter,

Usually in these circumstances I tell people to just let nature take its course as long as your worms are still alive they will come back.

Flies/maggots are always an indication that there is too much kitchen scraps (nitrogen) in the mix.
There should be a mix of about 20:1 up to 40:1 Carbon:Nitrogen ratio.

Too much Nitrogen also means the bedding becomes too acidic and too moist. Flies love this type of environment.

Removing as much kitchen scraps as possible was good to do and adding some more moist carbon bedding like shredded paper, cardboard, dead leaves will help. Even some Minerals like lime and eggshells will help soak up the acid and moisture.

Stay away from and type of spray if it isn't natural. Using Diatomaceous Earth sprinkled on top of the bedding is a great deterrent to keep the flies from returning and laying anymore eggs.

You will have to wait for the cycle to run its course until the last fly cocoon hatches.

Hope this was helpful,

See my pages on unwanted pests below.
Worm Farming Pests

Oct 01, 2017
Great info
by: Rick Randazzo

I am new to the world of vermiculture and am amazed at how good it has been going for me. I moved my worm bins to the garden where it is full sun most of the day.

Yesterday was quite hot and today there were gobs of the funky things I guess are maggots.

They are grey and look like soft pill bugs. But after reading this post I realize my bedding is way too wet and has way too much green in it.

I'll add more cardboard and leaves and keep on with it.

Again I have to say how amazed I am at the amount of worms in just a few months.

Thanks for helping me out.

Jan 04, 2018
Grey Maggots in a Worm Bin
by: Pauly

Hello Rick Randazzo,

You mentioned you had grey maggots in your worm bin after moving them to the garden.

I'm assuming you had your worm bins inside, but after moving them to the garden, you now have the maggots.

You also mentioned your material contained a lot of greens. This all makes perfect sense.

The combination of a lot of greens and moving outdoors is a perfect storm for BSFL.

Black Soldier Fly Larvae love the rotting vegetation of kitchen scraps :)

They like a hot bed (or very warm bed) as well.

Lighten up on the kitchen scraps and add more moist carbon will help a lot. They are nothing to be concerned about unless they take over your worm bin.

Here is my page on the BSFL:

Black Soldier Fly Larvae


Jun 22, 2018
Thanks for this thread!
by: Alison

My 4 month old worm bin has been wonderful. I've kept it in my apartment and have had no problems until now when I have flies and maggots.

I still have worms fortunately, so I'll heed your suggestions to remove excess food scraps and add cardboard. I'm not exactly sure why the flies came - maybe I'd added too much food?

Anyway, thanks.

Feb 02, 2019
worms diminishing maggots increasing
by: Anonymous

I have had two worm farms going for years with no issues, suddenly, however, I have thousands thousands of hard skinned larvae of something - most likely flies - but the worms have nearly all vanished from the farms.

They are only in evidence as juveniles (small) way down on the worm casting level. I haven’t changed anything about the way I treat the worms.

Since the maggot invasion I have been adding more dry brown leaves and garden waste and leaving the kitchen scraps for a bit.

After two months of this, I am still losing worms and gaining maggots.

What kind of animals are these?!!

I haven’t seen any extra flies hovering about. Are they predating on the worms or just crowding them out?

I have a feeling I am going to have to start again with the populations from the very base of the farm.

I can’t even get our magpies interested in eating these maggots.

Any ideas??

Mar 17, 2019
worms diminishing, maggots increasing
by: Pauly

Hello Anonymous,

In order to really see what you're issue is, can you start a new thread and post a picture of your maggots?

This will help all of us understand the type of fly invading your bins. I'll get you through this :)

Thank you,

Jun 03, 2019
My problem too
by: DebT

Thank you for addressing this problem. I just discovered I have these also and now I know how to fix it. New to vermicomposting and really appreciate your advice.

Click here to add your own comments

Join in and write your own page! It's easy to do. How? Simply click here to return to Worm Farming Questions.

Search This Site

All Products

Line of Products

Available NOW!

Over 760 Pages

No More Excuses!


Below Are Products I Trust

All New 

2019's Newest

Worm Composter

The Garden Tower
50 Plants In Just
4 Sq Ft of Space

Order/Learn More

What Is The Garden Tower

Take Your Worm Farming Hobby to the Next Level

Don't tell me you haven't thought about it!

Start your own Business with GLOBAL Support.

Learn More

Extreme Vermicomposting

Create Amazing Compost Even in Extreme Conditions


Learn More

Build a CFT Worm Bin


The Most Efficient & Effective Worm Bins on the Market


Who's the Man Behind all the Worm Books and Screenplay?

Get To Know
Pauly "Dr Worm"

An Interview by
Urban Worm Company


Gardening Know How