Fungus Gnats vs Fruit Flies: How to Tell Them Apart With Pictures

A tiny dark fly near a houseplant is more likely to be a fungus gnat than a fruit fly, especially if it keeps returning to damp potting mix. A compact fly hovering around a ripe banana or a sticky drink container is more likely to be a fruit fly. Neither location proves the identification: look at the insect itself before deciding where to search for its breeding site.
Fungus gnats vs fruit flies: compare the photos

Photo: Robert Webster (xpda.com) · Source · CC BY-SA 4.0 · Wikimedia rendition · Resized · WebP
The long antennae are the most useful feature in this side view of a dark-winged fungus gnat (family Sciaridae). Its legs are thin, its body is relatively elongated, and its wings lie along the abdomen. It looks rather like a miniature mosquito. This particular specimen was recorded at 5.7 mm, larger than many of the fungus gnats encountered around houseplants.

Photo: Mr.checker · Source · CC BY-SA 3.0 · Wikimedia rendition · Resized · WebP
The common fruit fly (Drosophila melanogaster) has a more compact body and a conspicuous rounded eye. Its antennae do not project far in front of the head like the gnat’s. Many household fruit flies are tan or brown with red eyes, but some have dark eyes. The two photographs are enlarged separately and are not shown at the same scale.
| Feature | Fungus gnat | Fruit fly |
|---|---|---|
| Antennae | Long, visibly segmented | Short, with fine bristles |
| Body outline | Slender, mosquito-like | More compact, rounded abdomen |
| Eyes | Usually dark | Often red; sometimes dark |
| Typical adult size | About 1.5–3 mm in common household kinds | About 3 mm |
| Likely breeding material | Moist organic potting mix | Fermenting food or wet organic residue |
| Where to start looking | Pot surfaces and saucers | Fruit, recycling and food waste |
Size overlaps substantially, so a ruler alone is not enough. Use the antennae and body outline together. Under magnification, common Bradysia fungus gnats also have a distinctive forked wing vein resembling a Y, but this is not a feature every phone photograph will resolve.
Find the breeding site, not just the resting fly
A kitchen containing houseplants, fruit and a sink offers several possible sources. Check each area separately rather than assuming that every small fly belongs to the same species.
1. Flies around a houseplant
Look at the potting mix before watering. Watch whether flies walk over the surface or take off when you gently move the pot. Inspect the saucer and nearby pots. Fungus gnat larvae live in moist organic material; they are pale, legless and usually have a recognizable dark head. Avoid digging into healthy roots just to find one.
Place a small yellow sticky card near the soil to monitor adult activity, keeping it away from pets and children. Compare the captures with the photographs above. If the plant tolerates it, allow the upper mix to dry between waterings and remove standing water. Do not dry out a moisture-dependent plant or terrarium simply to eliminate a fly.
2. Flies around fruit, bottles or bins

Photo: rjp/zimpenfish · Source · CC BY-SA 2.0 · Wikimedia rendition · Resized · WebP
Check beneath the fruit bowl, inside recycling containers and around food waste. A single banana may attract flies, but the actual breeding material can be a forgotten piece of fruit, a residue inside a bottle or damp organic matter elsewhere. Remove spoiled food and wash containers. A vinegar-baited trap can help monitor fruit fly activity, but attraction to a trap is not a reliable species diagnosis and does not eliminate the larval source.
3. Flies around a drain

Photo: Bj.schoenmakers · Source · CC0 1.0 · Wikimedia rendition · Resized · WebP
A fly with a fuzzy body and broad, hairy wings may be a drain fly (family Psychodidae). Its silhouette is closer to a tiny moth than to either of the flies above. The example here was photographed on a leaf, not inside a drain. Indoor drain fly larvae can develop in wet organic films around plumbing. Look for persistent organic buildup and leaks rather than treating all flies near a sink as fruit flies.
What if the fly does not fit either picture?
Other small flies can share these habitats. Shore flies, for example, have shorter antennae and a sturdier body than fungus gnats and may occur near algae in wet growing areas. Phorid flies may have an arched thorax and scuttle rapidly over surfaces. If the animal has no wings and springs away, check the springtail identification guide instead.
Finding a small insect on a window is also not proof of where it developed. Adult flies can move toward light. Compare other possibilities in the windowsill bug guide. In a planted enclosure, use the terrarium bug guide to distinguish flying insects from beneficial cleanup organisms.
Take a useful identification photo
Wait for a fly to settle or photograph a specimen on a monitoring card. Use bright, indirect light and focus on the head from the side. Take a second view from above, and include a millimeter ruler beside the specimen if possible. Record whether it was near soil, fermenting food or a drain. If the antennae and wings are not visible, retain the identification as an unknown small fly rather than guessing a species.
References
- University of California Statewide IPM Program: Fungus Gnats — adult morphology, larvae and breeding habitat.
- University of Kentucky Entomology: Small Flies — fruit fly, fungus gnat, drain fly and phorid fly identification.
- UMass Extension: Fungus Gnats and Shore Flies — distinguishing short- and long-antenna flies in growing areas.
Featured image: Photo: Robert Webster (xpda.com) · Source · CC BY-SA 4.0 · Wikimedia rendition · Resized · WebP
Image credits & licenses 1 image
- Featured imageDark-winged fungus gnat, recorded at 2.8 mm.
Photo: Robert Webster (xpda.com) · Source · CC BY-SA 4.0 · Wikimedia rendition · Resized · WebP
TinyFauna is a nature field guide. Observe small creatures without disturbing their habitats.
Report a correction Our editorial policy

