How to Get Rid of Fruit Flies in the Kitchen: Traps That Beat Vinegar
Fruit flies breed in ripe produce and wet drains. Remove what feeds them, trap the adults tonight, and use a lure trap to finish the job.
By Jamilur Rahman Updated November 5, 2026 · 8 min read
- Time
- 10 min tonight, 3-7 days to clear
- Cost
- Under $20
- Difficulty
- Easy
In this guide
Quick answer
How to get rid of fruit flies in the kitchen: remove what they breed in (ripe produce, a gunky drain, a damp trash can), then trap the adults. A bowl of vinegar and dish soap catches a share of them tonight. A ready-made lure trap catches more, stays set for weeks, and is the easier way to stop the cycle.
Free fix vs. permanent fix
Source cleanup plus a vinegar-and-soap jar
- Toss or refrigerate overripe produce and take out the trash
- Pour about half an inch of apple cider vinegar into a jar
- Add 3 or 4 drops of dish soap and stir gently
- Cover with plastic wrap and poke small holes in it
How long it lasts: Catches a good share of adults in a day or two. If the breeding spot is still there, new flies keep hatching and the jar needs remaking every few days.

A fruit fly trap with a made-for-flies lure
A store trap uses a lure made to draw fruit flies, and its shape makes it hard for them to climb out. It does not dry out or spill like a jar, so it keeps working while you deal with the real cause. It catches adults only, so you still remove what they breed in.
What to get: Fruit fly trap with a replaceable lure
How long it lasts: Weeks per refill. Check the label for the lure's life, then swap it.
As an Amazon Associate I earn from qualifying purchases.
What you'll need
-
Small jar or bowl
For the homemade trap
You have it -
Dish soap
Breaks the surface of the bait so flies sink instead of landing
You have it -
Plastic wrap and a rubber band
Makes a lid with small entry holes
You have it - Our pick Illustration

Fruit fly trap with lure
Set one by the fruit bowl and one near the sink
- Illustration

Yellow sticky traps
Good for flies near houseplants, windows and the bedroom
- Illustration

Enzyme drain gel
Only if you find flies breeding in the drain
Why it happens
Ripe or spoiling produce on the counter
Fruit flies smell fermenting fruit from a long way off. They lay eggs on the skin of ripe bananas, tomatoes and melons, and the larvae feed on the soft flesh. Produce from the store can already carry eggs when you bring it home.
Gunky drains, disposals and trash cans
A thin film of food waste in a sink drain, a garbage disposal or the bottom of a trash can is enough to feed larvae. Damp mop heads, dish rags and stray bottles or cans in the recycling do the same.
Very fast breeding
In a warm kitchen, an egg can become an adult fly in roughly a week, and one female lays hundreds of eggs. A few flies can become a cloud before you spot the source.
Different small flies
Not every tiny fly is a fruit fly. Fuzzy, moth-like flies come from drains. Slim dark flies hovering over plant soil are fungus gnats. The trap you pick depends on which one you have.
Try this first (free)
Do these in order, starting with the simplest.
-
Remove what they breed in
Throw out anything overripe, refrigerate ripe fruit, and rinse produce when it comes home. Empty the trash and take it outside. Wipe the counters, sink and the rim of the trash can.
-
Scrub the drain
Use a stiff brush and hot tap water to scrub the drain opening and the first few inches. Skip boiling water on plastic pipes, which can soften joints.
-
Set a vinegar-and-soap jar
Tool used: Small jar or bowlPour half an inch of apple cider vinegar into the jar, add a few drops of dish soap and stir. Cover with plastic wrap held by a rubber band and poke 5 or 6 small holes in it. Put it where you see the most flies.
-
Add a lure trap where flies gather
Tool used: Fruit fly trap with lureOpen the trap, set it beside the fruit bowl or by the sink, and leave it for the full time on the label. Check it after a day and again after a week.
Illustration
Check price on AmazonTool for this step
Fruit fly trap with lure · Set one by the fruit bowl and one near the sink
-
Keep going for a week
Eggs and larvae already in the fruit or drain will keep hatching. Remake the homemade jar every 2 or 3 days until you go two days without catching a fly.
When free fixes aren't enough
If you are still catching flies after a week, there is a breeding spot you have not found. Look under the fridge, in the bottom of the trash can, in the recycling bin, behind the pantry for a forgotten potato or onion, in the disposal, and in houseplant soil. The homemade jar also loses strength as the bait weakens, while a store trap's lure keeps working for weeks without remaking. If you get a flush of flies every summer, keeping a trap out all season catches the first arrivals before they breed.
Buy the fix
Still stuck after the free fixes? These are the products we would look at.
| Pick | Product | Fixes | Who it's for | Buy |
|---|---|---|---|---|
| Best pick | ![]() Fruit fly trap with a replaceable lure | adult fruit flies that keep arriving while you clean up | Anyone who wants a set-and-forget trap instead of remaking a jar every few days. | Check price |
| Budget pick | ![]() Yellow sticky traps | small flies around plants, windows and bedrooms | People who see small flies in the bedroom or around houseplants, and want the cheapest way to cut the numbers. | Check price |
| Upgrade pick | ![]() Enzyme drain gel | flies breeding in the film inside a drain | People who tried traps and still see flies near the sink or disposal. | Check price |

