What Causes Gnats and How to Get Rid of Them

Updated on November 4, 2019
Sammendoran profile image

I had a gnat problem in my kitchen. Turns out my indoor plants and dirty drain were the culprit.

What Are Gnats?

Gnats are small black or dark-brown insects with long, slender bodies (1/4-inch long) and thin wings. They look like tiny flies, but what you see are full-grown adult gnats. They belong to the Mycetophilidae, Anisopodidae, and Sciaridae families and are weak fliers. There are two types of gnats: non-biting and biting, but the ones you find in your house and yard are typically the non-biting type. The most common types of gnats people find in their homes are fungus gnats, fruit flies, or drain flies (phorid flies).

The gnats you commonly find in your home are likely fungus gnats, fruit flies, or drain flies (phorid flies).
The gnats you commonly find in your home are likely fungus gnats, fruit flies, or drain flies (phorid flies).

How to Get Rid of Gnats for Good

Use all three of these methods simultaneously to wipe out existing gnats and prevent further infestation.

1. Eliminate the Source

Clean up your kitchen, seal your drains, and replace your potting soil.

For fungus gnats: Fungus gnats live and breed in the soil of your potted indoor plants. Remove dead leaves on top of the soil. If you suspect mold or fungus, replace the pot liner, the soil, or both. If the root has rotted, consider replacing the plant altogether.

For fruit flies: Remove rotten or overripe fruit from the kitchen. Dispose of all organic foods outside. Tie the plastic bag tightly and properly close the trash bin to prevent gnats from getting attracted to the smell and breeding inside the trash can.

For phorid (drain) flies: If you see bugs in your kitchen that aren't fruit flies, they are likely phorid flies (or drain flies). These insects can only breed in moist areas, typically in drains or where there is leakage. Wipe down the outside of the pipes, fix any leaking pipes, fill and cover crevices and holes where moist dirt can get trapped, and keep your kitchen and bathroom dry.

2. Kill the Babies (Larvae) and the Adults to Prevent Multiplying

Search for their breeding ground in order to kill the larvae and stop the cycle of procreation.

For fungus gnats: The best method I've found is using a combination of steel wool and yellow sticky traps in my potted plants. I cover the top of the soil with coarse steel wool to shred emerging baby gnats flying out of the soil and adult gnats that fly in to the soil to breed. I recommend getting medium coarseness or higher, and don't get the steel wool sponges because those have big holes that are easy for flies to get through. I also hang these Trapro Sticky Fly Traps on the plant to catch flying gnats loitering nearby. This combination ensures that I kill every single gnat possible.

For fruit flies: Fruit fly larvae live in fruits, so just dispose of infested fruits in your kitchen and refrigerator. Hang up those sticky fly traps to catch existing ones.

For phorid (drain) flies: Drain-fly larvae live in the sludge and film within your drain, but they may also breed inside the dirt that covers the outside of the pipes. Wipe down the outside with soap and water, and then do another wipe down with distilled white vinegar.

To kill the larvae inside the pipes, I used this Drain Treatment from Green Gobbler. I used the whole gallon over the course of a week, and my kitchen was completely clear of gnats after that. The product is a gel that traps flies and larvae, and then kills them with the active ingredient, citronella. I would pour some down the drain at the end of the day and cover the drain with a glass bowl to prevent escapees. Then I would run hot water for 5 minutes the next morning to clear everything out, and then repeat the process again that night. I did this for 6 days.

3. Water Plants With a Hydrogen Peroxide Solution

To kill fungus gnat larvae on contact, water the plant with a mixture of 1 part hydrogen peroxide (3% solution) and 4 parts water. Once you pour the mixture into the soil, you should see some bubbling, which indicates that the solution is working.

4. Apple Cider Vinegar Gnat Trap

This is an efficient natural and homemade way to kill adult gnats without using harmful chemicals. The best part is that this works on all types of gnats.

How to Make a Gnat Trap:

  1. Pour apple cider vinegar and a bit of dish soap into a jar or cup and mix it thoroughly. The smell of apple cider vinegar attracts gnats like crazy and the soap prevents them from flying, thereby drowning them inside the cup.
  2. Cover the cup with plastic wrap and poke holes in it with a pen. The holes allow the gnats to crawl into the cup.
  3. Dump out the contents after 2 days, and start fresh. Do this repeatedly until you no longer see gnats inside the jar.

Note: You can also use beer, wine, or ripe fruit instead of apple cider vinegar, however, you may attract ants, so I recommend sticking to apple cider vinegar.

What Are Gnats Attracted to?

Gnats are attracted to moisture and organic material, which is why you'll notice more gnats during the summer than during the winter. They typically enter the house in search of food and a place to procreate. They gravitate towards decaying organic material, such as decaying leaves or rotten fruit and moist areas inside the home, such as wet potting soil or wet sinks and drains.

