The guide will cover:
Understanding Houseplant Gnats—Why they appear, signs of infestation, and how to identify them.
Immediate Action Steps—Quick fixes to reduce gnat numbers immediately.
Natural Remedies—Proven organic methods to eliminate gnats, including soil treatments, traps, and environmental changes.
Long-Term Prevention—Steps to keep houseplant gnats from returning.
Optional Chemical Solutions—Safe, store-bought treatments (only if needed, as a last resort).
How to Get Rid of Houseplant Gnats (Step-by-Step Guide)
Pesky little gnats flitting around your beloved houseplants?
Don’t worry—fungus gnats (those tiny “houseplant gnats”) are a common problem, and you can get rid of them.
This step-by-step guide will walk you through understanding why these gnats appear and exactly how to eliminate them.
We will concentrate on natural, effective remedies and preventive habits, with a safe chemical backup plan as a final option. Follow along with each step (and the accompanying illustrations) to save your plants and keep those annoying gnats away for good!

Page Contents
Step 1: Identify and Understand Houseplant Gnats
Fungus gnats are tiny, mosquito-like flies that thrive in moist houseplant soil.
First, make sure the pests you’re dealing with are fungus gnats. These are tiny dark flies (about 1/16–1/8 inch long) that resemble mosquitoes, with long legs and clear, delicate wings
Your houseplant is dying right now — and you have no idea why.
Stop killing your houseplants.
The fix takes 60 seconds.
Snap a photo. LetPlant AI instantly diagnoses what’s wrong, tells you exactly when to water, and alerts you before it’s too late — not after.
FREE Save my houseplants now →No credit card. No catch. Just healthier houseplants.
You’ll typically see them hovering near the soil of your potted plants, especially right after watering, as they thrive in damp conditions. Adult fungus gnats are more of a nuisance than a direct threat—they don’t bite people or pets and generally don’t harm healthy plant foliage
The real troublemakers are the larvae in the soil: these little translucent worm-like larvae (about 1/4 inch long, with black heads) feed on fungi and decaying organic matter in the potting mix and can chew on your plant’s fine roots if populations get high
Common signs of a fungus gnat infestation include tiny flies crawling on the soil or buzzing around the plant when disturbed and chronically wet soil that may develop algae or fungus. In severe cases, your plant might start wilting or showing stunted growth because the gnat larvae are nibbling at its roots
By confirming that you have fungus gnats—and not fruit flies or other pests—you can tackle the right problem. Fungus gnats are usually introduced by overwatering or contaminated soil, since they lay eggs in moist, organic-rich soil and multiply quickly in those conditions
Understanding this life cycle is key: if you eliminate the damp breeding ground, you’ll stop the gnats. In the next steps, we’ll use this knowledge to take action against these bugs.
Step 2: Take Immediate Action to Reduce the Gnat Population

Yellow sticky cards placed in the pot will catch adult gnats quickly, breaking their breeding cycle.
Once you’ve identified fungus gnats, it’s time for quick action to knock down their numbers. Start by isolating the affected plant (if possible)—move it away from your other houseplants to prevent the gnats from spreading
Next,
Let the soil dry out in the infested pots. Fungus gnat eggs and larvae cannot survive in dry soil, so withhold watering for a few days until the top inch or so of the potting mix is dry.
Most houseplants tolerate (even prefer) this drying-out period, and it deprives the gnats of the moisture they need to live and reproduce
Empty any standing water in plant saucers or trays too, since excess water keeps the soil wet
While the soil is drying, catch as many adult gnats as you can. A tried-and-true method is to set out yellow sticky traps—those little yellow sticky cards or strips you stick into the soil
Place a few around the plant (near soil level or slightly above it). The adult gnats are attracted to the yellow color, will land on the sticky surface, and get trapped
This quickly removes a lot of the breeding adults and helps break the life cycle.
It’s an immediate relief to see dozens of gnats stuck to the card instead of swarming your face!
You can also gently swat or vacuum any clouds of gnats you see hovering. Every adult you eliminate now is one less gnat laying eggs in your plant. If the infestation is extremely heavy, consider removing the top layer of soil (about 1–2 inches) from the pot and sealing that gnat-infested soil in a plastic bag to discard it.
Replace it with fresh, sterile soil or a dry layer of sand (more on that later) to discourage new eggs. By quickly drying the soil and trapping the adults, you should see the gnat population start to decline within days.
Step 3: Use Natural Remedies to Eliminate the Gnats

