Got tiny flies buzzing around your kitchen? You probably have fruit flies. They’re a common nuisance, but the good news is they’re easy to eliminate using simple, inexpensive methods—often with items already in your pantry. After testing several DIY and store-bought approaches, here’s a clear, practical guide to getting rid of fruit flies quickly and preventing them from returning.

Every DIY trap below uses non-toxic, household ingredients so you can avoid chemical sprays. We also compared these homemade traps to common store-bought options and share prevention tips to keep new infestations from starting.
What Are Fruit Flies?
Fruit flies are small flying insects attracted to ripe, fermenting or decaying fruit and other sugary substances such as juice, beer, or wine. You’ll often find them around fruit bowls, trash cans, compost bins, and kitchen drains. They’re tiny—about the size of a grain of rice—typically tan or light brown with bright red or dark eyes. Because females can lay hundreds of eggs and their lifecycle completes in a few days, a few fruit flies can quickly become a significant problem, especially in warm months.

Fruit fly infestations often start when an adult hitchhikes home on store-bought produce. To stop an outbreak, remove attractants and set traps as soon as you notice the first flies.
Fruit Flies, Fungus Gnats, and Drain Flies: How to Tell the Difference
These three pests are commonly mistaken for one another. The easiest way to identify them is by where they congregate and their overall shape:
- Fruit flies: Small, fly-like insects found near fruit, trash, and fermenting liquids.
- Drain flies: Moth-like, fuzzy flies usually found around sinks, drains, and plumbing.
- Fungus gnats: Mosquito-like and typically found near houseplants, where damp soil provides breeding sites.
If a trap designed for fruit flies captures the insects in your home, you can be confident they are fruit flies.
Easy DIY Fruit Fly Traps
Effective fruit fly traps follow the same basic idea: lure flies into a container and prevent their escape. Use rotten fruit or apple cider vinegar (ACV) as bait and one of these trapping methods:
- Lure: Attract flies with a sweet or fermented scent.
- Trap: Create a one-way entry using plastic wrap, a paper funnel, or a soapy surface.

Some traps work faster than others, but most take a few days to fully clear an infestation.
What Attracts Fruit Flies Best?
Fruit flies are drawn to fermenting and rotting produce and liquids. In our tests, the most effective baits were very ripe or rotting fruit—banana peels and overripe strawberries performed best—followed by apple cider vinegar, beer, or wine. A small piece of banana or strawberry added to an ACV trap makes it catch flies faster. Replace fruit frequently to avoid bad odors.

The Best Homemade Traps
We tested three DIY techniques and ranked them by ease and effectiveness:
- Plastic wrap trap
- Funnel/paper cone trap
- Dish soap trap

Below are concise instructions for each trap so you can choose what’s most convenient.
#1: Plastic Wrap Fruit Fly Trap
This method uses plastic wrap with tiny entry holes so flies can get in but struggle to escape.

Materials needed:
- Clear jar, cup, or small container
- Plastic wrap
- Rubber band
- Toothpick
- Rotten fruit or apple cider vinegar
Instructions:
- Place bait in the container (fruit or ACV).
- Cover the opening tightly with plastic wrap and secure it with a rubber band.
- Poke a few small holes with a toothpick—large enough for a fly to enter.
- Check the trap daily, empty outdoors, and refresh bait as needed.
You can also punch small holes in a metal lid of a jar instead of using plastic.
#2: Funnel Fruit Fly Trap
A paper cone placed into a jar forms a funnel entry that’s effective when secured properly, though cones can dislodge if bumped.

Materials needed:
- Clear container
- Paper or cardstock
- Tape and scissors
- Rotten fruit or ACV
Instructions
- Add bait to the container.
- Roll paper into a cone and secure with tape, leaving a small opening.
- Set the cone into the jar with the narrow end down so flies can enter but struggle to exit.
- Empty and refresh bait when full.
#3: Dish Soap Fruit Fly Trap
This is the fastest and simplest trap: a shallow dish of ACV mixed with a few drops of dish soap. Flies land on the liquid and are trapped because the soap breaks surface tension. It’s easy to prepare but can be less effective than covered traps because some flies may avoid landing.

Instructions
- Pour ACV, beer, or wine into a shallow dish.
- Add several drops of dish soap and swirl gently.
- Place near the infestation and replace the solution as it fills.
Store-Bought vs. Homemade Traps
In side-by-side tests, homemade traps baited with rotting fruit often catch more flies faster than many store-bought traps. However, commercial traps can be more discreet and convenient for long-term use and may contain bait formulated to attract pests over extended periods. If you prefer a low-maintenance option, a store-bought trap can be useful after you’ve removed the main source of attraction.

How to Prevent Fruit Flies
Prevention is the best strategy. Follow these simple steps to keep fruit flies away:
- Keep surfaces clean. Wipe counters, tables, and stovetops to remove food residue and spills.
- Empty trash regularly. Dispose of food waste promptly and keep bins sealed.
- Remove overripe produce. Discard or refrigerate fruit before it becomes a breeding site.
- Wash produce when you bring it home. Rinsing fruit can remove eggs or larvae that might have come from the store—except delicate berries, which can spoil from excess moisture.
- Store susceptible produce in the fridge. Cooler temperatures slow or prevent fruit fly development.
- Clean drains and disposal systems. Run your garbage disposal and flush drains to remove trapped food particles.
Spotting a few fruit flies isn’t cause for panic, but quick action prevents a larger infestation. Use one or more of the traps above, remove attractants, and maintain good kitchen hygiene to eliminate fruit flies and keep them from coming back.