The Plant Journal
Fungus Gnats vs. Fruit Flies: How to Tell the Difference
The Plant Journal · Pest identification
Tiny flies constantly buzzing around the soil of your houseplant and then eventually into the more common areas of your space are enough to drive you crazy. You search the internet, ask your friends, neighbors, heck, anyone that has a solution. But ultimately, for you to get rid of the problem, you have to know what the problem is: gnats or fruit flies. Fungus gnats and fruit flies look similar at a glance, but are ultimately different, and where they breed is a big clue.
The quick answer
Fungus gnats are usually dark, slender flies associated with damp potting mix. Common kitchen fruit flies are stockier, often tan, and gather around fermenting food or liquids. Check both appearance and the source. A fly sitting on a leaf doesn’t prove it came from the pot.
01 · Side by side
Fungus gnats vs. fruit flies: the main differences
Fungus gnats
Think tiny mosquito shape: a narrow body, long legs, and noticeable antennae. Look for activity on the soil surface or around the pot.
Fruit flies
Think small, compact fly: a rounder body, often with red eyes. Check fruit bowls, food scraps, and drink residue.
| Clue | Fungus gnats | Common fruit flies |
|---|---|---|
| Body | Slender, dark gray or black | Stockier, often tan to brown |
| Legs & antennae | Long and easy to notice up close | Less prominent |
| Where to look | Moist potting mix and nearby surfaces | Fermenting produce, spills, recycling |
| Where larvae develop | Moist growing media with organic material | Suitable fermenting food or liquid residue |
| First response | Check soil moisture and drainage | Find and remove the breeding material |
Color alone is not enough. These insects are small, and eye color can be difficult to see. A close photo and a consistent location are more useful than guessing from a fly moving across the room. Fungus gnat identification · Fruit fly identification
02 · A simple inspection
Find out where the flies are coming from
- Watch the soil. Observe the soil. Repeated activity at the surface points toward fungus gnats.
- Inspect the kitchen. Look beyond the fruit bowl: check forgotten produce, food waste, sticky bottles, and residue in recycling containers.
- Compare the evidence. Photograph a resting insect if possible. Match its shape with the location where you keep finding it.
A yellow sticky card near the pot can help reveal adult fungus gnat activity. It is a monitoring tool, not proof that every small fly on it is a fungus gnat. Iowa State’s guide explains how watching the soil helps locate an affected plant.
Neither description fits? Fuzzy, mothlike flies near a sink may be drain flies.
03 · The plant route
What to do if you have fungus gnats
For a complete treatment plan, read how to get rid of fungus gnats in houseplants, including watering adjustments, sticky traps, and options for treating larvae.
Start with the pot’s conditions. Allow the surface of the soil to dry between waterings as your plant tolerates, clear away fallen leaves, and empty standing water from saucers or decorative pots.
Sticky cards catch flying adults, but they do not treat larvae inside the mix. For persistent infestations, consider a product containing Bacillus thuringiensis subsp. israelensis (Bti) specifically labeled for fungus gnats and your intended indoor use. Follow its application and repeat-treatment directions. UC IPM explains these control options.
Adult fungus gnats are mainly a nuisance. Larvae can damage roots, particularly in seedlings or vulnerable plants, but a few flying adults don’t automatically mean your houseplant is dying. Check its overall condition too. More on indoor plant pests.
04 · The kitchen route
What to do if you have fruit flies
Remove spoiled produce, clean food and drink spills, empty food waste, and rinse bottles and cans before recycling. Check for overlooked sources such as a forgotten potato or sticky residue beneath a bin.
A fruit fly trap can help catch adults, but removing the material where they breed is the essential step. If flies keep returning, inspect again for another source instead of repeatedly adding traps. Repotting a healthy houseplant won’t solve a problem originating in kitchen waste. Maryland Extension’s fruit fly guidance covers prevention and cleanup.
05 · Quick answers
Common questions about flies around houseplants
Are fruit flies and fungus gnats the same thing?
No. They are different flies with different breeding habits. “Gnat” is often used casually for many tiny flying insects, which is why the names get mixed up.
Why are there “fruit flies” in my plant soil?
Flies repeatedly emerging from damp potting mix are more likely to be fungus gnats. Check their body shape and nearby food sources before deciding. The location is a useful clue, not a complete identification.
Will a vinegar trap fix fungus gnats?
A vinegar trap does not address fungus gnat larvae in potting mix. Even if you catch some flies, you still need to investigate the soil conditions and confirm which insect you have.
Do I need to throw away my plant?
Usually, no. Start by identifying the insect and correcting the conditions that support it. If the plant also has brown leaves or wilting, investigate those symptoms separately rather than assuming the flies caused everything.
06 · Further reading
Reliable help with identification
This guide draws on the university Extension and UC Integrated Pest Management resources linked throughout. Their identification guides are useful next stops when a fly doesn’t match the common patterns described here.
Keep the next step simple
Watch one suspect pot, inspect one likely food source, and get a closer look at the insect. Those observations give you a much better starting point than treating every plant in the room.
Plant looking stressed as well? Read why houseplant leaves turn brown and crispy, or explore more practical care advice in The Plant Journal.