New ebook: Before You Borrow, how lenders decide and how to get your business loan approved. Get it for $7.99 →
New ebookHow to Research Like a Wall Street AnalystFind original sources, analyze trends, build your own insightsGet it now →
Markets
Real businesses. Bigger perspective. · Thu, Nov 19, 2026News. Tools. Scores. Games. Free.The Morning Chronicle
Donate BTCOpen dDashboard

Local Guide · Pest control

Fruit Flies, Drain Flies and House Flies: Finding the Source at Home and in Restaurants

Every small-fly problem has a breeding source: rotting produce, slime inside a drain, wet soil in a houseplant, or a hidden leak. Kill the adults and they come back; remove the source and they stop. Here is how to tell the flies apart, test drains, use traps correctly, and meet Food Code expectations in Texas and Florida restaurants.

Small flies indoors almost always come from a breeding site you can find: fruit flies from ripe or fermenting produce, spills and recycling; drain flies from the slimy film inside sink and shower drains; fungus gnats from wet houseplant soil; phorid flies from garbage, leaks, or hidden decaying matter. Find the source with a bag or tape over drains, clean or remove it, then use vinegar traps or sticky traps to catch adults and confirm the problem is over. Sprays alone give only temporary relief.

Key facts

  • Small flies (fruit flies, fungus gnats, drain flies and phorid flies) do not bite, but can mechanically carry bacteria onto food; killing adults gives only temporary relief without removing the larval source (University of Kentucky).
  • A female fruit fly can lay over 500 eggs, and the life cycle can take only 8 to 10 days at about 77 degrees F (University of Kentucky).
  • Drain fly larvae feed on the wet organic film inside drains; UF/IFAS recommends scraping drains with a metal pipe brush and flushing with boiling water.
  • To check whether a drain is breeding flies, tape over it for 24 hours and look for trapped flies (UF/IFAS), or tape a clear plastic bag over it overnight (University of Kentucky).
  • Phorid flies run rapidly over surfaces instead of flying away and can breed in buried or hidden material, including leaking appliances and drains (University of Kentucky).
  • Studies of marked house flies found 60 to 80 percent recaptured within a mile of release and most of the rest within about 2 miles (University of Kentucky).
  • FDA Food Code 6-202.15 requires food establishment openings to be protected by tight-fitting windows and solid, self-closing, tight-fitting doors, or by 16-mesh screens or air curtains if kept open.
  • FDA Food Code 6-202.13: electric or stun-type insect control devices must retain the insects and may not be installed over food preparation areas.
  • Texas adopts the 2017 FDA Food Code through the Texas Food Establishment Rules (25 TAC 228); Florida's DBPR food service rule requires effective fly control and at least 16-mesh screens on ventilation windows (61C-1.004).

Why do I have flies in my house all of a sudden?

A sudden swarm of small flies means something started breeding inside or near the house 1 to 3 weeks ago. University of Kentucky entomologists note fruit flies can go from egg to adult in about 8 to 10 days at around 77 degrees F, and a single female can lay more than 500 eggs. In a warm Houston, Miami or Tampa kitchen, a few flies from one overripe banana can become a cloud in two weeks.

Common triggers:

  • Produce brought home already infested, or left out to ripen.
  • A forgotten potato or onion, or juice spilled under the refrigerator. Kentucky notes one rotting potato or onion can breed thousands of fruit flies.
  • Recycling bins with unrinsed bottles and cans.
  • A slow or rarely used drain building up slime.
  • Overwatered houseplants (fungus gnats).
  • A plumbing leak, broken drain line or dead animal in a wall (phorid flies and blow flies).
  • Large flies in winter or early spring buzzing at windows: cluster flies or blow flies (see below).

Identify the fly: a quick guide

