Gnats vs fruit flies vs drain flies
They are all small, dark and annoying. They breed in three completely different places, and treating the wrong one is why people think none of it works.
By Ryder M.Published Updated

Swat & Snap earns a commission from qualifying purchases made through the links on this page, at no extra cost to you. It does not change which products we pick — see how we pick and our affiliate disclosure.
Identify by behavior, not by anatomy
They are all two to four millimeters long and none of them holds still for inspection. Forget the insect and watch what it does — behavior separates them reliably in under a minute.
| Fruit flies | Fungus gnats | Drain flies | |
|---|---|---|---|
| Where you see them | Around fruit, bins, the sink | Drifting off houseplant soil, at windows | Sitting still on the wall near a sink or shower |
| How they move | Hover, dart, land on food | Weak, erratic, drift upward | Barely fly; short clumsy hops |
| Shape | Rounded, tan or brown, often red eyes | Slender, long legs, tiny mosquito | Fuzzy, moth-like, wings held roof-shaped |
| Attracted to vinegar | Strongly | Barely | No |
| Breeding site | Fermenting residue | Wet potting soil | Organic film inside a drain |
| Comes from | Fruit, bins, drains, spills | Overwatered plants | The drain itself |
The single fastest test
Put out a cider vinegar trap and see what happens.
Apple cider vinegar with a drop of dish soap, in a bowl, near the flies.
- Full of flies in a day → fruit flies.
- Nearly empty while flies are clearly present → fungus gnats or drain flies. Move to the next test.
Next test: cover the drain overnight. Tape a piece of plastic wrap across the plug hole, sticky side down, and leave it.
- Flies stuck to the underside in the morning → drain flies (or fruit flies breeding in the drain, which happens too).
- Nothing on the tape but flies still in the room → check the plants.
Plant test: push a yellow sticky card into the pot, an inch above the soil. A card covered in three days means fungus gnats and means the soil is the source.
Fruit flies
Tells: hovering near fruit, wine glasses, the recycling bin or the sink. Fast and responsive. Often visibly red-eyed.
Where they breed: anything fermenting. A drain's organic film, the bottom of a recycling bin, a bag of potatoes or onions going soft, a dishcloth, a mop bucket, the drip tray under a refrigerator, a spill under a cabinet.
The fix: remove the source, then trap the adults. How to get rid of fruit flies has the sequence, and what attracts fruit flies lists the sources people miss.
Timeline: two to three days once the source is gone.
Fungus gnats
Tells: dark and delicate, like a miniature mosquito, drifting upward when you water a plant or brush past it. Poor fliers. Often found on windows.
Where they breed: the top inch or two of consistently wet potting soil, feeding on fungus and decaying organic matter. Overwatering is the cause almost every time. They frequently arrive in a bag of potting mix or with a new plant.
The fix: let the top inch of soil dry out completely between waterings, which breaks the life cycle. Sticky stakes catch adults, a BTI granule product kills larvae, and bottom-watering keeps the surface dry. Fungus gnats in houseplants.
Timeline: two to three weeks, because the soil has to dry and a generation has to pass.
Drain flies
Tells: fuzzy, moth-like, wings held like a tiny roof, sitting motionless on a wall or ceiling near a sink, shower or floor drain. When they move it is a short clumsy hop, not a hover.
Where they breed: the gelatinous organic film lining the inside of a drain, a trap, or an overflow. Also in a seldom-used shower drain, a basement floor drain, or a condensate line.
The fix: mechanical. Scrub the inside of the drain wall with a long brush and flush with hot water. Bleach and boiling water pour straight through the film they are supposed to remove, which is why the pour-something-down-it approach usually fails. Drain flies in the sink.
Timeline: about a week, and they recur if the film is only partly removed.
Quick picks
| # | Product | Best for | Mechanism | Price |
|---|---|---|---|---|
| 1 | Our pickTerro Fruit Fly Trap (T2500)An apple-shaped lure trap that works because the liquid inside is a real fermentation attractant, not because of the shape. | Kitchen counters | Liquid food-based lure | |
| 2 | Safer Brand Houseplant Sticky StakesYellow sticky cards on a stake, pushed into the pot. They catch the adults while you fix the watering, which is the part that actually ends a gnat problem. | Gnats in potting soil | Yellow adhesive card | |
| 3 | Zevo Flying Insect TrapA plug-in that pairs blue and UV light with a sticky cartridge. It runs quietly in the background, which is exactly what people want from a fly problem. | Rooms you want handled passively | Blue + UV light, sticky cartridge |
#ad — every price link goes to Amazon and Swat & Snap earns a commission on qualifying purchases. No price is shown until it can be pulled live from the retailer.

