Household aerosol sprays containing pyrethrins (like Raid) kill adult gnats on contact within seconds. But if you don’t have a can of bug spray handy, several common household items work just as well, and the best choice depends on whether you’re dealing with gnats in the air, in your houseplant soil, or breeding in your drains.
Pyrethrin Sprays: The Fastest Option
Pyrethrins are plant-derived compounds found in most general-purpose flying insect sprays. They attack a gnat’s nervous system on contact, causing near-instant paralysis and death. Any household aerosol labeled for flying insects will contain pyrethrins or a synthetic version called pyrethroids. A quick burst aimed directly at gnats in the air or on a surface kills them immediately.
The downside is that pyrethrins break down fast in sunlight and leave no lasting residue, so they won’t prevent new gnats from showing up. They’re a “kill what you see” tool, not a long-term fix.
Dish Soap Spray for a Quick DIY Kill
A few drops of liquid dish soap mixed into a spray bottle of water creates a surprisingly effective contact killer. The soap breaks down the waxy coating on a gnat’s body, causing it to dehydrate and die within moments. This works best when you spray gnats directly, whether they’re hovering around fruit on the counter or sitting on a window.
You can boost this by adding a small amount of white vinegar to the bottle. The vinegar scent attracts gnats while the soap does the killing. For a passive version, fill a shallow bowl with apple cider vinegar and a drop of dish soap. Gnats land on the surface, the soap breaks the surface tension, and they drown.
Why Rubbing Alcohol Is Less Reliable Than You’d Think
Spraying gnats with isopropyl alcohol seems like it should work, but results are inconsistent. In practice, even 99.8% isopropyl alcohol sprayed directly on gnats has been shown to only stun them temporarily. They can recover within five minutes and fly away. The reason is counterintuitive: very high concentrations of alcohol actually seal cell walls rather than penetrating them, which protects the insect instead of killing it. A 70% concentration may penetrate better, but it’s still less reliable than soap-based sprays for instant kills.
Insecticidal Soap for Gnats on Plants
If gnats are swarming your houseplants, insecticidal soap sprays kill adults on contact the same way dish soap does, but they’re formulated to be safer for plant foliage. You can find them at any garden center. Spray the soil surface, the base of the plant, and any adults you see resting on leaves or the pot rim.
A few cautions: insecticidal soaps can cause yellow or brown spotting, burned leaf tips, or scorch marks on sensitive plants. Japanese maples, bleeding hearts, and sweet peas are particularly vulnerable. Plants under stress from heat above 90°F, drought, or recent transplanting are also more likely to show damage. Test on a small area first if you’re unsure how your plant will react, and avoid spraying during the hottest part of the day.
Killing Larvae in Houseplant Soil
Killing the adults you can see only solves half the problem. Fungus gnats lay eggs in moist potting soil, and the larvae feeding on organic matter in that soil are what keep the cycle going. A hydrogen peroxide soil drench kills larvae on contact without harming your plants. Mix one part standard 3% hydrogen peroxide with four parts water and pour it through the soil until it drains out the bottom. The fizzing action destroys larvae and eggs. Let the soil dry out between waterings afterward, since fungus gnat larvae need consistently moist conditions to survive.
For heavier infestations, neem oil mixed into a soil drench creates a protective layer that kills larvae and discourages adults from laying new eggs. Combine one teaspoon of pure neem oil with a few drops of dish soap in a cup of warm water (the soap helps the oil dissolve), then apply it to the soil surface.
Clearing Gnats From Drains
Drain gnats (often called drain flies) breed in the slimy organic buildup inside pipes. Killing the adults won’t help if the breeding ground stays intact, so the goal is destroying both the gnats and the gunk they live in.
The simplest approach: pour a kettle of boiling water slowly down the drain to flush out buildup and kill larvae on contact. For more stubborn infestations, try this combination: pour half a cup of baking soda into the drain, follow with one cup of white vinegar, and let it foam for an hour. Flush with boiling water. The foaming action physically dislodges the organic film clinging to pipe walls while killing flies and eggs.
Adding half a cup of salt before the baking soda creates an abrasive effect that scours the pipe walls more aggressively. Let the mixture sit overnight for the best results, then flush with hot water in the morning.
For drains that keep producing gnats, the underlying problem is usually a thick layer of buildup that home remedies can’t fully reach. A metal pipe brush scrubbed inside the drain, followed by a foaming drain cleaner left overnight, physically removes the breeding habitat. Enzyme-based drain cleaners use bacteria to digest grease and food particles over time, which eliminates the food source gnats depend on.
Essential Oil Sprays: Better as Repellents
Essential oils like peppermint, tea tree, and lemongrass are often recommended for gnats, but they work primarily as repellents rather than contact killers. Direct contact with tea tree oil can interfere with a gnat’s ability to breathe, but the effect is mild compared to soap or pyrethrin sprays. Their real value is making your plants and spaces unattractive to gnats so adults don’t land and lay eggs in the first place.
If you want to try an essential oil spray, mix one tablespoon of castile soap with 10 drops each of peppermint and tea tree oil, then add two cups of water. Shake well before each use. The castile soap does most of the contact killing here, while the oils add a repellent layer. Keep these sprays away from cats, whose livers cannot process certain essential oil compounds. Even properly diluted sprays can irritate their respiratory systems.
Matching the Method to the Gnat
The most effective approach depends on where the gnats are coming from:
- Fruit flies near the kitchen: Dish soap spray for immediate kills, plus apple cider vinegar traps to catch stragglers. Remove overripe fruit and wipe down surfaces.
- Fungus gnats around houseplants: Pyrethrin spray or insecticidal soap for adults, hydrogen peroxide soil drench for larvae. Let soil dry between waterings to break the breeding cycle.
- Drain gnats in bathrooms or kitchens: Boiling water and baking soda/vinegar treatment to kill larvae and strip away pipe buildup. Follow up with enzyme cleaners for long-term prevention.
In every case, the contact kill only buys you time. Gnats reproduce fast, and a single female fungus gnat can lay up to 200 eggs in moist soil. Eliminating the moisture, organic matter, or drain buildup that attracted them is what actually stops the problem.