FlyLooks likeBehaviorBreeding source
Fruit fly (vinegar fly)About 1/8 inch; tan front, dark rear; usually red eyesHovers and darts around fruit, trash, drinksRipe or fermenting produce, juice, beer, wine, vinegar; also drains, disposals, mops, rags, bottles and cans
Drain fly (moth fly)1/16 to 3/16 inch, fuzzy, moth-like wings held roof-like over the bodyWeak flier; rests on bathroom walls; moves in short hopsWet organic film inside sink, tub and shower drains; sewage; standing water with organic matter
Fungus gnatAbout 1/8 inch, slender, black, long legs and antennae, mosquito-likeFlies near windows, screens, around faces; stays near plant soilMoist potting soil and decaying organic matter
Phorid fly (humpbacked, scuttle, coffin or sewer fly)About 1/8 inch, similar to fruit flies but with a light brown or yellow humped backRuns rapidly over surfaces when disturbed instead of flying awayGarbage, clogged drains, leaking appliances, decaying matter, dead animals, animal waste, even buried sources
House flyGray, noticeably larger than fruit fliesLands everywhere, often enters through doorsGarbage, manure, pet waste, decaying organic matter outdoors
Blow flies (blue or green bottle flies)Robust, shiny metallic blue or greenLoud buzzing; attracted to lamps and lightsCarrion (dead animals) or manure
Cluster flyA little larger than a house fly, sluggish, golden hairs on the thoraxGathers at windows in fall and springLarvae develop as parasites of earthworms outdoors; adults overwinter in walls

Sources: University of Kentucky ENTFACT-621, -657, -624 and -506; UF/IFAS EDIS IN1226.

How do I get rid of fruit flies?

  1. Find every source. Check fruit bowls, potatoes and onions in pantries, the trash, recycling, the disposal, mops, rags, sponges, pet food bowls, and under appliances for spills. Kentucky lists drains, disposals, empty bottles and cans, trash containers, mops and cleaning rags as breeding sites. All fruit flies need is a moist film of fermenting material.
  2. Eat, refrigerate or discard ripe produce. Kentucky notes that fruit fly larvae feed near the surface, so damaged or overripe parts can be cut away without discarding the rest.
  3. Clean recycling and trash cans and take out garbage often. Rinse bottles and cans before they go in the bin.
  4. Test hidden sites such as drains and disposals by taping a clear plastic food bag over the opening overnight. Flies emerging from the drain will be caught in the bag (Kentucky).
  5. Trap the remaining adults with vinegar traps (below).
  6. Keep them out. Kentucky recommends tight-fitting 16-mesh screens on windows and doors. Seal home canning, wine, cider and beer containers so flies cannot lay eggs under lids.

Do vinegar traps work?

Yes, for catching adults once the source is gone. Kentucky describes two designs: a jar with a paper funnel rolled from notebook paper, baited with a few ounces of cider vinegar or a slice of banana; or vinegar in a jar with a drop of dish soap, which breaks the surface tension so flies sink. Place traps where flies gather. Traps will not end an infestation by themselves. If you keep catching flies after a week, there is still a breeding source.

Aerosol sprays are rarely necessary. Kentucky notes that unless breeding sites are removed or cleaned, the problem continues no matter how often adults are sprayed.

What are the tiny flies in my bathroom drain?

Almost certainly drain flies, also called moth flies. UF/IFAS describes them as fuzzy, moth-like flies, about 1/8 to 3/16 inch, often seen resting on bathroom walls and showers. Larvae live in and feed on the wet film of organic material that builds up inside drains. The whole cycle takes about 21 to 27 days, faster in warm weather, and females will not lay eggs on dry surfaces.

Drain flies do not bite and are not known to carry any specific disease, though UF/IFAS notes very large infestations may cause respiratory irritation from inhaled scales, and Kentucky notes they can spread bacteria because they breed in sinks and drains.

