Skip to content
Swat & Snap
Fruit Flies & Gnats

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

Water flowing from a steel faucet
Quick answer
Watch where they are, not what they look like. Hovering around fruit, bins or the sink means fruit flies. Drifting up off houseplant soil means fungus gnats. Sitting still on a wall near a sink or shower, fuzzy and moth-like, means drain flies. Each one breeds somewhere different and needs a different fix.
Disclosure

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 fliesFungus gnatsDrain flies
Where you see themAround fruit, bins, the sinkDrifting off houseplant soil, at windowsSitting still on the wall near a sink or shower
How they moveHover, dart, land on foodWeak, erratic, drift upwardBarely fly; short clumsy hops
ShapeRounded, tan or brown, often red eyesSlender, long legs, tiny mosquitoFuzzy, moth-like, wings held roof-shaped
Attracted to vinegarStronglyBarelyNo
Breeding siteFermenting residueWet potting soilOrganic film inside a drain
Comes fromFruit, bins, drains, spillsOverwatered plantsThe 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.

At a glance

Quick picks

#ProductBest forMechanismPrice
1
A bowl of fresh berries and apples on a wooden board
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 countersLiquid food-based lure
2
Hands potting a houseplant, with soil and garden tools alongside
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 soilYellow adhesive card
3
A pair of electrical sockets on a plain painted wall
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 passivelyBlue + 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.

A bowl of fresh berries and apples on a wooden board
Our pickPet-safe design

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.

Specification
MechanismLiquid food-based lure
Service lifeAbout 30 days per trap
PlacementNext to the fruit bowl or bin
RefillReplace the whole trap
Why it is here
  • 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
What it will not do
  • 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

Hands potting a houseplant, with soil and garden tools alongside
Pick 2Pet-safe design

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.

Specification
MechanismYellow adhesive card
PlacementIn the pot, just above the soil
LifeUntil the card is full
ChemicalsNone
Why it is here
  • 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
What it will not do
  • Adults only — larvae in the soil need drying out or a BTI product
  • Visible yellow cards in a display pot

Check price on Amazon

A pair of electrical sockets on a plain painted wall
Pick 3Pet-safe design

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.

Specification
MechanismBlue + UV light, sticky cartridge
PowerMains plug-in, always on
RefillCartridge, roughly monthly
NoiseSilent, no zap
Why it is here
  • 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
What it will not do
  • 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.

Questions

Frequently asked

How do I tell fruit flies from gnats?
Watch where they are. Fruit flies hover around fruit, bins and the sink, and they pile into a cider vinegar trap within a day. Fungus gnats drift up off houseplant soil, fly weakly, gather at windows, and largely ignore vinegar.
What are the tiny flies on my bathroom wall?
Almost certainly drain flies — fuzzy, moth-like, sitting still rather than hovering. They breed in the organic film inside the drain, and the fix is scrubbing the drain wall with a brush rather than pouring anything down it.
Why is my fruit fly trap not catching anything?
Usually because they are not fruit flies. Fungus gnats and drain flies are not attracted to fermentation lures, so a vinegar trap sits empty while the room is clearly full of insects. Identify first, then treat.
Can I have more than one kind at once?
Yes, and it is common in a kitchen — fruit flies from the bin and drain flies from the sink, in the same room. If one treatment clears most but not all of them, check for a second source rather than assuming the first fix failed.
Sources
Next step

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.

About the author

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.

How we pick · Editorial policy · About Swat & Snap

Read next