We Found a Homemade Fruit Fly Trap That Actually Works
Every editorial product is independently selected, though we may be compensated or receive an affiliate commission if you buy something through our links. Ratings and prices are accurate and items are in stock as of time of publication.
After my first fruit fly sighting of summer, I was determined to get rid of them for good. I turned my kitchen into a lab—testing five versions of the homemade fruit fly trap—and found a clear winner.
We don’t know where the fruit flies came from—they just showed up one night. Maybe some stowaway fruit fly eggs arrived on a bunch of bananas from the grocery store. Or maybe it was a bad idea to let fruit salad sit on the counter while we had a bonfire in the backyard. Or maybe I neglected to empty our compost bucket for a little too long and some of those awful pests with their sense-of-smell superpowers shimmied their way through a screen. Here are 13 things in your house that are attracting pests right now.
However they got into our house, we wanted them out. Fast.
Then I noticed a pin on my ever-helpful Pinterest feed: Make a Homemade Fruit Fly Trap, it announced. So I did.
What causes fruit flies, anyway?
Long story short: Fruit flies are attracted to ripened fruits and vegetables, which probably doesn’t come as a surprise. The surprising part, however, is how they travel into your home. Fruit flies are usually brought in by you. Yes, you! These little buggers linger on produce and are brought into your home when you unpack your grocery goodies. Put a stop to that with these ways to ensure you never see a bug in your house again.
Once they’ve snuck into your home, their breeding process begins (if it hasn’t started already). They breed almost as soon as they land, laying eggs underneath the surface of your precious produce. No matter where they breed, you’ll want to act fast. Female fruit flies can breed up to 500 eggs, which can hatch within a WEEK—eek!
Pro tip: Think throwing away infested produce is enough to get rid of these pests? Think again. Fruit flies can (and will) continue breeding within trash bags, drains, and garbage disposals. Be sure to throw away rotten produce before your little friends move in for good.
My anti–fruit fly campaign became a bit of an obsession. I didn’t just want to make one type of trap, I wanted to try a bunch so I could end the invasion once and for all. I Googled “homemade fruit fly traps” and felt slightly relieved to discover a long list of folk remedies. Obviously, I wasn’t the only person to fail at keeping fruit flies at bay. I put the five most popular recipes—all of which use common household items—to the test. I’d noticed most of the fruit flies were hanging out near the vinegars in my pantry, so I cleared a spot for the traps on the shelf and let them do their thing for about 12 hours. Here’s how each trap fared. Here are 95 household uses for vinegar you never knew about.
The DIY Fruit Fly Traps
Trap 1: Rotten Fruit
Taste of Home
Potential benefits: Inexpensive, proven fruit fly attractor, gives rotting fruit a new use
How to make it: Put some chopped, past-prime fruit in a bowl. Tightly cover the bowl with plastic wrap and secure with a rubber band. Using a toothpick, poke a few holes in the plastic. The holes should be large enough for fruit flies to crawl in but small enough to keep them from getting out. Looking for other ways to get rid of rotten fruit? Here are 11 things you need to know about composting.
My take: While I was preparing the other traps, fruit flies were already coming over to investigate this one. I was sure it was going to win.
Fruit flies captured: 0 (Seriously! I wish I had put up a pantry cam to find out what happened, but I can guess. Read on.)
Trap 2: Milk + Sugar + Dish Soap + Black Pepper
Taste of Home
Potential benefits: Uses common household items, a good way to use up milk that’s close to expiring
How to make it: Combine 1/2 cup milk with 2 teaspoons granulated sugar. Heat it on the stove or in the microwave, stirring occasionally, until the sugar dissolves. Stir in a squirt of dish soap (this makes the surface of the liquid somewhat sticky so the fruit flies can’t escape) and pour the mixture into a bowl. Crack black pepper over the top.
My take: This was the most frustrating trap to keep tabs on, because I couldn’t tell the difference between specks of black pepper and potential casualties. Luckily, when I dumped out the bowl the next morning, I could see the results.
Fruit flies captured: 3
Trap 3: Balsamic Vinegar + Red Wine Vinegar
Taste of Home
Potential benefits: Quick to set up, easy cleanup
How to make it: Combine equal parts balsamic and red wine vinegar in a glass. Cover tightly with plastic wrap, secure with a rubber band, and poke a few holes in the plastic (as with Trap No. 1). Here’s the real difference between apple cider vinegar and white vinegar.
My take: Fruit flies sure do like the vinegar bottles in my pantry, especially the balsamic. But for some reason, they weren’t attracted when it was served up in a glass.
Fruit flies captured: 0
Trap 4: Dish Soap + Apple Cider Vinegar + Hot Water
Taste of Home
Potential benefits: Quick to set up, uses common household items, easy cleanup
How to make it: Squirt a little dish soap into a glass. Add apple cider vinegar until the glass is one-third full. Let your tap run until the water is steaming hot, then blast it into the glass so a thick layer of bubbles forms on top.
My take: I knew I was onto something as soon as I concocted this trap. The fruit flies that had been hovering around the rotten banana (Trap No. 1) buzzed right over. The bubbles dissipated quicker than I would have liked, so I had to keep adding more water to refresh the bubble layer. However, the fruit flies didn’t seem to mind when the vinegar became increasingly diluted. Here are just a few ways to make your bananas last longer.
Fruit flies captured: 18
Trap 5: Beer + Rotten Banana
Taste of Home
Potential benefits: Gives rotting fruit a new use, a valid excuse to dump a beer you’re not a fan of
How to make it: Put a piece of rotten banana in a jar. Pour in enough beer to partially cover the banana. Grab a cone-shaped coffee filter and poke a small hole in the bottom. Set it on top of the jar, folding the paper over the edges of the jar to hold it in place. Here are some more ingenious uses for coffee filters.
My take: This turned out to be a sad waste of beer. When I removed the coffee filter the next morning, there were more living fruit flies than dead ones in this trap.
Fruit flies captured: 3 dead, 5 alive
Trap No. 4 won by a landslide! I was inordinately happy (gleeful, really) to see the death toll mounting each time I checked this trap during the day. But I also think Trap No. 5 has potential. If you’re curious about this method, add a squirt of dish soap to the beer and use the plastic wrap cover method from Trap No. 1. Maybe you’ll have more luck.
Since that first test, I think I’ve perfected the winning trap. As you can see from the photo, I used a juice glass, which meant I had to refresh the bubbles a few times. Later, I tried it in a pint glass. Sure, it uses more vinegar, but the bubbles last much longer, making fruit fly killing a hands-off event.
I also tried this trap with two types of apple cider vinegar: the clear filtered stuff and the raw, unfiltered variety. The latter was definitely more effective, probably because it contains little bits of fermented apple.
Since the experiment, I’ve kept a pint-size trap in my pantry (I also cleaned my vinegar bottles and have been faithfully taking out the compost). I’m happy to report I hardly ever see fruit flies anymore. But if and when they ever stage another invasion, I know what to do—and now, so do you.
How can I prevent fruit flies?
The easiest way to avoid a fruit fly catastrophe? Use up those ripe fruits and veggies! (Here are some great ideas for using up ripe bananas.) If you want to save your ripened produce for a few days longer, store them in the refrigerator to prevent any uninvited guests from breeding. When discarding inedible, overripe produce, make sure you throw away the trash ASAP. Next, check out 10 more chemical-free ways to get rid of household pests.