Got little bugs buzzing around your kitchen? You likely have fruit flies. These tiny pests are common, and the good news is they’re easy and inexpensive to eliminate using supplies you probably already have at home. After testing several approaches over a few days, here’s a clear, practical guide to the most effective ways to get rid of fruit flies and how to prevent them in the future.

All the DIY traps below rely on natural, household ingredients so you can avoid chemicals. We also compared homemade traps to a store-bought option to see how they stacked up. Read on for tested trap designs, what attracts fruit flies best, and simple prevention tips to keep them from coming back.
What Are Fruit Flies?
Fruit flies are small insects attracted to ripening or fermenting fruit, sugary liquids, and food waste. You’ll often find them around fruit bowls, trash cans, and drains. They’re about the size of a grain of rice, tan in color with characteristic red eyes, and are most common in warm months or when fruit is in season.

Fruit fly infestations usually start when an adult fly hitches a ride on purchased produce. Females can lay hundreds of eggs, which can hatch in as little as 12 hours and reach adulthood within days. That rapid lifecycle is why a few flies can quickly become a significant problem—swift action pays off.
Fruit Flies Vs. Fungus Gnats Vs. Drain Flies
These tiny pests are often mistaken for one another, but the easiest way to tell them apart is by where you see them and what they look like:
- Fruit flies: Small, fly-like insects. Typically found near fruit, trash, or fermenting foods.
- Drain flies: Fuzzy, moth-like appearance. Found near sinks, drains, and standing water.
- Fungus gnats: Resemble tiny mosquitoes and are usually found around houseplants and moist soil.
If you’re uncertain which pest you’re dealing with, try one of the traps described below—if it attracts the insects in your home, they’re most likely fruit flies.
Easy DIY Fruit Fly Traps
Fruit fly traps are simple and cheap to make. All effective traps follow the same two-step approach:
- Lure: Use a bait to attract fruit flies into a container.
- Trap: Prevent them from escaping the container.

We tested several lures and trapping methods. Some act faster than others, and most will require a few days to completely clear an infestation.
What Attracts Fruit Flies Best?
Fruit flies are drawn to the sweet, sour scent of overripe fruit and fermented liquids like beer, wine, or apple cider vinegar (ACV). In our tests, rotting fruit—especially banana peels and strawberries—proved the most effective lure.

ACV traps work well too, and you can boost their effectiveness by adding a piece of banana peel or other fruit scrap. Replace fruit bait every day or so to avoid unpleasant odors and maintain attraction.
The Best Homemade Traps
Attracting flies is straightforward; preventing their escape is the key. We tested three DIY traps and ranked them for ease and effectiveness:
- Plastic wrap trap
- Funnel or paper cone trap
- Dish soap trap

Below are step-by-step instructions for each method so you can choose the one that best suits your supplies and situation.
#1: Plastic Wrap Fruit Fly Trap
This reliable trap lures flies into a container and uses plastic wrap with small holes to keep them inside.

Materials needed:
- Small clear jar, cup, or container
- Rubber band
- Plastic wrap
- Toothpick
- Rotten fruit or apple cider vinegar
Instructions:
- Choose a clear container. A glass jar, cup, or an old soda bottle works well so you can see trapped flies.
- Add the lure. Place a piece of rotten fruit or pour in ACV, beer, or wine to attract flies.
- Cover with plastic wrap. Stretch plastic wrap tightly over the opening and secure it with a rubber band.
- Poke small holes. Use a toothpick to make a few small holes large enough for a fly to enter.
- Dispose or release. Every day or two, take the trap outside and remove the wrap to release or discard the captured flies. Refresh the bait as needed.
You can also poke holes in a jar lid or use a punctured metal lid on a mason jar as an alternative.
#2: Funnel Fruit Fly Trap
This method uses a paper cone placed over a container opening to let flies in while making escape difficult. It performed as well as the plastic wrap trap but can be more fragile if knocked over.

Materials needed:
- Small clear container with a narrow opening
- Piece of paper or cardstock
- Tape and scissors
- Rotten fruit or ACV
Instructions
- Select and bait your container. See the plastic wrap trap for container and bait ideas.
- Create a paper cone. Roll paper or cardstock into a cone and secure with tape, leaving a small hole at the tip about the size of a grain of rice.
- Place the funnel. Position the cone over the container opening so flies can enter but have difficulty finding their way out.
- Dispose or release carefully. When the trap has captured flies, take it outside and remove the funnel to empty it.
#3: Dish Soap Fruit Fly Trap
This is the easiest trap to set up: a shallow dish with bait plus a few drops of dish soap. The soap breaks the surface tension so flies sink and cannot escape. It’s simple, but in our tests it was the least reliable—some flies still escaped.

Instructions
- Pour ACV into a shallow dish. Add apple cider vinegar, old beer, or wine to a small bowl.
- Add dish soap and mix. Add several drops of dish soap and stir gently. The soapy film causes flies to sink when they land.
Storebought vs Homemade Fruit Fly Traps
We compared homemade traps to a store-bought trap. Initially, our homemade strawberry and banana-peel traps outperformed the store-bought option in the first 24 hours. Left alone for another day, the store-bought trap captured a much larger number of flies. The result: homemade traps often work faster, but store-bought traps can be effective over a longer period and offer a tidier, low-maintenance option.


Choose store-bought traps if you want a discreet option to leave out long-term, or use quick homemade traps when you need rapid results.
How To Prevent Fruit Flies
Preventing fruit flies is simpler than dealing with an infestation. These routine habits will reduce the chance of fruit flies taking hold:
- Clean kitchen surfaces. Wipe counters, stovetops, and tables to remove food residues and sticky spills.
- Take out trash regularly. Don’t let food scraps sit overnight—garbage quickly becomes a breeding site.
- Dispose of overripe fruit. Remove browning or rotting fruit before it attracts flies.
- Wash produce when you bring it home. This can remove eggs or larvae that arrived on store-bought fruit (avoid washing delicate berries if moisture will speed spoilage).
- Store produce in the fridge. Cold temperatures slow fruit fly development and discourage activity.
- Clean sink drains. Flush drains and run the garbage disposal to remove food buildup that can attract flies.
Finding fruit flies is unpleasant, but don’t panic. Quick, simple steps and one of the traps above will usually eliminate the problem within a few days. With a little prevention, you can keep your kitchen free of these pests going forward.
*This post contains affiliate links, so a small commission may be earned if purchases are made through links on the site at no additional cost to you.