Step-by-step drain cleaning

  1. Confirm the drain. Tape clear packing tape over the drain for 24 hours (UF/IFAS) or a plastic bag overnight (Kentucky). Flies stuck to the tape confirm that drain.
  2. Remove the stopper or strainer and clean it.
  3. Scrub the inside of the pipe with a stiff metal or nylon pipe brush, as far as you can reach, to break up the slimy film where eggs are laid and larvae feed. This is the step people skip.
  4. Flush with very hot water. UF/IFAS recommends pouring boiling water down the drain to loosen material the brush missed. Check whether your pipes, especially some older plastic fittings, tolerate boiling water before pouring.
  5. Use a drain gel or enzyme cleaner made to digest organic buildup, if needed. Kentucky lists enzyme cleaners, baking soda and vinegar followed by hot water, with a brush, as effective.
  6. Repeat for a week or two, and treat every drain where flies appeared, including floor drains, overflow holes in sinks and tubs, and rarely used guest showers.
  7. Look beyond drains. Any standing water with organic matter, such as a leaking AC drip pan, can breed them. UF/IFAS says to scrape away buildup and dry the area.

Can drain cleaner kill drain flies?

Caustic drain openers clear clogs but often run straight through without removing the film coating the pipe walls, which is where larvae live. Kentucky notes pesticides are usually unnecessary once the breeding source is located and removed. Mechanical brushing plus hot water and an enzyme or gel cleaner is the method our sources describe. Never mix drain chemicals, and never pour insecticide down a drain.

What are phorid flies, and why do they point to plumbing leaks?

Phorid flies look like fruit flies but have a light brown or yellow humped back and run rapidly across surfaces instead of flying off when disturbed, according to the University of Kentucky. They have many names: humpbacked flies, scuttle flies, sewer flies and coffin flies.

What makes them hard is where they breed. Kentucky explains they infest decaying organic matter, dead animals and animal waste, can travel long distances, and can locate breeding sites buried well below ground, which is how they earned the name coffin fly. Inside homes, the most common sites to check are garbage cans, standing water from leaking appliances such as refrigerators and washing machines, and drain openings.

When phorid flies keep appearing in one bathroom or kitchen and no surface source can be found, a hidden leak is a prime suspect: a cracked drain line or sewer pipe under a slab, a failed wax ring under a toilet, or a leak inside a wall that has soaked insulation or soil. In a home built on a slab, a broken drain line can leak into the soil beneath the floor where you cannot see it. Signs that point to a leak include flies coming from cracks in floor tile or grout, around the base of a toilet or tub, or from a wall, along with musty odors or damp flooring.

What to do:

  • Use sticky traps in several spots; Kentucky notes the highest catches point toward the origin.
  • Clean and test every drain as described above.
  • Check under and behind the refrigerator, dishwasher and washing machine for leaks and drip pans.
  • If flies persist, call a licensed plumber about a leak or camera inspection of drain lines.
  • Kentucky says light traps, sanitation and insecticides can reduce numbers but will not solve a phorid fly infestation if the breeding site is not found and removed.

Fungus gnats in houseplants

Fungus gnats are small, dark, mosquito-like flies that hover near windows, screens and computer screens and stay close to potting soil. Kentucky says females lay 100 to 200 eggs on moist soil; larvae feed on organic matter, fungi and fine roots. They do not bite people.

  • Let the top of the soil dry between waterings and do not let pots sit in water.
  • Make sure pots drain well, and use sterile potting mix for new plants.
  • Move heavily infested plants outside temporarily.
  • Use yellow sticky cards to catch adults.
  • Kentucky notes a soil-applied Bt product labeled for fungus gnat larvae may be needed for difficult cases.

House flies, blow flies and what attracts flies to garbage cans

House flies breed in garbage, manure, pet waste and other wet, decaying organic matter. The University of Kentucky says house flies can easily move one to two miles; in studies of marked flies, 60 to 80 percent were recaptured within a mile and 85 to 95 percent within about 2 miles. That means a fly problem can come from a neighbor's dumpster, a pet run or a nearby farm. Flies linger where moisture and food meet their needs and few stay in dry, clean areas.

Garbage can checklist

  • Use cans with tight-fitting lids, and keep them closed.
  • Bag food waste and pet waste, and tie bags closed.
  • Rinse and dry cans regularly; residue at the bottom is a breeding site.
  • Keep outdoor cans away from doors and windows.
  • Pick up dog waste in the yard daily in warm weather.
  • Take trash to the curb promptly and compost properly or not at all near the house.

