This post may contain affiliate links. Please read our disclosure policy.

This fruit fly trap (or gnat trap) literally takes 2 minutes to put together and works AWESOME! Say goodbye to fruit flies!

This gnat trap is a great DIY solution to your fruit fly problem. For more how-to posts check out How to Cut a Watermelon, How to Cook Pasta, or How to Ripen Bananas.

DIY gnat trap on a wood table.

Homemade Fruit Fly Trap

I hate fruit flies.

They are such pests! They have to be one of the most annoying insects out there because they multiply like no other and can be hard to get rid of if you don’t know how.

Last week, we had left some ketchup out on the kitchen counter and by morning there were tons of fruit flies. I swear I don’t know how they just POP up! With this bout of pesky bugs, I immediately made a fruit fly trap, and within a few hours, they were all gone.

I figured I would share how I do it in case you are looking for quick, easy, and natural pest control.

Container of strawberries on a table.

Avoid Fruit Flies in the First Place

I know that fruit flies come around more when fruit is left out, and since there are tons of seasonal fruits, you may be seeing these little guys more often. The process of getting rid of them is SUPER simple. I find that they are more manageable when I have taken precautions.

  • Throw out overripe fruit in the trash, or better yet compost it.
  • Take out the garbage regularly.
  • Keep your sink and garbage disposal clear.
  • Store fruits and vegetables in the fridge instead of a fruit bowl.
  • Fruit flies don’t like fresh basil so keep a fresh basil plant in the kitchen or place fresh basil leaves around the fruit basket. 

Unfortunately, even with these precautions these pesky things tend to show up. It takes just one female fruit fly to lay dozens of eggs a day that hatch within 2-3 days.

Within a week, they breed even more, and without interference, you will have an infestation in the kitchen. They love warm environments and show up in the spring and summer months.

Houseplants that can help with pest management: Aside from basil there are other plants that you can keep in your kitchen that will help repel flies, gnats, and even mosquitoes such as rosemary, mint, sage, catnip, and lavender.

How the DIY Fruit Fly Trap Works

The jar contains a mixture of apple cider vinegar and dish soap.

  • The apple cider vinegar attracts all of the fruit flies towards the scent.
  • The dish soap’s purpose is actually to break the surface tension of the vinegar so the flies can’t just sit on top of the liquid.
  • The inverted cone made out of paper is what really traps them, though.
  • A wide top and small bottom make it easy for the flies to enter the jar, and harder for them to get back out once they’re in!
  • Since they can’t get out, and they can’t sit on the surface of the liquid, it’s only a matter of time before they meet their end. (Unfortunate for them, but a victory for us and our fruit!)
Homemade gnat trap on a wood table.

How to Make a Fruit Fly Trap

It seriously takes just about 2 minutes to do. Talk about a quick fix! Here is what you’ll need to make your DIY gnat trap:

  • 16 oz jar
  • Apple Cider Vinegar
  • Liquid Dish Soap
  • 8.5 x 11-inch piece of paper
  • Tape

PAPER CONE. Begin by creating a cone with your piece of paper, making it smaller at the base and wider up top. You want to make sure it’s wide enough that the wide part of the cone sits on the rim and the smaller portion extends about halfway in the jar. Tape the paper so it stays in a cone shape.

VINEGAR MIXTURE. Remove the cone from the jar and add about ½ – 1 cup of apple cider vinegar to the jar. Squeeze a few drops of dish soap into the jar and stir to mix it a bit. Microwave the jar for about 20-30 seconds. This will make the smell of the mixture more potent, which draws the flies in quicker.

PLACEMENT. Add your cone and place it in a spot where the fruit flies have been.

And that’s it! It takes a little bit at first for the little critters to move from where they currently are, but before you know it you’ll see them all over the outside of your jar and then in your jar trying to get out.

Dozens of gnats floating at the bottom of a glass mason jar.

How to Clean out the Jar

  • Take the jar outdoors before removing the cone, that way any insects that may still be able to fly won’t escape back into your house.
  • I usually pour the contents into the rocks I have outside and then spray the jar out with the hose. You can also pour the contents down the drain.
  • Either way, rinse the empty jar with hot soapy water. You can also disinfect with a little bleach.

Variations

Lid. The paper cone method is my favorite and I have great results. I have also seen people successfully poke holes in the lid of the jar and screw the lid on. Another idea is to secure a piece of plastic wrap on the top of the jar with a rubber band, then poke a few holes in it. 

Mason jars. I always have mason jars on hand, but you can use any similar-sized jar. An empty jam jar or spaghetti sauce jar works just as well. 

Catch and release. Instead of using vinegar and dish soap, place overripe fruit in the jar and top with the paper cone. A few flies may be able to find their way back through the cone, but most will stay in the jar. You can then release them outside.

DIY gnat trap on a wood table.

FAQ

Can I make a homemade gnat trap that won’t kill them?

For those who have tender hearts for even the smallest pests, you can place a banana peel into the jar and add the paper cone. Some flies will be able to escape, but many will be stuck inside. Empty the jar outside far away from the house.

Why isn’t my apple cider fruit fly trap working?

