Quantra Pest ControlGet a quote

Flies & Gnats: Identify, Trap and Remove Them (2026)

Flies & gnats are small flying insects that breed in food residue, damp soil, drain film and garbage, and each type needs a different fix. This guide helps you identify the insect, then splits the work by place: kitchen, houseplants, drains, garbage cans, food businesses and greenhouses.

Key points

  • Most flies & gnats indoors come from one hidden breeding site, so finding that spot matters more than spraying adults.
  • Fruit flies breed in fermenting food, fungus gnats in wet potting mix, and humpbacked and moth flies in drain scum.
  • Traps catch adults and show progress, but they do not stop breeding unless you also remove the food or moisture.
  • Read every pesticide label before use, and call a licensed pest control technician when the problem returns after cleaning.
TermMeaningWhy it matters
GnatA common name for many small flies, not one species.The right fix depends on which insect you actually have.
Fruit flyA fly about 1/8 inch long with bright red eyes.It breeds in ripe, fermenting food and spreads fast.
Fungus gnatA small fly found around overwatered indoor plants and wet conditions.Watering habits usually decide whether it stays.
Humpbacked flyA fly about 1/8 inch long that breeds in drain and sewer scum and around garbage cans.Cleaning the scum removes the breeding site.
Moth flyA small, fuzzy fly that is not a true gnat.It points to film inside drains.
Shore flyA fly that feeds on algae, unlike fungus gnats.It signals standing water and algae, often in greenhouses.

Flies & gnats: how to tell the types apart

Fruit flies, humpback flies and moth flies are not considered true gnats by entomologists, but most people use the word for all of them.

TypeWhere you see itUsual breeding site
Fruit flyKitchen counters, fruit bowls, trash areasOverripe produce, sticky spills, dirty garbage cans
Fungus gnatAround houseplants, windows, lampsConstantly wet potting mix
Humpbacked flyNear drains, sewer lines, garbage cansDrain and sewer scum, residue around bins
Moth flyBathrooms, basements, floor drainsFilm inside little-used drains
Shore flyGreenhouses, indoor gardensAlgae and standing water on or under benches

Flies & gnats in the kitchen

Kitchen flies & gnats are usually fruit flies, and they need only a small amount of fermenting food.

  1. Check fruit bowls and counters daily for overripe produce, because fruit flies, about 1/8 inch long with red eyes, lay eggs on fermenting fruit.
  2. Refrigerate ripe produce or seal it in containers, since the fruit fly life cycle can finish in 8-10 days at room temperature.
  3. Rinse bottles and cans before they go into the recycling bin, and wipe the sticky rings that juice, wine and soda leave behind.
  4. Remove kitchen garbage, plastic liner included, at least twice per week, and clean the receptacle at least twice per month.
  5. Scrub the sink strainer, disposal rim and the cabinet floor under the sink, where damp food film supports breeding between cleanings.
  6. Dry dishcloths, sponges and mop heads after each use, because soured, damp fabric holds residue that keeps a small population going.

Flies & gnats around houseplants

Fungus gnats are often found where indoor plants are overwatered, so watering habits come first.

  1. Let the top of the potting mix dry between waterings, which is a key non-chemical control for fungus gnats in indoor pots, though it may not eliminate them alone.
  2. Empty saucers and cache pots within an hour of watering, so roots and the mix surface are not sitting in pooled water.
  3. Look for adults resting on the soil or flying up when you water, and treat every pot in the group, not only one.
  4. Repot a heavily infested plant into fresh, barely moist mix, and seal the old mix in a bag before it goes outside.
  5. Lay yellow sticky cards flat on the soil or stake them upright, then count catches weekly to see whether numbers are falling.
  6. Close opened bags of potting mix tightly and store them dry, because a damp, open bag can become a new source of gnats.

Flies & gnats near drains

Humpbacked flies and moth flies breed in the scum lining drains, so rinsing the pipe alone rarely solves it.

  1. Tape a clear cup upside down over the drain overnight, and check whether small flies are trapped inside to confirm the source.
  2. Scrub the drain walls with a stiff brush, since humpbacked flies breed in drain and sewer scum rather than in clear water.
  3. Run water through seldom-used sinks, tubs and floor drains every week, so the trap stays filled and film does not build up.
  4. Watch for slow drains, odors or leaks, because flies that return after cleaning may point to a pipe fault for a licensed plumber.
  5. Use an enzyme-based drain product made for organic buildup, follow the label, and never mix drain products because fumes can be dangerous.
  6. Empty and wash refrigerator drip pans, condensate trays and mop buckets, which collect moisture and film that small flies use as breeding sites.

Flies & gnats around garbage cans

Garbage areas feed both fruit flies and humpbacked flies, so the can itself needs regular cleaning.

  1. Take out garbage, plastic liner included, at least twice per week, because residue left in warm bins keeps flies breeding.
  2. Wash cans inside and out at least twice per month with hot soapy water, then let them dry before adding a new liner.
  3. Replace cans with cracks or holes and lids that no longer close, since flies reach food residue through small gaps.
  4. Bag wet food scraps before they go in the can, and freeze meat or fish scraps until pickup day.
  5. Set outdoor cans on a hard surface away from doors and windows, so adults leaving the bin are less likely to drift inside.
  6. Rinse pet food cans and wipe spills on the bin pad, because humpbacked flies often breed around garbage cans where residue builds.

Flies & gnats in restaurants and food businesses

