How to get rid of gnats and keep them from coming back (2024)

  • Know your gnats: there's a difference between gnats, fruit flies, and drain flies.
  • Traps made from vinegar, wine, or overripe fruit can help trap gnats and fruit flies.
  • Avoid overwatering your plants to keep fungus gnats away.

Gnats are pesky little insects, whether they're invading your home or exterior area. The key to getting rid of them is understanding the different types of small flying insects, so you'll know whether you have gnats, fruit flies, or drain flies. Then, it's important to understand what's attracting them to your home so you can take the appropriate steps to get rid of them.

"There are several species of gnats and they all like saturated soil and organic matter from leaf piles, dead plants, compost, manure, and mulch piles," says David Price, associate certified entomologist and technical director for Mosquito Joe. In your home, gnats are drawn to overly-ripe fruit and even food stuck in your garbage disposal.

"They end up in your yard or around your house from a couple of different sources," he says. "For example, they can be brought in from a plant that has eggs in the soil, mulch that may have eggs or larvae, or from a neighboring property, woods, farm, or nearby wetlands."

While some gnats can contaminate your food by transferring bacteria from a dirty surface, Price says that in most cases, gnats are just a nuisance. And there are plenty of solutions that require little more than what you've already got lying around. But first, you should know what type of gnat you're dealing with.

Gnats vs. fruit flies vs. drain flies

How to get rid of gnats and keep them from coming back (1)

Tomasz Klejdys/Heather Broccard-Bell/Backiris/Getty Images; Rachel Mendelson/Insider

It's quite common to think that "gnats," "fruit flies" and "drain flies" are synonyms for the same small flying insects. But they are three distinct species:

