How to Control Fungus Gnats
Share
Fungus gnats often appear as a few delicate black flies hovering near a pot, then seem to multiply every time you water. Their presence is annoying, but it does not automatically mean a plant is dying. Adult fungus gnats do not bite people and generally do not damage foliage. Their larvae live in damp growing media, where most feed on fungi and decaying organic matter; in high numbers, some can injure fine roots, especially on seedlings and stressed plants.
That distinction matters because the visible flies are only one stage of the problem. Swatting adults or placing a trap beside a plant may reduce what you see without changing the damp surface where new larvae develop. A lasting response combines identification, monitoring, moisture correction, sanitation, and—when the plant and product label allow it—a soil-applied biological control. The aim is not to keep every pot bone dry. It is to make the growing conditions fit the plant while removing the continuously wet, debris-rich pockets that support a large gnat population.
This guide explains how to confirm fungus gnats rather than fruit flies or drain flies, how to locate breeding pots, how to change watering without stressing moisture-loving plants, and how to decide whether a larval treatment is warranted. It also covers what sticky cards can and cannot tell you, why vinegar traps are usually a poor fit, and how long a realistic control plan can take.
Confirm the pest before treating
Fungus gnats are small, dark, mosquito-like flies with slender bodies and long legs. Adults are commonly noticed around potting mix, on nearby windows, or fluttering weakly when a pot is moved. Their flight is usually short and erratic rather than the stronger, more direct flight of many common flies. Under magnification, the wings have characteristic vein patterns, but most home growers can begin with behavior and location: the insects repeatedly gather at the soil line of indoor pots, especially where the mix stays moist.
Do not identify a pest only by its size. Fruit flies are often associated with ripe fruit, recycling bins, or fermenting food. Drain flies rest near sinks and other drains, with fuzzy, moth-like wings. Shore flies can also occur around wet growing media, but are more often linked with algae and may have shorter antennae and a different body shape. If tiny flies appear in a kitchen or bathroom but not around pots, inspect drains, produce, and trash before changing plant care. Treating every small fly as a fungus gnat can lead to unnecessary watering changes or pesticide use.
Fungus gnat adults are often easier to notice than their larvae. Larvae are translucent to whitish, slender, and worm-like, with a dark head capsule. They live in the upper portions of moist organic media and may be difficult to see without disturbing the soil. A clear sign is a cluster of dark, mosquito-like flies repeatedly emerging from one or more pots. A sticky card helps track adult activity; a small raw-potato piece placed cut-side down on the mix can help reveal larvae, because larvae may gather beneath it to feed. Check the potato after a few days, then remove it rather than leaving decomposing food on the soil.

Look for a pattern, not one stray fly
One fly near a window does not prove that every houseplant is infested. Adults may enter through an open door, arrive with a new plant, or emerge from one moist pot and disperse. Watch where they land after you disturb the leaves or gently tap the pot. Place a yellow sticky card close to the soil line of a suspected plant and another near a nearby pot that appears unaffected. Check and compare them after several days. More captures near one container suggest a likely source, while similar counts everywhere call for broader inspection.
Also examine the conditions around the pot. A water-filled cachepot, a saucer that never empties, old leaf pieces on the substrate, or an oversized container that remains wet for a long time may support larvae. The same clues can signal drainage or root problems independent of gnats. Avoid assuming that wilting means the plant needs more water: waterlogged roots, decay, compacted media, or root injury can all leave foliage limp while the pot remains damp.
Understand why adults keep returning
Fungus gnats develop through four stages: egg, larva, pupa, and adult. Females lay eggs in moist organic growing media. The larvae feed mainly on fungi and decaying plant matter, though some species and situations include feeding on root hairs or root tissue. After larval development, pupae form in the media and adults emerge. Because several generations can overlap indoors, a pot may contain eggs, larvae, pupae, and adults at the same time.
The exact timing depends on temperature, moisture, food, and species. University of California IPM describes development that can take about 17 days at 75°F (about 24°C) under favorable conditions. Wisconsin Extension describes a broader three-to-four-week egg-to-adult period under optimal indoor conditions. These figures are useful as an explanation of why fresh adults may appear after treatment; they are not a promise that every home infestation will follow a fixed calendar. Cooler rooms, drier media, and different plant-care patterns change the pace.
The practical lesson is to target the life stages that remain in the pot, not just adults in the air. A trap can catch flying adults and provide a rough trend, but it does not remove larvae already feeding in the soil. A larval treatment does not instantly remove adults already emerged, and it may not affect eggs or pupae. If you use only one tool, you may see new adults for a while even when the pot is becoming less favorable. Combining steps addresses more than one point in the cycle.

