In this guide
- Fruit Flies vs Drain Flies at a Glance
- How to Identify Fruit Flies
- How to Identify Drain Flies
- What About Fungus Gnats?
- How to Find Where the Flies Are Breeding
- How to Get Rid of Fruit Flies
- How to Get Rid of Drain Flies
- Are Fruit Flies or Drain Flies Harmful?
- When to Call a Professional
- Frequently Asked Questions
- The Bottom Line
Tiny flies hovering over the sink or the fruit bowl usually get lumped together as “fruit flies.” Often that’s right, but sometimes the culprit is a drain fly breeding in the slime inside your pipes, and the fix for one does little for the other. This guide to fruit flies vs drain flies shows you how to tell them apart in a few seconds, how to find where they are breeding, and what actually gets rid of each.
Quick answer
Fruit flies are about 1/8 inch long, tan in front and dark at the rear, usually with red eyes, and they hover around ripe fruit, trash and spilled drinks. Drain flies (also called moth flies) are about 1/10 inch, gray and fuzzy, with hairy, moth-like wings held roof-like over the body. They sit on walls near sinks, tubs and floor drains and make short, hopping flights. Fruit flies breed in fermenting food; drain flies breed in the gelatinous film inside drains. Remove the breeding source and the flies stop: toss or refrigerate overripe produce for fruit flies, and scrub the slime out of the drain for drain flies.
Table of Contents
Fruit Flies vs Drain Flies at a Glance
Both are small and show up in kitchens and bathrooms year-round. Here are the differences:
| Feature | Fruit fly | Drain fly (moth fly) |
|---|---|---|
| Size | About 1/8 inch | About 1/10 inch |
| Look | Tan front, darker rear; usually red eyes; clear wings | Gray, fuzzy body; broad, hairy wings that look like a tiny moth |
| Wings at rest | Folded flat over the back | Held roof-like over the body |
| Behavior | Hovers and circles around food, drinks and trash | Rests on walls, ceilings and sinks; weak, short hopping flights |
| When swatted | Nothing unusual | Tends to break into a puff of fine “dust” |
| Breeds in | Overripe or fermenting produce, spills, recycling, garbage, rags and mops (sometimes drains) | Gelatinous slime in drains, rarely used toilets, floor drains and appliance drain pans |
| Egg to adult | About a week | About 10 to 15 days at around 70°F |
| Main fix | Find and remove the fermenting food source | Scrub the organic film out of the drain or trap |
If you only remember one thing: red eyes and hovering near food means fruit fly; fuzzy wings and sitting on the bathroom wall means drain fly.
How to Identify Fruit Flies

The University of Kentucky’s entomology department describes fruit flies as about 1/8 inch long, usually with red eyes, with the front of the body tan and the rear black. Their wings are clear and lie flat over the back. They circle over fruit bowls, trash, recycling and open drinks.
Fruit flies multiply fast. According to the same University of Kentucky fact sheet, a female can lay about 500 eggs, and the whole cycle from egg to adult takes about a week.
Ripe fruit isn’t the only place they breed. The University of Kentucky lists fermenting or overripe produce, drains, garbage disposals, empty bottles and cans, trash containers, mops and cleaning rags. A single forgotten potato or onion in the back of the pantry, or juice spilled under the refrigerator, can produce thousands of flies.
How to Identify Drain Flies

