Fungus Gnats: Where Do These Little Flying Bugs Come From?

Updated on May 7, 2019
thoughthole profile image

I have more than eight years of hands-on experience in the horticultural maintenance industry and shares many tricks of the trade.

What are those little flying black bugs?
What are those little flying black bugs?

What Are These Tiny and Annoying Black Flies?

Fungus gnats are tiny flying insects often mistaken for fruit flies. A fungus gnat is much smaller than a fruit fly and has a tiny black body (while fruit flies are commonly tan and have very visible bodies). Gnats are also attracted to decaying organic material, wheres fruit flies only feed on produce. These bugs lay eggs in soil where conditions are moist and there is decaying matter to feed upon. The eggs of the gnats hatch in the soil, and the larva live and feed on fungal material found there. They can eat away at the roots of your plants and cause them to yellow or die. When the larva grows into an adult, it flies out in search of new locations to procreate and feed.

Most people notice that they have fungus gnats in their home because these tiny bugs will often try to fly into a person's nose, mouth, or eyes, as they are attracted to moisture. This trait causes them to be commonly reported as "those little, annoying, flying bugs." They can be especially irritating to someone who sits at a desk near the origination of the infestation.

Where Do Gnats Come From and What Are They Attracted to?

  • Moisture: They love to live and breed in the moist soil of overwatered house plants, in containers or pot liners, or around areas with standing water, such as sinks, open bottles of beverages, etc. Tap on the pots of any houseplants in the area where they seem to swarm. If there are gnats, they will begin to fly up out of the plant.
  • Decaying organic matter: Fungus gnats feed on moist, decaying, organic material, such as dead leaves, leaf husks, fungus, or any other organic debris on top of the soil's surface or down inside the pots and liners. They are also attracted to soil that contains organic material, like wood chips, peat moss, or compost, which is also why you may find them in compost bins or trash cans with decaying material.
  • Light source: They typically swarm around windows, lamps, and other light fixtures.
  • Carbon dioxide: Like most flies, fungus gnats love CO2, which is why they like to hover around your mouth and nose.

What's the Difference Between a Fungus Gnat and a Fruit Fly?

Fungus Gnat
Fruit Fly
smaller than a fruit fly
tiny black body
brown or tan body
attracted to moisture and decaying organic material
attracted to fruits and vegetables
feeds on moist, decaying organic material found in houseplants' soil
feeds mainly on produce

How to Get Rid of Fungus Gnats

Use the following methods to catch and kill fungus gnats that are present in your home. Use a combination of methods and do it repeatedly for at least 4 weeks.

Dry Out the Soil

For an over-watered plant, you must begin drying out the soil. Overwatered plants get root rot, and rotten roots are a perfect food source for fungus gnats. As a side note, overwatering will eventually kill most houseplants, so please don't do it.

Remove Dead Leaves

If there are dead leaves or any other kind of debris in the soil or inside the liners or containers, it must be removed. Dead, decaying material is a food source for gnats.

Massacre With Steel Wool

This method works like a charm. Place a thin layer of steel wool on top of the soil of your potted plants. Any larvae trying to fly out will literally get shred to pieces, and adults flying in to lay their eggs will also die. Leave the wool in for at least 4 weeks to ensure that all generations of larvae are exterminated as they try to fly out. It's a simple yet magical technique.

Remove the Top Layer of Soil

Once you believe all the larvae are dead, remove the top part of the soil. This is to ensure that any eggs remaining will be removed. Replace this top half with sand. Sand drains well and dries quickly.

Drown Them in Vinegar or Beer

Place jars filled halfway with apple cider vinegar or beer near the source of origin. Screw on the lids and poke holes in them large enough for the gnats to enter. If you don't want to ruin your lids, you can cover with plastic wrap and poke holes in it. The gnats will enter to drink the vinegar or beer and drown. Do this repeatedly until you see fewer and fewer gnats in the jars.

Use Potato Slices to Control Larvae

Cut slices of potato up and place them on the surface of your potting soil. Fungus gnat larvae will swarm onto these tater slices after about four hours, and you can then dispose of them. Do this repeatedly until all the larvae are gone.

Kill Larvae With 3% Hydrogen Peroxide

Allow your soil to dry before watering your plant with a mixture of 1 part hydrogen peroxide and 3 parts water. You must dilute the hydrogen peroxide and only use the 3% hydrogen peroxide you find at the drugstore and nothing higher.

Control Larvae With Food-Grade Diatomaceous Earth

DE is natural and non-toxic, but it contains microscopic shards of silica that can rip larvae apart as they crawl through it. Mix some into the top layer soil (this is where gnats lay their eggs). If your repotting or planting something new, mix DE into the potting soil for prevention.

