Fruit flies or fungus gnats? How to tell the small flies on your plants apart

The two look alike in the air but live in completely different places, and that single difference decides what you should do next.

Photograph your plant and start the diagnosis →
390
searches a month in Europe for exactly this question
4 mm
body length of an adult fungus gnat, rarely more
0
product names on this page: approvals differ from country to country

Two insects, two addresses

Fungus gnats are dark, slender and long legged. They sit on the surface of the potting mix, run a few steps, lift off clumsily and land again close by. When you water, a small cloud rises from the pot itself. Their larvae live in the moist upper layer of the substrate and feed on organic matter and fine roots.

Fruit flies are stubbier, brownish to yellowish, often with noticeably red eyes. They hover around ripe fruit, the compost caddy, a drain or a forgotten glass, not around the pot. Their larvae develop in fermenting material. A living plant is not their breeding ground, which is why they are a hygiene question rather than a plant health one.

Problem: the fly tells you where the real issue is

Most people meet the small flies at the worst moment: a houseplant has been standing in a saucer of water for weeks, the leaves look dull, and now something is flying. The reflex is to fight the insect. But if those flies come from the substrate, the insect is only the visible end of a wet root zone, and spraying the leaves changes nothing about that.

The opposite mistake is just as common. Someone repots a healthy plant, dries out the substrate and buys traps, while the real source is a bowl of fruit two metres away. Weeks pass, the plant gets stressed by the treatment, and the flies keep coming.

In a greenhouse or a market garden the stakes are higher. Young plants with fine roots react to fungus gnat larvae much more strongly than an established houseplant, and the damage is easy to confuse with root rot or with a watering problem. Guessing costs a whole batch.

Problem: the fly tells you where the real issue is (checks)

Check one, the pot. Place a yellow sticky card flat just above the substrate surface. If the catch is mostly on the card nearest the soil, you are looking at fungus gnats. A slice of raw potato laid on the surface for a few days often shows the whitish, dark headed larvae underneath.

Check two, the room. Set a cup of vinegar or a piece of overripe fruit on the worktop, away from the plant. If the flies gather there and leave the pot alone, they are fruit flies. Let the top two centimetres of substrate dry out between waterings and watch for a week: fungus gnat numbers follow moisture, fruit fly numbers follow fruit.

What follows from the answer

If it is fungus gnats, the work happens in the root zone: watering rhythm, drainage, no standing water in the saucer, a dry surface layer, traps for the adults to break the cycle. If it is fruit flies, the work happens in the kitchen, and the plant can be left alone.

Anything beyond that depends on where you are. Plant protection products are approved nationally, for named crops and named uses, and a product cleared in one European country may not be used in the next. For edible crops the pre harvest interval belongs to the decision from the start. So this page names no product. Ask your national plant protection authority, talk to an agronomist, or ask us directly.

What Dr. Phyto does with your photo

You photograph the plant, the substrate surface and, if you have one, the sticky card. Dr. Phyto asks a few follow up questions about watering, location and how long this has been going on, then gives you a named diagnosis with a stated confidence level and a dated step by step plan built on a verified European knowledge base, not on a general chatbot's guesswork.

The result is never presented as settled. You always see how certain the assessment is and what would make it clearer. And if a plant is beyond saving, Dr. Phyto says so instead of selling you a treatment. Where a finding touches a notifiable organism under Regulation (EU) 2019/2072, you are pointed to the competent national authority, because that report is not optional and infested material must not simply be moved, sold or disposed of privately.

Who uses this

Home growers with balconies, gardens and houseplants get a second look before they repot everything. Professional growers in viticulture, fruit growing, greenhouses and market gardening use it as a fast differential check on a batch.

Agronomists and advisors use it as a quick second opinion in the field. Authorities and municipalities use it for early detection from citizen photographs, including the first filter for findings that have to be reported under EU law.

Do fungus gnats actually harm my plant?

The adults mainly annoy. The larvae in the substrate feed on organic matter and on fine roots, which matters most for seedlings, cuttings and young potted stock. On an established, well drained plant the damage is usually minor, but the constant moisture that feeds them is itself a risk for the roots.

Can fruit flies come out of my potting soil?

That is unusual. Fruit flies breed in fermenting material such as fruit, juice residue or a compost caddy. If the flies clearly rise from the pot when you water, fungus gnats are far more likely. A sticky card placed directly over the substrate settles the question within a few days.

Why does this page not recommend a specific product?

Because approvals are national. A product authorised in Italy may be unauthorised in Germany, and the permitted crop, dose and pre harvest interval are part of the approval. Naming a product without checking the approval for your country would be a legal problem, so we point you to your national authority, to an agronomist, or to us directly.

How certain is the diagnosis?

Every assessment comes with a confidence level and with the reason behind it. A sharp photo of the substrate surface and an honest answer about watering raise that level considerably. A result is never claimed as certain, and recovery is never promised.