Commercial kitchens have more drains, more waste and more deliveries, so routines need to be written down.

  1. Walk the kitchen at close and list every spot with standing water or food residue, including floor drains, mop sinks and gaps under equipment.
  2. Brush-clean floor drains on a set schedule and log it, since scum inside drains supports humpbacked and moth flies.
  3. Keep dumpster lids shut, keep dock doors closed between deliveries, and ask your hauler how often the containers are cleaned.
  4. Check produce deliveries for overripe or damaged items, and store fruit and vegetables chilled and off the floor.
  5. Fit door sweeps and tight screens on exterior doors and windows, so flying adults from outside have fewer ways to get in.
  6. Record sightings with dates and locations for your technician, and check with your local health department about pest rules for food businesses.

Flies & gnats in greenhouses

Greenhouses can host fungus gnats and shore flies together, and the two have different causes.

  1. Level benches and fix drainage so water does not sit on or beneath them, because shore flies thrive where excess water collects.
  2. Scrape algae from walkways, bench legs, trays and floors, since shore flies feed on algae, unlike fungus gnats.
  3. Water by plant need rather than by schedule, and let the top of the growing mix dry between waterings to starve fungus gnat larvae.
  4. Hang yellow sticky cards at plant height and count them weekly, so you notice a rise before adults are everywhere.
  5. Identify the insect before acting, because wet media points to fungus gnats while algae and standing water point to shore flies.
  6. Inspect incoming plants and trays for adults and soggy media, and keep new stock separate for a week or two.

Flies & gnats traps that work as monitors

A trap tells you how many adults are around, but it will not stop eggs from becoming new flies.

  1. Fill a jar with a splash of apple cider vinegar and a drop of dish soap, then cover it with wrap poked with small holes.
  2. Put each trap next to the source, such as the fruit bowl or trash can, and replace the liquid every few days.
  3. Use yellow sticky cards for fungus gnats near pots, and swap them once the surface is covered with insects.
  4. Treat catches as a clue: if traps keep filling after a week, keep searching for the breeding site you missed.
  5. Keep homemade traps off food prep surfaces and away from children and pets, because soapy liquid is not safe to drink.
  6. Choose a commercial trap that matches your insect, and follow label directions exactly when the product contains an insecticide.

Flies & gnats: do it yourself or call a professional

SituationStart withCall a licensed technician when
A few fruit flies in the kitchenRemove ripe food, clean the bin, set a trapNumbers stay high after two weeks of cleaning
Gnats around a few plantsDry the top of the mix, add sticky cardsGnats appear in many rooms or in large plant collections
Flies at drainsScrub drain walls and refill traps with waterThe flies return or you suspect a damaged line
Flies in a businessDaily cleaning log and sealed waste areasYou cannot locate the source or customers see the flies

Flies & gnats cost

Prices vary by job, so get a written quote after an inspection rather than relying on a general figure.

  1. The insect type affects the work, because a fruit fly problem in one kitchen is often simpler than drain flies tied to a damaged line.
  2. The size of the property and the number of rooms, drains and waste areas to inspect change how long a visit takes.
  3. A hidden breeding site, such as a wall leak or a crawl space with standing water, adds time to the search.
  4. Moisture or plumbing repairs belong to other trades, and their cost is separate from the pest control work.
  5. Homes and businesses differ, since a food business may need regular monitoring visits and written records of what was found.
  6. Access matters, because locked dumpsters, sealed floor drains and cluttered storage rooms make inspection slower.

Best practices for flies & gnats control

Find the breeding site first

Adults you see are only part of the problem. Look for ripe food, wet potting mix, drain film, damp garbage and standing water, and clean the one place where larvae are actually developing.

Remove food and moisture together

Flies need a food source and moisture. Dry the top of potting mix, wipe spills, empty drip trays and take out garbage twice per week, so the breeding site does not refill.

Clean on a schedule

One deep clean helps for a week or two. Put drains, garbage cans, produce storage and plant saucers on a repeating list, and wash cans at least twice per month.

Seal the entry points

Outdoor flies come in through gaps. Repair torn screens, fit door sweeps, close doors between deliveries and keep exterior bins away from entrances, so fewer adults reach your kitchen.

Read the pesticide label

Pesticide labels carry legal directions. Use only products labeled for your site and insect, follow the directions exactly, and check your state's rules, since restricted-use products require a certified applicator.

Frequently asked questions

Are gnats and fruit flies the same insect?

No. The word gnat covers many small flies, and fruit flies, humpback flies and moth flies are not true gnats.

Fruit flies have red eyes and favor fermenting food, while fungus gnats favor wet potting mix.

How fast do fruit flies multiply?

According to the University of Maryland Extension, fruit flies can complete their life cycle from egg to adult in 8-10 days at room temperature. A small group can become a large one within a couple of weeks if food stays available.

Why do I have gnats around my houseplants?

Fungus gnats are often found in overwatered indoor plants and other wet conditions. Let the top of the potting mix dry between waterings, empty saucers, and use yellow sticky cards to monitor adults while the mix dries out.

Where do the small flies near my drain come from?

Humpbacked flies, about 1/8 inch long, often breed in drain and sewer scum and around garbage cans. Moth flies also use drain film.

Scrubbing the pipe walls and keeping seldom-used drains filled with water helps reduce them.

Will traps get rid of flies and gnats?

Traps catch adults and help you judge progress, but they do not remove the larvae in soil, drains or garbage. Use them alongside cleaning, drying and waste removal, and keep searching if catches continue after a week.

When should I call a licensed pest control technician?

Call when flies return after thorough cleaning, when you cannot find the source, or when the insects appear in a food business. Persistent drain flies may also need a licensed plumber to check for leaks or damaged lines.

Next step: have Quantra Pest Control check your flies & gnats

If cleaning, drying and trapping have not stopped the insects, the breeding site may be somewhere you cannot easily reach. We can send a licensed pest control technician to inspect kitchens, drains, bins and plant areas.

Tell us what you see and where, and we will follow the product label and local rules. Request a quote for your flies & gnats problem.

Related guides

Request a quote

Tell us what you need and we will get back to you.