Fungus gnats look like small mosquitoes (but they don't bite). They are usually dark gray or black in color. They're tiny, and they have long legs. "Fungus gnats can be found in or outdoors and the larvae will drain the nutrients of a plant," Price explains.

Fruit flies look like tiny house flies, and they have large, red eyes. They may be light brown or dark in color. "They are typically brought indoors from any fruit or potato that you buy at a store, and they will quickly move to the drains where organic material is building up. That's why a garbage disposal is a common location," Price says.

Drain flies are light in appearance, usually a beige/tan or light gray color. Their appearance is unique because they look quite hairy. "Drain flies are an indicator that water has been standing for a week or more. They often show up in a bathroom that hasn't been used for a while or if there is slime buildup in plumbing pipes," says Price.

How to get rid of gnats

How to get rid of gnats and keep them from coming back (2)

Lyudmila Mikhailovskaya/Shutterstock

Fortunately, there are ways to rid your home and plants of gnats, fruit flies, and drain flies. Solutions below include both traps that will attract any type of gnat and specific solutions for clearing your plants of fungus gnats and your drains of drain flies.

Keep in mind that these are all short-term solutions, and the concoctions will need to be replaced/refreshed every week or two.

Method 1: Vinegar trap

Price recommends placing a few tablespoons of apple cider vinegar, a few drops of dish soap, and a tablespoon of sugar in a bowl and then stirring the contents. "Set your bowl in an area where gnats are prevalent, like your kitchen or bathroom," he says. The gnats will be attracted to the sugar and vinegar, but the dish soap will coat their wings making them unable to fly away.

Method 2: Wine trap

If you have some stale wine, Price suggests pouring it in a small vessel and then adding two drops of dish soap. "Place the mixture in gnat-filled areas of your home and wait for the bugs to drop in," he says.

Method 3: Fruit trap

If you choose this method, Price advises covering a jar of rotting fruit with plastic wrap and then punching holes in the wrap. "The gnats will enter the jar and get stuck in it," Price says.

Method 4: Fan

Vera Peterson, president of Molly Maid, recommends using a small household fan to get rid of gnats. "Turn your fan on a low setting — this moving air will make it tough for gnats to fly, creating a miserable environment for them," she explains.

Method 5: Salt, baking soda, and vinegar

If the gnats are congregating around your drain, Peterson recommends another concoction: Pour 1 cup of vinegar and a half cup of salt and baking soda down the drain. Let it sit for at least two hours and then pour boiling water down the drain.

Method 6: Boiling water

In addition to using one of the methods above, Peterson recommends pouring a small pot of boiling water down your drain on a weekly basis to prevent it from developing into an environment gnats are attracted to.

How to get rid of drain flies

To get rid of drain flies, Price has one primary recommendation:

"Combine 1/2 cup salt with 1/2 cup baking soda and 1 cup of vinegar and pour down the drain." Leave it overnight, and in the morning, pour boiling water down the drain. "This is a natural remedy that will clean the plumbing pipes and remove the breeding grounds for these flies," he explains. "Additionally, any product that will break down the slime or organic matter that is building up in the pipes will assist in the long term."

Keeping gnats at bay

An ounce of prevention is worth a pound of cure. Peterson recommends keeping your home – and especially your kitchen sink drains and toilets clean and clear. Dispose of any fruit or other produce past its prime, and do the same with any cut flowers.

Regarding houseplants, Pangborn says gnats are looking for consistently moist environments where they can lay eggs — and that's why potted plants are so attractive to them. "The trouble comes when the top layer of potting mix doesn't dry out between waterings, since the top layer is where the gnats settle," she says. Gnat infestations typically occur with plants that need a lot of water or plants that are overwatered.

"One of the best ways to deter fungus gnats is to ensure the top layer of soil is not kept constantly wet." Instead of overhead watering (with a faucet or water can), Pangborn recommends putting your potted plant — be sure it has a drainage hole — in either a tray or sink that's full of a few inches of water.

"Allow it to sit in the water for anywhere from 30 minutes to an hour; during this time, the water will soak into the bottom of the soil through the drainage hole, and slowly saturate the root ball from the bottom," she says. After you remove the pot, let the excess water drain before putting it back in its saucer or cachepot. "This technique of bottom-watering ensures your plants get the water they need while avoiding the environment that gnats love."

And she has one last piece of advice. "Since the top layer of soil is where gnats like to be, another trick to keep them away is to replace the top 1 to 2 inches of potting soil with something that doesn't hold water, like perlite."

Insider's takeaway

Whether they're in your home or outside, gnats are problematic. You probably have most of the ingredients that can be used to bait and trap them, such as vinegar, wine, and rotting fruit. However, since rotting fruit can also attract gnats, ensure that you're thoroughly cleaning your kitchen and garbage disposal.

Regarding plants, overwatering them is likely leading to your gnat problem. Consider watering plants over a sink or drain and then letting the water drain out.

Terri Williams

When she's not writing about business trends for The Economist, or legal trends for the American Bar Association Journal, Terri spends her time covering trends in buying and selling homes, mortgages, home improvement, and home products. She has bylines at Realtor.com, Bob Vila, Apartment Therapy, The Spruce, Real Simple, Real Homes, Yahoo, The Daily Beast, Investopedia — and several other companies that you've probably heard of.

How to get rid of gnats and keep them from coming back (2024)

FAQs

How to get rid of gnats and keep them from coming back? ›

One of the most old-school ways to get rid of gnats is with a vinegar bowl. Fill a bowl with vinegar, sugar, and dish soap. The sugar attracts them, the dish soap keeps them in the bowl, and the vinegar kills them.

How do I keep gnats away permanently? ›

The following are some of the best ways to prevent gnats:
  1. Take out the garbage daily.
  2. Don't let old fruit collect on the counter or in the fridge.
  3. Treat drains periodically to prevent food build-up.
  4. Don't overwater house plants.
  5. Check for plumbing drain leaks and fix them immediately.
Dec 6, 2022

How do I keep gnats from coming back? ›

Change Your Garbage Bag Regularly

Whenever your garbage is getting full or you throw away food, remove the bag and dispose of it outside of your home. Also, make sure your garbage can is covered at all times. Get a one with a lid so you can trap those smells inside of the can and prevent gnats from smelling them.

How do you get rid of gnats once and for all? ›

5 Ways to Get Rid of Gnats
  1. The Classic Apple Cider Vinegar Trap. Apple cider vinegar's sweet smell is appealing to gnats, so you can use it to make an easy trap—a literal thirst trap, if you will. ...
  2. Lure Them With Ripe Produce. ...
  3. Put Empty Wine Bottles to Good Use. ...
  4. Flush Drains with Bleach. ...
  5. When in Doubt, Use Sticky Traps.

What kills gnats in the house instantly? ›

Homemade gnat killer spray: A mixture of half a cup of water, half a cup of isopropyl alcohol, and a teaspoon of dish liquid can be filled in a spray bottle. This mixture can be sprayed on the gnats directly to kill them.

What runs gnats away? ›

Repel them with Scent.

Or, you can switch up your favorite scent with something they don't like. Try Lighting citronella candles, using lemon or vanilla sprays. While gnats are a fan of sweet-smelling fruit, they can't seem to stand vanilla, lemon, or even lavender. A little spritz can at least keep them at bay.

Do dryer sheets keep gnats away? ›

The research says yes. A study by researchers at Kansas State University and the University of Illinois found that Bounce dryer sheets kept fungus gnats (which harm plants) away.

How do you fix a gnat infestation? ›

How Do You Get Rid of Gnats?
  1. Identify and remove the source of the infestation. ...
  2. Purchase a gnat trap or gnat zapper or create a DIY gnat trap to catch and kill the gnats in the house.
  3. Use a gnat spray to kill gnats in flight or to spray down areas of infestation.

Why am I getting so many gnats in my house? ›

Attracted to damp soil, fungus gnats usually get into homes by flying inside or from infested houseplants brought inside the house. Fungus gnats infest soil and feed upon decaying or damaged plant roots as well as fungi found in the soil.

Why do gnats keep coming to me? ›

Body heat and moisture also play a role. Many species of gnats and flies are attracted by body heat. Others are in search of moisture. Not only are they drawn to perspiration, but also the mucous around your eyes and nose that can be a source of moisture.

Why won t gnats go away? ›

Do gnats go away on their own? No, it's unlikely that gnats will go away on their own once they start reproducing. You will need to take proper measures to get rid of them, such as putting away your fruits, flushing out your drains, or changing the soil in your indoor plants' pots.

How long can a gnat infestation last? ›

The average adult gnat lifespan is one week, and they can lay up to two hundred eggs in that time. It only takes the pests about 28 days at most to complete their whole life cycle. So if you're wondering how fast do gnats reproduce or how often do gnats reproduce, the short answer is: A LOT.

Where do gnats lay eggs? ›

Fungus gnat lay eggs in moist soil or moist organic debris of plant origin. Some examples of habitat where females lay eggs include piles of leaves, garden and grass debris, compost piles and mulch. It takes about three days before the larval stage hatches from the eggs.

What kills gnats and their eggs? ›

Hydrogen peroxide (the standard 3% topical variety) can be used as a soil drench. Mix one part peroxide with four parts water, and pour it through the soil at the root zone until it begins to come out of the base of the pot. The peroxide kills fungus gnat larvae on contact.

Why do gnats keep coming? ›

Gnats are attracted to moisture, so you're most likely to encounter them in the summer months—they often hang out in moist areas of your home like your kitchen drain or potted soil. That also means factors like food spills, unsealed garbage cans, or potted houseplants can all contribute to an infestation.

How do you treat a gnat infestation? ›

How to Get Rid of a Gnat Infestation
  1. Yellow sticky traps - These glue-coated, adhesive paper traps attract gnats with their bright color and then trap them as they land.
  2. Fruit traps - Some homeowners use a jar of rotting fruit covered with perforated plastic wrap to lure and then trap gnats.

What smells do gnats and flies hate? ›

What Smells Do Gnats Hate?
  • Lemon essential oil. Unlike humans who enjoy the fresh lemon scent, gnats hate it. ...
  • Lemongrass essential oil. ...
  • Eucalyptus essential oil. ...
  • Lavender essential oil. ...
  • Cedarwood essential oil. ...
  • Peppermint essential oil. ...
  • Tea Tree essential oil (melaleuca oil) ...
  • Rosemary.

Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5460

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.