The following are causes of gnats inside your house:

  • Moisture: Moist breeding grounds for gnats include food spillage, moist potting soil, overwatered grass or plants, garbage cans, puddles in kitchen or outside your house, leaky pipes under the sink, and condensation around windows and vents.
  • Fruits and vegetables: Fruit flies appear when you leave produce out in the open, especially sweet-smelling fruits. They are also attracted to fallen or rotten fruits in your garden.
  • Decaying organic material: Fungus gnats love rotting plants and flowers. Things they feed on include fungus, mold, moss, and compost. They typically live in your potting soil where they can feed on either root rot or decaying leaves.
  • Humans: Perspiration, body heat, mucus from your nose, tears from your eyes, and carbon dioxide are all elements of attraction to the common household gnat. They also like sweet-smelling lotions, perfumes, hairsprays, and detergents, so avoid fruit fragrances if you have a gnat problem.
  • Light: Like flies, gnats can't fly very well in the dark, so they swarm around light fixtures and lamps.

How to Prevent Gnats From Coming Back

  • Don't overwater your plants. Let the soil dry out between waterings.
  • Remove dead material on top of the soil. Pick up and discard dead leaves, twigs, flowers, etc.
  • Don't leave food out. This means washing your dirty dishes and drinking glasses. Even a slight hint of juice, wine, or sauce will attract gnats.
  • Get rid of damp areas. Fix your leaking pipes and faucets. If there is condensation on the pipes, insulate it by getting a foam insulator.
  • Cover your trash cans. You should take the trash out as often as possible. Stinky trash cans are a haven not only for gnats, but other creepy crawlies as well.

Types of Common Household Gnats

Where Is It Found?
What Is It Attracted To?
How to Get Rid of Them
Fungus gnat
Small and black
Around potted indoor plants
Fungus and mold in potting liner and decaying leaves
Clean up dead leaves/flowers, and allow the soil to dry between waterings. Replace soil and pot liner if there is mold/fungus.
Fruit fly
Small and light brown with red eyes
In the kitchen
Ripe or rotten fruits and vegetables
Remove overripe fruits and vegetables in the kitchen; keep the compost lid shut tight
Phorid fly
Small; black, dull brown, or yellowish; walks in jerky zig-zag motion
Lives around drains, sewers, and garbage cans
Wet, moist, unsanitary areas
Fix any water leaks and keep the area clean & dry
Simple guide to identifying common household gnats, determining what's drawing them into your home, and getting rid of them once and for all.

