What Can I Spray on Gnats to Kill Them?

Gnats are typically fungus gnats, which breed in moist soil, or fruit flies, attracted to fermenting organic matter. While the urge to find a quick spray is understandable, a single blast of liquid only offers temporary relief by killing the adults you see. True control requires a two-part approach: eliminating flying adults and targeting the invisible breeding source to prevent future generations. The most effective long-term solution addresses the larvae, which are the true source of the problem.

Immediate Elimination with DIY Sprays

Simple household ingredients mixed in a spray bottle provide an instant contact kill for adult gnats. A solution of water mixed with a few drops of liquid dish soap is a highly accessible option. The soap acts as a surfactant, immediately breaking down the gnat’s waxy outer layer (exoskeleton), which leads to rapid desiccation and death. This mixture is non-toxic to people and pets and is generally safe to use near houseplants.

Another effective mixture involves a diluted solution of isopropyl rubbing alcohol and water, typically one part alcohol to three or four parts water. When sprayed directly onto the pests, the alcohol rapidly dehydrates the gnats. Always test this solution on a small, inconspicuous leaf before widespread use, as alcohol can cause phytotoxicity, or burning, on sensitive foliage.

While vinegar is popular in gnat control, it is less effective as a direct contact spray and more useful as a lure. Fruit flies are strongly attracted to the acetic acid in vinegar, which mimics the smell of fermenting fruit. A mixture of equal parts vinegar and water can be used as a general deterrent spray on non-porous surfaces, but relying on it for an immediate kill is disappointing.

Commercial Contact Killers

For immediate knockdown of flying gnats, products containing pyrethrins or pyrethroids are widely available. Pyrethrins are natural insecticides derived from the chrysanthemum flower; pyrethroids are their synthetic counterparts. These compounds rapidly disrupt the gnat’s central nervous system.

Upon contact, pyrethrins interfere with the flow of sodium ions across nerve cell membranes, forcing the channels to remain open. This causes the insect’s nerves to fire continuously, resulting in tremors, paralysis, and swift death. Due to their rapid action, these aerosol sprays are excellent for quickly clearing a cloud of flying adults. They offer no residual effect once they dissipate.

A gentler commercial option utilizes essential oils, which function as both contact killers and repellents. These sprays often contain botanicals such as peppermint, clove, rosemary, or lemongrass oils. The active compounds penetrate the insect’s cuticle and interfere with their nervous or respiratory systems. Like pyrethrin sprays, these products are designed for immediate contact on flying adults and do not address the breeding source.

Spraying the Source: Eliminating Larval Stages

Adult gnats live for only about a week, and females lay hundreds of eggs, meaning spraying the flying population only offers a temporary fix. True eradication requires a liquid application (a drench) that targets the larvae living in the breeding material. The source of the infestation determines the appropriate liquid treatment.

Fungus Gnats and Bti

If you are dealing with fungus gnats, the larvae feed on organic matter and roots within moist potting soil. The most effective biological control is a soil drench containing Bacillus thuringiensis israelensis (Bti), a naturally occurring soil bacterium. When applied as a heavy watering, the Bti is ingested by the larvae, and the alkaline conditions of their gut activate the bacterium’s crystalline toxins. These toxins bind to the gut wall, causing the digestive system to fail and killing the larvae within 24 to 48 hours. Bti is highly specific to gnat and mosquito larvae and does not harm plants, beneficial insects, or mammals.

Fruit Flies and Habitat Removal

For fruit flies, the larvae develop in decomposing organic material found in drains, garbage cans, or under appliances. Eliminating fruit fly larvae involves using cleaning sprays to destroy the breeding medium. A common approach is a drain drench using a mixture of baking soda and vinegar, which creates a foam to dislodge organic buildup on pipe walls, followed by a flush of hot water. Enzymatic drain cleaners can also be poured down drains to safely digest the organic sludge that fruit fly larvae depend on for food. The goal is not to poison the larvae but to remove their entire food source and habitat.