Find and rank the source pots
Start with a collection-wide scan, then focus effort where the evidence is strongest. Look at all indoor pots, including recently purchased plants, cuttings, propagation trays, and pots that spent time outdoors. Fungus gnats may arrive in growing media or come indoors with plants that were outside. Check shelves and window ledges near the collection too, because adults may rest away from their breeding site.
Place small yellow sticky cards just above the surface of soil in a handful of likely pots. If a plant has an open, airy canopy, keep the card near the pot rather than high above the leaves. Mark each card with the plant name and date, then count captures at consistent intervals. The count is not a precise population estimate: card size, position, airflow, and exposure time affect the result. Still, comparing a pot with itself over time is more useful than guessing from a few flies seen in the room.
When the source remains unclear, inspect one pot at a time. A potato monitoring test can help: set a thin piece of raw potato, cut side down, on the growing medium, then check it after roughly three or four days for small larvae. Do not leave it in place indefinitely. If the pot is valuable, root-sensitive, or already waterlogged, avoid unnecessary digging. A photo of the insects and the pot surface can also help a local extension office or plant diagnostician identify a look-alike pest.
Separate a heavily infested pot from adjacent plants if practical, while maintaining the light and air movement that plant needs. Isolation reduces accidental movement of adults and makes monitoring clearer. Do not pack plants tightly into a dark corner or seal them in a bag as a default control; those steps can create heat, humidity, or airflow problems. Moving the plant is a way to observe it, not a treatment by itself.

Adjust moisture without harming the plant
Letting the soil surface dry between waterings is a central cultural control because fungus gnats favor moist media. But “let every plant dry completely” is poor advice for a mixed collection. A cactus, a fern, a seedling, and a newly rooted cutting do not have the same water needs. Base watering on the species, pot size, growing medium, season, light, temperature, and the plant’s actual moisture level—not on the presence of a gnat alone.
For a plant that tolerates a partial dry-down, allow the upper layer of mix to dry before watering again. Check moisture with a finger or wooden skewer at the relevant depth, and lift the pot if its weight helps you judge. When watering, wet the root zone thoroughly and let excess drain away; then empty the saucer or cachepot. Avoid tiny daily sips that keep the surface continually damp while leaving deeper roots unevenly watered. The objective is a rhythm: enough water for the plant, followed by adequate drainage and a surface that is not persistently wet.
Some plants need consistently moist media. Do not force a moisture-loving fern, seedling tray, or newly rooted cutting through a severe drought merely to make conditions hostile to gnats. Instead, reduce unnecessary wetness around it: remove dead leaf material, improve drainage if the mix is staying saturated, empty standing water, and use a label-approved larval control where appropriate. You can also monitor adults closely and keep the topmost surface drier only if that does not expose vulnerable roots. Plant health is the constraint that shapes the plan.
Consider the container and growing medium. A pot without a drainage hole, a decorative outer pot holding runoff, or a container much larger than the root ball may stay wet longer than expected. A compacted, degraded, or highly water-retentive mix may also dry slowly in a cool, dim room. Do not repot every affected plant reflexively; repotting can stress roots, and a new mix does not prevent future gnats if it is kept constantly wet. Repot when there is an independent horticultural reason, such as failing structure, poor drainage, or damaged roots, and choose a mix appropriate to the plant.

Use bottom watering selectively
Bottom watering can help keep the very top of the medium less wet while roots absorb water from below. Set the pot in a shallow tray of water for a limited period, then remove it and let it drain fully. Do not leave it standing in water for days. Bottom watering is not a fit for every medium or plant: a dense mix may wick poorly, salts can accumulate toward the surface, and some roots need the whole root ball watered from above. If the top remains moist anyway, or the plant’s needs are not met, return to a suitable top-watering method and manage gnats through other steps.
Keep the surface clean
Remove fallen leaves, spent flowers, mossy debris, and pieces of decaying plant tissue from the soil surface. These materials can retain moisture and provide food for organisms associated with the larvae. Clean saucers and outer pots, and fix leaks from nearby humidifiers or plumbing. If you use compost, organic fertilizer, or mulch indoors, make sure it is not decomposing in a persistently wet layer that attracts flies. Sanitation will not sterilize a pot, but it removes some favorable conditions without exposing the plant to unnecessary chemicals.
Use sticky cards as monitors and adult traps
Yellow sticky cards are useful because they capture flying adults and make changes visible. Place one beside the soil line of each suspected pot, safely out of reach of children and pets, and replace it when dusty or full. Record the date and approximate catch. If counts drop consistently, the plan is moving in the right direction. If catches remain high, inspect nearby pots and reconsider whether the source was correctly identified.
Sticky cards are not a complete cure. They cannot catch larvae in the mix or prevent every adult from laying eggs. A single card that fills quickly can also make an infestation look more severe than it is, while a poorly positioned card can miss activity. Use cards as part of a broader plan and resist placing so many that they become a hazard or collect beneficial insects near open windows. Fungus gnats are weak fliers and often remain close to host pots, so local placement is more informative than one trap across the room.
Do not rely on vinegar bowls intended for fruit flies. Wisconsin Extension notes that vinegar traps and similar fruit-fly monitoring methods do not work well for fungus gnats. Adults are associated with the growing medium rather than fermenting food. A trap should match the pest’s behavior; otherwise, a lack of captures can give false reassurance while larvae continue in soil.

