Fungus Gnats: Identification, Life Cycle and Control in Greenhouses and Houseplants
HESHAM MAHMOUD
HESHAM MAHMOUD
25 October 2026

You walk into the greenhouse or the seedling room in the morning and find small black flies hovering over the trays and around the bases, escaping with their weak flight and then landing again on the soil. Irrigation is regular and fertilizer is on schedule, yet some seedlings wilt and their lower leaves turn yellow. This scene is the signature of fungus gnats or soil gnats (Fungus gnats), whose best-known genus is Bradysia (Bradysia) of the family Sciaridae.

The flying insects you see are only the annoying part of the story. A fly that lands on your hand does the plant no harm at all, because the real damage is done by the larvae under the soil surface, while the adults are the ones laying new eggs every day. So spraying the flies is not enough, and control succeeds only if we hit the life cycle at its hidden link: the larva in the growing medium, and the moisture it lives on.

Appearance: Small dark mosquito-like insects that fly weakly around houseplants and land on the soil surface.
Cause: They lay their eggs in chronically wet soil rich in organic matter, and the larvae feed on fungi, decaying material and the roots of small plants.
Damage: The adults do not harm but annoy, while the larvae harm seedlings and young plants and make it easier for fungi to enter.
Common mistake: Killing the adults by spraying while continuing to overwater, since the larvae under the soil bring the problem back within weeks.
The rule: Let the top layer of soil dry out by watering less, and use yellow sticky traps for monitoring along with a suitable treatment for the larvae.

How Do You Make Sure What You See Is Really Fungus Gnats?

Fungus gnats are confused in many minds with other flies found in damp places, and telling them apart matters because the control plan differs. The most important features that distinguish them:

  • The adult: A black to dark gray insect a few millimeters in size, with long legs and transparent gray wings. It looks like a small mosquito, its flight is weak and zigzagging, and it prefers walking on the soil surface.
  • The larva: A transparent to white worm about a quarter inch long (about 6 mm) with a shiny black head, and this head is the distinguishing mark from others.
  • Shore fly: Heavier in body and shorter in the legs, with five white spots on its wings. Its larvae have no distinct head and need a different treatment.
  • Fruit fly: It is attracted to fruit and fermenting material, not to growing trays, and if you want details read the fruit fly article.

A simple test to confirm: place a raw potato slice on the soil surface and leave it for two days, then flip it over. If you find small transparent larvae with black heads under it, the diagnosis is confirmed.

Life Cycle: Why Does the Number Return Two Weeks After Spraying?

The secret of the persistent infestation is that generations overlap. While the usual spray kills the flying adults in front of you, the eggs, larvae and pupae in the soil stay unharmed, and a new batch emerges within days. The cycle is divided into four stages:

  • The egg: The female lays hundreds of eggs between the moist soil particles, more than a hundred in her first week after emerging, and they hatch in 4 to 6 days.
  • The larva: It feeds for about two weeks at a moderate temperature (about 22 degrees Celsius) on fungi, decaying organic matter and fine roots.
  • The pupa: It pupates in the soil itself, and the adult emerges after 4 to 5 days.
  • The adult: She lives only a few days but starts mating and laying eggs immediately.

From egg to adult takes 21 to 28 days depending on temperature. This means that any program that does not continue for at least three weeks will leave a generation that starts everything over again.

What Do the Larvae Do to the Plant's Roots?

The larvae feed on the fine root hairs and the tender part of the stem at soil level, and the worst damage falls on small plants that do not have enough roots to compensate. The symptoms we see in nurseries include:

  • Wilting with adequate watering: The plant looks thirsty while the soil is wet, because the roots that absorb water have been eaten.
  • Yellowing and stunting: The lower leaves turn yellow and growth slows for no clear reason in fertilization.
  • Cuttings that do not root: The larvae feed on the soft callus at the base of the cutting, so rooting is delayed or fails.
  • Tunnels in tender stems: The larvae bore inside the soft stems of some species and the seedling collapses.

In the laboratory the adults carry spores of fungi such as Botrytis and Fusarium, but the importance of this transmission in commercial farms is still unsettled. What matters more in practice is that the root wounds left by the larvae open the door to soil rots, so if you see wilting and rot at the base, also review the article on damping-off of seedlings and the article on root rot.

Monitoring: Know the Size of the Problem Before You Intervene

