Fungus gnats: what they are and how to get rid of them
Why tiny dark flies hover over your pots, whether they do harm, and how to break their cycle.

What causes fungus gnats?
Fungus gnats come from larvae that grow in damp potting mix (2). Females lay tiny eggs in moist organic debris or potting soil (1). The larvae feed on fungi in the damp mix, and overwatering helps those fungi grow (2).
At 75°F, one generation takes about 17 days, so numbers build fast (1). Drains with a buildup of moist debris can breed them too (2). Standing water in saucers and plumbing leaks add to the problem (1, 3). To find the source, cover a suspect pot or drain with cheesecloth and watch for flies over several days (2).
Do fungus gnats hurt plants or bite people?
Adult fungus gnats don't bite people or damage plants (1). They're mostly a nuisance, and you usually see them when you water or move pots (3). The larvae are the ones that can do harm (1).
Large numbers of larvae can damage roots and stunt growth, mainly in seedlings and young plants (1). Grown indoor plants usually aren't badly hurt (2). A wilting houseplant is much more often a watering, root fungus or soil problem than gnats (1). If seedlings are struggling, check the soil for larvae with raw potato chunks (1).
How do you get rid of fungus gnats?
Start by letting the potting mix dry out, which kills the larvae (2). Larvae live in about the top half inch, so check that the top inch is dry before you water (3).
Empty any water left standing in saucers (3). Small yellow sticky traps, about 2 by 2 inches, catch the adults; replace them every few days (3). For the larvae, use a Bti soil drench labeled for indoor plants (2). Bti gives only short-term control and may need repeating about every five days (1). Take care using sticky traps in areas with pets and children (3). If a plant stays badly infested, you can toss it and restart with pasteurized potting mix (1, 3).
How can you tell if larvae are in the soil?
Raw potato chunks show whether larvae are in the soil (1). Set them cut side down on the soil, and use chunks, not peels (1). The potato draws larvae and can pull them away from roots (1).
After a few days, lift the chunks and look underneath (1). Larvae have a shiny black head and a whitish to clear, legless body (1). In very wet, heavily infested mix, you may also see shiny slime trails (1). Throw out the used chunks and set fresh ones to keep checking (1).
Gear for this
Sticky traps catch the adult gnats. Rather skip potting mix? These gardens grow plants in water and sponges.
- We The Wild Fungus Gnat Compostable Traps, 16-packPictured at the top of this page
Slim sticky traps that push into the pot to catch adult gnats.
See fit details for We The Wild Fungus Gnat Compostable Traps, 16-pack
Pest Wizard Yellow Sticky Card Traps, Large 4-PackYellow sticky cards to hang near plants. They catch adult flying insects.
See fit details for Pest Wizard Yellow Sticky Card Traps, Large 4-Pack
LetPot LPH-Air Indoor GardenCountertop hydroponic garden. The maker says it takes your own seeds and has no subscription.
See fit details for LetPot LPH-Air Indoor Garden
LetPot LPH-Mini Indoor GardenCountertop hydroponic garden. The maker says it takes your own seeds and has no subscription.
See fit details for LetPot LPH-Mini Indoor Garden
We may earn a commission when you buy through links on our site.
Are they fungus gnats or fruit flies?
Fungus gnats are dark, delicate flies that look a bit like tiny mosquitoes (1). Most are 1/16 to 1/8 inch long, with slender legs and antennae longer than their heads (1).
Their wings are light gray to clear (1). They fly weakly and tend to stay near potted plants, resting on soil and leaves (1). You often see them around lamps and windows (2). Drains with moist debris can breed them too (2). If your pots look clean, cover the sink drain with cheesecloth for a few days to test it (2).
Do indoor herb gardens attract bugs?
Any pot of damp potting mix can host fungus gnats (1). They lay their eggs in moist organic debris or potting soil (1). Watering from the bottom keeps the surface drier, and that top layer is where larvae live (3).
Pick off dead leaves and flowers, since gnats feed on them (3). Hydroponic gardens grow plants in water instead of soil (4). They can still get pests such as aphids, whitefly, thrips and mites (4). Keep new plants apart for a few weeks with a yellow sticky trap, and check them daily (3).
Why do I keep getting fungus gnats?
Fungus gnats thrive in moist conditions, and females lay their eggs in moist potting soil or organic debris (1). A new generation can be produced in about 17 days, depending on the temperature (1). Generations overlap, and indoors they can show up at any time of year (1).
Most of their life is spent as larvae and pupae in soil or organic matter, so the most effective control targets those stages, not the flying adults (1). Let the surface of the mix dry between waterings, and improve drainage (1). Use only pasteurized potting mix, and store it closed and off the ground until you use it (1). Don't move an infested plant next to others, and screen and seal leaky windows and doors (1).
What to do next
Sources
- Source 1: UC Statewide IPM Program, Fungus gnats
- Source 2: University of Maryland Extension, Fungus gnats on indoor plants
- Source 3: Oregon State University Extension, I have fungus gnats everywhere
- Source 4: University of New Hampshire Extension, Hydroponics at home
- Product details come from each maker's own pages, through our catalog.