Gnat larvae in your house are almost always coming from one of two places: the moist soil in your houseplants or the slimy buildup inside your drains. The tiny, translucent, worm-like creatures are the immature stage of either fungus gnats or drain flies, and identifying which one you’re dealing with tells you exactly where to focus your cleanup efforts.
What Gnat Larvae Look Like
Gnat larvae are small, legless, and worm-shaped. Fungus gnat larvae are white or clear with a shiny black head capsule, typically a few millimeters long. They wriggle through soil and are easiest to spot when you water a plant and they come to the surface. Drain fly larvae look different: they’re slightly flattened, grayish, and lack an obvious head. Both types have mouthparts designed for chewing organic matter, not for biting people or pets.
If you’re not sure whether larvae are present in a potted plant, there’s a simple test. Push a quarter-inch slice of raw potato into the soil surface. Within a few days, fungus gnat larvae will migrate to the potato and begin feeding on the underside. Flip the slice over to check.
Fungus Gnats: The Houseplant Problem
Fungus gnats are the most common source of indoor gnat larvae. The adults are those tiny, dark flies you see hovering around potted plants or crawling across the soil. Each female lays eggs in moist potting mix, and at typical room temperature (around 75°F), those eggs hatch in about three days. The larvae feed in the soil for roughly 10 days before pupating, and adults emerge about four days after that. A complete generation takes only 17 days, which is why a small problem can become a large one fast.
The larvae feed primarily on decaying organic matter and fungi in the soil, not on living plant tissue. In most homes, they don’t cause real damage to established plants. When populations get very high, larvae can feed on root hairs or tunnel into roots, but this is rare in a typical household setting. Young seedlings and already-stressed plants are the most vulnerable.
Drain Flies: The Plumbing Problem
If you’re finding larvae near sinks, showers, or bathtubs rather than plants, drain flies are the likely culprit. Their larvae live in the slimy biofilm that coats the inside of continuously wet drainpipes. This film is a mix of bacteria, soap scum, hair, grease, and decomposing organic material, and it provides everything the larvae need to develop.
The breeding sites inside a home are more varied than most people realize. Common locations include:
- Sink drains and traps in kitchens, bathrooms, and laundry rooms, especially where sludge has built up
- Overflow holes and pipes in sinks and bathtubs, which trap moisture and organic matter in channels you rarely see
- Shower and bathtub drains where soap scum and hair accumulate beneath the drain cover
- Toilet bases or tanks where leakage or poor sanitation creates a moist environment
- Leaking pipes behind walls or under slabs where wet organic debris can harbor larvae without any visible sign
A good way to pinpoint the source is to cover each suspect drain with a piece of tape overnight (leaving some airflow). If adult flies get stuck to the tape by morning, that drain is a breeding site.
Are They Harmful?
Neither fungus gnats nor drain flies bite humans. They don’t transmit diseases between people, and their larvae pose no direct health risk to you or your pets. The problem is purely one of nuisance and, in the case of fungus gnats, potential stress to plants. A large drain fly population can also signal unsanitary plumbing conditions worth addressing for reasons beyond the flies themselves.
Getting Rid of Larvae in Houseplant Soil
The single most effective thing you can do is let the top one to two inches of potting mix dry out between waterings. Dry soil kills eggs and young larvae, and it makes the surface far less attractive to egg-laying adults. This alone can break the cycle for mild infestations.
For a more active approach, a hydrogen peroxide soil drench works well. Mix one part standard 3% hydrogen peroxide with four parts water and pour it through the soil as you would normally water. The solution fizzes on contact with organic matter and kills larvae without harming plant roots. You may need to repeat this once or twice, spaced a week apart, to catch larvae that hatch after the first treatment.
Biological controls are another option. Beneficial nematodes, specifically the species sold for fungus gnat control, can be mixed into water and applied as a soil drench. These microscopic roundworms enter the larvae and release bacteria that kill them within three to four days. They’re safe for plants, pets, and people, and they’re available online or at garden centers. A bacterial larvicide called Bti (the same active ingredient used for mosquito control) also kills fungus gnat larvae when applied to soil, though formulations specifically labeled for this use can be harder to find at retail stores.
Yellow sticky traps placed near the soil surface won’t kill larvae directly, but they catch adult flies before they can lay more eggs. Used alongside a soil drench, they help you monitor whether the population is actually declining.
Getting Rid of Larvae in Drains
Chemical drain cleaners won’t reliably solve a drain fly problem because the biofilm clings to pipe walls even after a flush of liquid passes through. The key is physically removing the film. Start by scrubbing inside the drain opening with a stiff drain brush, working it down as far as you can reach. This breaks up the layer where larvae live and feed.
Follow the scrubbing with an enzyme-based drain cleaner, which digests organic buildup over time rather than just dissolving whatever the liquid touches. Enzyme cleaners are more effective for long-term removal than caustic chemical products. Boiling water poured slowly down the drain also helps loosen and flush biofilm, and a combination of baking soda followed by boiling water can break down stubborn buildup.
Repeat this cleaning every few days for at least two weeks. A single treatment rarely eliminates the problem because eggs and pupae embedded deeper in the film can survive. You’re aiming to remove the breeding habitat entirely so no new generation can develop. Don’t forget the overflow holes in sinks and bathtubs, which are among the most overlooked breeding sites in a home.
Preventing Larvae From Coming Back
For houseplants, the long-term fix is changing your watering habits. Consistently allowing the soil surface to dry creates conditions that fungus gnats avoid. Using pots with drainage holes and emptying saucers after watering removes the standing moisture that keeps soil perpetually damp. Some people add a half-inch layer of coarse sand or decorative gravel on top of the potting mix, which dries out quickly and creates a physical barrier that discourages egg-laying.
Repotting with fresh, sterile potting mix can help if an infestation is severe, since heavily colonized soil contains eggs and larvae throughout. Avoid storing bags of potting soil open indoors, as they can become breeding grounds on their own.
For drains, regular cleaning is the only reliable prevention. Running water through infrequently used drains (a guest bathroom, a basement utility sink) at least once a week prevents the stagnant conditions that let biofilm accumulate. An enzyme cleaner used monthly keeps organic buildup from reaching the thickness that supports a larval population. Fixing any leaking pipes is essential, since hidden moisture behind walls can sustain drain fly breeding indefinitely without any visible clue except the adults that keep appearing.