Terro Fruit Fly Trap (T2500)
Terro · Kitchen counters
An apple-shaped lure trap that works because the liquid inside is a real fermentation attractant, not because of the shape.
- The lure outperforms homemade vinegar in a side-by-side on the same counter
- Sealed, so there is no open dish of vinegar to knock over
- Catches flies; does nothing about the drain or bin that is breeding them
- Thirty days and it is done — no refill
Check price on Amazon

Safer Brand Houseplant Sticky Stakes
Safer Brand · Gnats in potting soil
Yellow sticky cards on a stake, pushed into the pot. They catch the adults while you fix the watering, which is the part that actually ends a gnat problem.
- Also a diagnostic: a full card in three days tells you the soil is the source
- No chemistry near a plant you might eat from
- Adults only — larvae in the soil need drying out or a BTI product
- Visible yellow cards in a display pot
Check price on Amazon

Zevo Flying Insect Trap
Zevo · Rooms you want handled passively
A plug-in that pairs blue and UV light with a sticky cartridge. It runs quietly in the background, which is exactly what people want from a fly problem.
- No zapping noise and no insect debris — it is a sticky pad behind a light
- Catches gnats and small flies that a vinegar trap ignores
- Cartridges are an ongoing cost that outruns the unit price fast
- Needs a dark room to compete with daylight
Check price on Amazon
The ones that are not any of these
Small dark flies at a window in numbers, in spring or fall. Possibly cluster flies, which overwinter in wall voids and come out on warm days. They do not breed indoors.
Slightly bigger, faster, landing on food and surfaces. House flies, which come in from outside and breed in waste. How to get rid of house flies.
Tiny, jumping, near a shower or a damp basement. Possibly springtails, which are a moisture problem rather than a fly problem.
Why the identification actually matters
Because the treatments do not transfer.
A vinegar trap beside a houseplant catches almost nothing, and the reasonable conclusion is that traps do not work. Bleach down a drain does not remove the film drain flies breed in, and the reasonable conclusion is that drain flies are unkillable. Letting a plant dry out does nothing about a rotting onion in the cupboard.
One minute of watching, and you are treating the right thing.
Frequently asked
How do I tell fruit flies from gnats?
What are the tiny flies on my bathroom wall?
Why is my fruit fly trap not catching anything?
Can I have more than one kind at once?
More on fruit flies & gnats
Tiny flies in the kitchen are almost never one problem. Identify which of the three you have, then treat the source — the trap alone never finishes it.
Not sure yet? Read how we pick.
Ryder M.
Ryder M. is the hands-on owner behind Magoo Media Group. He writes Swat & Snap because he got tired of pest-control advice that was either a sales pitch or a scare story.
Related on Swat & Snap
- How to get rid of fruit fliesSource first, trap second. The full 48-hour sequence and the hiding places people always miss.

- How to get rid of gnatsFungus gnats come off wet soil. The watering change, the BTI step, and a realistic timeline.

- Drain flies in the sinkWhy pouring anything down the drain fails, the brush method that works, and how to find the right drain.

- Fungus gnats in houseplantsDry soil, grit top-dressing, BTI and sticky stakes — the four-part fix and the order to do it in.

- The best fruit fly trapsLure traps, plug-in lights and sticky stakes, matched to where the flies actually are.
