Skip to main content

What Are Fungus Gnats? How to Identify Larvae vs Fruit Flies

6 min read
gardeningwhat-are-fungus-gnatsfungus-gnatshouseplant-pests

A close view of a fungus gnat near houseplant soil, illustrating the topic of what are fungus gnats

If you have ever noticed tiny black flies hovering around your potted plants, you are probably dealing with fungus gnats. They are one of the most common houseplant pests, and almost every plant owner runs into them at some point. This guide explains exactly what fungus gnats are, how to recognize them, where they come from, and whether you actually need to worry about them.

Quick Answer: Fungus gnats are small black flies that live and breed in the damp soil of potted plants. The adults are mostly a nuisance, but the larvae feed on soil fungi and can chew plant root hairs in large numbers. They appear when potting soil stays too wet, and they are harmless to humans and pets.

Key Facts About Fungus Gnats

Fact Details
Size Adults: about 1/8 inch (2โ€“4 mm) long
Appearance Black or dark gray flies with long legs and antennae
Larvae Translucent white worms with shiny black heads, up to 1/4 inch
Where they live Top 2 inches of moist potting soil
What they eat Soil fungi, decaying organic matter, weak root hairs
Lifespan Adult lives about 7 days; full life cycle 3โ€“4 weeks
Eggs per female Up to 200 eggs in one lifetime
Harm to people None - they do not bite, sting, or spread disease

What Do Fungus Gnats Look Like?

Adult fungus gnats are easy to mistake for other tiny flies, so it helps to look closely. They are slender, dark gray or black insects about one-eighth of an inch long, with long legs, long antennae, and pale wings. One useful identifying detail is the Y-shaped vein pattern in the middle of each wing.

Fungus gnat larvae look completely different from the adults. They are small, worm-like maggots with almost clear, whitish bodies and shiny black heads. They grow up to about one-quarter of an inch long and live just under the surface of the soil, where they feed on fungi and decomposing plant matter.

You will rarely notice the larvae at first because they hide in the dirt. The potato test is a simple way to confirm they are there: press a thick slice of raw potato onto the soil surface for a few hours and check the underside. Larvae gather on the wet potato in visible clusters if your pot is infested.

Identification tip: Fungus gnats are weak, slow fliers. If tiny flies seem to burst out every time you water a plant, and they flutter back down to the soil instead of circulating around fruit, they are almost certainly fungus gnats, not fruit flies.

Fungus Gnats vs. Fruit Flies

Many gardeners confuse fungus gnats with fruit flies, but the two pests behave very differently:

Trait Fungus Gnats Fruit Flies
Color Dark gray or black Tan, amber, or brown with red eyes
Size About 1/8 inch About 1/8 inch
Where they gather Potting soil, plant trays, damp spots Fruit bowls, trash cans, drains
What attracts them Damp soil and rotting plant matter Sweet, fermenting, and sour scents
Flight style Slow, hovering, circling soil Quick, zigzagging around food
Best trap Yellow sticky cards at soil level Vinegar or fruit baits

If you are catching flies near your produce instead of near your plants, you are dealing with fruit flies, and a different approach applies. Fungus gnats ignore vinegar traps because they are drawn to damp earth, not sweet smells.

Where Do Fungus Gnats Come From?

Fungus gnats usually enter a home through one of three routes:

  1. Infested potting soil. Bags of potting mix stored in damp garages, sheds, or porches can contain eggs and larvae. When you bring the soil indoors and water it, the gnats hatch.
  2. New plants. Nursery and garden-center plants are the most common carriers. Gnats can breed in the trays and moist soil of greenhouse plants before you ever bring them home.
  3. Open windows and outdoor gardens. In warm months, adult gnats fly in through screens and windows. Outdoor infestations are more likely where mulch, compost, or wet ground surrounds the house.

What keeps an infestation going indoors is moisture, not the original source. Fungus gnats need damp, decomposing soil to lay eggs and feed their larvae. An overwatered plant with soggy peat moss is an open invitation, while a pot that dries out thoroughly between waterings will not support them.

Do Fungus Gnats Harm Plants?

In small numbers, fungus gnats are mostly a cosmetic nuisance. A few adults flying around are annoying but do not damage large, healthy houseplants. The larvae are the ones that matter, because they eat organic matter and fungi in the soil, and when the population grows large, they start chewing fine root hairs.

Damaged root hairs mean your plant cannot absorb water or nutrients properly. The first signs are usually subtle: leaves turn yellow, growth slows, or the plant looks wilted even though the soil is damp. Young seedlings, cuttings, and delicate plants are most at risk, and a severe infestation can kill them completely.

Fungus gnats do not harm humans, pets, or food. They carry no diseases and cannot bite, so the problem is entirely about plant health and household nuisance - which also means they are relatively easy to manage with patience and a few simple steps.

How to Prevent Fungus Gnats

Prevention is the easiest way to stay pest-free, and most of it comes down to watering habits:

  • Let the top of the soil dry out between waterings. Push a finger an inch or two into the pot, and wait to water until it feels dry.
  • Use pots with drainage holes so water never sits in the root zone.
  • Top-water less, bottom-water more. Filling a tray or saucer lets the roots pull up water while the top layer of soil stays dry and unwelcoming to egg-laying adults.
  • Store potting soil in sealed containers, never in open bags in damp spaces.
  • Quarantine new plants for two to three weeks in a separate room before placing them next to your collection.

If pests have already moved in, prevention alone will not clear them out. You will need to treat the adults and the soil at the same time - see our full guide on how to get rid of fungus gnats for the step-by-step plan using yellow sticky cards, BTI drenches, sand barriers, and hydrogen peroxide.

Frequently Asked Questions

No. Fungus gnats do not bite, sting, or transmit diseases to humans or pets. They are a nuisance that buzzes around plants, but the real risk they signal is soil that stays too wet, which can eventually rot your plant's roots.

Adult fungus gnats look like small black or dark gray flies, about one-eighth of an inch long, with long legs, antennae, and a distinctive Y-shaped vein in each wing. The larvae look like tiny translucent white worms with shiny black heads, about one-quarter of an inch long.

No. Fungus gnats have no biting mouthparts. They are attracted to damp soil and decaying organic matter, not to people. If you are being bitten by tiny flies, they are more likely to be biting midges or gnats from another family.

Fungus gnats almost always arrive in the soil of new houseplants, in fresh bags of potting mix stored in damp garages, or through open windows in summer. Once inside, they breed quickly in potted plants that are overwatered or kept in peat-heavy soil.

No. Fruit flies are tan or amber with bright red eyes and hover around ripening fruit and drains. Fungus gnats are black, slow-flying, and stay close to the soil of houseplants. They are attracted to damp earth and plant fungi, not sweet or fermenting scents.

In small numbers, adult fungus gnats are mostly harmless to large, healthy houseplants. The real damage comes from the larvae, which chew on fine root hairs when their population grows. This can cause yellowing, wilting, or stunted growth, and it can kill young seedlings.

Ilisa Beurg โ€” Lead Gardening Writer & Editor

Ilisa Beurg has been growing food and flowers for over a decade, from a tiny balcony herb garden to a full kitchen-garden plot. Her guides are built on hands-on experience and are checked against university extension research before publication.

Disclaimer: The information on Paliurus.com is for general gardening guidance only. Results may vary by climate, soil type, and plant variety. Always check your local growing conditions.Read our full disclaimer โ†’