Consider a larval biological control
If monitoring indicates an active infestation and moisture changes alone are not enough—or cannot be made without harming the plant—a product containing Bacillus thuringiensis subsp. israelensis (Bti) may help control larvae in the growing medium. Bti is a bacterium used against certain fly larvae. It is a targeted option to consider for the soil, not a spray for the room air. Follow the exact product label: formulations, rates, permitted crops, application methods, and repeat intervals differ, and a product may not be approved for every use or location.
Bti works on susceptible larval stages; it should not be expected to kill adult gnats, eggs, or pupae immediately. That is why adult activity may persist after an application and why repeat treatments may be specified on the label. Wisconsin Extension describes several soil applications spaced five to seven days apart in its guidance, but the product label in your region takes precedence. Do not copy another grower’s recipe or combine products unless the label allows it. Keep packaging, treated water, and granules away from children, pets, food, and aquariums as directed by the label.
Apply a soil treatment evenly enough to reach the zone where larvae feed, while avoiding waterlogging the pot. If the plant cannot tolerate additional water, ask a local extension service or qualified horticulturist whether the product and application method are appropriate before proceeding. A granular product steeped in water, a liquid concentrate, and a ready-to-use formulation are not interchangeable by volume. Use the labeled rate and disposal instructions; do not improvise with household chemicals.
Bti is one tool, not a guarantee. Heavy organic debris, persistently wet media, untreated neighboring pots, and repeated introductions can sustain the problem. Continue moisture management and monitoring while following product directions. If a treatment is not permitted where you live, or you are uncertain about compatibility, use cultural controls and seek local advice instead of substituting an unverified product.
Decide when repotting is reasonable
Repotting may be considered when the current mix remains saturated despite appropriate watering, has broken down, smells sour, drains poorly, or the roots show clear damage. It is not automatically necessary just because a few adults are present. A plant with healthy roots in a well-structured mix can often be managed through moisture adjustment, sanitation, sticky-card monitoring, and a suitable larval control.
If you do repot, work on a clean surface, discard old mix rather than storing it indoors, and wash the pot before reuse. Use fresh, appropriate medium and a container with drainage. Avoid aggressively stripping every root unless the plant’s condition calls for it. Handle the root ball gently; removing all soil can create more injury than the gnats themselves. After repotting, water according to the new medium and plant’s needs, not a fixed “gnat schedule.” Continue monitoring because adults may still emerge from overlooked pots or from pupae already present.
Severely compromised seedlings or cuttings may need special attention because they have small root systems and less tolerance for stress. If the growing tray is densely planted or the media is contaminated, separating healthy material from the affected area may be more effective than treating every mature houseplant. For a rare or high-value plant, get identification and local advice before using a pesticide or discarding the plant.
Track progress over several weeks
Expect improvement to be gradual rather than instantaneous. Adult flies already in the room may survive for a short time after the breeding conditions change. Pupae can continue to emerge, and untreated pots can reseed nearby containers. Leave monitoring cards in place and check them regularly. Compare each plant with its own earlier counts; do not judge the result only by whether you see one fly on a particular day.
A practical sequence is to confirm the insect, map likely source pots, remove standing water and debris, adjust watering where the species allows, place dated sticky cards, and add a label-approved larval treatment if needed. Recheck after several days and continue through the product’s labeled schedule. If counts rise, inspect new plants, overlooked propagation containers, floor drains, and pot covers. If counts fall but do not reach zero immediately, maintain the plan long enough to account for overlapping stages without overcorrecting the watering.
When activity persists despite careful execution, revisit the diagnosis. Drain flies, shore flies, fruit flies, springtails, and other small organisms can be mistaken for fungus gnats. Check whether there are adults emerging from a sink or floor drain rather than a plant. Look for larvae on a potato monitor. Share clear close-up images with a local extension educator if needed. More insecticide is not the answer when the target has not been confirmed.

Prevent another outbreak

