Fungus Gnats on Houseplants: How to Control Them Without Sprays

The most effective way to get rid of fungus gnats on houseplants is to stop overwatering and let the top inch or two of soil dry out between waterings, which kills the larvae in the potting mix. According to UC Integrated Pest Management, fungus gnats "thrive in moist conditions," so allowing the soil surface to dry, using yellow sticky traps for the adults, and applying a Bti soil drench brings an infestation down without any chemical spray.

Those little dark flies drifting up from your houseplant when you water it are annoying, but they are also a message. They are telling you the potting mix is staying too wet. Fix the moisture and you fix the gnats, no aerosol can required. This guide covers how to identify fungus gnats, the non-spray controls UC IPM actually recommends, straight notes on the folk remedies floating around online, and how to handle the other common indoor pests the same way.

What Do Fungus Gnats Look Like, and Are They Harmful?

Fungus gnats are small, dark, mosquito-like flies. According to UC Integrated Pest Management, the adults are "about 1/16 to 1/8 inch long" and "relatively weak fliers" that "usually don't move around much indoors." A telltale sign is where they hang out: UC IPM notes they "often remain near potted plants and run across (or rest on) growing media" rather than zipping around your fruit bowl.

The damage happens out of sight, in the soil. UC IPM describes the larvae as having "a shiny black head and an elongated, whitish-to-clear, legless body," living in the top inch of moist mix. They "eat organic mulch, leaf mold, grass clippings, compost, root hairs, and fungi." On established houseplants they are mostly a nuisance, but heavy larval populations can chew tender young roots and stress seedlings and cuttings, which is where they do real harm.

People often confuse fungus gnats with fruit flies. The easy tell is location and behavior. As Cornell Cooperative Extension explains, the two are often mixed up because of their size, but fungus gnats "are uniquely interested in damp, organic-rich soil," while fruit flies hover around ripening fruit and kitchen drains. If the flies are coming from your plant pots, they are almost certainly fungus gnats.

Why Do I Have Fungus Gnats in the First Place?

Because the soil is too wet, for too long, too often. This is the root cause and the reason non-spray control works so well. UC Integrated Pest Management is direct about it: "because fungus gnats thrive in moist conditions, avoid overwatering and provide good drainage." Their favorite breeding spots, UC IPM adds, include "moist and decomposing grass clippings, compost, organic fertilizers, and mulches."

A UC ANR advisor put the solution just as plainly, writing that "the best way to control fungus gnats is by simply adjusting watering practices." Constantly damp potting mix, rich in organic matter, is exactly the nursery the larvae need. Chronically overwatered plants, pots without drainage, and rich moisture-holding mixes are the common thread behind nearly every indoor gnat outbreak.

This is also why fungus gnats show up more in winter. Indoor plants use less water in the short, cool days, but a well-meaning gardener often keeps watering on the old summer schedule, and the mix never gets a chance to dry. The population takes off.

How Do You Get Rid of Fungus Gnats Without Sprays?

Here is the effective, spray-free program, drawn from UC IPM guidance. Used together, these steps break the gnat's life cycle rather than just swatting the adults.

1. Let the Soil Dry Between Waterings

This is the single most important step. UC Integrated Pest Management advises to "allow the surface of container soil to dry between waterings." The larvae live in that top layer of moist mix, and drying it out kills them and stops the adults from laying new eggs. Cornell Cooperative Extension puts a number on it: "by allowing the top 1 to 2 inches of soil to dry out between waterings, you'll make it much harder for fungus gnats to lay eggs." Most houseplants tolerate this easily. Water thoroughly, then wait until the surface is genuinely dry before watering again.

2. Water From the Bottom

To keep the surface dry while still watering your plant, water from below. As UC ANR recommends, "water plants from the bottom using saucers under pots. This keeps the top of the soil dry." The roots drink up the moisture they need while the top layer, where the larvae live, stays inhospitable. Empty any water the pot has not absorbed after half an hour or so.

3. Set Out Yellow Sticky Traps

Sticky traps catch the adults and, just as usefully, tell you whether you are winning. UC Integrated Pest Management notes that "yellow sticky traps can be cut into smaller squares" and "placed in pots to trap adults." UC ANR adds that traps are "a great way to monitor for fungus gnats." Lay them flat on the soil surface or stake small squares just above it. As the count of trapped gnats drops week over week, you know your watering changes are working.

4. Apply a Bti Soil Drench

