Sumo Gardener

Maggots in Compost – How To Get Rid And Prevent

Are you tired of seeing maggots in compost bins? Do you want to know how to get rid maggots and prevent them from coming into your compost ever?

Once you know how to make compost, getting rid and preventing maggot in your compost effectively will be next on your gardening list.

How to Get Rid and Prevent Maggot in Compost

There are millions of bacteria that can be found decomposing the organic waste in the compost bin. There are bigger creatures that will help produce a good compost, including the soldier flies.

Soldier flies are beneficial, but once they lay eggs to the compost, the eggs will then start producing maggots.

Maggots are white to grayish in appearance and measures one inch long. They have the ability to wriggle actively, especially when they expose to the light.

Maggots are white to grayish in appearance and measures one inch long

They are usually present when there are materials that are rich in nitrogen since this is what they thrive in.

This is the reason why one of the best things that you can do when it comes to eliminating the maggots is ensuring your compost has the proper balance of all the carbon materials when it is in the compost bin.​

what stuff to compost?

Tips On How To Get Rid And Prevent Maggots in Compost 

Checking the Moisture Level of Your Compost Bin

check the level of moisture of your compost bin


The first thing that you need to do is to check the level of moisture of your compost bin.

You need to make sure that your compost bin has a consistency like a wrung out sponge. 

If the compost too wet that it starts to drip, then this just means that your compost is too moist.

Adding Carbon-Rich Stuff To Your Compost

start adding some carbon rich stuff

The next thing that you need to do is to start adding some carbon rich stuff, including old hay, straw, dead leaves, cardboard, or a shredded newspaper.

This will help lessen the level of moisture in your compost bin. The carbon rich stuff will also help offset the level of nitrogen materials in it.

Adding a Lot of "Browns" to your Compost Bin

add a lot of browns into your compost bin

You may also add a lot of browns into your compost bin. 

The brown materials will also help dry the bin a little, which will lessen the food percentage that larvae are eating. 

This will then make them die, or this will make them abandon your compost bin in no time.

Covering the Nitrogen Materials

Covering the Nitrogen Materials

The nitrogen materials should be included with 2 to 4 inches of the carbon materials that you have. 

You need to thoroughly bury the food scraps and other documents that are nitrogen rich into your compost bin.

Protect the Compost Bin from Flies

it is important that no flies are flying around your bin

Since maggot is from the eggs that are being laid by flies, it is important that no flies are flying around your bin. 

Some people are putting in huge holes on their bins since the compost needs to have a good flow of air. This will, in turn, make the flies enter the bin and start laying eggs.

The best thing that you can do is to ensure that the holes are covered with a mesh screen. This will help avoid the flies from laying their eggs and start a maggot infestation.

Using Outdoor Flytraps

Best Outdoor fly traps on the market


There are now electric outdoor fly traps that you can use to trap the flies and eliminate them.

The good thing about these outdoor flytraps is that the UV light that they emit can easily attract the flies and any other insects that are flying and zaps them completely with electricity.

Growing Plants to Help Get Rid of Flies

how to get rid of maggots


Some plants can help get rid of flies, and they even act as insect repellents. Some of the best plants to grow are tansy, lavender, chrysanthemum, and marigold.

If you can, it would be best also to grow a Venus flytrap since this plant is known as a carnivorous one that loves to munch on flies, which is an effective way to get rid of flies that causes maggots.

Growing new plants will not only beneficial for your compost bin but will also add beauty to your garden.

How to Control the Maggots In Compost

start controlling the maggots by feeding them to the birds

You can start controlling the maggots by feeding them to the birds.

You can start dumping the larvae in an area where there are no buildings in sight for birds can find them easily. 

The birds will surely be thankful to you for feeding them the maggots.

Utilizing the Maggots

For people who are into fishing, then you should know that maggots will come in handy for you.

The reason behind this is because maggots can be great baits when it comes to fishing.

Start gathering the maggots from the compost bin and place them in a container so you can have them ready for your next fishing session.

How to Kill the Maggots in your Compost Bin

how to kill maggots?

Now if the maggots seem to be just multiplying in numbers, then adding lime would be best. But you should know that it can be a bit risky to add lime.

This can be risky when the compost that you already have a high pH already. But if you insists on eliminating these pesky maggots, then using lime is beneficial.

To do this, you can add a cup of lime per 25 cubic feet of your compost. The citrus waste can be added to the compost bin.

You can wait for a couple of days before you start noticing the maggots dying.

using hydrogen peroxide to kill maggots


You can try collecting the maggots in a tray or any container so you can easily kill them.

You can start boiling water and add a mixture of one and a half cup of hydrogen peroxide.

Once done, you can pour the mixture into the tray or container, and you will see how the combination will instantly kill the maggots.

Wrapping Up Maggots in Compost - How To Get Rid And Prevent

These are the information that you need to know about how to get rid and prevent maggots in compost bins. 

If you want to ensure that your compost bin will remain free from these pesky maggots, then following the tips above will surely be beneficial not only for your compost but your plants as well.

About the Author Ann Katelyn

I'm Ann Katelyn, Creator and Chief Author of Sumo Gardener. Since I was a child I've always been fascinated with plants and gardens, and as an adult this has developed into my most loved hobby. I have dedicated most of my life to gardening and started Sumo Gardener as a way to express my knowledge about gardening with the hope of helping other people's gardens thrive.

follow me on:

Leave a Comment: