The 3 fastest ways to tell them apart: 1. Where: fruit bowl and bin = fruit flies; houseplants = fungus gnats; drains = drain flies (University of Kentucky; UC IPM; Clemson HGIC). 2. Shape and eyes: round and tan with red eyes = fruit fly; slender, dark and mosquito-like = fungus gnat; fuzzy and moth-like = drain fly. 3. Flight: fruit flies hover and dart, fungus gnats flutter weakly near the soil, drain flies make short hops and rest on walls (University of Kentucky).
Fruit fly vs gnat: the key differences
Put a fruit fly and a fungus gnat side by side and they look like different animals. The fruit fly is a stocky little fly with a tan front, a darker rear and, usually, bright red eyes (University of Kentucky). The fungus gnat is a dark, delicate fly that looks like a miniature mosquito, with slender legs and antennae longer than its head (UC IPM). The trouble is that both are only about an eighth of an inch long, so in a busy kitchen they blur into "tiny flies".
| Fruit fly | Fungus gnat | |
|---|---|---|
| Size | About 1/8 in (3 mm) | 1/16–1/8 in (about 2–4 mm) |
| Colour | Tan front, black rear; usually red eyes | Dark grey to black; light grey to clear wings |
| Body and wings | Rounded, stocky body | Slender, mosquito-like, long legs and antennae |
| Eyes | Usually red (sometimes dark) | Not a useful clue (dark insect) |
| How it moves | Hovers and darts quickly around food | Weak, erratic flight near pots and windows; runs over the soil |
| Where you see it | Kitchens: ripe fruit, bins, recycling, drains | Houseplants, windows, computer screens |
| Attracted to | Ripe and fermenting fruit, vinegar, beer, juice | Light; moist potting soil |
| Bites people? | No | No |
| Breeds in | Any moist film of fermenting material — produce, drains, disposals, bottles, mops | Moist potting soil and organic matter |
The table uses the same descriptions as the identifier above, so if a row matches what you see, the tool will agree. Three rows matter most: where they gather, the shape of the body, and how they fly. Colour and size help less, because both insects are small and dark-looking from a distance.
The difference that matters most for you is what they eat and where their young grow. Fruit fly larvae live in the moist film of fermenting food — overripe fruit, juice spills, the slime in a drain (University of Kentucky). Fungus gnat larvae live in damp potting soil, eating fungi, organic matter and fine roots (UC IPM). Pick the wrong insect and you'll scrub the fruit bowl while the real source sits in a flowerpot.
Are gnats and fruit flies the same thing?
No. Are fruit flies and gnats the same thing? They're both true flies, with one pair of wings, but they belong to different families: fruit flies to the Drosophilidae, fungus gnats to the Sciaridae (University of Kentucky; UC IPM). Similar size, different lives: one family feeds on yeasts in rotting fruit, the other on fungi in wet soil.
The confusion comes from the word itself. "Gnat" isn't a scientific name: it's an everyday word for many kinds of small fly. Clemson Extension notes that two quite different flies are called gnats outdoors (biting midges and eye gnats), and indoors people use it for almost any tiny flier. The University of Kentucky even writes that if you've been seeing "small flies or gnats" in your kitchen, they're probably fruit flies. So are gnats and fruit flies the same? Sometimes the word is used for both — but the insects are not the same, and neither is the fix.
So is a gnat and a fruit fly the same thing? In everyday speech a fruit fly can be "a gnat". In entomology, the indoor gnat people mean is usually the fungus gnat, sometimes the drain fly, and occasionally the phorid fly; the University of Kentucky lists fruit flies, fungus gnats, drain flies and phorid flies as the four small flies found most often indoors. When someone asks are gnats and fruit flies the same thing, the useful answer is: find out which one you have, because each breeds somewhere different.
House gnats vs fruit flies
"House gnats" is not a species either. In a home, house gnats vs fruit flies usually means fungus gnats (around plants and windows) against fruit flies (around food). If your "house gnats" fly to the fruit bowl, the wine glass or the bin, they are almost certainly fruit flies; if they flutter up from a pot when you water it, they're fungus gnats.
Fruit flies vs fungus gnats: size, shape and eyes
What do fruit flies look like? About 1/8 inch (3 mm) long, with a rounded, stocky build, a tan or brownish front half, a darker rear half and, in most cases, red eyes (University of Kentucky ENTFACT-621 and -657). The red eyes are the single clearest clue: you can see them with the naked eye on a fly sitting on a banana.
What do gnats look like? Fungus gnats are slimmer and darker. UC IPM describes them as "dark, delicate-looking flies similar in appearance to mosquitoes", usually 1/16 to 1/8 inch long, with slender legs, segmented antennae longer than the head, and light grey to clear wings. Common Bradysia species have a Y-shaped vein in each wing — something you can see with a magnifying glass on a sticky trap.
- Silhouette: fruit fly short and round; fungus gnat long-legged and thin-waisted.
- Antennae: barely visible on a fruit fly; long and obvious on a fungus gnat.
- Eyes: usually red on a fruit fly (some have black eyes); not a useful clue on a dark fungus gnat.
- Flight: fruit flies hover — the University of Kentucky calls it "helicopter flight" — and dart quickly; fungus gnats are weak fliers that stay near the soil and run across it (UC IPM).
That's how to tell the difference between gnats and fruit flies in a few seconds: look for red eyes and a round body (fruit fly) or long legs and long antennae (fungus gnat). This fungus gnat vs fruit fly check works best on a fly that has landed — a sticky trap or a fly that has settled on a window is ideal.
Where you find them: kitchen vs houseplants vs drains
Location is the fastest clue, and it's why the identifier gives it the most points. Small flies stay close to the place they bred, so where you see the most is usually where the problem is.
Tiny flies in the kitchen
Tiny flies in kitchen bins, fruit bowls and sinks are most often fruit flies. They gather on ripe and fermenting produce, around the bin and recycling, and are drawn to vinegar, beer and juice (University of Kentucky). Look for a forgotten potato or onion, sticky bottles, a dirty mop or the garbage disposal: "all that is needed for development is a moist film of fermenting material" (ENTFACT-621). Fungus gnats can turn up here too if there are herbs or houseplants on the windowsill.
Tiny flies in the bathroom
Tiny flies in bathroom spaces that sit on the wall by the shower and look fuzzy are drain flies, also called moth flies or filter flies. They rest on walls near drains during the day, are most active in the evening and breed in the gelatinous film inside drains (Clemson HGIC). The University of Kentucky adds seldom-used toilets, floor drains and the drip pan under a fridge to the list. Fruit flies can also breed in drain slime, so a fly near a drain with red eyes and a hovering flight is a fruit fly using the drain.
Little black flies in the house
Little black flies in house windows and on screens and computer monitors are classic fungus gnats: they're "drawn to light and are commonly observed near windows" and often fly around people's faces (University of Kentucky). Check every potted plant — including ones in other rooms — because the adults wander a little from the pot they came from.
Flies everywhere at once, running fast across the counter and the floor, point to a fourth possibility: the phorid fly, a humpbacked fly that breeds in decaying organic matter and can come from a broken drain pipe (University of Kentucky; NC State). See gnats vs flies, midges and phorid flies for that one. For small flies in the house identification by room, the rule of thumb is: kitchen = fruit flies, plants and windows = fungus gnats, bathroom walls = drain flies, everywhere = phorid flies.
Fruit fly vs gnat vs drain fly: a 3-way comparison
Most "which tiny fly is it?" questions come down to three insects. Whether you type drain fly vs fruit fly vs gnat, fruit fly vs drain fly vs gnat or fruit fly vs gnat vs drain fly, here is how the three compare side by side:
| Fruit fly | Fungus gnat | Drain fly | |
|---|---|---|---|
| Family | Drosophila melanogaster (Drosophilidae) | Bradysia and Orfelia spp. (Sciaridae) | Psychoda and related genera (Psychodidae) |
| Size | About 1/8 in (3 mm) | 1/16–1/8 in (about 2–4 mm) | 1/16–1/4 in (about 2–4 mm) |
| Body and wings | Rounded, stocky body | Slender, mosquito-like, long legs and antennae | Hairy, moth-like; oval wings held like a roof |
| How it moves | Hovers and darts quickly around food | Weak, erratic flight near pots and windows; runs over the soil | Weak flight in short hops; sits on walls near drains |
| Where you see it | Kitchens: ripe fruit, bins, recycling, drains | Houseplants, windows, computer screens | Bathrooms, kitchens, floor drains, seldom-used toilets |
| Breeds in | Any moist film of fermenting material — produce, drains, disposals, bottles, mops | Moist potting soil and organic matter | Gelatinous film inside drains and sewers; water standing a week or more |
| Quick test | Cider-vinegar jar trap fills up (UKy) | Raw potato slice on the soil shows larvae (UC IPM) | Clear plastic or a cup over the drain catches adults (UKy) |
| Adult life | About a month (UKy) | 7–10 days (UKy) | 3–4 days (UKy) |
A few points the table can't show. Drain flies are the easiest of the three to recognise once you've seen one: Clemson describes them as hairy, holding their wings "roof-like over their bodies", and the University of Kentucky notes their wings carry scale-like hairs, so they disappear in a puff of fine dust when swatted. Fruit flies and drain flies can share a drain — one feeds on fermenting food residue, the other on the slimy biofilm — so if you see both kinds, clean the drain for both.
The same comparison answers drain flies vs fruit flies vs gnats, fruit flies vs drain flies vs gnats and fruit flies vs gnats vs drain flies: three insects, three breeding sites, three different fixes. For the fungus gnat angle — fungus gnats vs fruit flies vs drain flies, or gnats vs fruit flies vs drain flies — remember that fungus gnats are the only one of the three that breeds in soil, and the only one a houseplant can produce.
How to get rid of gnats vs fruit flies
This is where identification pays off. Gnats vs fruit flies: how to get rid of each comes down to the breeding site, because extension services agree that killing adults "usually provides only temporary relief" (University of Kentucky). These steps are non-toxic and come from extension sources.
Fruit flies
- Eat, refrigerate or throw out ripe produce, and cut away damaged parts — larvae feed near the surface (University of Kentucky).
- Hunt for the hidden source: a single rotting potato or onion, a juice spill under the fridge or an unwashed recycling bin can breed thousands (University of Kentucky).
- Trap the adults: a jar with a few ounces of cider vinegar and a paper funnel, or vinegar with a drop of dish soap (University of Kentucky).
- Scrub slimy drains with a stiff brush (Iowa State University).
Fungus gnats
- Let the surface of the soil dry between waterings and improve drainage, for example with more perlite or sand (UC IPM).
- Yellow sticky traps cut into squares on skewers catch adults in each pot (UC IPM).
- Raw potato chunks, cut side down, show and trap larvae; replace them after a few days (UC IPM).
- Use pasteurised potting mix and don't move infested plants next to clean ones (UC IPM).
Drain flies
- Scrub the drain with a stiff brush to remove the film the larvae live in (Clemson HGIC; University of Kentucky).
- Follow with very hot water; enzyme cleaners, baking soda or vinegar can help loosen the film (University of Kentucky).
- Test each drain with a clear plastic cup or bag over it — see the drain tape test.
Dealing with more than one? How to get rid of gnats and fruit flies at the same time is simply both lists at once: dry out the pots and clean up the kitchen. The sticky trap tells you which you've beaten — fungus gnats stick to yellow cards near pots, fruit flies end up in the vinegar jar. How long the last adults hang on depends on the insect: see the fruit fly die-off timeline and how long gnats live.
How this identifier works
Each answer adds points to every insect whose sourced description matches it. Where you see them and the body shape count most, then flight and eye colour, then size. The top score is the most likely insect.
| Clue | Weight | What it points to |
|---|---|---|
| Where you see them | 3 points | Fruit and bins → fruit fly; pots → fungus gnat; drains → drain fly (and fruit fly, which also breeds in drains); everywhere → phorid fly |
| Body shape | 3 points | Rounded tan → fruit fly; slender dark → fungus gnat; fuzzy moth-like → drain fly; humped → phorid fly |
| How they move | 2 points | Hovering → fruit fly; weak flight or running on soil → fungus gnat; short hops → drain fly; running fast → phorid fly |
| Eye colour | 2 points | Red → fruit fly only; dark → any of the four (UKy notes some fruit flies have black eyes) |
| Size | 1 point | About 3 mm fits all four; under 2 mm rules out a typical fruit fly |
Confidence is "high" only when the best match scores at least 8 of 11 points and leads the runner-up by 3 or more; a lead of 2 is "medium", and anything closer is "low". Any "Not sure" answer caps the result at medium. A trait our sources don't describe — fungus gnat eye colour, for example — never earns points, so the tool doesn't guess. If the best match is a phorid fly, the result points you to the page that covers them.
Frequently asked questions
What is the difference between fruit flies and gnats?
Fruit flies are rounded and tan with red eyes, hover around fermenting food and breed in it. Fungus gnats are slender, dark and mosquito-like, fly weakly near houseplants and breed in damp soil (University of Kentucky; UC IPM).
What is the difference between gnats and fruit flies in the kitchen?
In a kitchen, flies on fruit, the bin or a wine glass are fruit flies. Dark flies at the window above the herbs or houseplants are fungus gnats.
Are fruit flies and gnats the same thing?
No. Fruit flies (Drosophilidae) and fungus gnats (Sciaridae) are different families. "Gnat" is an everyday word for many small flies, which is why people mix them up.
Is a gnat a fruit fly?
Not in the scientific sense. People sometimes call fruit flies gnats, but the indoor "gnat" usually means a fungus gnat or a drain fly.
What's the difference between gnat and fruit fly eyes?
Fruit flies usually have bright red eyes you can see with the naked eye (some have black eyes). Fungus gnats are dark all over, so eye colour isn't a useful clue for them.
Do gnats or fruit flies bite?
Neither. The University of Kentucky describes fruit flies, fungus gnats, drain flies and phorid flies as non-biting. Tiny biting flies outdoors are usually biting midges (no-see-ums).
Fruit flies vs fungus gnats: which one do I have if they're near my plants?
Fungus gnats. They breed in moist potting soil, are drawn to light and windows, and run across the soil surface. Fruit flies only visit plants if there's rotting fruit nearby.
What are the little black flies in my house?
Most often fungus gnats from houseplants, especially if they gather at windows and screens. Fuzzy ones on the bathroom wall are drain flies.
What are the tiny flies in my bathroom?
Usually drain (moth) flies breeding in the slime inside a sink, shower or floor drain, or in a seldom-used toilet (Clemson HGIC; University of Kentucky).
Drain fly vs fruit fly vs gnat: which is fuzzy?
The drain fly. It's hairy and moth-like, with oval wings held like a roof over its body (Clemson HGIC). Fruit flies and fungus gnats have clear, smooth wings.
How do I get rid of gnats and fruit flies at the same time?
Let houseplant soil dry between waterings and use yellow sticky traps for the gnats; remove ripe produce, clean bins and drains and set a cider-vinegar trap for the fruit flies.
Do fruit flies breed in drains like drain flies?
They can. Fruit flies breed in fermenting residue in drains and disposals (University of Kentucky), while drain flies breed in the slimy biofilm. Scrubbing the drain helps with both.
What if the flies run across the counter instead of flying?
That's typical of phorid flies, humpbacked flies that run rapidly over surfaces and breed in decaying organic matter (University of Kentucky). See our page on gnats vs flies, midges and phorid flies.
How accurate is this fruit fly vs gnat identifier?
It matches your answers against sourced descriptions and shows a confidence level. Answer every clue you can; a high-confidence result is a strong guide, but a specimen on a sticky trap is the best check.
The identifier gives a best match from sourced descriptions, not a lab identification. For a stubborn problem, your local cooperative extension service can identify a specimen. We give no pesticide advice, and for fleas on pets please talk to your vet.