If you want to know how to get rid of fruit flies in a kitchen, the answer is short: take away what they eat and drink in, then deal with the ones still flying. Fruit flies breed in fermenting organic matter, so a kitchen can look spotless and still be feeding a colony hiding in a drain or the rubber gasket under your garbage disposal.
Most people start with traps because traps are visible and satisfying. Traps catch adults, and adults are only about 5% of an infestation — the other 95% is eggs and larvae living in a slime film you cannot see. Kill the breeding sites and the trap finishes the job. Leave the breeding sites alone and the trap is a band-aid that gives you three good days and then stops working.
The whole cleanup takes about an hour up front plus ten minutes a day for two weeks. Start with the produce on your counter and the drain under your sink.
What You Need

Almost everything here is already in your house. The two things you may need to buy are apple cider vinegar and a bacteria-based enzymatic drain cleaner.
- A small jar, glass, or mug with a lid that fits — a reused pickle jar works fine
- Apple cider vinegar, roughly half a cup
- Liquid dish soap, any brand
- Plastic wrap or a paper plate and a rubber band, for the cone trap
- A pipe brush or sturdy bottle brush, for scrubbing the drain throat
- An enzymatic drain cleaner made for organic sludge and biofilm
- An old toothbrush you do not mind retiring
- Trash bags, paper towels, and whatever degreaser you already use on the stovetop
- Optional: yellow sticky traps and a labeled indoor fruit-fly trap from a hardware store
Skip the foggers and the plug-in electric traps for now. Both kill adults, and adults are the smallest part of the problem.
Step-by-Step: How to Get Rid of Fruit Flies in a Kitchen
1. Remove and Cover Food Sources
Start with the fruit bowl, because it is the most obvious source and often not the only one. Throw out anything soft, bruised, or split — the banana on the counter that is already freckled is exactly what a female fly is looking for.
- Discard overripe produce, then take the trash out of the kitchen immediately rather than to a bin at the end of the row
- Rinse and dry the fruit you keep on the counter, and give melons, apples, and pears a paper towel after washing
- Move berries, grapes, and cut fruit into the refrigerator, loosely covered
- Empty the fruit bowl nightly if it sits on the counter — a bowl that holds two pieces of fruit all week is a trap you built yourself
- Check the crisper drawer for the soft apple you forgot about three weeks ago
- Wipe syrup, juice, and wine spills off counters and stovetops, including under the toaster and around the coffee grinder
How do you know this step worked? Put a fresh piece of fruit in a covered bowl on the counter and leave it there a full day. If no new flies gather on or around it, the exposed food has stopped attracting them.
While you are in there, rinse out bottles and cans before they go in the recycling bin. A bottle with a finger of flat soda in the bottom is a breeding site that most people never think about.
2. Find Hidden Breeding Sites
Fruit flies are roughly 3mm long, tan to yellow-brown, with bright red eyes and smooth clear wings. They dart and change direction mid-air, and they are most active during daylight. That is roughly 5% of what you are looking at.
Two other flies cause a lot of confusion. Drain flies are grey, have fuzzy moth-like wings, fly in a slow hop, and hang around the sink and shower in the evening. Fungus gnats are slender dark grey, hover around potted plants, and jump when you disturb the soil. If your flies keep coming back after a thorough produce cleanup and they are hanging over your houseplants, you have fungus gnats and you need to let the soil dry between waterings.
A free overnight test: lay a piece of clear tape sticky-side up on a windowsill or counter, leave it through the night, then hold it up to a lamp. Red eyes on a small tan body means fruit fly. A fuzzy grey body with moth-like wings means drain fly.
Check these places in order, from most to least likely:
- The kitchen sink drain and the garbage disposal, including the rubber gasket under the disposal
- Trash and recycling bins, especially the kitchen bin when it holds food waste
- A compost bucket kept indoors; move it outside or seal it with a tight lid
- Forgotten cans, juice cartons, and open bottles of wine or juice
- Damp produce sitting in the crisper or on the counter
- A mop bucket, a wet dish towel, and a sponge you keep squeezing out
- The dishwasher sump, the small filter basket in the bottom of the tub
- Bathroom and laundry drains — forum threads about this problem keep turning up kitchens that are clean and a bathroom that is not, because a fly followed the drain line out of the kitchen
- Overwatered houseplant soil, if the flies are in a room with no food
3. Clean the Kitchen, Trash, and Drains Thoroughly
This is the step that decides whether the problem comes back. Scrub the drain throat rather than pouring something down it and hoping.
For the garbage disposal: turn off the power at the switch under the sink, lift the disposal flange, and pull off the rubber gasket on the underside. That gasket traps scraps and fruit pulp in a layer you cannot see from above. Wash it, scrub the disposal chamber walls with the old toothbrush, and run cold water for 30 to 60 seconds with the disposal on to flush the residue.
For the sink drain: remove the strainer, scrub the stopper and the inside of the pipe with the pipe brush, then follow the label on your enzymatic drain cleaner — most are poured in at night and left to sit so they can work on the biofilm. In the morning flush with hot tap water for a minute. Repeat for five nights. Hot tap water is hot enough to move grease. Do not pour boiling water into PVC drain pipe: the solvent-weld adhesive used on those joints softens above about 140F, and one kettle of boiling water can permanently loosen a joint.
On bleach: pouring it down the sink is the most repeated piece of bad advice on the internet. Bleach slides over a gelatinous biofilm layer instead of penetrating it, and it does nothing for the egg deposits stuck to pipe walls. An enzymatic cleaner digests the organic film. That is why it works where bleach does not.
Then work outward: wash produce containers and lids that sat in the sink, take the trash can out and scrub it with hot soapy water, wipe the inside of the cabinet under the sink, and clean the dishwasher filter basket.
4. Trap Remaining Fruit Flies After the Kitchen Is Clean