The leaves do not show the infestation early, so monitoring is what reveals it before it turns into a loss. Counting by eye is no substitute for tools, because the insects hide in the shade and fly when you approach, so we rely on methods that work day and night and give a number that can be compared from week to week:

  • Yellow sticky cards: Placed horizontally on the surface of the growing medium or directly above the plant bases, inspected and replaced weekly, since the number of insects stuck tells you whether the infestation is rising.
  • The potato test: Two pieces at least two and a half centimeters across in each corner of the house, touching the medium, and inspected after 48 hours before they sprout or rot.
  • Checking incoming seedlings: Inspect trays and the peat moss you buy before bringing them in, since many infestations enter in wet or torn bags.

The Control Plan Step by Step

The most successful programs combine drying out the food source, breaking the larval cycle and then trapping the flying adults. We arrange them like this:

  1. Reduce moisture: Lengthen the time between waterings so the top centimeter of the medium dries, since eggs do not hatch and larvae do not survive in a dry surface.
  2. Treat the food source: Remove plant debris, fallen leaves and spilled soil, and dispose of old media away from the house.
  3. Choose the medium carefully: Avoid immature organic fertilizers (less than a year old) and media high in compost and bark, and store dry peat moss.
  4. Place sticky traps: Distribute the yellow cards at medium level to reduce the adults that lay eggs and multiply.
  5. Target the larvae: Introduce the biological control described below if the medium allows it, and repeat the treatment until three weeks have passed.
  6. Lock in the result: Keep up the weekly count for three weeks after the last flying adult, and do not consider the problem over before then.

There are also mistakes that repeat: covering with coarse sand or diatomaceous earth does not prevent egg laying, and it can create cracks where females lay and larvae pupate. Likewise, overuse of liquid organic fertilizer feeds the fungi the larvae feed on.

Natural Enemies That Help in Nurseries and Greenhouses

On farms that grow on rockwool or other closed media, biological control remains the cleanest option because the larvae live in a known medium that can be treated. The most important findings of extension research:

  • Beneficial nematodes (Steinernema feltiae): Applied with irrigation water, they enter the larvae and inject a toxic bacterium that kills them within one to two days.
  • Predatory mite (Stratiolaelaps scimitus): A predatory mite that lives in the medium and feeds on larvae and pupae, and it is best released when numbers are low.
  • Bti bacteria: The strain Bacillus thuringiensis israelensis kills the young larvae that eat it, but its effect lasts no more than about two days, so it needs repeating.
  • Predatory rove beetle (Dalotia coriaria): A rove beetle that is a general predator and active at night, so it is released in the evening.

These natural enemies work preventively on a slightly moist medium, and they are of no use in completely dry soil or after broad-spectrum pesticide sprays.

Houseplants: The Same Rule on a Smaller Scale

The owner of a pot on the balcony or in the living room faces the same problem without a greenhouse, and the solution is simpler and cheaper if started early.

In ornamental pots and indoor plants we need nothing more than discipline: let the soil surface dry before the next watering, lift the saucer from under the pot, remove dead leaves, and place small yellow sticky cards above the soil. Replacing the old, moldy soil is a radical solution when the problem keeps recurring. And if you buy new soil, avoid bags that smell of fermentation or constant moisture.

Products We Rely On in Our Programs

The foundation of fungus gnat control is monitoring, trapping adults and drying the medium, and our products in this area are chemical-free sticky traps that can be used under any biological program. As for nematodes and biological predators, they are ordered from biological control suppliers and we do not currently carry them.

When the infestation turns into wilting and root rots, work on the disease side too, and review the article on Fusarium wilt. And if other flying insects appear with it, the same card network also monitors whiteflies and thrips.

Frequently Asked Questions

Do fungus gnats harm people?

No, they do not bite or transmit diseases to people. Their problem is an annoying one that concerns plants and seedlings, and the presence of large numbers in the house is evidence of excess moisture in the pots.

Why do they appear in plant pots after watering?

Because constant moisture grows fungi and keeps the eggs alive, so females find a suitable place to breed. Watering less and letting the surface dry breaks the cycle.

Is spraying the flying adults enough?

No. What kills the adults does not reach the larvae and eggs in the soil, which is why the number returns after two weeks. Real treatment targets the medium and the moisture together.

How long does it take to get rid of them?

Usually three to four weeks of discipline, which equals a full generation or more. Stop before that and the number comes back.

Can new soil carry gnats?

Yes, sometimes, especially wet, torn or long-stored bags. Inspect the medium before use and store it in a dry place.

Is treatment different in greenhouses than at home?

The principle is the same: dry the surface, remove the food source, and trap the adults. The difference is that farms add nematodes and predators, and follow the label dose and the pre-harvest interval if they use any pesticide on a fruiting crop.

Read next