Gnat Eggs: What They Look Like and How to Kill Them

Gnat eggs are tiny, pale, and nearly impossible to spot individually. Most people searching for them are dealing with small flies around houseplants or kitchen drains and want to know where the eggs are hiding, what they look like, and how to destroy them. The two most common culprits indoors are fungus gnats (which breed in moist potting soil) and drain flies (which breed inside pipes). Each lays eggs in different places and requires a different approach.

What Gnat Eggs Look Like

Fungus gnat eggs are extremely small, oval, smooth, and yellowish-white. A single female deposits them in clusters of up to 200, tucked into cracks and crevices on the surface of moist potting soil. You’re unlikely to see individual eggs without magnification, but you may notice a cluster as a faint, slightly shiny patch on damp soil near the base of a plant stem.

Drain fly eggs are even harder to find. They’re pale, elongated, and laid in irregular masses of 30 to 100 directly on the slimy biofilm coating the inside of drain pipes. They’re deposited deep inside the pipe, not near the drain opening, so you’ll almost never see them with the naked eye.

Where Gnats Lay Their Eggs

Fungus gnats are drawn to moisture and organic matter. Their preferred egg-laying sites are the surfaces of overwatered houseplant soil, especially soil that contains peat, bark, or compost. Any container with consistently damp potting mix is a potential nursery. They favor cracks in the soil surface and gaps between the soil and the pot rim.

Drain flies target a completely different environment. They lay eggs on the biofilm, a layer of organic sludge that builds up on the inner walls of sink drains, shower drains, and floor drains. Pipes that go unused for days or weeks accumulate thicker biofilm and attract more egg-laying. If you’re seeing tiny moth-shaped flies near a bathroom or kitchen drain, the eggs are inside the pipe itself, not on any visible surface.

How Fast Gnat Eggs Hatch

Fungus gnat eggs hatch in about 3 days at 75°F. The warmer your home, the faster the cycle. After hatching, the larvae feed on fungi, organic debris, and plant roots in the soil for roughly two weeks before pupating and emerging as adults. A complete generation, from egg to egg-laying adult, can be produced in as little as 17 days. That speed is why a small problem can become an infestation within weeks.

A single female fungus gnat lives only 7 to 10 days, but she can lay up to 200 eggs during that short lifespan. If even a few adults are present, the next generation is already being deposited in your soil. Drain fly eggs hatch even faster, within 32 to 48 hours under warm conditions, and their lifecycle follows a similar rapid pattern inside pipes.

Killing Fungus Gnat Eggs in Soil

The simplest first step is letting your soil dry out. Allow the top 2 inches of potting mix to dry completely between waterings. Fungus gnat eggs and young larvae need constant moisture to survive, and a dry surface layer kills many of them outright while making the soil unattractive to egg-laying adults.

For an active infestation, 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 a normal watering. The solution fizzes on contact with larvae and eggs, killing them without harming plant roots. Let the soil dry out afterward before watering again.

Yellow sticky traps placed near your plants won’t kill eggs, but they catch adult gnats before they can lay more. This breaks the cycle and gives your other efforts time to work. Combining dry soil, a peroxide drench, and sticky traps typically clears a houseplant infestation within two to three generations, roughly 4 to 6 weeks.

Preventing Eggs From Being Laid

A physical barrier on the soil surface is one of the most reliable prevention methods. Covering potting mix with a layer of coarse sand, decorative pebbles, or horticultural grit blocks female gnats from reaching the moist soil below. They simply can’t burrow through it to deposit eggs. The barrier also helps the top layer stay dry, which doubles the deterrent effect.

Watering from the bottom, by filling a saucer and letting the plant absorb water upward through the drainage holes, keeps the soil surface drier than top-watering. This alone makes your pots far less appealing to egg-laying gnats. Avoiding organic potting amendments that stay wet for long periods (like heavy peat-based mixes) also helps, especially for plants that don’t need consistently moist soil.

Removing Drain Fly Eggs From Pipes

Drain fly eggs are harder to deal with than fungus gnat eggs because they’re protected inside the pipe. Many common remedies have real limitations. Bleach kills adult flies on contact but doesn’t penetrate the biofilm where eggs and larvae are embedded. Boiling water loses too much heat as it travels through the drain to reach the full biofilm layer. Enzyme-based drain cleaners break down organic matter slowly and require repeated applications, rarely eliminating the entire biofilm in one go. There are no EPA-registered pesticides specifically approved for drain fly control inside pipes.

The most effective approach is mechanical cleaning. Use a stiff drain brush to physically scrub the inside of the drain body, removing as much biofilm as you can reach. This eliminates the eggs and larvae in the accessible portion of the pipe and removes the organic layer that attracts new egg-laying. For floor drains that see infrequent use, a waterless trap seal (a one-way silicone valve that drops into the drain body) creates a permanent physical barrier. It lets water flow down but prevents flies from traveling up through the pipe to lay eggs or enter your space.

For drains you use regularly, consistent cleaning is the long-term fix. Scrub the drain body weekly during an active infestation, then monthly as maintenance. Once the biofilm is gone, the breeding site is gone.