Trapping works best after step 3, not before. The jar below is the standard DIY fruit fly trap and it takes about 15 minutes to make.
- Fill a small jar one-third to halfway with apple cider vinegar.
- Add a few drops of liquid dish soap and stir gently so it is mixed but not foamy.
- Cover the top with plastic wrap and pull it tight around the rim.
- Secure it with a rubber band, or use a paper plate secured the same way.
- Poke five or six small holes in the plastic with a toothpick, no bigger than a pinhead, and set the jar near the fruit bowl.
The vinegar is the bait and the soap is the kill mechanism. The liquid is attractive because it smells like fermenting fruit; the soap breaks the surface tension, so a fly that lands cannot push off and instead sinks.
A note on the vinegar objection that comes up in every forum thread about this: the vinegar is a lure for the trap, not an open invitation. As long as it is covered with holes too small for the flies to walk through, they cannot get at it in bulk.
Count what lands in it after 24 hours, then again after 48. A drop in the daily count is the clearest sign the breeding cycle is broken. Rinse the jar and refill every two or three days, and put out a second jar in the bathroom if the flies are spreading beyond the kitchen.
5. Use a Fruit-Fly Trap or Insecticide if Necessary
A labeled indoor fruit-fly trap is a reasonable addition once the kitchen is clean and the drain is treated, because it holds a lot more flies than a jar and it needs no refilling. Read the label first and follow it exactly, including placement and ventilation directions.
Aerosol insecticide is a last resort, and usually a bad one in a kitchen. Keep any product away from food, dishes, and food prep surfaces, well out of reach of children and pets, and never in a room where someone is eating. Do not use foggers or bug bombs for fruit flies: they kill adults, they leave the breeding sites untouched, and they coat your surfaces and utensils with pesticide.
If a pet or a toddler is in the house, stay with the jar trap, the sticky traps, and the cleaning. Those handle the large majority of kitchen cases on their own.
6. Prevent a New Infestation
Once the numbers drop, keep them down with a routine that takes about ten minutes a day:
- Take the kitchen trash out every night instead of every other morning
- Rinse fruit before it goes in the bowl, and refrigerate anything cut or soft
- Run the disposal with cold water for 30 to 60 seconds after every use so nothing sits in the chamber
- Run the tap in any sink you do not use for a full minute once a week — an unused sink loses the water seal in its P-trap and becomes a fly highway straight to the sewer line
- Wash sponges and dish towels and hang them where they dry out completely
- Keep any indoor compost in a sealed container, or take it outside
- Check door and window gaps in late summer, when fruit in the yard or on the counter is fermenting and the outdoor population moves indoors
Fewer breeding opportunities means a noticeable drop within several days. Adults already flying around will die off on their own within roughly a week, and new ones stop arriving once the sources are gone.
Common Mistakes
Spraying the visible flies and calling it done. Aerosol kills the adult you can see and nothing else. Find the source first, trap second. This ordering is the single most upvoted piece of advice in the Reddit and Houzz threads about this problem, and it is correct.
Leaving fruit out in an open bowl. A fruit fly trap with a paper cone over a banana peel works beautifully in a lab and beautifully in your kitchen too. The fix is a cover — a bowl with a mesh lid, a plate, or the refrigerator.
Using fragrant traps and citronella candles and hoping the smell repels them. Fragrance products mask a scent that does not bother them. The fix is a trap that physically holds flies, or a source that no longer exists to breed on.
Mixing drain cleaners. Bleach mixed with an ammonia-based or acidic cleaner produces toxic gas. Use one product at a time, and never combine a drain cleaner with anything else.
Pouring boiling water down the sink. It feels like a thorough fix and it can soften the glue on a PVC joint. Use hot tap water for flushing and let the enzymatic cleaner do the work.
Expecting a jar trap to solve an active breeding problem. The jar catches adults while the larvae keep maturing behind it in the drain. Set the trap up on the same day you scrub the drain, not instead of it.
How Long Does It Take to Get Rid of Fruit Flies?
Here is a realistic week. Most people give up during day four, right before the numbers drop.
- Day 1: after cleaning and setting traps, the visible number barely changes. Adults are hard to spot in daylight, and the ones you see were already there.
- Day 3: the fly count drops noticeably. The older adults have died and the larvae you disturbed in the drain did not make it.
- Day 7: the kitchen is largely fly-free if the sources are gone. A handful of stragglers is normal.
- Day 30: the routine has either held, and nothing has come back, or you missed a breeding site and you are back where you started. The ones that survive long enough to breed again are already laying, so a return in week two usually means a source is still there.
The life cycle explains the timing. A single female can lay up to 500 eggs, eggs hatch in roughly 24 to 30 hours, and larvae reach the adult stage in about 8 to 10 days. That is why a kitchen that looked fine on Tuesday can be swarming by the weekend, and why an infestation that never gets cleaned can persist for months.
A dip in numbers is not the same as an end to the infestation. You have finished when two full weeks pass with no new flies in a jar trap and no flies seen around the produce bowl.
Frequently Asked Questions
Where are fruit flies coming from in my kitchen?
Fruit flies come from fermenting organic matter, not from dirt. The usual sources are overripe produce, a garbage disposal with scraps and pulp stuck under the gasket, food residue in the drain, and a trash or recycling bin holding bottles with soda in them. They can arrive on groceries too. If you have no fruit in the house, check the disposal, the drain, and the bins before anything else.
Are fruit flies a sign that my kitchen is dirty?
No, and this is worth saying plainly because the guilt is real. Fruit flies follow fermenting sugar, and a small amount of that can hide in a perfectly maintained kitchen — a few drops in the drain, pulp under the disposal gasket, or a wet sponge. A spotless counter will not stop an infestation that lives inside the plumbing.
How long does it take to get rid of fruit flies in a kitchen?
Expect a clear drop in numbers by day 3 and a largely fly-free kitchen by day 7, provided you removed the breeding sources rather than only setting traps. If flies return in the second week, a source was missed. Keep the weekly routine going for a month and the problem stays solved.
Do fruit flies come from drains?
They can. Fruit flies breed in the organic film inside sink and garbage disposal drains, but so do drain flies, which look different: grey, with fuzzy moth-like wings and a slow hopping flight. Fruit flies are tan with red eyes and dart erratically. Scrubbing the drain throat and treating it with an enzymatic cleaner clears both.
What works best to trap fruit flies indoors?
A jar with apple cider vinegar, a few drops of dish soap, and a plastic wrap cover with a few pinhead holes is the most reliable DIY option, and it starts working within a day. Place it near the fruit bowl rather than on the counter edge. Refill it every two or three days and set a second one in the bathroom if the flies have spread.
Why do I still have fruit flies after using a trap?
Because a trap only removes adults, and adults are about 5% of an infestation. The rest are eggs and larvae feeding in hidden organic slime, usually in a drain, a garbage disposal gasket, or a bin. Keep the traps, but go back to scrubbing the drain, washing the trash can, and clearing all exposed food. That is what ends it.
Conclusion
If your kitchen still has active fruit flies, the first thing to do is pick up the counter: throw out the soft produce, take the trash out of the room, and scrub the sink drain and the garbage disposal gasket with a pipe brush and an enzymatic cleaner. Set the vinegar and soap jar trap the same day, not a week later.
Then keep the ten-minute routine going. Fruit flies come back to kitchens that offer them a wet drain, a full bin, and uncovered fruit, and they stay out of kitchens that do not.


