The quickest test is not the insect. It is where the swarm hangs. Flies rising out of a plant pot when you water are fungus gnats. Flies circling a fruit bowl or the sink are fruit flies.

The insects themselves also look different once you know what to look at, and a third look-alike comes out of the drain.

Where the swarm sits is the answer

Water a plant and watch the surface for a moment. If small dark flies come up out of the mix, you have fungus gnats. They live in the pot and the watering is what disturbs them.

Then look at the fruit bowl, the trash and the sink. Flies that gather there and stay there are fruit flies, and they take no interest in your plants at all.

Where you see them at rest matters more than where they fly. Fungus gnats settle on the soil surface, on the pot and on a nearby window. Fruit flies settle on fruit skins, on the counter and on the rim of a glass.

If both places have flies, you have both problems. That happens often in a kitchen with plants on the counter, and each one needs its own treatment.

Look at

  1. 01Where they fly: over pots, fruit or the sink
  2. 02Whether they rise when you water a plant
  3. 03Body shape, dark and slim or round and tan
  4. 04Eye color, red on a fruit fly
  5. 05How they fly, wobbly and slow or direct

What each one looks like up close

A fungus gnat is dark gray to black, slim, long legged and delicate, closer to a tiny mosquito than to a fly. It flies slowly in a wobbly line and is easy to catch by hand.

A fruit fly is rounder, tan to brown, more solidly built, and most of them have obviously red eyes. They fly faster and more directly, and they hover in one place before darting off.

Size does not separate them well. Both are a few millimeters long, and a small fruit fly and a large gnat overlap.

The stuck insects on a yellow sticky card are the easiest place to compare. Once you have both under a magnifier the difference is obvious.

Fungus gnats breed in your plant pots

The females lay into the top layer of damp mix. The larvae are thin, translucent white with a black head and live in the top inch or two, where they eat decaying material and fine roots.

Established plants shrug that off. Seedlings, cuttings and fresh repots do not, and that is where the damage shows.

Every effective step goes at the wet surface they need. Let the top layer dry out between waterings, empty the saucer and the cachepot, and clear dead leaves off the mix.

Yellow sticky cards set low over the soil catch the flying females and show you whether the numbers are falling. They are a measurement as much as a treatment.

Nematodes watered into damp mix go after the larvae already in the pot. They are living organisms, so they need mix that stays damp for a while and they have a shelf life.

Expect this to take a few generations rather than a weekend. Adults keep emerging from eggs already laid after you change the watering.

What you see

Dark slim flies rise out of a pot when you water and settle on the soil, the pot and the window. The top layer of mix is damp days after watering.

What to do now

Let the top layer dry between waterings, empty saucers and cachepots, and set yellow sticky cards low over the soil. Water nematodes into the mix for the larvae already there.
A yellow sticky card standing in a pot with small dark flies stuck to it
The card sits low over the soil, where fungus gnats fly

Fruit flies breed on fermenting food

Fruit flies need something fermenting. Ripe fruit on the counter, a splash of juice under an appliance, the trash, the recycling bin, a mop bucket or a wine glass left overnight all qualify.

They arrive on shop bought fruit as eggs, which is why a kitchen that was clear on Monday has flies by Thursday.

Finding the source is most of the job. Move the fruit to the fridge or into a covered bowl, empty the trash and the recycling, and look under and behind the appliances where something has spilled.

A cup of cider vinegar with a drop of dish soap in it catches the adults, since the soap breaks the surface and they sink. Cover it loosely with punctured wrap if the cup is in the way.

Clean rather than spray. Once the fermenting material is gone, the flies have nowhere to lay and the population ends within a couple of weeks.

What you see

Round tan flies with red eyes hover around fruit, the trash or the sink and never come out of a plant pot. They appeared a few days after fruit came into the house.

What to do now

Find and remove the fermenting source, move fruit into the fridge or a covered bowl, and empty the trash and recycling. Set a cider vinegar trap with a drop of dish soap for the adults.

The third one that comes out of the drain

Small dark insects that sit still on the wall or the tiles near a sink, with broad furry wings held over the body like a tiny moth, are drain flies. They breed in the film inside a drain rather than in soil or fruit.

They barely fly. They make short hops between surfaces and spend most of the time sitting, which is the giveaway against both of the others.

Clean the drain mechanically with a brush and hot water, since the film on the pipe wall is what they live in. Chemical drain cleaner does little about that film.

A trap that has dried out in a room nobody uses lets them through from the pipe. Running the tap for a moment refills it.

What you see

Small furry moth like insects sitting still on walls and tiles near a sink or a shower, hopping short distances rather than flying.

What to do now

Scrub the inside of the drain with a brush and flush it with hot water, and run the tap in any sink that goes unused so the trap refills.

Keeping both out

For the plants, the whole prevention is the top layer of mix. Water thoroughly, let the surface dry before the next watering, empty standing water and clear dead leaves off the soil.

Store opened bags of mix closed and dry. A bag that stood open or outdoors carries eggs and larvae, and a fresh repot is the classic start of a gnat problem.

Keep a new plant apart from the others for two or three weeks and watch the surface of its pot. That is when it will show.

For the kitchen, the routine is fruit in the fridge or covered, trash emptied, spills wiped under the appliances and the drain kept clean.

Neither insect bites, and neither carries a plant disease. What they cost is your patience and, in the case of the gnats, the seedlings.

The dry top layer of mix in a pot with damper mix below
A surface that dries between waterings is the whole prevention

Related plants

Keep reading

Common questions

How do I know if I have gnats or fruit flies?

Water a plant and watch. Flies that rise out of the pot are fungus gnats. Flies that gather around the fruit bowl, the trash or the sink and ignore your plants are fruit flies.

What is the difference between fungus gnats and fruit flies?

Fungus gnats are dark, slim and long legged, fly in a wobbly line and breed in damp potting mix. Fruit flies are rounder, tan, usually red eyed, fly directly and breed on fermenting food.

Do fruit flies live in plant soil?

Not normally. They need fermenting material, so a pot only attracts them if something is rotting on the surface. Flies coming out of the mix itself are fungus gnats.

Does a vinegar trap catch fungus gnats?

It catches a few, but it is built for fruit flies. Yellow sticky cards standing low over the soil work far better for gnats, because that is the height at which they fly.

How long does it take to get rid of fungus gnats?

Longer than one treatment. Adults keep emerging from eggs already in the mix after you change the watering, so plan on several weeks and use the sticky cards to see whether the numbers are dropping.

Are they harmful to my plants or to me?

Neither bites people. Fungus gnat larvae damage seedlings, cuttings and fresh repots by feeding on fine roots, while established plants tolerate them. Fruit flies do nothing to plants at all.

Last reviewed: 2026-09-07