How to get rid of gnats in your home

Got gnats in the kitchen? Use this cheap and easy DIY gnat trap to get rid of gnats!Gnats! They’ve invaded our home. In seasons past it seemed they only showed up if we had old bananas, but I guess since we had such a warm winter the bugs (including gnats) are out in full force. One thing in our home that attracts gnats is our compost bowl where I throw vegetable scraps before they go out to the compost pile or to the chickens. In years past simply moving the bowl outside would get rid of gnats, but this year they are tenacious. It doesn’t help that we have a toddler who walks around the house snacking on bananas among other things and leaves nibbles goodness knows where! Did you know a single gnat can live for four months in your home? Breeding that whole time no less! Need to know how to get rid of gnats in your home? Here’s an easy, non-toxic way to get rid of them for good. No more slapping your hands violently at seemingly nothing thanks to this homemade gnat trap.

Got gnats in the kitchen? Use this cheap and easy DIY gnat trap to get rid of gnats!

How to get rid of gnats

You will need:
Wide mouth jar
Plastic wrap
Rubber band (optional)
2T vinegar
1t sugar
4 drops dish detergent

Mix vinegar, sugar, and dish wash together in a wide-mouthed container. Add water about 3/4ths of the way to the top of container. Cover rim tightly with plastic wrap (I also used a rubber band around the rim just to be sure). Using a sharp knife, cut a few slits in the plastic wrap. Leave container in the kitchen or other problem area.

That’s it! At first I used a fork to poke holes in the plastic, but noticed the gnats being attracted to the container and unable to get in. Slits with a knife work best for us. Remember to be patient! Remove countertop fruit and kitchen scraps so the gnats can be attracted to the jar. I set two out one evening and the following morning we had 4-6 gnats in each one. They seem to be avoiding the jars now (maybe they wizened up?) so I’ll empty and refill them tonight with fresh “bait.”

Got gnats in the kitchen? Use this cheap and easy DIY gnat trap to get rid of gnats!

And that’s how you get rid of gnats in your home! Note that the amounts don’t have to be an exact science. I used two different sized jars and just eyeballed the ingredient amounts.


Young Living Essential Oils Premium Starter kit Bonus Items


  1. Great to know, hate those little buggers especially around my wine!

  2. It’s great when you find a natural solution that works!

  3. Interesting! If we have a gnat invasion I’ll be sure to try this.

  4. I hate gnats, too! I be trying this!

  5. Would you believe that as I’m reading this I’m swatting a gnat out of my face continuously?

  6. I could have used this last summer. I had a bad infestation of them last year and just about drove me mad. Now I know what to do. Thanks for sharing!

  7. Super cool!

  8. I hate gnats. Hate them. Hate them. Hate them!

  9. I will definitely keep this in mind. Thankfully we don’t have any in our house. But every time I walk outside, they attack me. I wonder if I put a jar outside if it would help keep them off me?

  10. I agree they seem to be awful this year. I didn’t know about adding sugar and dish soap. I have always just put apple cider vinegar in mine.

  11. I need to try this!

  12. Thanks for sharing. I had a gnat problem a couple years ago. They were gathering in a houseplant. I finally got rid of them until recently when my boyfriend needed me to care for some of his plants while he was out of town working… guess what was in the soil?

    I’ll give this a try. Last time I used moth balls to get rid of them…. smelly! Not a good idea for indoors! Lol!

  13. We had a nasty gnat issue last year! We did something very similar!! Thanks for sharing!

  14. Maryann D. says:

    Thank you for this idea. I have been having a problem with them in my house already and I do want to try this!

  15. Great tip! I also use red wine vinegar – it works for gnats and flies!

  16. Thanks for sharing. I will be using this tip the next time we get invaded!

  17. This is great! I hate gnats and it seems like even after the bananas are gone they still linger around for days. I will definitely try this out next time.

  18. Patti Hess says:

    i’m emailing this to my husband and mother in law and sister :) thank you

  19. Thank you for this! We get them in Phoenix, too….and it drives me crazy! This is super helpful!

  20. Thanks for the idea. I hate gnats!

  21. I’m definitely going to try this!

  22. Very cool, I’ll have to try that

  23. I hate them so much!

  24. Great! I use red wine vinegar -love that it’s natural!

  25. OH, MY WORD! We are having a HORRIBLE time with gnats — I can’t get rid of them!!!! It doesn’t matter how pristine my kitchen is, they are finding stuff to land on … including my bottle of hand sanitizer! That’s were I found a bunch this evening.

    I’m going to try your trick tomorrow … ugh. I HATE THOSE THINGS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  26. I hope I never need to do this!

  27. Yuck, I hate bugs :(

  28. That sounds wiser than releasing a hundred bats in the house. :)

  29. andy grant says:

    Just got back from vacation and had a “ton” of gnats in the house. I tried a different recipe with no results. Remembering your blog post I looked at your recipe tried it and within five minutes had trapped 20 gnats. Thanks a bunch!

  30. I almost can’t wait to get home and try this remedy. Been swatting at these pesky pests for way too long.

  31. I’n going to have to try this

  32. I have a few gnats in the bathroom and I’m about to try this now! Yuck!

  33. OMG we have these nasty things too. I tried just soap sugar and water in an open glass but it didn’t work. I am going to have to try this.

    Thanks for linking up with my new linky.

  34. Great tip! I had a fruit fly problem, and I found a similar solution with a piece of ripe banana placed in the bottom. It worked okay. However, the tip that I found that worked the best was keeping a vacuum cleaner ready in the kitchen. When I spied a mass of fruit flies, I just turned on the vacuum cleaner and sucked them easier out of the air. It made a huge difference.

  35. YES!! I am reading through your blogs I haven’t read and am psyched about this. Pinning stuff left and right:)

  36. Sounds like fruitflies

  37. Jeannie Shaw says:

    You can also use 1/2 C apple cider vinegar plus 1 drop dish soap in a shallow bowl, attach plastic wrap and add slits….. Lasts a long time…just dump as needed

  38. I wish I could use this outside but I don’t want to kill all the gnats, but they are annoying!

  39. I had great success
    So happy to get RID OF THOSE LITTLE BOOGERS, thanks

  40. I have had a heck of a problem as well this year! I have just used white distiled vinegar and a couple drops of the dish soap in a shallow dish and I fill it 2/3 full of just the vinegar and 2 drops of soap and the fist day I put 3 out and we had to have had at least 20 in each bowl. I have heard they like the vinegar and the soap kills them. Anyway just thought I would share what I have learned. L

Add Your Comment