Skip to content
HassleFix

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
Overripe bananas in a bowl on a kitchen counter with tiny flies hovering above them and a small jar beside the bowl
In this guide
  1. Quick answer
  2. Free vs. permanent fix
  3. What you'll need
  4. Why it happens
  5. Try this first (free)
  6. When free fixes aren't enough
  7. Buy the fix
  8. Why are there small flies in my bedroom?
  9. How to stop small flies in the kitchen and avoid them coming back
  10. What to skip
  11. FAQ
  12. Related problems

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

Free fix · 10 minutes

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.

Most readers choose Permanent fix
Fruit fly trap with a replaceable lure (illustration)
Illustration

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
    Fruit fly trap with lure (illustration)
    Illustration

    Fruit fly trap with lure

    Set one by the fruit bowl and one near the sink

  • Yellow sticky traps (illustration)
    Illustration

    Yellow sticky traps

    Good for flies near houseplants, windows and the bedroom

  • Enzyme drain gel (illustration)
    Illustration

    Enzyme drain gel

    Only if you find flies breeding in the drain

Why it happens

1

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.

2

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.

3

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.

4

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.

  1. 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.

  2. 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.

  3. Set a vinegar-and-soap jar

    Tool used: Small jar or bowl

    Pour 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.

  4. Add a lure trap where flies gather

    Tool used: Fruit fly trap with lure

    Open 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.

    Fruit fly trap with lure (illustration)
    Illustration

    Tool for this step

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

    Check price on Amazon
  5. 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.

Our picks compared
PickProductFixesWho it's forBuy
Best pick
Fruit fly trap with a replaceable lure (illustration)
Illustration
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 (illustration)
Illustration
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 (illustration)
Illustration
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
Best pick
Fruit fly trap with a replaceable lure (illustration)
Illustration

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.
Budget pick
Yellow sticky traps (illustration)
Illustration

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.
Upgrade pick
Enzyme drain gel (illustration)
Illustration

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?
Use the same steps in every room: remove ripe or spoiled food, empty the trash, clean any damp drain, and set a trap where you see flies. Rooms away from the kitchen often have a forgotten fruit bowl, a drain or a houseplant.
How to get rid of fruit flies fast, even overnight?
Set two or three traps in the evening, one near the fruit and one by the sink, and clear away the bait they are feeding on. Many adults are usually gone by morning. Eggs are still hatching, so keep the traps out for a week.
How to get rid of fruit flies without apple cider vinegar?
Use a splash of red wine, a slice of very ripe banana or melon in a jar, or juice with a drop of dish soap. A store trap with its own lure needs no vinegar. Plain white vinegar draws fewer flies than cider vinegar.
How to get rid of fruit flies and gnats?
Treat them separately. Fruit flies need the produce and trash cleanup plus a lure trap. Fungus gnats live in damp potting soil, so let the top inch of soil dry out and hang sticky traps over the plants.
Why is my kitchen full of small flies?
Something is feeding their larvae: ripe fruit, a film in the drain, a wet trash can, or a stray bottle. With so many flies, look in two or three places, since the flies seem to appear from nowhere until you find the source.

As an Amazon Associate I earn from qualifying purchases. Affiliate disclosure

Fruit fly trap with a replaceable lure (illustration)
Illustration

Our pick: Fruit fly trap with a replaceable lure

Check price