A simple apple cider vinegar trap can lure and drown adult gnats—one of many natural remedies to fight the infestation.
Now that emergency measures have been implemented, it’s crucial to combat the gnats using effective natural remedies. These methods are proven to be organic or non-toxic, and you can often combine several to effectively combat both the adult flies and their larvae:
Drench the soil with hydrogen peroxide: Mix 1 part 3% hydrogen peroxide to 4 parts water, and use this solution the next time you water the plant
The diluted hydrogen peroxide will fizz through the potting mix and kill fungus gnat larvae on contact, without harming your plant’s roots
It’s a quick, science-backed way to reduce larvae.
Start with a one-time drench; you can repeat it weekly as needed until the gnats are gone (the fizzing will subside once the peroxide has done its job).
Set a vinegar trap: Fungus gnats aren’t as strongly attracted to vinegar as fruit flies are, but a trap can still catch many of the adults. Pour some apple cider vinegar into a shallow dish or jar with a few drops of liquid dish soap, and place it near the infested plant (or even on top of the soil)
The sweet smell of the cider vinegar lures the adult gnats, and the dish soap breaks the liquid’s surface tension, causing the gnats to sink and drown once they touch the mixture.
Check the trap daily and refresh the vinegar/soap solution every couple of days
This homemade trap is an easy, natural way to eliminate a good number of flying gnats overnight.
Use an insecticidal soap or neem oil spray: Fill a spray bottle with water and add a few drops of mild dish soap or a commercial insecticidal soap (you can also add a bit of neem oil if you have it). Lightly spray the top of the soil and the base of your plant. This soapy solution will help kill adult gnats on contact by suffocating them
It’s gentle and non-toxic to people (just avoid drenching your plant’s leaves in soap—a light mist on the soil and where gnats hang out is enough).
Kill the fungus with cinnamon: Sprinkling ordinary ground cinnamon across the soil surface is a popular natural remedy. Cinnamon is a natural fungicide, so it helps kill the fungi and algae in the soil that gnat larvae feed on
By eliminating their food source, you make the soil much less hospitable to fungus gnats. Similarly, brewing a weak chamomile tea, letting it cool, and using it to water your plant can introduce natural antifungal compounds to the soil
These remedies won’t kill the insects outright, but they help stop the gnat larvae from feasting and can curb the population.
Trap larvae with potato pieces: This clever trick lets you draw out and remove gnat larvae. Place a few thin slices of raw potato on the surface of the soil (white flesh side down). Fungus gnat larvae are attracted to the potato and will crawl up to feed on it
Every couple of days, lift the potato pieces and check underneath—you’ll likely find tiny translucent larvae munching on them. Throw away the used potato slices (larvae and all) and replace them with fresh ones
It’s an easy, natural way to physically remove larvae from the soil over time.
Deploy more sticky traps: Continue using yellow sticky traps to catch adult gnats throughout this process
Position them near soil level or hang them just above the plant. They will continuously capture emerging adults, preventing those adults from laying more eggs. This ongoing trapping also helps you monitor progress—you should see fewer gnats on the traps as your treatments take effect
.
Apply biological controls.

