Gnats are a category of small flying insects, not one specific species — and that distinction matters because fruit flies, fungus gnats, and drain flies each come from a different source and each needs a different solution. Treating all three with the same fly trap will suppress numbers but never eliminate the infestation, because the breeding source is untouched. Here is how to identify which gnat you have and eliminate it properly.
What changed in 2026
- Enzyme-based drain treatments became the standard recommendation for drain flies, replacing bleach (which does not reliably clear the biofilm where they breed).
- Sticky yellow monitoring traps are now widely used to confirm fungus gnat populations in houseplants before committing to soil treatment.
- Bacillus thuringiensis israelensis (BTi) products for fungus gnats (e.g., Gnatrol, Mosquito Dunks dissolved in water) are now sold in most garden centers — effective and safe for pets and humans.
- Compost bin sensors that monitor moisture and temperature are increasingly used by gardeners, reducing overwatering that creates fungus gnat habitat.
Identify your gnat first
| Type |
Where you see them |
Looks like |
Source |
| Fruit flies |
Kitchen, near fruit, wine, vinegar |
Tiny, red-eyed, brownish |
Overripe fruit, open wine, spilled sugar water |
| Fungus gnats |
Near houseplants, rising from soil |
Small, dark, fly erratically |
Wet potting soil with organic matter |
| Drain flies |
Bathroom, around sinks, drains |
Fuzzy/moth-like, hover near drain |
Biofilm inside drain pipes |
| Phorid flies |
Varied — often near garbage or drains |
Humpbacked, run before flying |
Decaying organic material |
Wrong diagnosis = wrong treatment. Do a 2-minute inspection before doing anything else.
Eliminating fruit flies
- Remove the source. Move overripe fruit to the fridge or bin it. Rinse out bottles and cans immediately. Wipe down spills. Check under appliances for forgotten fallen fruit.
- Apple cider vinegar trap. Fill a small glass with apple cider vinegar, add a drop of dish soap (breaks surface tension), cover with plastic wrap, poke small holes. Adults enter and cannot escape. Replace every 2–3 days.
- Clean the recycling bin and any containers that held sugar or alcohol.
- Leave no standing food overnight. Cover fruit bowls. Done in 1–2 weeks if the source is removed.
Eliminating fungus gnats (houseplants)
- Stop overwatering. Fungus gnats need consistently moist topsoil to breed. Water only when the top 2–3 cm of soil is dry.
- Yellow sticky traps near the soil surface catch adults and confirm the population is shrinking.
- BTi drench. Mix Bacillus thuringiensis israelensis product (e.g., half a Mosquito Dunk in 4 litres of water, soak overnight) and use it to water your plants. BTi is a naturally occurring bacterium toxic to larvae in soil — safe for plants, people, and pets. Repeat every 2 weeks for 4–6 weeks.
- Top-dress with coarse sand — a 1 cm layer of sand on top of the soil makes it inhospitable for egg-laying adults.
- Repot if heavily infested — replace the top third of soil entirely with fresh, sterile potting mix.
Eliminating drain flies (bathroom/kitchen)
- Confirm it is the drain. Place sticky tape over the drain overnight — drain flies will be stuck to it in the morning.
- Mechanical cleaning first. Use a flexible drain brush to physically scrub the inside of the drain pipe — this removes the biofilm where they breed.
- Enzyme drain cleaner. Pour an enzyme-based cleaner (not bleach — bleach runs past the biofilm without dissolving it) down the drain. Leave overnight. Repeat every few days for 1–2 weeks.
- Boiling water down the drain can help between enzyme treatments — pour slowly.
How long does it take?
| Type |
Time to eliminate with correct method |
| Fruit flies |
5–10 days if source removed |
| Fungus gnats |
3–6 weeks (several larval cycles) |
| Drain flies |
1–2 weeks |
Common mistakes
Only using traps. Traps capture adults but the next generation hatches from hundreds of eggs in the source. Trapping without source elimination is a permanent management treadmill.
Using bleach for drain flies. Bleach is pH-active but runs past biofilm too quickly to dissolve it. An enzyme cleaner that sits in contact with the pipe wall is far more effective.
Continuing to overwater plants during treatment. Fungus gnat treatment requires dry soil intervals. Continuing to keep soil wet undermines every other effort.
Treating the wrong gnat. If you are treating for fruit flies but actually have drain flies, you will get no result and conclude the methods do not work.
What to skip
- Insecticide spray for ongoing gnat control — it kills adults on contact but has no residual effect on eggs or larvae. Source elimination is always more effective.
- Chemical fungus gnat treatments before trying BTi — BTi is as effective, far safer, and does not damage beneficial soil microbes.
FAQ
Are gnats harmful?
Primarily a nuisance. Fungus gnats can damage seedlings by feeding on roots in high populations, but adult gnats of all types do not bite humans and do not transmit disease in typical household conditions.
Why do I keep getting fruit flies even with no fruit out?
Check: drains, recycling bins, compost bins, sticky residue under appliances, open wine or vinegar bottles. Any fermenting organic material is a breeding site.
How do I know if my BTi treatment is working?
The number of adults caught in yellow sticky traps should start dropping after 2 weeks. Full elimination takes 4–6 weeks because you need to break 2–3 full larval cycles.
Can gnats come from a bag of potting soil?
Yes. Many commercially bagged potting soils contain fungus gnat eggs or larvae. Sterilized or "peat-free" mixes tend to have lower gnat rates. When repotting, use fresh, sealed bags.
Where to go next
See How to clean a dishwasher in 2026, How to unclog a toilet in 2026, and How to clean a microwave in 2026.