PDF download Download Article
If your compost toilet has a fruit fly problem, here’s how to get them to stop bugging you
PDF download Download Article

What do you do when you open the lid of your compost toilet and get swarmed by a cloud of tiny flying bugs? These vinegar flies (fruit flies) and fungus gnats are harmless, but they’re very annoying! They also breed at an alarming rate, so it’s important to act fast when you have an infestation. We’ve put together a list of eco-friendly cleaning and pest control tips to defeat the flies and make your compost toilet pleasant to use again. If you want to be extra proactive, try a fly trap option along with one of the insecticide products. You’ll be fly-free in no time!

Things You Should Know

  • Prevent flies from entering your compost toilet by replacing the vent screen with a finer No-See-Um mesh.
  • Eliminate eggs and larvae by disinfecting your toilet. Empty and rinse the toilet, then scrub it with diluted bleach. Douse non-electrical parts in boiling water.
  • Kill flies by turning off the fan and adding 5 cups (628 g) of diatomaceous earth to the toilet. Sprinkle more after each use until the infestation clears.
  • Capture adult flies by hanging sticky fly paper in your bathroom.
1

Add extra bulking material.

PDF download Download Article
  1. Toss in extra bulking agent to absorb moisture and make your bathroom less appealing to flies. The solids in your tank should look like damp crumbly earth, not a smelly swamp.[1]
    • There isn’t a one-size-fits all recommendation for exactly how much to add. There are various factors, like how many people use your toilet, using different bulking material (sawdust, peat, or coconut coir), and the type of unit you own.[2]
  2. Advertisement
2

Spread diatomaceous earth in the tank.

PDF download Download Article
  1. Sprinkle 5 cups (.63 kg) of natural-grade diatomaceous earth to the tank.[3] Add a fresh layer every time the toilet is used until the infestation clears.[4]
    • Leave the fan off after application so the flies will land on it and meet their doom. Diatomaceous earth is made from fossilized diatoms. Although it looks like a soft powder, the material is very sharp for tiny insects![5]
    • Only use diatomaceous earth that is labeled “food-grade” or “natural-grade,” not the kind used to filter swimming pools. The pool-grade powder contains more silica, making it more dangerous to use.[6]
    • Wear protective gear, including gloves, safety glasses, and a dust mask when spreading diatomaceous earth. The dust can irritate your lungs if it’s inhaled.[7]
3

Spray a neem oil solution inside the toilet.

PDF download Download Article
5

Spray pyrethrin insecticide.

PDF download Download Article
  1. Choose a pyrethrin-based insecticide that specifies it’s suitable for garden use. Dilute it with water as instructed on the label, then use a spray bottle to douse the flies inside your toilet.[11]
    • Multiple applications are necessary since you have to wait for the flies to land so you can spray them.
    • Check the label; some insecticides add other pesticides which could be harmful to your compost.
    • Pyrethrin is made from compounds extracted from finely powdered daisies.[12]
  2. Advertisement
8

Attract flies with apple cider vinegar.

PDF download Download Article
9

Clean the toilet thoroughly.

PDF download Download Article
  1. [17] Put on gloves and a mask and completely empty the tanks. Rinse the unit, then scrub it using a stiff brush and a bleach solution. Finally, douse the non-electrical parts in boiling water.[18]
    • To make a bleach solution, mix 1 ¼ tablespoons of bleach (18.48 mL) with 1 US-quart (950 mL) of water in a spray bottle.
    • Keep the fan unit dry; carefully remove it before cleaning if possible. Otherwise, be very careful not to get the electrical components wet.
    • Use a brush with stiff nylon bristles and a flexible wire handle to scrub your unit. It’s essential that you remove all of the eggs, and this type of brush allows you to get into all of the nooks and crannies.
  2. Advertisement
10

Make sure the toilet’s ventilation fan is working.

PDF download Download Article

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

Warnings

  • Always read the label when using an insecticide. Follow all listed precautions, including wearing protective clothing if necessary.[26]
Advertisement

You Might Also Like

Get Rid of Fruit Flies in Plants Get Rid of Fruit Flies in Plants: 9 Expert Tips
Get Rid of Flies in the KitchenGet Rid of Flies in the Kitchen
Get Rid of Flies in the House11 Effective Ways to Kill Flies inside Your Home
Get Rid of Fruit Flies Kill Fruit Flies in Your House, According to Experts
Get Rid of Drain FliesGet Rid of Drain Flies
Get Rid of Gnats in Houseplants Kill Gnats in Houseplants Fast
Get Rid of FliesGet Rid of Flies
Get Rid of Gnats in the KitchenGet Rid of Gnats in the Kitchen
Make a Fly TrapGet Rid of Fruit Flies & Houseflies with These Homemade Traps
How Do I Get Rid Of These Annoying Fruit FliesHow do I get rid of these ANNOYING fruit flies?
Get Rid of GnatsGet Rid of Gnats
Get Rid of Flies Around Your Dog's Water and Food BowlsGet Rid of Flies Around Your Dog's Water and Food Bowls
Get Rid of Flies Outside Get Rid of Flies Outdoors (And Keep Them Away for Good)
Use Home Remedies to Get Rid of Gnats Drive Away Gnats for Good: Easy DIY Methods
Advertisement

Expert Interview

Thanks for reading our article! If you’d like to learn more about getting rid of insects, check out our in-depth interview with Chris Parker.

About This Article

Chris Parker
Co-authored by:
Pest Control Specialist
This article was co-authored by Chris Parker. Chris Parker is the Founder of Parker Eco Pest Control, a sustainable pest control service in Seattle, Washington. Since 2016, Chris has been specializing in Integrated Pest Management and doesn’t use any chemicals for pest removal. He offers removal services for ants, rodents, fleas, spiders, wasps, and more. Chris is a certified Commercial Pesticide Applicator in Washington State and received his bachelor’s from the University of Washington. This article has been viewed 12,590 times.
4 votes - 100%
Co-authors: 6
Updated: March 1, 2025
Views: 12,590
Categories: Compost Containers
Thanks to all authors for creating a page that has been read 12,590 times.

Did this article help you?

Advertisement