Small flying insects hovering near your windowsill, your houseplants, or your kitchen sink — and “gnats” feels like the right word, but it’s actually three different insects with three different solutions. Getting the identification right is what makes the difference between gnats disappearing in 48 hours and gnats lingering for weeks despite your best efforts.


“Gnats” Is Not One Insect — Identify Which You Have First

The term gnat is used loosely for three distinct pests, and treating the wrong one wastes time.

Fungus Gnats — Dark, slender, mosquito-like in shape but much smaller. Weak, erratic fliers. Found hovering near houseplant soil. The larvae live in damp potting mix and feed on organic matter and plant roots. Harmless to humans, mildly damaging to seedlings and young plants.

Drain Flies — Fuzzy, moth-like wings, small and dark. Cluster near sinks, particularly bathroom sinks and floor drains. Breed in the organic film that builds up inside drain pipes.

Fruit Flies — Tan to brown with distinctive red eyes. Hover near ripening fruit, fermenting liquids, and recycling. Breed extremely fast — egg to adult in as little as a week in summer heat.

The fast identification test: Where are they concentrated? Near houseplants — fungus gnats. Near a drain — drain flies. Near fruit or the trash — fruit flies. The location tells you almost everything.


Why Gnats Show Up Suddenly

Gnats appear when moisture, organic material, and warmth align — and a small population can become dozens within two weeks because their life cycle is extremely short.

A single female gnat can lay 100 to 300 eggs in her lifetime, and that lifecycle from egg to flying adult can complete in as little as one week during summer heat. This is why gnats seem to appear from nowhere — a few unnoticed eggs become a visible swarm within days.


How to Get Rid of Fungus Gnats Fast

Step 1 — Let the soil dry out. Fungus gnat larvae cannot survive in dry soil. Allow the top one to two inches of soil to dry completely between waterings. This single change resolves most fungus gnat problems within two weeks as the larvae die off and adults are trapped before laying new eggs.

Step 2 — Trap the adults. Yellow sticky traps cut into small squares and placed on wooden skewers in the soil catch adults as they emerge and before they lay new eggs.

Step 3 — Treat the soil directly. Mix 1 part hydrogen peroxide (3% solution) with 4 parts water and water the soil with this mixture. It kills larvae on contact — you may notice slight fizzing, which is normal. Let the soil dry fully before watering again with plain water.

Step 4 — Cover the soil surface. A thin layer of sand, fine gravel, or diatomaceous earth on top of the soil prevents adult gnats from reaching the soil to lay eggs while still allowing water through.

Step 5 — Remove dead plant material. Fallen leaves and decaying matter on the soil surface are a food source. Clear them regularly.


How to Get Rid of Drain Flies Fast

Step 1 — Confirm the drain is the source. Place a strip of clear tape sticky-side down over the drain opening overnight. If gnats are caught on the tape by morning, that drain is the breeding source.

Step 2 — Physically clean the drain. Use a drain brush to scrub the inside of the pipe opening — the organic film drain flies breed in is on the pipe walls, not just in standing water. Bleach does not reach or remove this film effectively.

Step 3 — Use an enzyme drain cleaner. Products containing bacterial enzymes break down the organic buildup inside pipes more thoroughly than bleach or boiling water alone. Follow label instructions and repeat treatment over several days for established buildup.

Step 4 — Check the garbage disposal. Remove and clean the rubber splash guard on both sides — this is a commonly missed breeding site.


How to Get Rid of Fruit Flies Fast

The apple cider vinegar trap is the fastest effective DIY solution. In a small bowl or jar, combine apple cider vinegar with a few drops of dish soap. The vinegar attracts them, the soap breaks the surface tension so they sink rather than land and escape. Cover with plastic wrap, poke several small holes, and place near the activity.

Remove the breeding source simultaneously — overripe fruit, recycling residue, and any other fermenting organic material. A trap alone without removing the source only catches adults while new ones continue to hatch.

For full identification and breeding source troubleshooting, see our complete gnat guide.


What Doesn’t Work

Spraying insecticide around the room — kills visible adults temporarily but does nothing for the breeding source. New adults emerge within days.

Bleach down drains — sanitizes the surface but doesn’t remove the organic film where drain flies breed.

Treating fungus gnats without changing watering habits — any trap or treatment fails if the soil stays consistently damp, since new eggs are laid as fast as adults are removed.


How to Prevent Gnats From Coming Back

  • Let houseplant soil dry between waterings — this is the single most effective fungus gnat prevention
  • Clean drains weekly with enzyme cleaner during summer months when breeding accelerates
  • Refrigerate ripe fruit rather than leaving it in a bowl
  • Rinse recycling before placing it in the bin
  • Empty indoor compost containers daily
  • Keep indoor humidity between 30-50% — a dehumidifier in damp areas reduces the conditions all three types of gnats need

When to Call a Professional

Gnats rarely require professional intervention. If you’ve correctly identified the type, addressed the breeding source, and gnats persist after two to three weeks, a professional can inspect for hidden moisture sources — inside walls, under flooring, or in areas not visible during a standard inspection.

We can match you with vetted local exterminators — no spam, no pressure.

Find a Pro Near Me →


No More Critters provides vetted pest identification and treatment information for homeowners. This site is a free service to assist homeowners in connecting with local service providers. All contractors and providers are independent. This site does not warrant or guarantee any work performed.

Filed under

fungus gnats houseplants soilgnat trap apple cider vinegargnats vs fruit flies differencehow to get rid of gnats in the house fastwhy do I have gnats in my house

More guides like this

What Attracts Spiders Inside Your House in Summer (And What Actually Keeps Them Out)

6 min read

Natural Ways to Repel Mosquitoes (No Chemicals Needed)

4 min read

Where to Put Ant Bait Stations When You Have Kids and Pets (The Right Way)

5 min read

← Back to all guides