Big buzzing flies indoors

Shiny metallic blue or green flies indoors usually come from carrion or manure, Kentucky notes. A sudden crop of them indoors often means a dead rodent, bird or other animal in the attic, a wall or a crawl space. Find and remove the carcass; the flies stop when it dries out. Cluster flies, which gather at windows in fall and spring, develop in earthworms outdoors and overwinter in walls; Kentucky says they are difficult to control once inside, so seal gaps before fall.

Do fly lights work?

Light traps catch some flies and are useful as monitors, especially in commercial settings, but they are not a solution on their own. Kentucky lists light traps among tools that can reduce phorid fly numbers but will not solve an infestation without finding the breeding site. For house flies, Kentucky notes that residual sprays, fly baits and space sprays give only temporary knockdown and will not keep flies at acceptable levels without sanitation.

In food businesses, how a fly light is installed is regulated. FDA Food Code 6-202.13 requires insect control devices that electrocute or stun flying insects to be designed to retain the insect inside the device, and requires all insect control devices to be installed so they are not over food preparation areas and so dead insects and fragments cannot fall onto exposed food, clean equipment, utensils, linens or unwrapped single-service items.

How do restaurants control flies? Food Code expectations

Texas adopts the FDA Food Code by reference. The Texas Food Establishment Rules (25 TAC ch. 228), administered by the Department of State Health Services, adopt the 2017 FDA Food Code and its supplement, with Texas rules prevailing in a conflict (effective August 8, 2021). In Florida, the Department of Business and Professional Regulation's rule for public food service and lodging (61C-1.004) requires effective measures to protect against rodents, flies, roaches and other vermin, requires at least 16-mesh screens on ventilation windows unless other effective means are used, and requires pesticide use to follow Food Code Chapter 7. FDACS, which regulates groceries and convenience stores, adopts Food Code Chapters 1 through 7 (5K-4.002). Local health departments may inspect in some areas, so confirm who inspects your establishment.

Key Food Code sections for flies

SectionRequirement
6-501.111 Controlling PestsPremises must be kept free of insects and rodents by routinely inspecting incoming food and supplies, routinely inspecting the premises, using approved control methods if pests are found, and eliminating harborage. The control-methods paragraph is designated a Priority Foundation item.
6-501.112 Removing Dead PestsDead or trapped insects must be removed from control devices and the premises often enough to prevent accumulation or attraction of pests.
6-202.15 Outer OpeningsGaps sealed; closed, tight-fitting windows; solid, self-closing, tight-fitting doors. If windows or doors are kept open, protect them with 16-mesh (16 per inch) screens or properly designed air curtains.
6-202.13 Insect Control DevicesStun or electrocution devices must retain insects; no devices over food prep; nothing may fall on exposed food or clean equipment.
5-501.113 Covering ReceptaclesIndoor refuse receptacles with food residue covered when not in continuous use and after filling; outdoor receptacles with tight-fitting lids or doors.
5-501.115 Refuse AreasRefuse storage areas and enclosures kept clean and free of unnecessary items.

Are flies a health code violation?

The Food Code requires the premises to be maintained free of insects, and an inspector who sees live flies, fly breeding, uncovered trash, propped-open doors without screens or air curtains, or a zapper over the prep line can cite those conditions. How it is scored depends on the item and the inspector's findings. A small number of flies that came in through a delivery door is handled differently from flies breeding in a floor drain. Kentucky notes fruit flies are considered unsanitary and can cause food and health care facilities to shut down for cleaning.

A restaurant fly program

  1. Floor drains, floor sinks and under-equipment areas cleaned and brushed on a schedule; enzyme or drain-gel treatment where approved.
  2. Bar areas: fruit garnish, syrup, beer lines, bottle bins and floor mats are classic fruit fly sources. Rinse bottles, clean mats and drains nightly.
  3. Produce rotated and stored properly; damaged produce discarded.
  4. Dumpster pads cleaned, lids closed, dumpsters away from doors.
  5. Doors self-closing and tight; air curtains or screens where doors open often.
  6. Fly lights with glue boards placed away from food prep and entry views, boards changed and catches logged.
  7. A licensed pest control company on contract, with service reports kept for inspectors. In Texas, restaurants are excluded from the 1951.459 licensed-provider rule that covers hotels and food-processing plants, but anyone doing pest control for pay still needs a TDA license. In Florida, FDACS says restaurant employees who apply pesticide concentrates or restricted-use products need limited certification.

