How to Get Rid of Black Worms in Your Home and Garden

Identify your black worm problem based on its location (home or garden) and use targeted methods for immediate, effective removal.

“Black worms” showing up in your sink, shower, or garden beds are almost never true worms. In the vast majority of cases, you are looking at insect larvae: the immature, legless or nearly legless stages of drain flies, fungus gnats, crane flies, or cutworm moths. Identifying which larva you have is the first step, because the removal strategy differs for each. The good news is that most of these creatures are more of a nuisance than a danger, and you can deal with them using straightforward physical, biological, or targeted chemical methods without turning your home or yard into a hazmat site.

Figuring Out What You Actually Have

The term “black worm” gets applied to at least half a dozen different creatures, so a bit of detective work saves you from wasting time on the wrong treatment. Start with where you found them and how they behave.

A quick identification shortcut: if the “worm” is near a drain or standing water indoors, drain fly larva is your most likely culprit. If it is in potting soil, think fungus gnat. If it is in a lawn with brown patches, suspect leatherjackets. And if it is curled in a C-shape at the base of a chewed-off seedling, you have a cutworm.

Clearing Black Worms From Indoor Drains

Drain fly larvae survive because drains accumulate a film of decomposing organic gunk: hair, soap scum, food residue. The larvae eat this biofilm, so killing the adults while leaving the food source intact is pointless. You have to remove the biofilm itself.

Start by physically cleaning the drain. Remove the drain cover and scrub the inside walls of the pipe with a stiff bottle brush or drain brush, reaching as far down as you can. Follow up by pouring boiling water slowly down the drain to flush out loosened material. Repeat this daily for about a week. Most infestations clear up once the food source is gone.

Enzyme-based drain cleaners (sold as “bio” or “enzyme” drain treatments) break down the organic sludge without the harsh chemistry of conventional drain openers. They are a useful maintenance step after the initial scrub. Chemical drain cleaners with bleach or lye will also kill larvae on contact, but they do not prevent recolonization if the biofilm reforms, and they are rougher on pipes.

If you notice the flies returning weeks later, check less obvious moisture sources: the overflow hole in your bathroom sink, the drip tray under your fridge, a slow leak beneath a washing machine, or floor drains in a basement or utility room. Drain flies breed wherever moisture and organic material meet in the dark. Fixing minor plumbing leaks and running water through infrequently used drains every week will keep them from coming back.

Dealing With Fungus Gnats in Houseplant Soil

Fungus gnat larvae look like tiny dark threads wriggling in the top layer of potting mix. They feed on fungi, decaying roots, and organic particles in the soil. The adults are those annoying little flies that hover around your plants and sometimes drift toward your face.

The single most effective step is to let the top inch or two of soil dry out between waterings. Fungus gnat larvae need consistently moist conditions to survive, and the eggs will not hatch in dry soil. For plants that tolerate it, bottom-watering (setting the pot in a dish of water and letting the soil wick moisture upward) keeps the surface layer dry while still hydrating the roots.

Yellow sticky traps placed near the soil surface catch adult gnats and break the breeding cycle. For a heavier infestation, a soil drench with a solution containing the bacterium Bacillus thuringiensis var. israelensis (Bti) kills the larvae without harming the plant. Bti is the same active ingredient used in mosquito dunks, and it is specific to fly and mosquito larvae, so it will not affect earthworms, pets, or beneficial insects.

An interesting finding from recent research: amending potting soil with black soldier fly byproducts (frass) reduced fungus gnat populations by up to 93% compared with standard commercial potting soil. Female gnats were also less inclined to lay eggs in the amended soil, which means fewer larvae hatch in the first place. Black soldier fly frass is commercially available as a soil amendment, so this is a practical option if you have chronic fungus gnat problems across many pots.

Eliminating Lawn and Garden Larvae

Outdoors, the stakes change. In a lawn, leatherjackets chewing through grass roots can create large dead patches. In a vegetable garden, cutworms will level a row of transplants overnight. And seedcorn maggots can hollow out germinating seeds before they ever break the surface.

Cutworms

