How to Get Rid of Fungus Gnats in Houseplants (A Beginner-Friendly Plan)
Tiny dark flies around your houseplants are almost always fungus gnats, not a sign that you have failed at plant care. They show up when houseplant soil stays wet, and they can hitch a ride in a fresh bag of potting mix. You can get rid of fungus gnats in houseplants with a clear plan, not a cupboard full of harsh sprays.
This fungus gnat treatment takes a few weeks, because eggs keep hatching. The steps below are practical in a home with kids or pets: dry the soil surface, catch adults, treat larvae with a targeted biological product, and block new egg-laying. Skip homemade chemical mixes; they are easy to get wrong and are not what this problem usually needs.
What fungus gnats are (and how they differ from fruit flies)
Fungus gnats are small, dark, mosquito-like flies with long legs. You will often see them walking across the soil, hovering around a pot, or gathering at a nearby window. Adults are mostly a nuisance. The larvae live in moist potting mix, where they feed on fungi and decaying matter. In a heavy infestation they can nick fine roots, which may stress a plant and contribute to yellow leaves, but they are usually more annoying than destructive in a home.
Fruit flies are a different insect. They are more rounded, often appear around a fruit bowl, compost pail, or sink drain, and are drawn to fermenting food. Vinegar traps that work for fruit flies do a poor job with fungus gnats, because gnats are living in the soil, not in your kitchen scraps. If the flies vanish when you walk away from the pots, you are dealing with gnats in houseplants.
Why they show up (wet soil, fresh potting mix, overwatering)
Fungus gnats need moist organic mix to lay eggs and for larvae to survive. The most common invitation is overwatering: a pot that never really dries at the surface, a saucer that stays full, or a dense mix that stays wet for days. If you are unsure whether the soil is actually dry enough, use the checks in how to tell if your houseplant needs water.
They also arrive in fresh potting mix or on a new plant from the nursery, especially in already-damp bags and gift pots with no drainage. Moving summer plants back indoors can bring them in too. The flies are not coming from nowhere, and they are not usually a sign of a dirty house. They are a sign that at least one pot is staying wet enough to raise a family.
A simple 4-step plan that actually works
Do all four steps together. Catching adults without drying the soil, or drying the soil without catching adults, lets the life cycle keep going. This is also the most reliable way to get rid of fungus gnats naturally in a home setting, without mixing household chemicals.
Step 1 — Let the top 1–2 inches of soil dry; water from the bottom if needed
The single most important step is to let the top 1–2 inches of soil dry before you water again. Larvae need moisture near the surface, and adults prefer damp mix for egg-laying. Many people are afraid the plant will suffer, but most common houseplants can handle a drier surface if the roots still get a thorough drink when it is time.
If you are worried about the lower roots, water from the bottom: set the pot in a tray of water for 15–30 minutes, then pour off what is left. That wets the root zone while leaving the surface drier and less attractive to gnats. Do not leave the pot standing in water all day, and do not let drought-sensitive plants go bone-dry all the way through. For plants that already look wilted in wet soil, see overwatering vs. underwatering before you add more water.
Step 2 — Yellow sticky traps for the adults
Yellow sticky traps will not end an infestation on their own, but they catch the flying adults that would otherwise keep laying eggs. Place a trap at the soil line, or just above it, in every affected pot. Replace traps when they are covered or no longer sticky.
Keep sticky traps out of reach of children and pets. The adhesive can catch fur, feathers, or fingers, and a curious animal should not be able to chew the trap. These traps also help you track progress: fewer new flies on the card each week means the plan is working.
Step 3 — Treat larvae (Bti is the reliable option)
Adult traps do not kill the larvae in the soil, so you also need a larval treatment. The most reliable home option is a product that contains Bacillus thuringiensis subspecies israelensis (Bti), sold as Mosquito Bits, Gnatrol, or similar. Bti is a biological treatment that targets the larvae of mosquitoes, black flies, and fungus gnats. It does not kill adults, eggs, or pupae, which is why you must keep using traps and drier soil at the same time, and why you may need to repeat treatments as new larvae hatch.
Use only a product labeled for this purpose, and follow the label exactly — including how to mix it, how often to apply it, and how to store it. Keep bits, dunks, and leftover treated water away from children and pets, and do not let pets drink from the saucer or eat the granules.
What about hydrogen peroxide? Some people drench the soil with 1 part 3% household hydrogen peroxide to 4 parts water. Extension sources mention this as a possible, temporary way to kill some larvae, but it is not a first choice and not a miracle cure. Use only standard 3% peroxide, never a stronger concentrate, and never mix it with bleach, vinegar, or other products. Do not use it on seedlings or as a weekly habit; it can disturb soil life and stress plants. If you try it once, let the soil dry afterward and rely on drying, traps, and Bti to finish the job. Skip cinnamon, essential-oil cocktails, and other pantry recipes.
Step 4 — A sand or gravel soil top-dress, and when to repot
After the surface is drier, add a ½- to 1-inch layer of coarse sand or fine decorative gravel on top of the potting mix. This makes it harder for adults to reach moist soil and lay eggs, and it helps the surface stay dry. Leave a little space around the plant stem, and do not pile the top-dress so high that it buries the crown.
Repot if the mix stays sour and soggy, the pot has no drainage, or the infestation is heavy and not improving after a couple of weeks. Knock away as much of the old mix as you reasonably can, discard it in a sealed bag, and refill with a fresh, well-draining potting mix for houseplants in a clean pot with drainage holes. Check new bags of mix: if a bag is swollen, soaking wet, or already buzzing, let it dry or choose another bag before you use it. For a calm walkthrough of pot size, fresh mix, and aftercare, see how to repot a houseplant without killing it. If the roots themselves are brown, soft, and smelly, switch to how to fix root rot in houseplants rather than a standard repot.
How long it takes (expect a few weeks; eggs keep hatching)
Plan on three to four weeks, sometimes a little longer, before the flies feel like they are really gone. Bti and dry soil kill larvae, but they do not stop eggs that have already been laid or adults that are already flying. New adults can keep appearing for a while, which is why people give up after five days and declare that “nothing works.”
Stay with all four steps, replace sticky traps, and repeat the larval treatment on the label’s schedule. You should see fewer flies on the traps each week. If numbers are not dropping after a month, look for a second wet pot you missed, a saucer that never gets emptied, or a neighboring plant that was never treated.
What usually does not work on its own (vinegar traps, a single spray)
A dish of apple-cider vinegar will not solve gnats in houseplant soil. Those traps are meant for fruit flies. You may catch a stray adult, but you will not stop larvae from hatching.
A single spray, of anything, also will not do it. Adult insecticides — even a product labeled for indoor houseplants — only knock down the flies you see, and spraying the air does not work. If you ever use a pesticide indoors, choose a product labeled for houseplants, follow the label, keep kids and pets away as directed, and still dry the soil and treat the larvae. Do not mix products, and do not invent a homemade “spray” from bleach, oils, or concentrated peroxide. Those shortcuts are unsafe in a home and are not required for this pest.
How to keep fungus gnats from coming back
Once the traps stay nearly empty, keep the habit that starved the infestation: let the top inch or two of soil dry, empty saucers, and water only when the pot is ready. Use pots with drainage holes and a mix that does not stay dense and wet. Remove fallen leaves from the soil surface, and inspect new plants, including gift plants in decorative foil, before they join your other pots.
If you bottom-water now and then, still drain leftover water. If you have been watering on a fixed calendar, that habit is often what invited the gnats in the first place. A slightly drier surface, plus a well-draining mix, is the best long-term prevention.
You do not have to throw every plant away or fill the house with sprays. Dry the surface, catch the adults, treat the larvae, and give the life cycle a few weeks to run out.
FAQ
How do I get rid of fungus gnats in houseplants?
Use a combined plan: let the top 1–2 inches of soil dry, catch adults with yellow sticky traps, treat larvae with a labeled Bti product such as Mosquito Bits, and add a sand or gravel top-dress. Expect a few weeks, because eggs keep hatching. Drying the soil is the step that makes the rest work.
How do I get rid of fungus gnats naturally?
Start with drier soil, bottom watering if needed, sticky traps, a sand or gravel top-dress, and Bti used according to the label. These methods are usually enough in a home. Skip unsafe DIY chemical mixes and treat pantry recipes with caution; they are not reliable and can harm plants.
How long does fungus gnat treatment take?
Most households need about three to four weeks of consistent steps before the flies taper off. You may still see adults at first, because Bti does not kill flies that have already emerged. If traps are not getting clearer after a month, check for another wet pot or a saucer that stays full.
Do vinegar traps work for fungus gnats?
Not well, and not on their own. Vinegar traps are designed for fruit flies, which are a different insect. Fungus gnats live and breed in potting mix, so you have to change the soil moisture and treat the larvae, not just set out a kitchen trap.
Can fungus gnats hurt my plant, my kids, or my pets?
Adult fungus gnats are mostly a nuisance and do not bite like mosquitoes. A heavy larval infestation can stress roots, but serious plant damage is uncommon in ordinary homes. Still, keep sticky traps and any treatment products out of reach of children and pets, and follow the label on whatever you use.