See our restaurant pest control and health inspection guide and commercial pest control guide.

How to choose a provider

  • Identify the fly: fruit fly, drain fly, fungus gnat, phorid fly, house fly or blow fly.
  • Tape a bag or clear tape over each suspect drain overnight to test it.
  • Brush the inside of breeding drains and flush with hot water; repeat for 1 to 2 weeks.
  • Eat, refrigerate or discard ripe produce; check potatoes, onions and spills.
  • Rinse recycling and clean trash cans; keep lids closed.
  • Let houseplant soil dry between waterings.
  • Use vinegar traps or sticky traps to monitor, not as the only fix.
  • If phorid flies persist, check appliances for leaks and call a plumber about drain lines.
  • Find and remove dead animals if blow flies appear.
  • Restaurants: self-closing doors, screens or air curtains, covered refuse, fly lights away from prep areas.

Related pest control guides

Pest control by state and city

Questions people ask

Do fruit fly traps work?

Yes, for catching adults. A jar with a paper funnel baited with cider vinegar or a slice of banana, or vinegar with a drop of dish soap, catches fruit flies well, according to the University of Kentucky. But traps do not stop new flies from emerging. If you are still catching flies after a week, keep looking for the breeding source.

How long does it take to get rid of fruit flies?

Once every breeding source is removed, numbers usually fall within one to two weeks as the last adults are trapped and die. Fruit flies can complete their life cycle in about 8 to 10 days in warm conditions, so any missed source will produce a new wave within that time. Recheck drains, trash, recycling and produce if they return.

Does bleach kill drain flies?

Pouring bleach down a drain usually does not remove the film coating the pipe walls where drain fly larvae live, and it can be dangerous if mixed with other cleaners. Scrubbing the pipe with a brush and flushing with very hot water, followed by an enzyme or gel drain cleaner, is the method extension entomologists describe. Never mix drain chemicals.

Why do I have flies but no rotting food?

Check drains, garbage disposals, recycling, mops and rags, houseplant soil, AC drip pans and under appliances. If flies are fuzzy and on bathroom walls, they are drain flies. If they run on surfaces and keep coming from one area, they may be phorid flies breeding in a hidden leak or decaying material, possibly under a slab or in a wall. Big shiny flies suggest a dead animal.

Are drain flies harmful?

They do not bite and are not known to transmit specific diseases, according to UF/IFAS. Because they breed in drains and sewage, they can carry bacteria to surfaces, and very large infestations may cause respiratory irritation from shed scales. In a home they are mainly a sign that drains need cleaning.

Can flies close a restaurant?

Flies are a common inspection finding, and the FDA Food Code, adopted in Texas and applied in Florida food rules, requires premises to be kept free of insects. A heavy infestation, especially flies breeding on site, can lead to serious citations. The University of Kentucky notes fruit flies are considered unsanitary and can cause food and health care facilities to shut down for cleaning. Fix breeding sources and document pest control service.

Sources

This guide was written by our editorial team from the public sources listed above. It is general information, not legal advice; confirm licensing and terms directly with any provider.

New ebook from The Company ChronicleHow to Research Like a Wall Street AnalystFind original sources, analyze trends, and build your own insights. 36 pages with worksheets.Get the ebook · $29Instant PDF download

Business Spotlight

Want us to publish your business?

Our team writes and publishes articles about your business on The Company Chronicle every month, with a link to your website. Plans from $30 a month, cancel anytime.

Publish with us

The Chronicle directory

What are you into?

The Chronicle, coast to coast

Every corner has a story.

The full Chronicle illustration