For a stubborn population, a biological larvicide finishes the job in the soil. UC Integrated Pest Management points to "Bti products (Mosquito Bits, Gnatrol)" as "readily available in retail nurseries." Bti is Bacillus thuringiensis subspecies israelensis, a naturally occurring soil bacterium that specifically targets fly larvae and is harmless to people, pets, and plants. It is worth being precise here: Bti is a microbial product applied as a soil drench, not a knockdown foliar spray, so it fits a no-spray approach, though it is technically a biological pesticide rather than nothing at all. Soaking mosquito bits in water and using that water to drench the pots delivers the Bti to the larvae.

5. Bring in Biological Controls for Ongoing Problems

If you grow a lot of plants indoors and gnats are a recurring battle, natural enemies can hold them down. UC Integrated Pest Management lists beneficial nematodes, noting that "Steinernema feltiae is a nematode that is effective when temperatures are between 60 and 90 degrees Fahrenheit," and predatory Hypoaspis mites, both of which hunt the larvae in the soil. These are more relevant for a hobby grower with many pots than for a single houseplant.

Do the Home Remedies Like Hydrogen Peroxide and Sand Actually Work?

The internet is full of fungus gnat hacks. Some have modest support; others are folklore. Being straight about which is which will save you effort.

Hydrogen peroxide soil drench. This one gets recommended constantly. Cornell Cooperative Extension does mention it, suggesting you "mix one part 3 percent hydrogen peroxide with four parts water and pour it over the soil." However, UC Integrated Pest Management does not list hydrogen peroxide among its recommended controls, and the impressive-sounding efficacy numbers you see quoted online mostly trace back to product blogs, not extension research. Peroxide is also non-selective: it kills beneficial soil life along with larvae. It will not hurt to try in a pinch, but the reliable fix remains drying the soil, and that is where your effort is best spent.

A layer of sand or grit on top of the soil. The theory is that a dry topping blocks egg-laying. It is a popular tip, but it does not appear in UC IPM's fungus gnat guidance or other top-tier extension sources, so treat it as unverified folklore rather than a proven method. Letting the surface dry does the same job the sand is supposed to do, more dependably.

Dish soap or vinegar traps. These catch a few adults but do nothing to the larvae breeding in the soil, so they never resolve an infestation on their own. Yellow sticky traps are the better-supported tool for the adults.

The pattern across all of these: gadgets and drenches that target adults or promise a quick kill tend to underperform, because the problem lives in the wet soil. Address the moisture and the population collapses.

How Do You Handle Other Common Houseplant Pests Without Spraying?

Fungus gnats are the most common indoor complaint, but a few other pests show up on houseplants, and UC IPM offers non-spray options for each. Dry winter indoor air, in particular, favors mites, so these are worth knowing.

  • Spider mites. These tiny mites cause fine stippling and webbing, and thrive in dry indoor air. UC Integrated Pest Management recommends you "frequently wash leaf surfaces with water, reduce dust, and dispose of infested plant parts." Rinsing the foliage and raising humidity are the spray-free front line. (Insecticidal soaps and oils work but are technically sprays.)
  • Aphids. Soft-bodied clusters on new growth. UC IPM advises washing them off "with a spray of water" and practicing sanitation by removing and disposing of infested parts. A firm rinse in the sink knocks most of them off.
  • Mealybugs. White, cottony clumps in leaf joints. According to UC Integrated Pest Management, small infestations on houseplants "can sometimes be controlled with 70 percent (or less concentrated) isopropyl (rubbing) alcohol applied directly on the mealybugs with a cotton swab." Dab each one.
  • Scale. Immobile brown or tan bumps on stems and leaves. UC IPM recommends scraping them off, washing off the crawling juvenile stage with water, and removing heavily infested parts. A cotton swab with rubbing alcohol works here too.
  • Whiteflies. Tiny white flies that scatter when disturbed. UC Integrated Pest Management notes that "yellow sticky traps in individual pots can sometimes reduce whitefly populations by trapping adults," the same tool that works for fungus gnats.

If you grow citrus indoors, such as a container Meyer lemon brought in for the winter, keep an eye out for these same pests, since indoor citrus is prone to scale, mites, and mealybugs. Our guide to Growing Meyer Lemons in Santa Cruz County covers keeping those trees healthy.

How Do You Keep Fungus Gnats From Coming Back?

Prevention is mostly about moisture and clean habits. UC Integrated Pest Management's houseplant guidance points to a few reliable practices:

  • Do not overwater. UC IPM's core advice is to "eliminate standing water and allow soil to dry as much as possible between watering." This is the same lever that controls an active infestation, applied year-round.
  • Inspect new plants before bringing them home. UC IPM recommends practicing "pest exclusion by thoroughly examining plants prior to purchasing and introducing them indoors." Many gnat problems arrive on a new plant. Quarantine newcomers away from your collection for a couple of weeks.
  • Use sterile potting mix. "Always use sterile potting soil when transplanting and repotting plants," UC IPM advises. Bagged mix left open and damp can already harbor larvae.
  • Keep pots clean. Remove fallen leaves and debris from the soil surface and around the pots, since decaying organic matter feeds the larvae.
  • Make sure every pot drains. A pot with no drainage hole, or one sitting in a full saucer, stays wet at the bottom and invites the whole cycle back.

