My Pantry Was Infested with Gnats—Here’s How I Got Rid of Them Overnight

A group of small insects clustered near a corner likely flies or gnats

Last fall, my roommates and I moved into a new apartment, but as I settled in, I found a creature I’d rather not be rooming with: gnats. At first, I only noticed a few flying around in the kitchen, so I used my fly swatter to manage them. After a couple of days, the gnats were multiplying—and swarming around the pantry in particular.

I opened the door to find gnats crawling around a rotting banana. Luckily, the bugs didn’t bother any other food in my pantry, but they had claimed the rotted fruit as their own. (Word of advice, don’t put bananas on the top shelf. Instead, make sure they're always in sight.)

Pantry with bananas on shelf
Rene Johnston / Contributor / Getty Images

Gnats aren’t only attracted to ripening fruits; they seek anywhere that has moisture so they can lay eggs. Sometimes even leaky drains, spilled juice, damp sponges, and fragrant soaps can draw gnats to your home. 1 Thankfully, my best friend taught me her way to get rid of gnats overnight, and now I'm sharing it with you.

How to Get Rid of Gnats with Basic Household Finds

A liquid is being poured from a bottle into a small glass bowl with the bottle cap placed nearby
Michelle Lee Photography / Getty Images

To get rid of gnats, you’ll need a bowl, rotting fruit (but any fruit will work even if it’s not rotting), apple cider vinegar, dish soap, and plastic wrap.

  1. First you’ll need to place rotting fruit in the old bowl or container.
  2. Next, pour ⅓ cup of apple cider vinegar into the bowl, and mix in just a few drops of liquid dish soap. (I used Dawn.)
  3. After everything is in the bowl, wrap the entire bowl with plastic wrap. If the bowl isn’t completely covered with wrap, the gnats may escape through the open areas.
  4. Then, using a needle or toothpick, poke small holes in the top of the plastic wrap for the gnats to enter.
  5. Place the bowl in the area where your gnat infestation is. If this area has a door, leave it open with just a crack, so that any gnats outside of the area will still fly to the trap.
  6. Leave the area untouched overnight.
  7. If gnats are still swarming the area by morning, leave the mixture there throughout the day to allow them to settle. The soap's stickiness will stop the gnats from flying away.
  8. Once all of the gnats are captured in the bowl, put on a pair of gloves and carry the bowl to a garbage outside. You don’t want to throw the bowl away inside, or more gnats may be attracted to the trash can.
  9. Make sure to wipe down the area where the gnats were infested with the proper cleaning solution. My pantry had wood shelves, so I mixed together a solution with a few drops of dish soap, water, and white vinegar and wiped away the area that was infested with gnats.

Other Places Gnats Might Appear

This insect prefers anything that smells sweet and is naturally attracted to most fruits. If you leave foods like onions, bananas, potatoes, mangos, or others out on the counter, make sure they are fresh and the area is kept clean.

Sweet smells in beauty products such as lotion, body wash, and perfume could also be the reason for gnats in your home. Check all areas that you leave these products and ensure nothing is spilled.

Gnats could also be drawn to your houseplants. If you overwater your plants, the moisture in the dirt creates organic matter that will draw this pest in. The best practice to avoid this is allowing the soil to dry between watering. 5

Source: https://www.thespruce.com/how-i-got-rid-of-gnats-overnight-11889598