Drain flies are also called moth flies, filter flies or sewage flies. Penn State Extension describes them as about one-tenth of an inch long, with a dark gray body and lighter wings, both densely covered with long hairs that give the fly a fuzzy, moth-like look. NC State Extension notes that they hold their wings roof-like over the body when resting.
Their behavior is the giveaway. Drain flies are weak fliers. The University of Kentucky says they usually sit on walls or ceilings and make short, hopping flights, and that because their wings are covered in scales and hairs, they tend to break apart into a cloud of fine dust when swatted.
Drain flies breed in the gelatinous film of organic matter that coats the inside of drains. The University of Kentucky lists infrequently used toilet bowls and tanks, sink drains, basement and garage floor drains, and the drip pans under refrigerators. NC State adds air-conditioner condensate lines, septic systems and moist, dirty garbage containers. Eggs are laid in masses of 10 to 200 in that slime, hatch in less than two days, and the larvae mature in about 9 to 15 days, according to NC State. Development continues year-round indoors.
Sudden drain flies in a room you rarely use?
A guest bath, basement floor drain or seldom-flushed toilet is a common source. If you also notice a damp cabinet floor or musty smell, check for a slow leak: our guide to signs of a water leak in a wall explains how to confirm one.
What About Fungus Gnats?
There’s a third common tiny fly that gets confused with both: the fungus gnat. Extension guidance for schools and food service (eXtension) distinguishes fungus gnats by their long legs and long, segmented antennae. They look like tiny mosquitoes and hang around houseplants.
Fungus gnat larvae feed on decaying organic matter in damp soil, so the usual source is overwatered potted plants. Letting the soil dry out between waterings is the main fix. And if you’re seeing larger, sluggish flies on sunny windows in fall and winter, those are more likely cluster flies, which have a completely different source.
How to Find Where the Flies Are Breeding
Killing adults does little while the breeding site remains, so finding the source comes first.
- Check the obvious food sources first. Look in fruit bowls, under the sink, in recycling bins, at the bottom of trash cans, in potato and onion bins, and under and behind the fridge and stove for spills.
- Tape a clear bag over a suspect drain. The University of Kentucky suggests taping a clear plastic food storage bag over a drain or garbage disposal opening overnight. If flies are in the bag in the morning, that drain is a breeding site.
- Use the cup test for drain flies. NC State and the University of Kentucky both suggest turning a clear cup or container upside down over the drain, with the inside lightly coated in petroleum jelly or vegetable oil. Check it daily for a few days. Flies emerging from the drain get stuck to the coating.
- Don’t forget overflow openings and unused drains. Penn State suggests taping a plastic bag over a sink’s overflow outlet as well, since slime builds up there too.
Test one drain at a time; often only one is producing flies.
How to Get Rid of Fruit Flies
The University of Kentucky is blunt about it: fruit flies can’t be controlled with insecticides alone. The steps that work are mostly cleanup.
- Remove the breeding food. Throw out overripe, damaged or fermenting produce. Since larvae feed near the surface, the damaged part of otherwise good fruit can be cut away. Keep ripe fruit in the refrigerator until the problem is gone.
- Clean the hidden spots. Wipe up spills under appliances, rinse bottles and cans before they go into recycling, empty and wash the recycling bin, and replace or launder sour mops and dishrags.
- Take trash out often and keep a tight lid on indoor bins.
- Trap the adults that remain. The University of Kentucky describes a simple trap: a jar with a few ounces of cider vinegar (or a slice of banana) and a paper funnel in the top. Flies get in but rarely find their way out. Traps help clear the adults but won’t solve the problem on their own.
- Check your screens. The University of Kentucky recommends tight-fitting 16-mesh window screens. Fruit flies can get through standard screens, so finer mesh helps in late summer when outdoor numbers are high.
Once the source is gone, no new flies can develop, so keep trapping and the remaining adults will fade out. If you store flour, grains or dried goods and see small moths or beetles rather than flies, that’s a different problem, covered in our guide to pantry moths and weevils.
How to Get Rid of Drain Flies
With drain flies, the goal is to remove the organic film the larvae live in.
- Scrub the drain mechanically. The University of Kentucky calls cleaning pipes and traps to remove the slime the most effective control. Penn State recommends a stiff wire brush; NC State suggests a stiff, long-handled drain brush, or a plumber’s snake for clogs. Include the overflow.
- Use a biological (enzyme or bacterial) drain cleaner. Penn State notes that bacterial and enzyme products break down the scum, and eXtension guidance calls biologically based drain cleaners particularly effective. Follow the label; they work over days.
- Flush with hot water. Hot or boiling water poured down the drain may give short-term control, according to the University of Kentucky, but it won’t solve the problem without scrubbing. Don’t pour boiling water into PVC or into a toilet bowl; use very hot tap water there.
- Clean the other sources. Run water in rarely used drains and flush seldom-used toilets regularly. Clean the drain pan under the refrigerator and check air-conditioner condensate lines.
- Re-test. Put the cup or bag back over the drain for a few days. If flies still emerge, repeat the scrubbing or look for a second source.
Safety note
The University of Kentucky warns not to pour insecticides down drains. And never mix cleaners: NC State cautions that bleach used after a caustic drain cleaner can produce toxic chlorine gas. Use one product at a time, flush with plenty of water in between, and keep the room ventilated.
NC State notes that fly sprays give only temporary relief while the film remains.
Are Fruit Flies or Drain Flies Harmful?
Neither bites people. Both are mainly nuisance pests, but they aren’t completely harmless. The University of Kentucky notes that fruit flies can contaminate food with bacteria and other disease-producing organisms, and eXtension guidance says drain flies can carry bacteria and other microorganisms from their breeding sites to food and food-contact surfaces. NC State adds that because drain flies often come from unsanitary conditions, disease transmission is possible.
Discard food they’ve been feeding on and wash counters after cleaning a drain. For a broader look at how household pests affect health, see our pest control at home guide.
When to Call a Professional
Most fruit fly and drain fly problems are solved with cleanup. Call a plumber or pest control professional if:
- drain flies keep coming back after thorough scrubbing and enzyme treatment, which can point to a hidden source such as a broken pipe under a slab, a damaged sewer line or a dirty floor drain trap you can’t reach;
- you have a sewage odor along with the flies;
- flies come from a crawl space, under the house or behind walls where you can’t clean;
- you run a commercial kitchen or other food business, where professional drain cleaning and inspections may be required.
Penn State notes that pest management companies offer drain-cleaning services; a good provider focuses on the source, not just spraying.
Frequently Asked Questions
How can I tell if I have fruit flies or drain flies?
Can fruit flies live in drains too?
Does apple cider vinegar work on drain flies?
Will pouring bleach down the drain kill drain flies?
How long does it take to get rid of them?
The Bottom Line
When it comes to fruit flies vs drain flies, the quickest test is a close look: red eyes and hovering around food mean fruit flies, while fuzzy, moth-like flies sitting on the bathroom wall mean drain flies. The fix follows the source. Clear out overripe produce, spills and dirty recycling for fruit flies, and scrub the slime out of the drain for drain flies. Traps and sprays only catch adults; cleaning the breeding site ends the problem.
Sources
- University of Kentucky Entomology: Fruit Flies (ENTFACT-621)
- University of Kentucky Entomology: Drain Flies or Moth Flies (ENTFACT-615)
- Penn State Extension: Moth Flies in the Home
- NC State Extension: Drain Flies
- eXtension (via Maine Board of Pesticides Control): Structural and Public Health Pests: Flies (Drain Flies, Fruit Flies, Fungus Gnats)