Cutworms are nocturnal, so the easiest mechanical control is to go out with a flashlight after dark and pick them off by hand. It sounds tedious, but a single evening of handpicking around vulnerable transplants can be remarkably effective. Preventively, you can collar young transplants with a short section of cardboard tube (a toilet paper roll works) pushed an inch into the soil and extending an inch or two above. This physical barrier stops the larva from wrapping around the stem and severing it.

For larger-scale garden infestations, entomopathogenic nematodes (microscopic worm-like organisms that parasitize insect larvae) are a strong biological option. In turfgrass trials, Steinernema carpocapsae reduced cutworm larvae by about 88% in treated areas. You apply them by mixing the nematodes into water and spraying or watering them into the soil during the cooler part of the day. They need moist soil to move through, so water after application.

Leatherjackets and White Grubs

Leatherjackets and white grubs (the larvae of various beetles) cause similar damage in lawns: irregular brown patches where the root zone has been eaten away. Birds pecking at your lawn are often a sign that larvae are present below. You can confirm by cutting a square of turf about a foot across and peeling it back. If you find more than a handful of larvae per square foot, treatment is worth considering.

Entomopathogenic nematodes work here too. In the same long-term turfgrass study, Heterorhabditis bacteriophora reduced white grub populations by roughly two-thirds, and sod webworm larvae were knocked down by 75 to 100% depending on treatment and location. These nematodes are commercially produced and widely available for home use in lawns, gardens, and nursery plants. They are safe around people, pets, and plants.

For chironomid midge larvae (the bright red or dark “bloodworms” sometimes found in ponds or water features), Bti granules designed for standing water can cut larval populations by around 95% within the first week, though the effect tapers over subsequent weeks and you may need to reapply.

Predatory Mites and Other Biological Allies

If you are managing houseplants, a greenhouse, or raised beds and want to avoid chemicals entirely, predatory soil mites are worth knowing about. Certain mite species in the families Ascidae and Laelapidae feed on fungus gnat larvae and root-damaging nematodes in the soil. Commercial suppliers sell sachets of Hypoaspis miles (now reclassified as Stratiolaelaps scimitus) that you sprinkle on the soil surface. The mites establish themselves in the potting mix and patrol for gnat larvae, thrips pupae, and other soft-bodied soil pests. They are invisible to the naked eye and harmless to plants.

Combining predatory mites with Bti drenches and reduced watering creates a layered defense that handles fungus gnats and similar soil-dwelling larvae without any synthetic pesticides. For outdoor gardens, encouraging ground beetles and birds does the same job at a larger scale. A diverse garden ecosystem naturally keeps most larval populations in check.

Prevention Strategies That Actually Work

Preventing reinfestation matters more than any one-time kill. Most of the larvae people call “black worms” share the same basic requirements: moisture, organic debris, and sheltered, dark conditions. Disrupting any one of those makes your home or garden far less hospitable.

Indoors

Fix dripping taps and leaky pipes promptly. Run water through guest-bathroom drains, basement floor drains, and utility sinks at least once a week to flush developing biofilm. Keep compost bins sealed. Store damp mops and sponges where they can dry out fully between uses. If you have a recurring drain fly problem in one bathroom, check whether a vent pipe is clogged; poor ventilation traps humidity and encourages biofilm growth.

Outdoors

Soil moisture and the amount of organic matter on the surface are the two biggest factors driving egg-laying by pest insects. Research on various species has consistently found that moist, dark, organically rich soil is preferred for egg deposition. That does not mean you should let your garden dry to dust, but it does mean that improving drainage in chronically soggy spots and avoiding excessive mulch depth can reduce larval populations significantly.

Speaking of mulch, the type you choose matters. A study on Japanese beetle oviposition found that dense, heavy mulches like gravel pebbles were the most effective at preventing beetles from laying eggs in potted plants, while lighter organic mulches such as pine bark and hemp chips allowed more eggs through. If grub damage in container plants or raised beds is a recurring headache, topping the soil with a layer of gravel or volcanic rock (lapilli) may be a simple physical deterrent.

Crop rotation and removing spent plant material promptly also help. Seedcorn maggots and other soil-dwelling larvae are attracted to fresh organic matter that is actively breaking down. Turning under a cover crop or adding uncomposted green manure right before planting gives these larvae exactly the food source they crave. Let incorporated organic matter decompose for at least two to three weeks before sowing seeds in that soil.

