Pest Control for Home: Identify, prevent & control any home pest — honestly.

How to Get Rid of Fruit Flies & Gnats

A practical, research-backed guide to how to get rid of fruit flies & gnats — how to identify the problem, prevent it, and control it safely and effectively, with honest product recommendations.

How to Get Rid of Fruit Flies & Gnats

Those tiny flies in your kitchen are usually one of three pests. Telling them apart tells you where to look. Get the identification right first, because the fix follows the source, not the swarm.

Fruit Flies, Fungus Gnats, or Drain Flies? Identify First

Fruit flies (the genus Drosophila) are small and tan, often with red eyes. They swarm ripe or fermenting produce, spills, and drains. Fungus gnats are darker and more delicate, and they hover around houseplants because their larvae live in damp soil. The drain fly is fuzzy and moth-like, and it breeds in the gunk inside a kitchen drain.

Telling Gnats Fruit Flies and Drain Flies Apart

Telling gnats fruit flies and drain flies apart saves days of frustration. Fruit flies love produce. Fungus gnats love soil. Drain flies love slime. The trio of fruit flies gnats and drain flies confuses nearly everyone at first.

Get Rid of Fruit Flies Fast and Naturally

To get rid of fruit flies fast, remove what they breed in. To do it naturally, skip sprays and lean on cleaning and traps. Chasing adults with a swatter does nothing if the source stays.

Fruit Flies Kitchen Swarms and the Bin

Fruit flies kitchen swarms usually trace to one spot. Check overripe fruit, the potato and onion bin, and sticky residue in the trash and recycling. Clean under and behind appliances. A kitchen drain is a common hidden source; scrub it with a pipe brush, flush with hot water, and use an enzyme drain cleaner.

Fruit Flies Indoors and Fruit Flies Inside

Fruit flies indoors almost always mean a breeding site indoors, not a screen problem. Fruit flies inside cabinets and drains keep the swarm going. Find the source and remove it. Everything else is cleanup.

Kill Gnats Fast, Naturally, and Overnight

To kill gnats fast, dry out the soil, because fungus gnat larvae need moisture. To treat gnats naturally, let houseplant topsoil dry between waterings and avoid overwatering. You may knock gnats overnight down with sticky traps, but the soil fix is what ends it.

Do Gnats Quickly Multiply?

Gnats quickly multiply in wet potting mix. One overwatered pot can seed a room. Bottom-water plants and top the soil with a dry layer to break the cycle.

Fruit Flies Fungus Gnats: Same Traps?

Fruit flies fungus gnats and drain flies respond to different traps, so match the trap to the pest.

Fruit Flies Gnats and Drain Flies in One Cup

An apple cider vinegar trap is cheap and effective for fruit flies. Put a little cider vinegar in a cup, add a drop of dish soap, and cover with poked plastic wrap. Fruit flies gnats and even a few strays sink in. Sticky traps near plants catch gnats indoors. Store-bought traps like Terro use the same attract-and-capture idea.

What Gnats Reddit Threads Recommend

Searching gnats reddit threads, one theme repeats: find the source. Traps are the finishing move, not the cure. If flies keep coming, a source is still hiding.

Do You Need a Flying Insect Spray? Usually Not

Fruit flies are one of the few pests where you can almost always skip pesticides. Sanitation plus traps solves most cases, which is better for a kitchen where food is prepared.

If you do reach for a household flying insect spray for a heavy swarm, choose one labeled for the use and area, and read and follow the EPA product label exactly. Keep it away from food, dishes, and produce, and never spray near food. Keep any product away from children and pets. If someone is exposed or a product is swallowed, contact Poison Control at 1-800-222-1222, or your veterinarian for a pet.

For fungus gnats, a targeted Bti (Bacillus thuringiensis israelensis) product for soil, or simply letting the soil dry, beats spraying the air.

When the Infestation Won't Go Away

A fruit fly infestation that persists despite cleaning almost always means an overlooked source. Check a forgotten potato at the back of a cabinet, an unrinsed recycling bin, a drip tray under an appliance, or a drain you have not cleaned.

In rare cases, a spill inside a wall or floor can sustain flies, and a truly persistent problem may warrant a professional. If flies come from a shared drain line in an apartment, notify your property manager. For most homes, patience and detective work do the job. Identify the pest, remove the source, add a trap, and the swarm ends. See our natural and pet-safe pest control guide for more low-toxicity kitchen tactics.

Rather hire a professional? Browse local pest control companies by city and verify each company's state license before you hire.

Go Deeper

Detailed companion guides for how to get rid of fruit flies & gnats.

Return to Parent Master Guide

Explore all sub-categories and expert recommendations in our complete DIY Treatments Master Pillar.