Fruit fly trap with a replaceable lure
Fixes: adult fruit flies that keep arriving while you clean up
Look for: A lure made for fruit flies, not a plain vinegar refill; An entry shape that is hard for flies to climb out of; Closed top so it does not spill or smell up the room; Food-safe design that sits safely near the fruit bowl.
- Who it's for
- Anyone who wants a set-and-forget trap instead of remaking a jar every few days.
- Honest downside
- You mostly see small flies hovering over plant soil. Those are fungus gnats, so use sticky traps instead.

Yellow sticky traps
Fixes: small flies around plants, windows and bedrooms
Look for: Bright yellow, glue on both sides; A stake or hanging loop so you can place it near plants or windows; Non-toxic glue.
- Who it's for
- People who see small flies in the bedroom or around houseplants, and want the cheapest way to cut the numbers.
- Honest downside
- The flies cluster around the fruit bowl or sink. The lure trap pulls them in better there.

Enzyme drain gel
Fixes: flies breeding in the film inside a drain
Look for: A gel or foam that clings to the pipe wall; Enzyme or bacteria based, not a caustic formula; Safe for pipes and septic systems.
- Who it's for
- People who tried traps and still see flies near the sink or disposal.
- Honest downside
- The flies disappear after you remove produce and empty the trash. The drain was not your source.
As an Amazon Associate I earn from qualifying purchases. We don't show prices because they change, so use the button to see today's price.
How we picked: How we picked: this page is based on pest-control and university extension guides on fruit fly habits, instructions from trap makers, and what owners report in reviews. We do not test products by hand.
Why are there small flies in my bedroom?
Small flies in a bedroom are usually fungus gnats from a damp houseplant, drain flies from a bathroom sink, or fruit flies that followed a stray snack or drink. Check plant soil, the bathroom drain and any glass or cup left out. Hang yellow sticky traps near the plant and let the soil dry before you water again.
How to stop small flies in the kitchen and avoid them coming back
To avoid small kitchen flies and small insects, and stop small house flies, build these habits:
- Keep ripe fruit in the fridge or in a closed container.
- Take the trash out every day or two in warm weather.
- Rinse bottles and cans before they go into the recycling.
- Wring out and dry dish rags and mop heads.
- Flush the drain with hot tap water after cooking.
- Leave one lure trap out during summer.
What to skip
Aerosol bug sprays and foggers
Spraying kills the few adults in the air, but not the eggs in the drain or fruit, so new flies hatch within days. It also puts chemicals near food and counters. Traps plus cleanup fix the cause.
Frequently asked questions
How to get rid of fruit flies in your house?
How to get rid of fruit flies fast, even overnight?
How to get rid of fruit flies without apple cider vinegar?
How to get rid of fruit flies and gnats?
Why is my kitchen full of small flies?
As an Amazon Associate I earn from qualifying purchases. Affiliate disclosure