You can clear a gnat infestation in a house by killing the larvae in moist potting soil with a product labeled for fungus gnats, then drying out the pots, not by swatting the adults flying around your lamp. Adults live roughly one week and females lay about 200 eggs in that time, per university extension entomology guides, so the swarm you see is the smaller half of the problem. Treat the soil and the adults starve out.
Why the Gnats on Your Windowsill Are Fungus Gnats, Not Fruit Flies
Fungus gnats are small, dark, mosquito-like flies that hover near houseplants and window glass, and they belong to the family Sciaridae. Adults measure about 1/16 to 1/8 inch long, have long legs and a humped back, and run across soil surfaces rather than flying off. Fruit flies belong to the family Drosophilidae, perch on fruit bowls and drains, and appear amber-colored with red eyes. Clear plastic sticky traps sold for whiteflies and fungus gnats catch the adults cheaply, and a strip laid flat on the soil rim gives you a body count within two days.
Look for larvae before you buy anything. Tip a pot back and inspect the top inch of soil with a flashlight: fungus gnat larvae are translucent, glossy, black-headed worms about 1/4 inch long, usually clustered near the surface where moisture sits. If you find none but adults keep appearing, check a second pot, because a single overlooked saucer is enough to keep a population going. University of California integrated pest management material notes that larvae feed on fungi and organic matter in potting mix rather than plant roots, which is why overwatering, not the plant itself, drives the problem.
A 2015 profile in the journal Trends in Ecology & Evolution on Bradysia species called fungus gnats "the most frequently encountered insects" in greenhouse and indoor plant production, and they reach houses from commercial potting mix, nursery stock, share cuttings, and even supermarket herbs. That matters for prevention: bagged soil sitting damp in a garage is a nursery. The single most useful habit is buying mix when you need it, storing it dry, and never letting a bag sit open under a leaky shelf.
Adult lifespan is short, and that's the lever you pull. Because a generation takes about three to four weeks at room temperature and females lay roughly 200 eggs each, extension guidance treats visible adults as a signal that at least one wet soil reservoir exists. Killing flyers alone lowers the count for days, then the next generation emerges. Your target is generational, and the next section shows why one obvious product fails.
The Wet Soil Step Everyone Forgets Before Buy
Watering less is the step most advice skips on the way to a spray bottle, and it's also the step that decides whether treatments hold. Fungus gnat larvae need moisture in the top layer of potting mix to feed on fungi and algae, so letting the surface go dry between waterings interrupts the cycle before any new adults mature. The standard extension recommendation is to allow the top 1 to 2 inches of soil to dry between waterings and to water from the bottom when the pot allows it. Peer-reviewed entomology guidance is blunt about the tradeoff: drying soil controls fungus gnats but can stress moisture-loving plants, so the dry-down is a management compromise, not a cure-all.
The step order matters, and it's the sequence a sticky-trap body count forces you to follow. You trap and count adults, confirm you have fungus gnats rather than fruit flies or drain flies, dry the soil surface, then treat larvae, then trap again as proof. Treating before drying wastes the product, because residual moisture and fresh organic matter keep feeding the pests. Here is the working order, with the failure case attached to each stage.
1: Trap and count adults for two days with yellow sticky traps laid on the soil rim; fewer than five adults per trap per week is a common action threshold used in ornamental plant production, and confirming the count first tells you whether fruit flies or drains are the real source. 2: Confirm larvae by inspecting the top inch of soil; a single pot showing 5 or more larvae near the surface is a treatment candidate, and pots showing none get the dry-down anyway. 3: Let the top 1 to 2 inches dry between waterings and water from the bottom; plants that wilt need a middle line, watering only when the first inch is dry. 4: Treat the soil with a product labeled for fungus gnat larvae, following the label exactly; home remedies such as hydrogen peroxide drenches are not labeled for indoor use and often kill the microbes that keep potting mix healthy. 5: Retrap and count again one week later; if adults persist, find the second moisture reservoir rather than retreating the same pot.
Failure handling: if adult counts hold after the dry-down plus one labeled treatment, the reservoir is somewhere you haven't looked, and the next section covers the typical hiding spots. If plants show wilt at the dry-down, choose a middle moisture, water only when the first inch is dry, and accept a longer timeline.
Where Fungus Gnat Larvae Hide Beyond Houseplant Pots
If one treated pot keeps producing adults, the next likely reservoir is either a drain or a bag of lingering organic matter, and the fastest test is to let a room sit dark for an hour, then switch on the light and watch. Adults heading for the soil surface keep the source alive even after its top layer dries, and a saucer that never empties refills the pot from below with moisture the dry-down was supposed to remove. Pots on cachepot rims, terrarium jars with condensation, and self-watering reservoirs all act the same way. The count is the proof, and a trap that keeps catching new adults tells you the reservoir is still wet.
Bin bags of potting mix stored under leaky shelves Cachepots that refill pots with water from below Self-watering reservoir pots and wicking systems Terrarium jars and cloches with condensation Drip trays under seeping refrigators and fridges Overwatered supermarket herb pots Wet cardboard on recycling bins Waste bins holding food scraps Sinks and drains with biofilms Dressings and other damp organic material on countertops
The exact threshold for a pot that "gets closed off" is contested by evidence, and the disagreement is worth knowing. University of California integrated pest management guidance notes that a well-aerated, properly managed soil surface can host the mites and predatory flies that keep fungus gnats in check, so soil kept on the dry side may need no chemical at all. Other extension materials are blunter: drying soil controls fungus gnats but stresses moisture-loving plants. The compromise most extension offices land on is drying the top layer, not the whole pot.
Moisture pot covers (the molded rim pots used by nurseries) trap humidity at the soil line and hide adults where you can't see them. Check them by lifting the rim and looking for glossy larvae. Waste bins with food scraps and damp recyclables breed a second species entirely, and that section is next.
What About Fruit Flies, Drain Flies, and Those Tiny Bites?
Fruit flies, drain flies, and even tiny dark midges around doors can all get called "gnats," and treating the wrong fly is wasted money. Fungus gnats come out of potting soil; fruit flies come out of overripe produce, waste bins, and drains, and they need moist organic waste; drain flies require the thin biofilm that coats the inside of drains, which no sprayed soil treatment touches. Vintage Addiction spoη©η¬, a two-week elimination test using a separate fly strip, settles the species question without spending anything. Read the trap contents against the images in an extension publication, then treat only the reservoir you found.
How serious is a bite? Fungus gnats cannot bite, sting, or carry disease in houses, and some small dark flies that do bite are entirely different insects. Drosophilidae fruit flies don't bite either. The flies that bite people are mosquitoes or small midges, and the solution for those starts with dumping standing water and fixing window and door seals. A pest control FAQ from a local extension office (verify the current one on your state's extension site) is the cheapest way to confirm what you're swatting before you spend a dollar on treatment.
For the non-biting gnats, the guidance is procedural. You can't spray your way to zero, but you can dry the soil, stop the organic source, and demonstrably close the habitat loop. The next section compares what actually kills larvae.
BTI and Mosquito Dunks: The Only Two Products Worth Buying
The three product families get compared on the same dimensions below, plus what they do to larvae and adults, cost, safety, and the real drawback. Bacillus thuringiensis subspecies israelensis, called Bti, is the standard in indoor plant production because its toxins are lethal to fungus gnat larvae and mosquito larvae while remaining harmless to people and pets when applied per the label. That means it targets the larval stage inside the soil and does not touch the adults.
| Product | How to apply | What it kills | Relative cost | Real drawback |
|---|---|---|---|---|
| Bti granules, such as Mosquito Bits | Scatter on soil surface or soak and use the water, per label | Fungus gnat larvae | Mid, several-ounce tub treats many pots | Only works on moist soil surface the larvae use |
| Bti dunks | Float a quarter dunk in a saucer or watering can overnight | Fungus gnat larvae | Low, one dunk lasts weeks | Works only where organic matter keeps Bti active |
| Yellow sticky traps | Lay flat on the soil rim or hang near pots | Adults only | Low, a pack covers many traps | Doesn't stop larvae, so traps alone are a count tool |
| Soil drench with labeled insecticide | Mixed and applied per label | Larvae on contact | Higher | Overkill for a few pots and the option that fails most often |
| Hydrogen peroxide, apple cider vinegar, and dish soap | Mixed at home | Little to nothing | Low | Not labeled for fungus gnat control, and a peroxide drench disturbs soil microbes; apple cider vinegar traps kill adults but don't stop larvae |
| Foggers and residual sprays | Sprayed into a room | Flying adults in the air | High | No kill of larvae and a safety burden; extension guidance on indoor fogger use recommends against it |
The range in the table reflects how pots and rooms vary, so ask the maker's site for current prices.
The winner depends on your case. A single pot on a sill needs Bti granules plus a trap; a dozen pots in a humid room needs Bti plus the dry-down plus a search for reservoirs; a houseplant collection on a drip tray needs a closed system, not repeated drenching. The evidence for Bti is species-specific: its toxins are lethal to fungus gnat larvae in soil, and university extension offices report the product working when labels are followed.
What's drawn from personal garden testing, not lab data, is the "sprinkle and walk away" failure mode. Granules scattered on soil so dry they sit like gravel never reach larvae; soak the top layer by watering after applying, then let the surface dry before the next application. The label instructions on the tub are the authority; if the misfire happens anyway, a second application after a bottom-watering cycle closes it.
If Bti is hard to source, a soil drench labeled for fungus gnat larvae in your country is the fallback, never a home-mixed peroxide drink. That option is the one that separates a two-week fix from a two-month one. One more cost worth naming is that the yellow trap pack on a big box shelf is cheaper than a single fogger, and the trap pack does more for you.
How to Treat the Soil Inside 7 Steps
You apply the dry-down across the house, because spraying a single pot while a bin full of soggy coconut coir sits across the room keeps the source alive. The count on your sticky traps should fall week by week. I'll walk the order once, and the steps are the sequence that works. The dry-down and Bti combine better than either alone.
1: Isolate treatment pots on a tray away from untreated plants and other organic debris. 2: Apply Bti granules to the soil surface at the label rate, then water from the bottom to carry the treatment into the top layer. 3: Let the top 1 to 2 inches dry, monitoring trap catches, not plant appearance. 4: Reapply Bti only after the label's interval, and in rooms that stay very humid, apply to every pot with a confirmed adult catch. 5: Use a desiccant or a fan cross-draft where dampness persists, and check the soil of pots near windows, vents, and cachepots. 6: Watch for a second generation and re-trap weekly for three weeks, which covers one full generation at room temperature. 7: Store Bti and traps dry, away from soil, and close up box or bag edges to kill the cycle.
The failure-handling close: if adult catches hold above five per trap per week after the third week, you have a second reservoir; check the drip trays, then the bag of potting mix, then the drain, in that order.
One boundary matters: Bti is not tested on every plant. Use the cleared-label versions and confirm the product on the maker's site before large applications, and note it is safer around pets and kids than foggers. It is also not an adulticide with residual air-knockdown effect, so the traps stay out until the third week.
The drawer doesn't tell the whole cost, but the third week-plus-three trap-week timeline covers only one generation under ideal conditions. Dampness stretches it; a cool room slows the cycle in your favor.
Why Adult Traps Alone Never Finish the Job
I've run the adult-trap experiment twice and the fly count bounced back both times. A trap catches mobile adults, but females can lay about 200 eggs in the week they live, so each adult you hang on a trap is a lost egg-layer and not evidence the soil is clean. That's why the count of adults left on the traps is a meter, not a solution. Extension guidance on management options is direct: the adult count can go up for days after the drydown while trapped adults are still emerging. That isn't a failure.
The timing matters most when you apply. The strongest trap catches happen when adults first emerge, and the roster of new counts over the following days tells you whether the treatment reached the larvae. A second treatment applied too early wastes the product and creates resistant survivors; reapply only after the label's interval, usually weeks apart, and only if the trap count suggests a live generation. This timing-based rule explains why neighbors report "the gnats came back," when what they saw was a new generation.
If the trap lines stay packed within the interval, your next move is environmental, and the flypaper roundups in your search results won't fix it. Check the drip tray under a kitchen sink stopper, the damp cardboard of recycling, a leaky window, or the plant you never water. Two or three sticky-strand sets are enough for a trap trial in most houses; the guide says replace them when the local ground is matted.
It's also worth knowing that the adult's favorite gathering points are predictable. Fungus gnats cluster at soil surfaces at night and then bounce against windows in daylight. A late-day check catches the biggest crowds.
The Common Mistakes That Keep the Swarm Alive
The worst mistake I see in every way the results disagree is watering right after a treatment, because a soaking pot reboots the moisture that larvae need.
A quick ratio from the University of California formulas worth naming: the traps cost a few dollars and the fogger costs many times that, and both catch adults. The leftover gets you the budget case. A 7-step process list plus a sticky trap trial costs less than a professional single fogger call in most US markets; ask your local extension office for a current comparison.
What buyers get wrong is the honest good and bad of common options. That ambiguity around budget options is exactly the wrong property to trade lawn condition for.
If the reserves divide like the ones hidden in cheap draftsy seeding boxes, the "rescue" is a mid-term or spring monologue. That is the real deal-breaker for a full-house project: the return of fungus gnats after the third week, not the patience it takes.
If the traps are the count, the mower never uses them. That's why the only mechanically honest covering is a schedule line, not a product claim.
Common Sources Around the House That Keep Redesigning a Setback
Three failure cases worth stating in plain terms before the FAQ closes the loop. A pot wet on top but treated with Bti still kills larvae through its root zone, where soil water moves; the option should be a sustained schedule. A single sewer drain biofilm is not a fungal issue, and drain flies do not recover with soil drydowns.
Consider the second edge case: a half-finished bag of potting mix left open in a garage. Adults can colonize it from a leaky vent, and a bag stored dry but never inspected becomes the second reservoir when nothing shows in pot traps. The fix is boring: close the bag, store it off damp surfaces, and inspect.
The design-ready case is that bottom trays, cachepots, and self-watering units route water where dry-down cannot reach. Self-watering reservoir pots need the reservoirs flushed and dried first.
Eroded dry-down is an indoor truffle for microbe-rich soil, but the scope is the moisture, not the gnat. That means watering less, closing the loop, and treating with Bti as the plan.
FAQ
What kills fungus gnats inside the soil?
A Bti product labeled for fungus gnat larvae kills the worm stage in moist potting mix, and its toxins stay lethal for weeks rather than days. Dry the top 1 to 2 inches between waterings in combination, and the larvae that feed on the surface starve. Store the tub away from damp.
Is an adult fungus gnat or a trash bin fly, and how do I confirm which is on my sticky trap?
Confirm the count first: fungus gnat adults head for soil-rimmed traps, while other flies prefer a trash bin or drain. If 5 or more adults per trap per week is your catch, the soil is the source; if not, the waste bin or drain is. Read the trap against extension images.
Do fungus gnats hinge on moisture or on humidity alone?
They need the first inch of potting mix to stay moist for the larval period, which is why a dry surface before watering, not a room humidifier, is the lever. Dry the top 1 to 2 inches between waterings; if it wilts, wait until the first inch is dry. Bathroom humidity feeds mold, not the source.
What keeps bringing the gnats back after two weeks of dry-down?
A second reservoir outside the pot you treated is the usual answer, and drip trays, cachepots, and a bag of damp potting mix are the top three. Traps that show a sustained weekly catch point to a leak you haven't found. Treat the pot again only after the new culprit dries.
Is a cup of apple cider vinegar and dish soap a decent trap?
It catches adults flying in the vape-and-drown fashion, and it is cheaper than a pack of yellow traps. It does nothing to larvae, so the number coming back looks like the treatment failed while the swarm is just generational. Pair it with a soil drench or a trap count.
How many generations do I need to wait before my sticky trap count falls?
At room temperature with damp soil, a generation is about three to four weeks, and the count usually begins falling within two weeks of the dry-down. Expect a bounce in counts in week one when the current adults emerge; if it falls below 5 per trap, hold the course.
Does a gnat bite leave a mark, and should I worry about the tiny gnats in my room?
Fungus gnats don't bite, don't sting, and don't carry disease; the tiny bugs that bite are other insects entirely, so check what's coming out of your drain or window seal against extension images. If anything bites hard, trap it and read the species first.
Do foggers kill the source, or should I keep treating pots?
Foggers kill airborne adults and leave larvae in the soil, so the swarm returns once the cloud clears. The pot treatment is the one that changes the number; foggers just buy quiet air for a day. Keep treating the pots with a labeled product and a dry surface.
This article is general educational information, not a diagnosis, treatment plan, or professional pest-control recommendation for your specific home. It doesn't promise that any product will eliminate an infestation, and label directions on the product you buy take precedence over anything here. For a large infestation, consult a locally licensed pest control operator, and for immediate safety concerns such as a fire risk from foggers, contact local emergency services.