Fungus Gnats on Houseplants: How to Get Rid of Them
Fungus gnats are tiny, dark, weak flying flies that live and breed in the top inch or so of consistently moist potting soil. Tap the pot and any adults present will lift off, which is the quickest way to confirm them. The fix that actually works is drying out the top of the soil between waterings, since the larvae cannot survive once it dries. Isolate the plant while you deal with it, and expect this to take a few watering cycles rather than one treatment, because you are changing a condition, not delivering a single kill.
The short answer: tiny flies near the soil, drawn by moisture
If you keep seeing tiny, dark, weak flying insects hovering near a pot, especially when you water it or brush the soil, fungus gnats are the near-certain explanation. They are one of the most commonly reported small-fly problems on houseplants, and unlike most pests, their entire life cycle from egg to adult plays out inside the same pot rather than moving between plants overland. That is genuinely useful to know, because it means the whole problem lives in the soil of one pot: fix the soil condition and you fix the infestation, without needing to spray the plant itself.
Confirm it: the tap test and the larvae check
The tap test is simple and reliable. Tap the side of the pot, or gently disturb the top of the soil, and watch for small dark flies lifting into the air. University of Minnesota Extension describes fungus gnats as roughly 1/16 to 1/8 inch long, dark colored, and weak flying, which is exactly why tapping the pot works as a confirmation test: they do not fly far or fast, so a cluster rising from the soil surface is a clear positive.
You can confirm further by checking the soil itself. UMN Extension notes that the larvae live in the top half inch or so of potting soil, where they need consistent moisture and feed on soil fungi, organic matter, and sometimes plant roots. Scrape back the top layer of soil with a finger and look for small, thread-like, clear to whitish larvae with a visible dark head capsule. If you see both flying adults and larvae in the soil, the identification is confirmed.
| Sign | What it confirms | Where to check |
|---|---|---|
| Small dark flies lift off when the pot is tapped | Adults present | Just above the soil surface |
| Weak, low, hovering flight near the pot or a nearby window | Adults present | Around the plant and nearby light sources |
| Thin, clear or whitish larvae with a dark head, visible in wet soil | Larvae breeding in the pot | Top half inch of the soil, under any surface debris |
Isolate the plant first
Move the affected plant away from your other pots before doing anything else. Fungus gnats do not stay confined to one pot for long, especially when several plants nearby share the same watering schedule and the same consistently damp soil, so isolating the affected one limits how far an existing population can spread while you work through the fix below.
If you are not sure whether what you are looking at is fungus gnats or something else entirely, common houseplant pests: an identification guide walks through the visible signature of each common pest so you can confirm before you isolate the wrong plant or the right one for the wrong reason.
Why they're there: what actually draws fungus gnats to a pot
Fungus gnats are not a sign of a dirty home or a poorly cared for plant. They are a sign of one specific condition: soil that stays moist for longer than it should. UMN Extension is direct about this: the larvae require consistent moisture in the top layer of soil to survive, and they feed on the organic matter and soil fungi that build up there. A pot that is watered on a fixed schedule rather than checked first, or one sitting in a saucer that never fully dries, gives them exactly what they need.
This is why the same watering habit that causes fungus gnats can also cause other soil moisture problems. If your watering routine leans toward "more often than the plant actually needs," overwatered vs underwatered plant is worth reading alongside this page, and how often to water indoor plants sets out the check-before-you-water routine that prevents this from recurring.
The real fix: let the top of the soil dry out
This is the section that matters most, because it is the actual fix rather than a supplementary tip. UMN Extension and Oregon State University Extension's Ask Extension service both point to the same mechanism: letting the top one to two inches of soil dry out between waterings disrupts the larvae's life cycle, since they cannot survive in dry soil. Everything else on this page supports that one change; nothing replaces it.
In practice, that means checking the soil with a finger before you water rather than watering on a set day, and genuinely waiting until the top layer is dry rather than just cooler feeling or slightly less dark. It also means emptying any saucer that collects water after each watering, since standing water under the pot keeps the soil above it damp longer than the plant itself needs.
Removing dead leaves and other plant debris from the soil surface helps too. UMN Extension notes that this debris is part of what feeds the larvae, so a cleaner soil surface, combined with a drier one, removes both the moisture and the food source at once.
Traps and biological larvicides, as categories
Two categories of tool are commonly used alongside the drying-out fix, and both work by a different mechanism than simply killing what you can see.
Yellow sticky traps are a documented physical control tool. They catch adult gnats as they fly, which reduces how many new eggs get laid in the soil while the drying-out fix takes effect underneath. Think of them as doing two jobs at once: they control some of the adult population, and they let you see at a glance whether the population is going up or down, which tells you if the drying-out routine is working.
A biological larvicide containing Bacillus thuringiensis subsp. israelensis, commonly written as Bti, is a second category worth knowing about. It is the same bacterium used in mosquito control products, and it is labeled for fungus gnat larvae in soil. Its mechanism is targeted: it affects fly larvae specifically and does not harm the plant or other insects. This page describes the category and how it works, not a dose or a schedule. If you use a Bti product, the mixing rate and how often to apply it are set by that product's own label, and that label is the instruction to follow, not a general rule of thumb.
Neither of these tools replaces letting the soil dry out. They reduce the population you already have while the actual fix takes effect.
Preventing them long-term
Once the current population is under control, prevention is mostly a continuation of the same routine rather than a separate set of steps.
Check the soil before every watering instead of watering on a schedule, and let the top layer dry fully between waterings. Empty saucers and cachepots after each watering so water does not sit under the pot. Clear away fallen leaves and other debris from the soil surface as they accumulate, since that is what feeds any larvae that do show up. And if you bring home a new plant, give its soil the same check before setting it next to the rest of your collection: a moist pot arriving from a nursery is a common, overlooked source.
If you are still putting your basic watering and placement routine together, indoor plant care for complete beginners covers the same check-before-you-water habit in the order that keeps most beginner problems, not just this one, from starting in the first place.
FAQ
How do I know if I have fungus gnats and not something else?
Tap the pot and watch for small, dark, weak flying flies lifting off near the soil surface. University of Minnesota Extension describes them as roughly 1/16 to 1/8 inch and weak flying, which makes the tap test a reliable, low-cost confirmation. If you are unsure it is this pest rather than another one, common houseplant pests: an identification guide covers the visible signature of each.
How long does it take to get rid of fungus gnats?
Plan on a few watering cycles rather than one treatment. The actual fix, letting the top of the soil dry out, works by disrupting the larvae's life cycle over time, since they cannot survive in dry soil. It is a condition change, not a single kill, so expect gradual improvement rather than an immediate stop.
Do fungus gnats harm the plant itself?
Mostly they feed on soil fungi and organic matter rather than the plant, though UMN Extension notes the larvae can feed on roots as well, particularly in seedlings or heavily infested pots. On an established houseplant, the bigger issue is usually the nuisance of adults flying up whenever the pot is disturbed.
Will overwatering less get rid of fungus gnats for good?
It addresses the root cause, since consistently moist soil is what the larvae need to survive. If your watering routine changes to checking the soil first and only watering when it is genuinely dry, as covered in how often to water indoor plants, you remove the condition that draws gnats back in the first place.
Should I repot the plant to get rid of fungus gnats?
Not as a first step. The soil-drying routine resolves most cases without disturbing the roots. If the soil has stayed wet for a long time and you are also seeing signs described in root rot in houseplants, that is a different and more serious problem worth checking separately, since prolonged wet soil can cause both issues at once.
