How To Eliminate Maggots in Compost Bins

How To Eliminate Maggots in Compost Bins
Written By
Regan Hennessy
Regan Hennessy
Published: Jan 24, 2010
Updated: Nov 20, 2021
2 minute read

Although beneficial to the composting process, soldier flies can lay eggs in the compost, producing maggots--also called larvae--which have the singular ability to disgust even the most enthusiastic composters. Grayish-white in appearance, soldier fly maggots are approximately an inch long and wriggle actively, especially when exposed to light. Since these maggots thrive on nitrogen-rich materials, one of the keys to eliminating them from your compost is maintaining a proper balance of carbon materials in the bin.

Things You Will Need

  • Carbon-rich organic materials
  • Rubber gloves/tissue
  1. Check the moisture level of the compost bin. The aim for compost bin is for it to be the consistency of a wrung-out sponge. If the compost is dripping wet it’s too moist.

  2. Add carbon-rich materials such as shredded newspaper, cardboard, dead leaves, straw or old hay, to the compost bin to reduce the moisture level and to offset the amount of nitrogen materials.

  3. Cover the nitrogen materials in your compost with at least 2 to 4 inches of carbon materials. Bury food scraps and other nitrogen-rich materials thoroughly in the bin.

  4. Feed maggots in the compost bin to the birds to help control them. Dump the larvae in a location that is away from buildings so birds can easily find them.

The Drip Cap

  • In addition to the millions of microscopic bacteria that decompose the organic waste in a compost bin, a variety of larger creatures helps produce the finished product, including soldier flies.
  • Although beneficial to the composting process, soldier flies can lay eggs in the compost, producing maggots--also called larvae--which have the singular ability to disgust even the most enthusiastic composters.
  • Add carbon-rich materials such as shredded newspaper, cardboard, dead leaves, straw or old hay, to the compost bin to reduce the moisture level and to offset the amount of nitrogen materials.

Photo Credits

Jenna Winkeller/Demand Media

Jenna Winkeller/Demand Media

Jenna Winkeller/Demand Media

Jenna Winkeller/Demand Media

Jenna Winkeller/Demand Media

Jenna Winkeller/Demand Media

Regan Hennessy

Regan Hennessy has been writing professionally for 11 years. A copywriter and certified teacher, Hennessy specializes in the areas of parenting, health, education, agriculture and personal finance. She has produced content for various…

Sponsored
HomeSteady Logo

HomeSteady is the ultimate guide for all your household needs, from cleaning and HVAC to electrical, DIY and maintenance.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.