If you can tell that the flies are attracted to the trap but aren’t getting stuck inside, try adjusting the size of the cone. If the tip is too small they may not go all the way down inside. If the tip is too large, they can more easily escape.

Along with making a fly trap what else will rid my house of fruit flies?

Keeping your home free of overripe fruit, emptying your trash frequently, and cleaning out your garbage disposal will all help. You can also grow some house plants that deter flies, gnats, and mosquitoes. (see above for a list)

For More Useful Tips, Be Sure to Check These Out:

5 from 20 votes

DIY Fruit Fly Trap {Gnat Trap}

By: Lil’ Luna
This DIY fruit fly trap literally takes 2 minutes to put together and works AWESOME! Say goodbye to fruit flies!
Servings: 1 trap
Prep: 2 minutes
Cook: 2 minutes
Total: 4 minutes

Ingredients 

  • 1 16 oz mason jar or any similar sized glass jar
  • 1 cup apple cider vinegar
  • 3 drops liquid dish soap
  • 1 piece paper 8.5×11
  • tape
Save This Recipe!
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Instructions 

  • Begin by creating a cone with your piece of paper, making it smaller at the base and wider up top. You want to make sure it's wide enough that the paper sits about halfway in the jar. Tape the paper so it stays in a cone shape.
  • Remove the cone from the jar and add about 1/2 – 1 cup of apple cider vinegar to the jar. Squeeze a few drops of dish soap into the jar and stir to mix it a bit.
  • Microwave the jar for about 20-30 seconds. This will make the smell of the mixture more potent, which draws the flies in quicker.
  • Add your cone and place it in a spot where the fruit flies have been.

Video

Notes

To clean out the jar after you’ve caught fruit flies:

  • Take the jar outside before removing the cone, that way any insects that may still be able to fly won’t escape back into your house.
  • I usually pour the contents into the rocks I have outside and then spray it with the hose. You can also pour the contents down the drain.
  • Either way, rinse the empty jar with hot soapy water.

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Making this recipe? Tag us!
Share it with us on Instagram using the hashtag #lilluna, so we can see what you’re creating in the kitchen!

About Kristyn

My name is Kristyn and I’m the mom of SIX stinkin’ cute kids and the wife to my smokin’ hot hubby, Lo. My mom’s maiden name is Luna, and I’m one of the many crafty “Lil’ Lunas” in the fam. On this site I like to share all things creative - from recipes to home decor to gifts and home decor ideas. Welcome!

So Easy & So Yummy

Get my cookbook!

My new cookbook is the ultimate resource for feeding your friends and family with 200+ simple recipes including videos, tips & more!

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




40 Comments

  1. Jaime says:

    5 stars
    What a super creative way to keep these annoying critters out of my kitchen!!

  2. Sue says:

    5 stars
    It took me a few tries to get the paper cone the right shape for it to hold in place with a hole just the right size. The content inside certainly did attract them.

  3. Blanca reyes says:

    Great ideas here!

    1. Kristyn Merkley says:

      Thank you so much!

  4. rene b. says:

    5 stars
    Oh man! These things are SO annoying! Thanks for an easy solution.

  5. Bethany Prausa says:

    5 stars
    Thank you!! We usEd to do this at the bar i worked at. I just could rem exactly what we mixed in it. This works like a charm. I know we used wine and i think Dishsoap. But this is per for home!!!! A thousamd thank yous for sharing! ?

    1. Kristyn Merkley says:

      You are so welcome!!

  6. Vicky Leider says:

    5 stars
    I just wanted to say thank you for sharing this! We had been going crazy with Fruit flies for weeks. I put the jar out yesterday morning and by the evening there were about 50 in there. So gross but so satisfying 🙂 I cleaned it out this morning and replaced the liquid and have caught a few stragglers. Our kitchen feels so much nicer and my husband is amazed at the results. Thank you so much!!!

    1. Kristyn Merkley says:

      You are so welcome!! Those are annoying little things! I am glad it helped!

  7. Randy says:

    5 stars
    Omg this worked!!! I’ve tried using other methods but this caught like fifty flies in one day. I didn’t even know I had that many in my home yuck! Instead of apple cider vinegar I used kombucha with dish soap and it worked so well. I’m so impressed, thanks so much for sharing!!!

    1. Kristyn Merkley says:

      Thanks for sharing that! I haven’t tried using that..I will need to! I am glad it worked!

  8. john says:

    5 stars
    it caught a fruit fly before i could even put the cone on it.

    1. Kristyn Merkley says:

      Yay!! Glad it worked before you could even finish 🙂

  9. Michelle says:

    5 stars
    This worked very well for me. I did exactly as you said and even 24 hours later the fruit flies are still piling up. I think using the paper cone and microwaving for aroma were key, because when I just had ACV/dish soap in bowls it wasn’t nearly as effective. Thank you for the tip!

    1. Kristyn Merkley says:

      You are so welcome!! I am happy it worked 🙂

  10. susan says:

    The paper cone worked a little bit. but mostly the little buggers just sat on the outside of the paper cone. I switch the top to plastic and poked holes in with a toothpick and that did the trick …they are all out of my kitchen within an hour.

    1. Kristyn Merkley says:

      I’m glad you found a way to get them! 🙂 Thanks for sharing!