Purchase Products Containing BTI

These products, such as BTI Mosquito Bits, contain the bacteria Bacillus thuringiensis var. israelensis, which kills the larvae of many insects, including fungus gnats. Mix into your soil and larvae will be wiped out instantly.

Catch Flying Gnats With Yellow Sticky Traps

Like flypaper, these yellow sticky tabs catch gnats so you can discard of them. Just place the stick traps horizontally on top of the plant soil, and they will catch the adults that fly up out of the pot. Discard the sticky trap once it is covered in gnat carcasses, and continue using new traps until you see fewer gnats.

Discard or Repot the Plant

Organic material inside the soil is the most difficult issue to correct. The easiest solution is to discard the plant. If you are fairly handy, you may try repotting the plant in proper indoor potting soil. But for this to be successful, most of the old soil must be shaken away from the plant's root system.

Get a New Liner

If a liner with built-up residue and fungus is discovered, wash it thoroughly or get a new one.

The Fungus Gnat Life Cycle

It takes about 17 days for gnats to mature from egg to full-grown flying adults. They then live a week before they die. Use a combination of methods and do it repeatedly for at least 4 weeks to ensure that at least two generations of gnat larvae cannot fully form into adults, therefore killing off their population.

How to Prevent a Fungus Gnat Infestation

  • Don't Overwater Your Plants: Give plants the proper amount of water and allow them to dry out between waterings.
  • Keep Your Plants Clean: Remove dead leaves, stems, debris, etc.
  • Use Sand: Fill the top of your pot with 1/2 inch of sand. Water drains quickly in sand, keeping the top layer dry, and thus preventing gnats from laying their eggs.
  • Use Indoor Potting Soil: Always use indoor potting soil for indoor plants. Do not add compost or wood chips to the soil.
  • Don't Use Compost, Peat Moss, or Mulch: These materials retain moisture and contain decaying material that fungus gnats are attracted to. Don't using potting mixes containing these materials and replace the potting soil with indoor soil if necessary.
  • Consider Using Perlite or Vermiculite: Both of these materials improve aeration while retaining moisture. Like diatomaceous earth, they are sharp, so they present an unwelcoming environment to fungus gnats. Ask your local nursery which material you should use for your plants as perlite dries out too quickly for water-loving plants and vermiculite holds too much water for plants that need well-drained soil.
  • Check Plants For Infestation Before Buying: Avoid purchasing any plants that have evidence of fungus gnats.

Goodbye Gnats

Following these simple tips and keeping your plants properly watered will work wonders for keeping your home or workspace free of obnoxious little fungus gnats. There is no need to throw away all your houseplants! All you need is a little know-how.

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.

Questions & Answers

  • I see these gnats everywhere. I have a lot of houseplants. They’re on my clothes itching me, and they bite. We’re getting mosquito type bites, and they bite hard. What if they are not Fungus Gnats?

    The description of the bugs in your home sound like they could likely be something other than Fungus Gnats. It would be best to contact pest control to identify & exterminate whatever pest it is that you have especially if they are biting.

  • Do fungus Gnats bite? I'm not sure if that's what we have but it sounds like it. They're terribly annoying and they leave bites that look like mosquito bites.

    Fungus Gnats do not bite.

  • How can I keep gnats from coming into my home? I have no indoor plants, but gnats are in my home. I have a large mango tree at the back that constantly sheds leaves. Also, my neighbors have tons of outdoor plants.

    Fungus gnats will only reside where there is a food source, so there is either something inside of your home or in close enough proximity to it that makes it attractive for them to stick around. My expertise lies in the presence of gnats that reside in houseplants themselves, however, the attraction to moist, decaying, organic material would be the key whether they are associated with the houseplants or something else.

  • Will a urine soaked sofa attract Fungus Gnats?

    It is entirely possible that urine soaked furniture could be a breeding ground for Fungus Gnats, among a whole host of other bacteria, pests, and unsavory things.

  • What do I do if there are fungus gnats in my car?

    There is likely something stagnant and moist in your car. Find the source of it then get rid of it.

© 2011 thoughthole

