Baby Gnats in Your House and How to Get Rid of Them

Those tiny, pale worms you’re spotting in your houseplant soil are almost certainly fungus gnat larvae, the “baby” stage of the small dark flies you’ve probably also noticed hovering around your windows and lamps. They’re one of the most common indoor pests, and while they’re mostly harmless, an unchecked population can damage plant roots and become a persistent nuisance. The good news: they’re straightforward to eliminate once you understand what’s fueling the cycle.

What Baby Gnats Look Like

Fungus gnat larvae are pale, translucent worms about a quarter inch long when fully grown, with a distinctive shiny black head. You’ll usually find them wriggling in the top two to three inches of moist potting soil, where they feed on fungi, algae, and decaying organic matter. In large numbers, they can also chew through root hairs or tunnel into roots, which is why you might notice a houseplant looking wilted or stunted even though you’ve been watering it.

The adults are much easier to spot: delicate, dark brown or black flies roughly an eighth of an inch long. They’re weak fliers that tend to drift toward windows, lamps, and screens. If you look closely, their wings are translucent with a faint Y-shaped vein pattern near the tips. Adult fungus gnats don’t bite, don’t feed on your plants, and don’t carry disease. They’re purely a nuisance, but each female can lay over 100 eggs in the soil within her first week of life, which is why the problem snowballs fast.

Why They’re in Your House

Fungus gnats need one thing to thrive: consistently moist organic soil. Overwatered houseplants are the number-one breeding ground. The larvae live in the top two to three inches of the growing medium, feeding on the fungi and decomposing material that flourish in wet conditions. A pot that never fully dries out between waterings is essentially a gnat nursery.

New bags of potting soil can also introduce eggs or larvae into your home, especially if the bag has been stored open or in a damp area. Sometimes a single new plant from a nursery or garden center brings in the first generation, and within a few weeks, every pot in the room is affected. Organic soil amendments like compost, peat, and bark are particularly attractive because they hold moisture and give larvae plenty to eat.

How Fast They Multiply

The fungus gnat life cycle moves quickly at room temperature. Eggs hatch in four to six days. The larvae feed and grow for roughly two weeks before pupating, and adults emerge a few days after that. From egg to adult, the entire cycle takes about three to four weeks indoors, and since adults start laying eggs almost immediately, generations overlap. You can go from a handful of flies to hundreds in a matter of weeks if conditions stay favorable.

Drying Out the Soil

The single most effective thing you can do is let the top one to two inches of soil dry out completely between waterings. This alone kills both eggs and larvae, which cannot survive without moisture. For most houseplants, waiting until the soil surface feels dry to the touch before watering again is perfectly healthy and often better for the plant anyway.

Bottom watering can help speed this up. Instead of pouring water over the top of the soil, set the pot in a tray of water and let the roots draw moisture upward. The surface stays dry while the root zone still gets what it needs. This starves the larvae of the damp top layer they depend on. For plants that genuinely need constant moisture (like ferns or calatheas), consider the other strategies below alongside a lighter watering adjustment.

Killing Larvae Already in the Soil

A hydrogen peroxide soil drench is a reliable way to kill larvae on contact without harming your plants. Mix one part standard 3% hydrogen peroxide (the kind sold at drugstores) with four parts water, and pour it through the soil as you would a normal watering. It will fizz on contact with organic matter, and that reaction destroys larvae. You can repeat this with every watering cycle until you stop seeing adults.

Another option is a layer of coarse sand, perlite, or decorative gravel on the soil surface, about half an inch deep. This creates a dry barrier that adult females can’t easily lay eggs through, breaking the cycle at the source. It works best in combination with reduced watering, since a sand top layer over perpetually soggy soil will eventually become moist enough for gnats to use.

Trapping the Adults

Yellow sticky traps are the go-to tool for catching adult fungus gnats. The bright yellow color attracts them, and they get stuck on the adhesive surface. Place traps horizontally near the soil surface or just at the top of the plant canopy, since fungus gnats spend most of their time close to the growing medium rather than flying high. Cards that are at least 3 by 5 inches work best.

Sticky traps are useful for monitoring how bad the problem is and for reducing the number of egg-laying adults, but they won’t solve the problem on their own. They only catch the flying adults, not the larvae doing the actual damage underground. Think of them as one layer in a combined approach: dry out the soil to kill larvae, drench if needed, and use traps to intercept adults before they can lay the next round of eggs.

Other Gnats You Might Be Seeing

Not every tiny fly in your kitchen is a fungus gnat. Drain flies are fuzzy, moth-like insects that breed in the organic film inside sink and shower drains. Fruit flies are slightly rounder, tan or brown, and cluster around overripe fruit, garbage disposals, and fermented liquids. If the flies seem connected to your kitchen sink rather than your plants, you’re likely dealing with one of these instead.

A simple way to tell: if the tiny flies hover around your houseplants and you can see larvae in the soil, they’re fungus gnats. If they’re swarming a fruit bowl or trash can and have reddish eyes, they’re fruit flies. Drain flies tend to sit motionless on walls near bathrooms and have a distinctly fuzzy, broad-winged appearance. Each pest has a different breeding site, so identifying the right one matters before you start treating.