This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.


    0 of 8192 characters used
    Post Comment
    • profile image

      Leroy king 

      4 days ago

      Hi there, I just want to inform you of a New kinds of Gnat that's flying around by the thousand and they're not only outside they're also inside People home by the Million. What do we do with Gnat that we can't even see. Oh I forgot to tell you that I live in Louisiana, over there in La' Baton Rouge. Help!

    • profile image


      2 months ago

      We live in northern middle fl and gnats are so bad outside how do you get rid of them outside ...it's so bad u can't even hardly walk to your car

    • profile image


      5 months ago

      Visine kills them in the eyes, don't use it except externally, only eyes also" not up the nose!!!!! Flush nose with Nettie pot "" they make electric suction ones so it doesn't go everywhere like down your throat ☆☆it sucks but if you want to get them out of your nose and sinuses and actually kill their home... get used to the idea, its the only way, once you do it they will find their way to your eyes ""From the inside.. you'll feel them, Visine time!!! Now time to make a trap that works.. get a stool or something to wrap sticky fly paper around barber pole style,, 1 inch between wraps with a bowl of yeast sugar and water, on a plate after you watch it foam up the first time" don't end up with a volcanic eruption on your carpet, or anything that works like a rotten apple those work great but not for the ones that want YOU, they want blood " hence the carbon dioxide from the yeast like you breathe out, love all of you, good to know I'm not the only one, it's our chemistry, I wish I knew that fix, I'd become a millionaire, tnmoonshine ..aol

    • profile image


      6 months ago

      Hi, a good friend just told me , to get rid of all house gnats go to Walmart , they carry - in the bug spray isle, these little

      Red plastic apples they come 2in a Box and come with some type of oil or something

      And you just pour the oil in the two little apples and sit them out where you have gnats and they are drawn to them, fly inside and can't get out.

      She told me they work very well !!!

    • profile image

      I have the same problem with these gnats eyes and nose, ears .need an solutions to this problem help me too 

      9 months ago

      I got the same problem with these gnats eyes and nose, ears pleased help

    • profile image

      Juanita drake 

      9 months ago

      Where do i get greengobbler

    • profile image


      9 months ago

      I have a big issue as well.. I did not know they can come from the drain. I will be trying the remedy tonight.

      The one thing I can say is them little suckers can get off those hanging sticky traps. I have watched them. Not strong fliers my ass. Even with residue from the sticky trap, the are on amission. They are so small they can walk around like nothing on it.

    • profile image

      Taryn Ross 

      10 months ago

      We caught gnats as soon as the electricity went out on Monday. There upstairs in the bed rooms and bathrooms and there is over a hundred in the kitchen!!! I don't know how to get rid of them, please help. I just try to kill them when I see them, but I am tired of see them and washing my hands :(. I would also like prayer. I'am praying for all who have gone through this.

    • profile image

      April Olichwier 

      10 months ago

      Hi! I live in the US, also. We have biting gnats! They bite my feet, toes, legs, arms, my back, my stomach, my neck, and anywhere else they have access to. The bite stings and really hurts! Afterward, the place they have bitten itches intensely! By the time I try to swat the area, they’ve moved on to another part. Research tells me they are also called “no-see ums”. They are black or grey and move so fast, you can’t see them! I have not been able to sleep at night now for about 2 months!!

      They are driving me crazy, also! Good thing I don’t work, because if I did, I would probably lose my job, also.

      From reading comments online, I put baking soda, white vinegar, and hot water down the kitchen and bathroom sinks last night. I’m going to try the green gobbler stuff tonight. I’m also taking the trash out every night. I might throw out the toaster, too. I don’t know what else to do, but pray!! I contacted my pastor and he is also praying. Got any other ideas?

    • profile image

      Laurie Hayes 

      11 months ago

      I'm dealing with eye gnats. These are mostly found in 3rd world countries, my Dr. said. My Dr. also said there's no way I have these in the United States. Well I live in Florida and these eye gnats love the tropical weather. Iv'e had them since April and can not get rid of them. I'm beyond depressed, I lost a very good job, don't have any life outside my home, and not really sure I can go on. They have over run my life and I'm the nest. I'm 56 and never ever have I experienced something so devastating. I have yet found a Dr. who believes me, and yes I brought in the ones I caught by using tape on my face. They love my eyes, nose and around my mouth. They now are under my fingernails and toenails. They breed so fast I can't get a handle on them. Has anyone heard of these in the united states? If yes, Please let me know. Thanks so much. I'm wondering if I am high on my sugar intake and if I change my diet, will it help? I've done everything they say but it's for fruit gnats or fungus gnats. No info on eye gnats. Help... I'm losing my mind because all treatment is for the home, and there's no nest in my house, It's in my ears and nose.

    • profile image

      G. D. 

      11 months ago

      I fought the fruit flies in the kitchen and finally figured out why I couldn't get rid of them in spite of having nothing around that would attract them. I noticed they were in one area which is where the toaster is. So I thoroughly cleaned the inside of the toaster (as much as one can clean the inside of a toaster!), Then I put the toaster in a plastic bag and voila I have only seen two of the fruit flies since then!

    • Sammendoran profile imageAUTHOR

      Sam Mendoran 

      12 months ago from Morgan Hill, CA

      Gnats in the bathroom are likely coming from the drain. Or if you have plants in the bathroom or a trash can that doesn't get emptied frequently, that might be it. Clean your trash, remove any plants, and use the Green gobbler products down the drain.

      Gnats around dog and cat food are fruit flies. Clean their dishes and water bowls after each day and the area around them, since they might make a mess around their bowls. And don't let their leftover food sit out for too long.

    • profile image

      Barb Weil 

      12 months ago

      Hi again, I totally forgot to ask about the gnats that are in our cat & dog's food. What type are they & how best to get rid of them? Please help as I am going insane here! Thanks, Barb

    • profile image

      Barb Weil 

      12 months ago

      What about gnats in the bathroom? I have seen them in the toilet & now I have to check all the time even when guests come over.

    • profile image

      John Weber 

      13 months ago

      Fungus Gnats are attracted to yellow. Go to Walmart pick up pop cycle sticks (crafts), yellow post its, glue stick, Vaseline. On pop cycle stick put the sticky part of the post it (top of pop cycle stick half way up post it) fold in half and glue other end of post it to other side of pop cycle stick, cover the yellow with Vaseline and stick one in each plant. The gnats will get stuck and die. This only works for indoors.

    • profile image


      13 months ago

      Vacuuming sounds like a great idea. Thank you.

    • profile image


      13 months ago

      We had bunch of fruit flies in kitchen. Just finished vacuuming them all up into oblivion. lol Cleaned up the whole kitchen, put bananas away, took trash out & put all recyclable drink cans in a bag & put outside.

      Vacuum them. lol

      Worked perfect for us

    • profile image


      13 months ago

      Thanks! This is really helpful.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, dengarden.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://maven.io/company/pages/privacy

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)