How to Get Rid of Fungus Gnats | LeafyPod
July 27, 2026 · 7 min read
Tiny black flies lifting off the soil every time you water are more than annoying. Fungus gnats live around damp potting mix, and their larvae feed on fungi, decaying organic matter, and sometimes tender young roots. A few adults are mostly a nuisance; a full cycle in every pot can weaken seedlings, stress small plants, and make your home feel like the potting bench followed you inside.
The good news: you can get rid of gnats in plants without tossing your collection or drenching everything in harsh chemicals. The real fix is breaking their life cycle—adults above the soil, larvae below it, and the damp conditions that keep both coming back.
Make sure they are fungus gnats#
Fungus gnats are small, dark, mosquito-like flies that hover near potting mix and crawl around drainage holes. They are not the same as fruit flies, which usually gather around produce, drains, or sticky spills. If the flies appear when you tap a pot or water a plant, you are probably dealing with soil gnats.
Check the plant itself, too. Fungus gnats houseplants infestations often come with soil that stays wet for days, a musty smell, algae on the surface, or a pot with poor drainage. Plants that like steady moisture, such as calathea, peace lily, and ferns, can be more tempting because their mix is rarely allowed to dry completely.
Why fungus gnats keep coming back#
Adult gnats live only about a week, but females can lay dozens of eggs in moist organic matter. Those eggs hatch into larvae, the larvae pupate, and a new batch of adults appears. If you only swat the flyers, the next generation is already waiting in the pot.
Overwatering is the usual trigger, though not always in an obvious way. A plant may be watered on a reasonable schedule but still sit in a dense mix, a cachepot with hidden runoff, or a room that is cooler than expected. If you are unsure whether watering habits are part of the problem, compare symptoms with overwatering vs. underwatering before changing everything at once.
Step 1: Let the top layer dry#
Larvae need moisture near the surface. Letting the upper inch or two of potting mix dry makes that zone less inviting for egg laying and harder for larvae to survive. This does not mean drought-stressing every plant; it means watering with intention instead of automatically topping off damp soil.
For sturdy plants like snake plant, pothos, and zz plant, you can usually wait longer between waterings during a gnat outbreak. Moisture-loving plants need a lighter touch: keep the root zone from drying out completely, but stop keeping the surface constantly wet. The seasonal notes in how often to water houseplants can help you rethink timing without relying on a fixed weekly ritual.
Step 2: Catch the adults#
Yellow sticky traps are simple and effective. Place them close to the soil surface, not high above the foliage, because that is where adult gnats emerge and return to lay eggs. Replace traps when they are crowded or dusty.
Traps will not solve the problem alone, but they do two useful things. First, they reduce the number of breeding adults. Second, they show whether your plan is working: fewer trapped gnats over two or three weeks means the population is shrinking.
A shallow dish of diluted apple cider vinegar may catch some adults, but it is less targeted than sticky cards. Skip homemade sprays on leaves unless you have identified a leaf pest; fungus gnats are mainly a soil problem.
Step 3: Treat the larvae in the potting mix#
For a persistent infestation, use a larval control. Products containing Bacillus thuringiensis israelensis (often labeled Bti) target fungus gnat larvae and mosquito larvae. Follow the package instructions, water it through the soil, and repeat as directed so you catch larvae that hatch after the first treatment.
Beneficial nematodes are another option, especially if multiple pots are affected. They are living organisms, so storage, water temperature, and timing matter. Use them soon after purchase and apply to moist—not soggy—soil.
Hydrogen peroxide drenches appear in many internet tips, but they can be hard on roots and soil biology if mixed casually. If you choose to use one, research dilution carefully and avoid repeated use on sensitive plants such as african violet or fine-rooted ferns.
Step 4: Remove gnat-friendly conditions#
A few housekeeping changes make a big difference. Empty saucers after watering so pots are not sitting in runoff. Scrape away algae or crusty organic debris from the top of the soil. If the mix has collapsed into a heavy, peat-dense sponge, repot into a fresher blend with drainage materials such as perlite, pumice, bark, or coarse coco chips.
Do not add decorative moss while fighting gnats. It keeps the surface humid and hides what is happening underneath. A thin layer of coarse sand or fine gravel can discourage adults from reaching the mix, but it works best after larvae are already being controlled; otherwise, it can simply trap moisture below the surface.
New plants deserve a short quarantine. Keep them away from the main collection for a week or two, especially if they came from a greenhouse or big-box shelf with wet soil. Many fungus gnat problems begin with one innocent-looking pot.
Step 5: Prevent the next outbreak#
Once the flying gnats are gone, prevention is mostly about water and airflow. Water thoroughly when a plant actually needs it, then let the pot drain. Avoid frequent tiny sips that keep only the top layer damp, because that is exactly where adults want to lay eggs.
A fan on a low setting can help in crowded plant corners, not by blasting the leaves but by reducing stagnant humidity around the soil surface. In winter, when light is lower and evaporation slows, stretch watering intervals and watch plants in decorative outer pots closely. For hot months, summer heat plant care is useful because thirsty weather can flip suddenly into overwatering when routines do not change again afterward.
If you travel often or lose track of watering, consistency matters. LeafyPod is designed for indoor plants and adjusts watering around the plant and pot conditions rather than a rigid calendar, with a reservoir that typically needs refilling every 2–4 weeks depending on season and plant. Its top-down watering is especially relevant here because you can avoid random surface top-offs while still giving roots the moisture they need.
Frequently asked questions
how do I get rid of fungus gnats in houseplants fast?
Use yellow sticky traps to catch adults immediately, then treat the soil for larvae with Bti or beneficial nematodes. Let the top layer of potting mix dry between waterings, because wet surface soil is where gnats reproduce. Expect a noticeable drop in one to two weeks, but continue treatment long enough to interrupt the full life cycle.
will cinnamon get rid of gnats in plants?
Cinnamon may have mild antifungal properties, but it is not a reliable fungus gnat treatment. It does not consistently kill larvae or stop adults from laying eggs. Sticky traps plus a proven larval control are much more dependable.
do fungus gnats mean my plant has root rot?
Not always, but they do indicate that the potting mix is staying moist enough to support larvae and fungus. Check for root rot if the plant is yellowing, wilting in wet soil, or smells sour. Healthy roots are usually firm and pale; rotting roots are soft, brown, or mushy.
can I repot a plant to remove soil gnats?
Repotting can help if the mix is old, compacted, or badly infested, but it is not always necessary. If you repot, remove as much old soil as you can without tearing up the roots, wash the pot, and use fresh, well-draining mix. Still use traps afterward, because adult gnats may remain in the room.

LeafyPod Starter Pack
From $127