One reason soilless growing has become popular is that it sidesteps this problem entirely. Hydroponic setups like the Kratky Method for Beginners have no potting mix for larvae to feed on, and fast crops like those in Growing Microgreens at Home are harvested before gnats can establish. If overwatering is a persistent weakness for you, our guide to Growing Herbs Indoors in California covers watering potted herbs without keeping them soggy.

Frequently Asked Questions

How do I get rid of fungus gnats without using chemicals?

Let the top inch or two of potting soil dry out between waterings, which kills the larvae and stops egg-laying, according to UC Integrated Pest Management. Water from the bottom to keep the surface dry, set yellow sticky traps to catch and monitor the adults, and for stubborn cases apply a Bti soil drench (Mosquito Bits or Gnatrol), a naturally occurring soil bacterium that targets fly larvae. Together these break the life cycle without any foliar spray.

Are fungus gnats harmful to my plants?

On established houseplants, fungus gnats are mostly a nuisance, but they are not entirely harmless. According to UC Integrated Pest Management, the larvae feed on organic matter, fungi, and "root hairs" in the top inch of soil. Heavy larval populations can damage the tender roots of seedlings and cuttings, stunting or killing young plants. The adults do not bite or damage foliage. The bigger message they send is that your soil is staying too wet.

What is the difference between fungus gnats and fruit flies?

They differ in where they live and what attracts them. Fungus gnats are dark, weak-flying, mosquito-like flies that, per UC Integrated Pest Management, rest on and run across the soil of potted plants. Fruit flies are tan and hover around ripening fruit and kitchen drains. As Cornell Cooperative Extension explains, the two are often confused, but fungus gnats are drawn to damp, organic-rich soil, while fruit flies are drawn to fermenting food. If they rise from your plant pots, they are fungus gnats.

Does letting the soil dry out really kill fungus gnats?

Yes, this is the most effective control. Fungus gnat larvae live in the top layer of moist potting mix, and UC Integrated Pest Management advises allowing the soil surface to dry between waterings to control them. Cornell Cooperative Extension specifies letting the top one to two inches dry out, which makes it far harder for adults to lay eggs. Drying the soil kills existing larvae and prevents the next generation, which is why it works better than trapping adults alone.

Is Bti safe to use on indoor plants?

Yes. Bti (Bacillus thuringiensis subspecies israelensis) is a naturally occurring soil bacterium that specifically targets the larvae of flies and mosquitoes and is considered harmless to people, pets, and plants. UC Integrated Pest Management lists Bti products such as Mosquito Bits and Gnatrol as readily available controls for fungus gnats. It is applied as a soil drench rather than a foliar spray, so it fits a no-spray approach, targeting the larvae where they live in the potting mix.

Does hydrogen peroxide get rid of fungus gnats?

It is a popular home remedy with limited backing. Cornell Cooperative Extension mentions drenching the soil with a mix of one part 3 percent hydrogen peroxide to four parts water, but UC Integrated Pest Management does not list it among recommended controls, and the strong efficacy claims online mostly come from product blogs rather than research. Peroxide also kills beneficial soil organisms indiscriminately. Drying out the soil is the more reliable and better-supported fix.

How do I stop fungus gnats from coming back?

Prevent them by managing moisture and inspecting new plants. UC Integrated Pest Management recommends eliminating standing water, letting soil dry as much as possible between waterings, using sterile potting mix, and examining plants before bringing them indoors, since infestations often arrive on a new plant. Keep pots draining freely, remove fallen leaves and debris from the soil surface, and quarantine new plants for a couple of weeks. Consistent, restrained watering is the long-term answer.


Fungus gnats look like a bug problem but behave like a watering problem. Dry out that top layer of soil, water from the bottom, trap the adults, and reach for a Bti drench only if you need it. Do that and the gnats disappear on their own, no spray in sight.

For seasonal care guides, indoor growing help, and printable references built for Santa Cruz County and Bay Area gardeners, join our email list and get free access to the Ambitious Harvest garden toolkit. We share practical, locally grounded ways to keep your plants healthy, indoors and out, all year long.

Previous
Previous

Fabric Grow Bags vs. Plastic Pots: Which Is Better?

Next
Next

BT vs. Hand-Picking for Caterpillar Control