Bug Spray for Gnats Indoors: Step-by-Step Guide
In this article
You can get rid of indoor gnats with a two-part approach: kill the adults you see with a labeled indoor insecticide or a simple soap-and-water spray, then break the breeding cycle in damp soil or drains where they lay eggs. The adults are the easy part; the larvae in potting mix, sink drains, and overwatered plant trays are what keep them coming back. Start by identifying which gnat you have, because fungus gnats and drain flies need different fixes.
What You'll Need
- An indoor-labeled insecticide spray (look for fungus gnat or flying insect on the label) or a DIY spray bottle with water and a few drops of mild dish soap
- Yellow sticky traps for fungus gnats
- Sticky fly strips or a small drain brush for drain flies
- Mosquito dunks or granules containing Bti (Bacillus thuringiensis israelensis), sold for mosquito control and labeled for fungus gnats
- Hydrogen peroxide (3%) for a soil drench
- A watering can or spray bottle
- Plastic wrap or a saucer to bottom-water plants
- Gloves and a mask if you are sensitive to sprays
Step-by-Step
- Identify the gnat. Fungus gnats are tiny, dark, and hover around plants and windowsills; their larvae live in wet potting soil. Drain flies (also called moth flies) are fuzzy and rest on sink and shower walls; their larvae live in the slime inside drains. Small fruit flies hover near fruit and trash. The spray step is similar, but the source fix is different.
- Clear the area. Move food, pet bowls, and anything you will eat or drink away from the treatment zone. Open a window or run a fan for ventilation. Read the insecticide label and follow its directions for distance, ventilation, and re-entry time; labels differ by product and region.
- Spray the adults. Hold the can or bottle about 12 inches from surfaces and spray where gnats rest: windowsills, the rims of pots, the soil surface, and the undersides of leaves. Use short bursts rather than soaking surfaces. For a DIY soap spray, mix a few drops of mild dish soap in a spray bottle of water and test one leaf first, since soap can burn some plants.
- Treat the soil. For fungus gnats, let the top inch or two of soil dry out between waterings. Then apply a Bti product mixed per its label as a soil drench, or water with a 1:4 mix of 3% hydrogen peroxide and water. Bti kills the larvae and is the more reliable option; peroxide is a weaker home remedy and can harm roots if overused.
- Set traps. Push yellow sticky traps into the soil near the plant stems to catch adults before they lay more eggs. Replace them when covered.
- Fix drains for drain flies. Scrub the inside of the drain with a brush and a mild cleaner, then pour boiling water down the drain (only if your pipes are metal or rated for it; skip this on older PVC or if unsure). Repeat weekly until the flies stop appearing. Do not pour insecticide down a drain unless the label specifically allows it.
- Bottom-water and quarantine. Water affected plants from the saucer so the top of the soil stays dry, and keep new or infested plants away from healthy ones for a few weeks.
- Repeat and monitor. Respray adults every few days for about two weeks, and reapply soil treatments per the product label. Gnats have a short life cycle, so breaking it takes more than one application.
Common Mistakes
- Spraying only the air. The adults die, but larvae in the soil keep emerging. Treat the source.
- Overwatering. Wet soil is the fungus gnat nursery; letting the top dry out is half the fix.
- Using outdoor insecticide indoors. Only use products labeled for indoor use, and never mix products.
- Soaking the soil with peroxide or soap. Both can damage roots; use the labeled rate and test first.
- Ignoring the drain. If gnats keep appearing near sinks, the drain is the source, not the plants.
- Skipping traps. Sticky traps catch adults and tell you whether the population is falling.
Tips
- Yellow traps work best for fungus gnats; blue or white traps are less attractive.
- Water in the morning so the soil surface dries before evening.
- Keep a small fan moving air around plants; gnats are weak fliers.
- Check new plants for gnats before bringing them home, and repot in fresh, sterile mix if a plant is heavily infested.
- Store sprays out of reach of children and pets, and never spray near fish tanks or reptiles without checking the label.
Troubleshooting
If gnats are still around after two weeks, the source is probably still wet. Check saucers under pots, self-watering containers, and the soil of every plant, not just the obvious one. If they cluster at sinks or showers, switch to the drain routine. If a plant looks stressed after treatment, flush the soil with plain water and stop the soap or peroxide. If an insecticide does not seem to work, confirm it is labeled for gnats and that you are applying it to the resting surfaces, not just the air. For a heavy infestation, combine Bti soil drenches with sticky traps and drying the soil; if that fails, repot the plant in fresh mix and clean the pot. If you suspect the gnats are coming from a shared drain or a neighbor's unit in an apartment, talk to building maintenance rather than escalating sprays.
Frequently Asked Questions
Does soapy water kill gnats?
It kills adults on contact and is a low-cost option, but it does not reach larvae in the soil. Use it alongside a soil treatment.
Are fungus gnats harmful?
They do not bite, but larvae can damage roots in heavy infestations and the adults are a nuisance.
How long does it take to get rid of them?
Plan on two to three weeks of drying the soil, trapping adults, and treating larvae, since the life cycle continues until the soil dries out.
Can I use mosquito dunks for gnats?
Bti products sold for mosquitoes are commonly used against fungus gnat larvae when the label lists fungus gnats; follow the label rate and do not exceed it.
Will a bug zapper help?
Not much. Zappers attract and kill many insects, but they are not a targeted fix for gnats breeding in soil or drains.
Are sprays safe around pets?
Only if the label says so. Keep pets out of the room during application and until the label's re-entry time has passed.