How to Get Rid of Fruit Flies: Find the Source and Stop Them

If you want to know how to get rid of fruit flies, the short answer is that you have to find and remove the place they are breeding. Fruit flies lay their eggs in moist, fermenting material, and a single forgotten potato or a sticky recycling bin can keep a kitchen supplied for weeks.

TL;DR

  • Find the breeding source first: overripe produce, rotting potatoes or onions, unrinsed recycling, trash can residue, sour mops, and slimy drains are the usual suspects.
  • Trap adults with a bowl of apple cider vinegar plus a few drops of dish soap, or a jar with a paper funnel, while you clean.
  • Scrub drains with a stiff brush; boiling water or bleach alone leaves the slime layer that larvae live in.
  • Sprays kill only the adults in the air, not the larvae, so new flies keep appearing until the source is gone.
  • The life cycle runs about 8 to 11 days, so expect a week or so of stragglers after you clean up.

Table of Contents

Is It Really a Fruit Fly?

Three tiny flies show up in kitchens and bathrooms, and each breeds somewhere different.

Fruit Flies

Fruit flies (also called vinegar flies) are roughly 1/8 inch long, with a tan front half, a darker rear, and usually bright red eyes. They hover around the fruit bowl, trash, open wine or beer, and the sink.

Drain Flies

Drain flies, also called moth flies, look fuzzy and gray to dark, like a miniature moth. Their hairy wings fold over the body like a roof when they rest, and they fly weakly in short hops of a few feet.

Fungus Gnats

Fungus gnats are slender, dark flies with long legs and long antennae. The giveaway is houseplants: they rise from the pot when you lift or bump it, and you may see them walking on the soil. They breed in overwatered potting soil, not in food.

One complication is that fruit flies also breed in drains, so a fly coming from the sink is not automatically a drain fly. Look at the body shape: smooth and red-eyed means fruit fly, fuzzy and moth-like means drain fly.

Where Fruit Flies Breed

Female fruit flies lay eggs on the surface of anything moist and fermenting. A female can lay around 500 eggs, so one hidden source produces a lot of flies.

Overripe Produce on the Counter

Bananas, tomatoes, melons, grapes, squash, and peaches left out to ripen are the classic source. Flies can also arrive on produce from the store.

Potatoes and Onions in Storage

This is the source people miss most often. A single soft potato or onion in the bottom of a bag, in a pantry bin, or at the back of a closet can breed flies for weeks.

Recycling and Trash Cans

Beer cans, soda cans, wine bottles, juice containers, and especially ketchup bottles hold enough residue to raise flies. Liquid that leaks through a trash bag and dries in the bottom of the can is another common site.

Drains and the Garbage Disposal

Sink, tub, and floor drains build up a gelatinous film of food and soap scum above the water line, and fruit flies will lay eggs in it. Disposals collect the same residue, and rarely used or slow drains are the likeliest hosts.

Mops, Rags, and Spills

A damp mop head, sponge, dish rag, or bucket that smells sour is a breeding site. So is fruit juice that ran under the refrigerator, food swept under appliances, or a refrigerator drain pan with standing water.

Symptoms, Causes, and Who Should Fix It

SymptomLikely causeDIY or pro?
Red-eyed flies around the fruit bowlOverripe or damaged produceDIY: toss or refrigerate produce, set traps
Flies near the pantry or a closet, no fruit outRotting potatoes or onionsDIY: sort stored produce, clean the bin
Flies clustered around the trash or recyclingResidue in cans, bottles, or the bin bottomDIY: rinse containers, wash the bin
Flies around the kitchen sink with no food nearbySlime in the drain or disposalDIY: bag test, then scrub the drain
Fuzzy, moth-like flies on bathroom wallsDrain flies in sink, tub, or shower drain filmDIY: brush and clean the drain and trap
Dark gnats rising from houseplantsFungus gnats in overwatered soilDIY: let soil dry, use yellow sticky traps
Flies keep coming after every likely source is cleanHidden source, such as a floor drain, broken pipe, or wet area under the floorPro: pest control or plumber

How to Get Rid of Fruit Flies, Step by Step

Tools and supplies: apple cider vinegar, liquid dish soap, small bowls or jars, a sheet of paper and tape, clear plastic sandwich bags, a stiff long-handled drain brush, rubber gloves, hot soapy water, and an enzyme or microbial drain cleaner (optional).

Step 1: Remove Every Food Source You Can See

Eat, refrigerate, or toss ripe produce. Cut away bruised or split spots on anything you keep, since larvae feed near the surface. Take the trash and recycling outside today.

Step 2: Hunt Down Hidden Sources

Check potato and onion bins, the pantry floor, under the refrigerator and stove, and the bottom of the trash can. Rinse every can and bottle in the recycling, or bag them and take them out. Toss or launder sour-smelling mop heads, sponges, and rags, and wash the trash can with hot soapy water.

Step 3: Set Vinegar Traps for the Adults

Pour about half an inch of apple cider vinegar into a small bowl and add a few drops of dish soap. The soap breaks the surface tension, so flies that land sink and drown instead of drinking and leaving. Place a trap wherever you see flies, and dump and refill it every few days, because old, evaporating vinegar becomes a breeding spot for other small flies.

For a funnel trap, roll a sheet of paper into a cone with a small opening at the tip, tape it, and set it in a jar with a few ounces of vinegar. Leftover wine or a very ripe banana also works as bait.

Step 4: Test the Drains

Before bed, tape a clear plastic sandwich bag over the drain opening, or turn a cup smeared inside with petroleum jelly upside down over it. Flies inside the bag mean that drain is breeding them; test each drain near where you see flies.

Step 5: Scrub the Drain, Not Just Flush It