Got Gnats?

    0 of 8192 characters used
    Post Comment
    • profile image


      3 weeks ago

      How do u get rid of them tiny fleas they in my kitchen and I have tryed every thing to kill them

    • profile image


      8 weeks ago

      This is miserable, horrible.Nothing seems to erradicate these fast flying gnats that you feel but can't see on you. They swarm in your hair, get in nose, face, feet, clothes everywhere. They have erratic movement when on you. On sticky paper very tiny black dots. There a powdery feel on hands. They R in house, car, I feel them everywhere i go, on me. I have tried everything, nothing works. Exterminators don' have a clue how to handle this pest. HELP PLEASE. We're being destroyed by this. They become agressive when house sprayed or fogged.

    • profile image

      Julie Cleveland 

      2 months ago

      Hi got the steel wool in, working great, do I Lift up steel wool to water or do I water through the steel wall?

    • profile image

      Billi k henry 

      4 months ago

      Are nats attracted to cat food mixed with water

    • profile image

      Laurie Hayes 

      8 months ago

      So happy to of found this site on gnats. In April I just had a few of the gnats in my eyes. Now it's in my eyes nose around my mouth and in my ears. did not know what was going on until it was to late. Now there all over me. We found no source. Which is weird. Iv'e found a nest in my nose, and am pretty sure my ears. I seem to be there food source. They are tiny black little dots with wings. They say the female is the only ones that feed in your eyes. I have a sweet tooth so I'm wondering if that's why they love me and no one else in my family. I did the traps and they don't seem to like it. Apple vinegar, beer, wine, all insect sprays, they live through all this. We have covered drains and we have a dry house. We left the house to stay with relatives only to find out where I go they go. It's horrible. do you have any information on eye gnats? I live in Florida and they love the tropical weather. Not many people even know that eye gnats are a real issue in the States. They usually are only found in third world countries, according to the Dr.s They do not believe me and I know I'm not going crazy. They have destroyed my life. I'm trying to get back to being positive so I can win this war of the eye gnats. It's horrible. They don't live in my home, they live on me. This is why it's so hard to get rid of them. Thank God for the nets I only get relief when wearing one. They keep having babies in my nose and ears. Tried staying under water in my pool, they don't drown. Help...

    • thoughthole profile imageAUTHOR


      15 months ago from Utah

      There are Gnat Traps. They are basically tiny cardboard fly trap strips. This might be a good option to set outside the cage to avoid the possibility of your pet getting stuck to it.

    • profile image

      Bo Burton 

      15 months ago

      I think that my gnats are coming from my chameleon's cage, where he has a potted tree. My issue is that I'm meant to keep his cage humid, so I feel my only options are to keep up with the cleaning and try the vinegar trap. Are there any other traps or repellents that I can also try?

    • profile image


      16 months ago

      I have gnats all over my place dont have plants but they almost goes up my nose I've tired vinger the apple and plain doesn't work I don't know what to do

    • profile image

      Diane Dorsey 

      18 months ago

      I think I know what’s going on with these gnats so I’m going to buy some gnatrol because my dog poops and pees in the dirt on the patio and I had a sneaky suspicious so I I’m hoping one of these ideas works. I pick up the poop but can’t do anything with pee. I’m 73 y.o. And walking the dog. I’ll see if something works.

    • profile image


      18 months ago

      I have this small black flying bug and I can’t tell what it is. There a a lot of them flying out side my front door and widows i have no idea what there are. I would like to post a picture to see if anyone can tell me what they are?

    • profile image


      18 months ago

      I had fungas gnats but I couldn’t figure out where they were coming from because I don’t have any plants. From what other people on here have said, I had it easy. I only saw maybe 10 of them over a few days. After reading this I decided to clean out my whole kitchen and get rid of any old food. Anything that had been in my fidge or cubbard for longer than a month got tossed, and I gave all the shelves a good wash while I was at it. I felt bad about throwing away so much food, but it got rid of the bugs!

    • profile image


      19 months ago

      I have had fungus gnats since last winter. I threw away most of my plants but kept 2 Christmas cacti because I could let them really dry out and I kept an aloe. I treated them outside with a systemic insect control powder. They seemed to have no gnats so I brought them back inside. But even while they were outside I still had gnats. Then I bought a couple of herbs to put on my tiny balcony and have the original plants quarantined in a spare room But the gnats are worse than ever and driving me crazy. I have a hard time being on my laptop or even watching TV. I kill one and two more appear. I do have some plant soil and gardening tools, gloves in a corner of the room. One bag of houseplant soil I just opened a couple of weeks ago to pot the herbs but the other bag, indoor-outdoor soil, has not been opened. Could the soil or something else in that corner be a breeding ground for the gnats?

    • profile image


      19 months ago

      If they seem to up your nose a lot can they do anything to your health I only have a catus plant did the vinegar and traps but they go up my one nostril often

    • profile image

      Kellianne baylis 

      20 months ago

      I don’t have house plants there all over

    • thoughthole profile imageAUTHOR


      21 months ago from Utah

      Antonia, remove the dead leaves. You are correct they are living in and feeding on the dead leaves, if you are to remove the leaves the Gnats will not have anything to support their colony.

    • profile image


      21 months ago

      I have these tiny, flying bugs near my dwarf sunflowers. They are extremely annoying, and they seem to be eating the dead leaves I put in the pot earlier to help a small sprout grow stronger. I want to get rid of them but do not want to kill my plant. What should I do?

    • profile image


      22 months ago

      Have loads if fruit flies/ knots in my house mostly the bedroom I live in a first floor flat where my downstairs neighbour is growing potatoes in bags under the window could this be a cause

    • profile image


      23 months ago

      There is an OMRI Organic product called gnatrol or that is a miracle cure for fungus gnats. It has the highest concentration of BTI available. BTI is the ingredient that kills the larve. There is nothing better and it's harmless to people, pets and plants. I think I paid less than $10 for it and it will last up to 2 years.

    • profile image

      24 months ago

      White brown gnats in house. No house plants. Fly in eyes and nose. How do I get rid of them?

      Have hired 4 exterminating companies that could not exterminate the gnats.

    • profile image


      2 years ago

      We have no plants or food exposed. I often have dish water that stays overnight which they tend to stay by most but can’t find the source. My daughter raises snakes with shavings , no raising mice and just got rid of guinea pigs, after those removals, we still maintain about 15-20.

    • profile image


      2 years ago

      We had fungus gnats for weeks and have no house plants. After killing 20-30 adults per day, cleaning out drains, covering windows with plastic, we finally found the breeding grounds. It was my bag of used espresso coffee pods! Got rid of more gnats!

    • thoughthole profile imageAUTHOR


      2 years ago from Utah

      Dianna I did not get any follow up information from Karen B, so I do not know what the outcome was on that situation.

      You may also want to inquire about the issue with a pest control expert familiar with your location, & climate.

    • profile image


      2 years ago

      I have the same problem as Karen B. was there ever a resolution to her problem of fruit fly infestation? It just keeps getting worse and no fruit or plants in my home.

    • profile image

      Brenda Adams 

      2 years ago

      My bugs are fruit flies according to the description above. Only thing is I do not have "any fresh fruits or vegetables" in my home. I quit keeping any of these things in my home several months ago when these creatures started to show up. I have gone thru almost 2 gal. of vinegar and have bombed my home 3 times. These flies are causing me to question my own sanity....PLEASE HELP!!!!!!

    • profile image


      2 years ago

      Hi, I put apple cider vinegar in a small container and dropped a couple of drops of dish detergent in it and they’re attracted to it and drown themselves in it. It works!

    • thoughthole profile imageAUTHOR


      2 years ago from Utah

      That sounds like quite an unpleasant discovery Karen B.

      The scope of my expertise in this area is limited to indoor situations, and I live on the other side of the country in a very different climate from that of NJ, so I would likely not be the best person to answer your questions. This may be a subject in which a general pest control expert could provide insightful information.

      I would imagine that the recent storm systems hitting the East coast have given rise to all manner of pests that flourish in moist conditions, fungus gnats included.

      Sorry I could not be of more help.

    • profile image

      karen b. 

      2 years ago

      I was quite disturbed upon finding a writhing slimy mass of small "worms" on my concrete driveway yesterday...grossed me out and have never seen anything like it before. I sprayed it with raid a few times until I saw no more signs of life. Went online and found out this was a fungus gnat larvae train. Much to my horror, there was another train this morning on my concrete porch not far from the train yesterday...sprayed it, also. They appear to be coming from my lawn. I'm in New Jersey and it was a rather soggy summer. Is this event unusual where I live? Should I be concerned?

    • thoughthole profile imageAUTHOR


      2 years ago from Utah

      Sandy & Casey,

      While my expertise with gnats is in respect to indoor plants, I am confident fungus gnats will only be present if they have some decomposing moist material to feed on. The key is to find the food source, and get rid of it. Fungus gnats are often more prevalent during seasons of greater precipitation, namely spring & fall for much of the US. It is possible they may be originating outside, if this is the case it may be a bit more difficult to isolate a specific source. Outside or in look for moist wood, bark, roots, dead leaves etc. If the source remains elusive it may be an indicator of something out of the ordinary going on in or around the home causing structural decay, perhaps a water leak.

      Good Luck!

    • profile image


      2 years ago

      I don't have indoor plants and when I got out of the shower the little bugs were all over the bathroom and in the window. I went to my kitchen and there all over the lights?? What do I do?

    • profile image


      2 years ago

      I believe I have fungus gnats. Everything here sounds right except I don't have indoor plants. I do have a little aquarium. Could that be it and if it could how do I fix this?

    • profile image


      2 years ago

      Someone gave me a house plant, instead of flower, for the passing of a loved one. This article was very 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, 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:

    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 or 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)