When to Think Twice Before Reaching for Insecticide

It is tempting to blast the soil with a broad-spectrum insecticide when you see larvae everywhere, but this often makes things worse in the medium term. Broad-spectrum soil treatments wipe out the beneficial organisms that naturally regulate pest populations, including predatory beetles, parasitic wasps, and earthworms. Research on pesticide effects in soil has shown that earthworms are highly susceptible to insecticides, suffering reduced growth, impaired reproduction, and outright population loss even at standard application rates. Since earthworms are among the most important animals for soil health, aerating and decomposing organic material, their loss makes the soil worse over time, not better.

Targeted biological controls, physical barriers, and cultural practices (adjusting watering, improving drainage, choosing the right mulch) are slower to show results but create an environment where pest larvae struggle to establish in the first place. Reserve chemical treatments for situations where you have a confirmed heavy infestation of a specific pest and know exactly which product targets it.

Are Black Worms a Health Risk

For most household encounters, the answer is no. Drain fly larvae, fungus gnat larvae, and similar creatures are nuisance pests. They do not bite, they do not sting, and they do not transmit diseases through direct contact in a normal home setting.

The one area where drain flies cross into a genuine health concern is in institutional settings like hospitals. Research has documented that drain flies (specifically Clogmia albipunctata) breeding in hospital wastewater systems can carry biofilm containing multidrug-resistant bacteria on their bodies as they move from sewage pipes into patient-care areas. In a home, this is not a realistic concern. But if you are immunocompromised or caring for someone who is, keeping drains clean and free of biofilm is a reasonable hygiene measure beyond just the “ick” factor.

Cutworms, leatherjackets, and grubs pose zero health risk to people. Their damage is entirely to plants and turf. The only “health” consideration with garden larvae is the indirect one: overusing pesticides to control them can contaminate soil and groundwater, creating a human exposure pathway that the larvae themselves never would.

Diatomaceous Earth and Other Physical Controls

You may have heard of diatomaceous earth (DE) as a natural pest control. It is a fine powder made from fossilized algae with microscopically sharp edges. When insects crawl through it, the particles damage the waxy lipid layer on their exoskeletons, causing them to lose water rapidly and die of desiccation. Research on sorptive dusts has confirmed this mechanism: insects that simply walked through a thin film of such dust lost about 30% of their body weight in water and died, with silica-based aerogels being particularly effective.

DE works well as a barrier around the base of plants, in cracks along baseboards, or dusted lightly into dry areas where crawling insects travel. The catch is that it loses its effectiveness when wet, so it is more useful indoors or in covered outdoor areas than in a garden bed that gets regularly watered. Apply it to dry surfaces, and reapply after rain. Use food-grade DE and wear a dust mask during application, because inhaling fine silica particles irritates the lungs even though the product is not chemically toxic.

For drains specifically, DE is not useful because the environment is perpetually wet. Stick with mechanical cleaning and enzyme treatments there. But for dry basement cracks where millipedes, drain fly adults, or earwigs wander in, a light dusting of DE along their entry routes can serve as a long-lasting, chemical-free barrier.

Larvae That Look Alarming but Are Actually Helpful

Not every dark, wriggling creature in your garden deserves the spray bottle. Black soldier fly larvae, for instance, are chunky, dark grubs that sometimes appear in compost bins or around decaying organic matter. They are voracious decomposers and are increasingly used in commercial composting and animal feed production. If you find them in your compost, they are speeding up the process, not causing harm.

Similarly, many beetle larvae found in garden soil are predators of the actual pest species. Ground beetle larvae eat slug eggs, cutworm eggs, and small fly larvae. Rove beetle larvae hunt fungus gnat larvae in the soil. Wiping out all larvae indiscriminately with a broad-spectrum product removes these natural allies along with the pests they eat. If you spot larvae you cannot identify, take a photo and compare it against a local extension service’s pest identification guide before reaching for any treatment. A surprising number of the dark larvae people find turn out to be either harmless decomposers or active pest predators.