Inspect new plants and recently outdoor plants before placing them among the collection. Look at the surface of the potting mix and watch for small flies when the pot is moved. Keep a new plant separate for a short observation period where practical, while giving it suitable light and water. Do not rely on an arbitrary quarantine duration as a guarantee; monitoring is more informative than simply waiting a set number of days.
Store potting mix sealed, dry, and off the floor according to the manufacturer’s directions. Keep opened bags from becoming damp or contaminated with decaying leaves. Clean propagation trays and remove algae or organic residue from surfaces. Use well-draining containers and allow water to drain rather than collecting in decorative pots. None of these steps makes a home sterile, and fungus gnats can still enter from outdoors, but they reduce avoidable sources.
Review seasonal care. Indoor light and growth rates often change with the season, so a plant that used to dry quickly may remain moist longer when days are shorter or temperatures cooler. Reassess moisture before watering rather than following an old calendar. The preventive target is not “never damp”; it is avoiding a continuously wet surface and excess organic debris that keep a gnat population supported.
Common mistakes to avoid
Treating the adults only. Swatting or trapping adult flies may improve comfort, but larvae and pupae remain in the media. Pair adult monitoring with steps that affect the breeding pot.
Over-drying every plant. Drying the soil completely can damage moisture-sensitive plants, seedlings, and new cuttings. Adjust only as far as the plant can safely tolerate.
Using a kitchen remedy without evidence. Cinnamon, dish soap, peroxide, essential oils, and improvised mixtures are not interchangeable with a labeled fungus-gnat treatment. Some can injure roots, change substrate chemistry, or fail to reach larvae. Prefer evidence-based cultural controls and label-approved products.
Spraying the air. Fungus gnats breed in growing media. Wisconsin Extension specifically warns that spraying the air is ineffective. Follow any pesticide label and target only the site and pest it authorizes.
Repotting everything at once. Unnecessary repotting creates plant stress and does not correct a watering pattern that keeps new media wet. Repot for a real root or substrate issue, then keep monitoring.
Stopping when the trap looks better. A low catch is encouraging, but keep checking the source pots for a consistent downward trend. New adults may emerge from pupae already present, and a neighboring pot may become a new source.
Frequently asked questions
Do fungus gnats harm people or pets?
Adult fungus gnats do not bite people. The main indoor concern is nuisance, with root injury possible when larval populations are high or plants are especially vulnerable. Keep traps and any treatment product out of reach of children and pets, and follow the product label for handling and storage.
Will yellow sticky traps get rid of fungus gnats?
They catch adults and help you monitor activity, but they do not remove larvae in the pot or reliably eliminate an infestation alone. Use them together with moisture management, sanitation, and a labeled larval treatment when needed.
Is Bti safe for every houseplant?
Do not assume a product is suitable for every plant, substrate, or setting. Check the exact product label for permitted uses, rates, repeat intervals, and precautions. Bti targets susceptible larvae; it is not an instant adult-killing spray.
Should I let my plant dry out completely?
Usually not. Allowing the surface to dry can reduce favorable egg-laying conditions, but the appropriate interval depends on the plant and its growing medium. Protect moisture-loving species, new cuttings, and seedlings from drought stress while addressing standing water and larvae by other suitable means.
How long does control take?
It often takes several weeks of consistent management because multiple life stages overlap and adults may continue to emerge after the first changes. Wisconsin Extension notes that modified watering and a drier surface may take three to four weeks to bring activity under control. Your results vary with temperature, plant mix, and how many pots are involved.
A measured, plant-safe plan
Fungus gnats are best managed at the pot, where their larvae develop. Confirm the insect, identify the containers that support it, remove standing water and decaying debris, and adjust moisture only within the plant’s tolerance. Use yellow sticky cards to follow adult activity, and consider a soil-applied Bti product only when the label permits and the infestation warrants it. Keep monitoring long enough to see a real trend, and reassess the diagnosis if the insects continue despite the plan.
The goal is a healthy plant and a less favorable breeding environment—not dry roots at any cost. A calm, staged response gives you better evidence about which pot is responsible and avoids unnecessary pesticide use, repotting, or watering stress.
Sources and further reading
- UC Statewide IPM Program: Fungus Gnats — life cycle, monitoring, soil and moisture management, and control options. - University of Wisconsin–Madison Extension: Fungus Gnats on Houseplants — identification, sticky cards, potato monitoring, watering, Bti, and timelines. - University of Minnesota Extension: What insect is this? Fungus gnats — indoor identification and significance. - University of Georgia Extension: Fungus Gnats: A Tiny Nuisance of Houseplants — household monitoring and management context.
Photo credits: Katja Schulz / Wikimedia Commons / CC BY 2.0; Andy Murray / Wikimedia Commons / CC BY-SA 2.0; S. K. Gawali / Wikimedia Commons / CC BY-SA 4.0; Chris Radcliff (cropped/color-corrected by Daniel Case) / Wikimedia Commons / CC BY-SA 2.0; Lyn Lomasi / Wikimedia Commons / CC BY 3.0; Martin Cooper / Wikimedia Commons / CC BY 2.0; Sabina Bajracharya / Wikimedia Commons / CC BY-SA 4.0. Links to individual source pages and license terms are recorded in the accompanying photo manifest.