If the infestation persists despite the above, you can introduce natural enemies of fungus gnats. One effective option is Bacillus thuringiensis subspecies israelensis (Bti), a beneficial bacteria sold in products like Mosquito Bits or gnat dunks. Soak the granules or dunk in water as directed, and use that water to irrigate your plant’s soil. The Bti bacteria will infect and kill fungus gnat larvae in the soil without harming your plant or pets
Apply it a few times, spaced about a week apart, to catch newly hatching larvae
Another option is beneficial nematodes (Steinernema feltiae), microscopic worms that prey on gnat larvae.
You can buy them live and water them into the soil, where they’ll hunt down larvae. These biological treatments are very effective and natural—essentially letting nature do the pest control for you. (Tip: If you’re a houseplant enthusiast with many plants, you might even consider keeping a carnivorous plant like a sundew nearby; they have sticky leaves that trap fungus gnats!)
Choose the remedies that best fit your situation—often a combination of drying the soil, trapping, and a soil treatment works best. Stick with it, even if it takes a couple of weeks of repeated treatments to break the cycle.
You’re steadily reducing the gnat population at every life stage in a natural way.
Step 4: Adopt Long-Term Preventive Measures

Covering the soil with a layer of decorative pebbles or gravel helps keep fungus gnats from laying eggs in it.
With the gnats under control, focus on prevention to stop them from coming back. The key is to make your houseplant environment unwelcome to fungus gnats going forward. Here are important long-term practices:
Fix your watering habits—overwatering is the #1 reason fungus gnats infest houseplants
Going forward, water only as much as needed and avoid leaving the soil constantly wet. Allow at least the top inch of soil to dry out before each watering
Most plants (except some moisture-loving types) will be healthier if you let them slightly dry between waterings. Remember, fungus gnats need moisture to breed, so drier soil = no gnats. Also, never let water stand in drip trays; always dump out excess water. You can even try bottom-watering (watering by filling the plant’s saucer and letting the plant soak it up, then draining the rest) so that the upper soil layer stays drier
Consistent, moderate watering will dramatically reduce the chances of gnats taking hold again.
Use well-draining, sterile potting mix—When repotting or potting new plants, choose a high-quality sterilized potting soil. Reputable commercial potting mixes are typically heat-treated to kill insect eggs and pathogens
This means you’re not introducing gnats from the start. Avoid using garden soil or homemade compost in your indoor pots, as these can carry fungus gnat eggs or fungi that attract gnats
If you must use unsterilized soil, consider sterilizing it yourself (by baking or microwaving moist soil) before use to kill any lurking gnat eggs. Good drainage in your pots (proper pot drainage holes and perhaps a layer of coarse material at the bottom) also ensures water doesn’t pool and create swampy conditions.
Keep the soil surface clean and protected—remove any dead leaves or debris from the top of the soil regularly, because decaying organic matter is a buffet for fungus gnat larvae
A tidy soil surface gives them less to feed on. Some plant owners go a step further and cover the soil with a sand or gravel mulch layer about 1/2 to 1 inch thick
This gravel top layer serves two purposes: it helps the surface dry out faster and creates a physical barrier so adult gnats can’t easily reach the soil to lay eggs
You can use aquarium gravel, decorative pebbles, or coarse sand—it looks neat and greatly deters gnats. (Just make sure to still monitor soil moisture underneath; poke a finger through the gravel to feel if it’s time to water.)
Isolate and inspect new plants—Whenever you bring a new houseplant into your home (or bring one inside from outdoors), quarantine it for a few weeks away from your other plants
Fungus gnats often hitchhike in the soil of store-bought plants. Keeping the newcomer separate allows you to catch any gnats emerging from its pot. Watch for any signs of gnats during this period—you can even put a sticky trap in the pot to monitor. About 17 days of isolation is suggested, since that covers one full gnat life cycle
If no gnats appear, the plant is likely safe to join your collection. If you do see gnats, you can treat that plant before it mingles with others. This preventative quarantine can save you a lot of trouble later.
Maintain overall plant health—healthy plants can better withstand minor pest issues. Ensure your plants get adequate light, proper water, and the right fertilizer so they aren’t sitting in constantly wet, decaying soil. If a plant shows signs of root rot (sour-smelling soil, black mushy roots), address it promptly by trimming roots and repotting in fresh soil
Rotting roots can attract fungus gnats. Regularly inspect your plants during routine care, checking the soil and undersides of leaves. Catching a few gnats early (and employing the above remedies) is far easier than battling a full-blown infestation. By keeping up these good habits—mindful watering, clean soil, and vigilance with new plants—you’ll create an environment where fungus gnats struggle to survive.
Remember, persistence is key. Fungus gnats reproduce quickly, but if you consistently deny them wet soil and remove any stragglers, their numbers will dwindle. Even after you’ve eliminated the infestation, stick to these prevention steps. It may take a few weeks of diligence, but soon your home will be gnat-free and your plants will be thriving from the improved care!
Step 5: Consider Safe Chemical Solutions (Last Resort)
If you’ve exhausted all other options and the gnats persist, consider using a store-bought insecticide as a final measure. Chemical solutions should be used sparingly and carefully—but they can deliver a quick knock-out to a stubborn gnat population. Here’s how to do it safely:
Mixing a biological insecticide (BTI granules) into water for a soil drench—an effective store-bought treatment for gnat larvae.
Choose the right product: Look for an insecticide labeled for indoor plants and for flying pests (fungus gnats might be listed on the label). Pyrethrin-based sprays are a common and relatively safe choice for indoor use—these are natural insecticides derived from chrysanthemum flowers. There are also synthetic versions (pyrethroids, like permethrin or bifenthrin) in some houseplant bug sprays.
You could also use a ready-to-use insecticidal soap or neem oil spray (these are organic but sold commercially) if you haven’t tried those yet. Avoid heavy-duty outdoor pesticides that are not meant for indoor use—always check that it’s safe for houseplants and indoor application.
Apply carefully: Take your plant outdoors or to a well-ventilated area if possible when applying a chemical spray (to avoid making your home smell like insecticide). Follow the instructions on the label exactly
Typically, you’ll want to spray the top of the soil and the base of the plant, since that’s where fungus gnats hang out and lay eggs
You can also lightly mist the plant’s lower stems and leaves where adults may land
Do not just spray in the air around the plant—aim the treatment at the soil and the plant surfaces, as spraying the open air is ineffective for gnats
If you’re using a granular systemic insecticide (which is mixed into the soil), apply it evenly to the soil surface and water it in, as directed. Keep people and pets away until the treatment has dried or settled.
Effective chemical options: One effective approach is a soil drench with BTI or neem-based insecticides—for example, products containing azadirachtin (derived from neem oil) can be watered into the soil to kill larvae
These are targeted and have low toxicity beyond pests.
Another option is a pyrethrin aerosol or spray: a quick light spray on the soil surface will kill adult gnats on contact. Systemic houseplant insecticide granules (often containing imidacloprid) can be mixed into the potting soil; as the plant absorbs it, any larvae feeding on the roots will ingest the toxin. These can be very effective, but use them judiciously and according to directions. Sticky stake traps treated with insecticide are also available—these not only trap gnats but also kill them faster.
Use chemicals only as a complement: Even when using a chemical solution, it’s wise to continue the cultural controls (like letting soil dry and using traps) in parallel
Insecticides can kill the active gnats you have now, but if the underlying issue (overly wet soil) isn’t fixed, the problem could return. Also, be aware that chemical sprays might kill other harmless house bugs and can even harm beneficial insects, so they’re not a long-term solution.
Aim to use them as a one-time or infrequent knockdown measure, rather than a regular routine.
After treatment, monitor your plant. You should see a significant drop in fungus gnats within days. Keep sticky traps out as a gauge—if they stay clear for a week or two, you’ve successfully eradicated the gnats.
Finally, return to good prevention practices (Step 4) to keep it that way. Often, a single thorough chemical treatment combined with improved watering habits is enough to end a chronic gnat issue. Remember, only use this step when absolutely necessary—most of the time, natural methods will suffice.
But it’s good to know you have this tool in your arsenal. With patience and the right approach, your home will soon be free of those irritating gnats, and you can enjoy your houseplants without any unwelcome little guests!