Wear gloves and pull out the stopper or strainer. Push a stiff long-handled brush down the pipe and scrub the walls to break up the slime film, then run hot water to rinse. Pouring boiling water helps loosen thick buildup, but it is not a substitute for scrubbing.

If a drain is also slow, clear the clog too; our guide to fixing a sink that drains slowly covers cleaning the P-trap with a bucket underneath. An enzyme or microbial drain cleaner used regularly helps keep the film from coming back. If the drain also smells, the same buildup is usually the culprit, and our guide on getting rid of drain smell walks through the rest.

Safety: Never mix bleach with a caustic drain cleaner or with ammonia. Bleach after a caustic cleaner can release chlorine gas, which is dangerous to breathe.

Step 6: Clean the Garbage Disposal

Turn the disposal off at the wall switch, and if it is plugged in under the sink, unplug it before you start. Never put your hand inside; use a long-handled brush to scrub under the rubber splash guard and around the top of the grinding chamber, then rinse with hot water. If the disposal hums but won’t grind, food is probably sitting in it and rotting, so see what to do when your garbage disposal hums but won’t spin.

Step 7: Handle Drain Flies or Fungus Gnats Separately

If the bag test caught fuzzy drain flies, the fix is the same scrubbing from Step 5, but be thorough: drain flies take longer to develop, so a missed patch of film keeps them going for weeks. If you have fungus gnats, let the top of the potting soil dry out between waterings, empty water from saucers, and stick yellow sticky cards in the pots to catch adults.

How Long It Takes

Fruit flies go from egg to adult in roughly 8 to 11 days, and faster in a warm kitchen; Penn State notes the cycle can take as little as eight days at 85°F. Adults can mate within about two days of emerging.

That short cycle means larvae and pupae already in a source you removed, or in a corner you missed, can keep producing adults for about a week after you clean. Keep your traps going for at least 10 to 14 days. If the count is still climbing after a week, you have not found the source yet.

Drain flies are slower, taking from about 8 days to 4 weeks depending on temperature, so they can linger longer.

What Not to Do

Don’t rely on bug spray or foggers. Flying insect sprays kill the adults in the air at that moment, but they have no lasting effect and don’t touch the larvae in the source. Flies keep coming until the breeding site is gone.

Don’t pour bleach down the drain and call it done. Bleach and boiling water run straight past the slime layer on the pipe walls.

Don’t mix drain chemicals. Using bleach after a caustic drain opener, or mixing bleach with ammonia, can produce toxic gas.

Don’t leave traps out for weeks without changing them. Stale vinegar full of dead flies becomes a food source for other small flies. Refresh it every few days.

When to Call a Professional

Most fruit fly problems are solved with cleanup, but some sources are out of reach. Call a pest control company or plumber if you see these signs:

  • Flies keep appearing in good numbers after two weeks of cleaning and trapping, and every bag test comes up empty.
  • Flies come from a basement floor drain, sump area, or crawlspace you can’t clean safely.
  • You notice a sewage smell, damp spots in the floor, or water under a slab or cabinet, which can mean a leaking or broken drain pipe.
  • Flies are emerging from loose tiles, wall voids, or under appliances you can’t move.

A pest control technician can tell fruit flies from look-alikes such as phorid flies, which can point to a broken sewer line. The University of Tennessee notes that repairing a broken pipe under a slab may involve cutting the concrete and removing contaminated soil, which is plumber territory. None of the sources we consulted listed typical prices, so get a written quote.

How to Prevent It

Prevention comes down to not leaving anything moist and fermenting sitting around. Refrigerate fruit once it is ripe, and store potatoes and onions where you will see them and check the bag every week or two.

Rinse cans, bottles, and jars before they go in the recycling, and empty indoor bins often. Wipe up juice, wine, and syrup spills right away. The same habits also keep sugar-seeking pests away, and our guide to getting rid of ants in the kitchen covers the rest of that routine.

Scrub kitchen and bathroom drains every couple of weeks, and run water in rarely used sinks and tubs. Let mops and sponges dry fully between uses. Seal homemade wine, beer, cider, and canned goods tightly so flies can’t lay eggs under the lid.

Fruit flies are small enough to get through standard window screening, so if they are a regular problem, use screens of 16 mesh or finer on windows and doors.

FAQ

Why do I have fruit flies when I don’t have any fruit out?

Fruit flies breed in any moist, fermenting material, not just fruit. Check stored potatoes and onions, the recycling bin, the bottom of the trash can, mops, and the slime inside sink drains and the disposal. A taped plastic bag over a drain overnight will tell you if the drain is the source.

What is the best homemade fruit fly trap?

A small bowl of apple cider vinegar with a few drops of dish soap works well, since the soap keeps flies from escaping the liquid. A jar with a paper funnel and a few ounces of vinegar also works. Traps reduce the adults, but they won’t end the problem unless you also remove the breeding source.

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

Once the source is gone, flies usually drop off within about one to two weeks. Their life cycle runs roughly 8 to 11 days, so some adults will still emerge from larvae already present. If numbers aren’t falling after a week, keep looking for a hidden source.

How do I tell fruit flies from drain flies?

Fruit flies are smooth-bodied, tan and dark, and usually have red eyes. Drain flies are fuzzy, gray to dark, and look like tiny moths with wings held like a roof. Drain flies also flutter in short hops.

Does pouring bleach down the drain kill fruit flies?

Not reliably. Bleach flows past the film on the pipe walls where larvae live, so it gives only short-term relief. Scrubbing the drain with a stiff brush is what removes the breeding site, and bleach should never be mixed with other drain chemicals.

Sources

More Fixes From Fix It Daily

Leave a Comment