How to Get Rid of Gnats in Your Garbage Disposal

Those tiny flies buzzing around your garbage disposal are almost certainly feeding and breeding in a layer of organic sludge coating the inside of the unit and the connected drainpipe. Killing the adults won’t solve the problem. You need to remove the slime where they lay their eggs, then keep it from building back up. The whole process takes two to four weeks because of how quickly these insects reproduce.

Which Flies You’re Dealing With

Three types of small flies commonly breed in garbage disposals, and telling them apart helps you confirm the source. Fruit flies are the most recognizable, with distinctive large red eyes and a tan or brownish body. They’re drawn to rotting fruit and vegetable scraps, and even a few days of food residue sitting in a disposal or drain is enough to attract them.

Phorid flies look similar to fruit flies at a glance but have black eyes instead of red. They’re sometimes called “scuttle flies” because they tend to run across surfaces rather than immediately taking flight. Phorid flies breed in any wet environment with decaying organic matter, including drain sludge, garbage disposals, and sewage lines.

The third type is the moth fly (also called a drain fly), which looks quite different from the other two. Moth flies are gray or brown, roughly 1/6 to 1/5 inch long, with fuzzy, leaf-shaped wings that make them resemble tiny moths. They’re slow fliers and often rest on walls near the sink. All three species lay eggs on the slimy biofilm that coats the inside of wet drainpipes, and their larvae feed on the bacteria, fungi, grease, and decaying organic matter in that slime.

Why Your Disposal Became a Breeding Ground

A garbage disposal grinds food into small particles, but it doesn’t eliminate all of them. Over time, bits of grease, vegetable fiber, and other organic material accumulate on the walls of the disposal chamber, the underside of the rubber splash guard, and the inside of the connected drainpipe. This buildup forms a moist, slimy biofilm that’s an ideal nursery for fly eggs and larvae.

Female flies are drawn to the odors coming from this decaying organic layer. They lay eggs directly on the surface of the biofilm, often at the drain opening or just inside the pipe. At room temperature (around 70°F), eggs hatch in less than two days. The larval stage, where the insects live in and feed on the slime, lasts nine to 15 days. Pupae then emerge as adults within 24 to 48 hours. The full life cycle from egg to adult takes about 21 to 27 days, and it speeds up in warmer conditions. This means a single cleaning won’t cut it. New adults will keep emerging from eggs and larvae already in the drain for weeks unless you remove their food source entirely.

How to Clean Out the Disposal

Start with the rubber splash guard (the black flap inside the drain opening). Lift or fold it back and scrub both sides with a brush and dish soap. This flap traps food residue on its underside and is one of the most overlooked breeding spots. A pot of boiling water poured directly down the drain after scrubbing helps loosen and flush organic buildup deeper in the pipe.

For the disposal chamber itself, fill it with ice cubes and a handful of rock salt, then run the unit without turning on the water. As the ice gets ground down, it gets forced into tight spaces behind and around the grinding components, scraping away stuck-on grime. The cold also congeals grease into chunks that wash away more easily. After the ice is fully ground up, run cold water for about a minute to flush everything through. Follow up with a lemon or lime rind ground in the disposal to help cut grease and deodorize.

Enzyme Cleaners for the Drainpipe

The biofilm inside the drainpipe below the disposal is harder to reach with physical scrubbing. Enzyme-based or bacteria-based drain maintainers are designed for exactly this problem. These products contain microorganisms that digest the organic sludge lining the pipe walls, eliminating the food source and breeding habitat for fly larvae. They take longer to work than chemical drain cleaners, sometimes several applications over a week or two, but they’re effective at removing the biofilm rather than just punching a hole through it.

Bleach is sometimes recommended as a quick kill, but it has drawbacks. It can damage pipes with repeated use, and while it may kill larvae on contact, it doesn’t break down the organic layer the way enzymes do. The sludge reforms quickly, and the flies return. If you use bleach at all, treat it as a supplement to mechanical and enzymatic cleaning rather than a standalone solution.

A Nightly Routine That Works

Because the fly life cycle spans three to four weeks, you need to maintain a consistent routine during that entire window to prevent reinfestation. Before bed each night, run the disposal with hot water and a squirt of dish soap for at least 30 seconds. After turning off the disposal, keep the hot water running for another 15 seconds or more to flush debris through the pipe. Then cover your drain with a stopper overnight. This prevents any adult flies still in the kitchen from returning to the drain to lay new eggs.

Within a few days of this routine, you should notice far fewer flies. Keep it up for the full three to four weeks to outlast any eggs or larvae already developing in the pipe. Sprinkling a bit of baking soda or coarse salt over the drain opening before covering it overnight can help absorb moisture and discourage egg-laying at the surface.

Trapping the Adults

While you’re working on the source, a simple trap reduces the number of adult flies laying new eggs. Pour a small amount of apple cider vinegar into a jar or bowl, add a drop of dish soap, and leave it near the sink. The vinegar attracts fruit flies and phorid flies, and the soap breaks the surface tension so they sink and drown. This won’t solve the problem on its own since new adults keep emerging from the drain, but it cuts down the breeding population while your cleaning routine takes effect.

Keeping Them From Coming Back

Once the infestation is cleared, the goal is preventing that biofilm from rebuilding. Run your disposal with cold water every time you use it, and let the water flow for 15 to 20 seconds after you turn the unit off. Food particles that don’t get fully flushed are what start the sludge cycle over again. A weekly ice-and-salt scrub or a ground-up lemon rind keeps the interior surfaces cleaner between deep cleanings.

Avoid putting starchy or fibrous foods (pasta, potato peels, celery) down the disposal in large quantities. These break down slowly and contribute heavily to the organic film. Same goes for grease, which coats pipe walls and gives larvae a rich food source. An enzyme-based drain maintainer used once a month can prevent sludge from accumulating to the point where it attracts flies again.

If you’ve done all of this for a full month and flies persist, the breeding site may not be in the disposal itself. Check other drains in the kitchen, the overflow hole in the sink basin, or even a slow-draining dishwasher connection. Phorid flies in particular can breed in unexpected spots, including under cracked floor tiles or in moisture trapped beneath appliances. A simple test: place a strip of clear tape over a suspect drain overnight. If you find small flies stuck to the underside in the morning, you’ve found an active breeding site.