How to Get Rid and Prevent Maggot in Compost

Are you tired of seeing some maggot in your compost? Did you know that you can get rid of them and even prevent them from coming into your compost ever? The information below will help you get rid and prevent maggot in compost effectively.

There are million 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.

maggot in compost

Soldier flies are beneficial, but once they lay eggs to the compost, the eggs will then start producing maggots. This will disgust you and even the composters.

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. They are usually present when there are materials that are rich in nitrogen since this is what they thrive in.

These are the information that you need to know about how to get rid and prevent the maggot in compost. 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.

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

Here are the tips on how to get rid and prevent maggot in compost:

Checking the Level of Moisture


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

old hay

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

dead leaves

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.

Read more about "browns":

Covering the Nitrogen Materials

The nitrogen materials should be included with nitrogen materials 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

composter bin

Since maggot is from the eggs that are being laid by flies, so 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

outdoor fly trap


There are now electric outdoor flytraps 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 Some Plants


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.

Control the Maggots

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.

Killing the Maggots

add limestone to compost

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.

Hydrogen Peroxide


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.

These are the information that you need to know about how to get rid and prevent the maggot in compost. 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, I have dedicated most of my life in gardening. This is a subject I enjoy the most. Since then, I committed to developing my website to be the best guidance when it comes to taking care of flowers and plants. I am trying my best to be well-versed with plants found in desert areas, tropics or Mediterranean. I still need to be knowledgeable about so many kinds of botanical life.

follow me on:

Leave a Comment: