The best homemade gnat killer depends on where the gnats are coming from. A simple apple cider vinegar trap catches adult gnats within hours, but if the insects are breeding in houseplant soil or sink drains, you need to target the larvae at the source. Here’s how to handle each situation with ingredients you probably already have.
Identify Which Gnat You’re Dealing With
Three tiny flies commonly get lumped together as “gnats,” and each one breeds in a different spot. Treating the wrong location wastes your time.
- Fruit flies are brownish-black, about ⅛ inch long, and often have red eyes. They swarm around overripe fruit, garbage cans, and compost bins.
- Fungus gnats are black or brown and fly in erratic, bouncing patterns around houseplants. Their larvae live in moist potting soil and feed on roots.
- Drain flies have fuzzy, moth-like bodies and large wings. They breed inside sink and floor drains where organic gunk builds up.
If you see a cloud of tiny insects hovering above a potted plant, those are almost certainly fungus gnats. If they’re congregating near your fruit bowl or kitchen trash, fruit flies. If they appear near sinks and disappear into the drain, drain flies. Most kitchens with a gnat problem have fruit flies, fungus gnats, or both.
Apple Cider Vinegar Trap for Adult Gnats
This is the classic DIY gnat killer, and it works well for both fruit flies and fungus gnats. The fermented smell of apple cider vinegar lures adults in, and a drop of dish soap breaks the surface tension of the liquid so they sink and drown instead of landing on top and flying away.
Mix ⅓ cup apple cider vinegar with 2 tablespoons of water and 1 drop of liquid dish soap (Dawn or any mild brand). Pour the mixture into a small dish or jar and set it near the problem area. You can also cover the jar with plastic wrap and poke small holes in it to let gnats enter without escaping. Replace the mixture every two to three days.
Place multiple traps if gnats are in several rooms. These traps catch adults effectively but won’t stop new ones from hatching. You need to eliminate the breeding source at the same time, or you’ll be refilling traps indefinitely.
Hydrogen Peroxide Soil Drench for Fungus Gnats
Fungus gnat larvae live in the top layer of houseplant soil, feeding on organic matter and roots. A hydrogen peroxide drench kills larvae on contact without harming your plants. Mix one part standard 3% hydrogen peroxide with four parts water and pour it directly over the soil until it flows out the drainage holes. The mixture will fizz as it works through the soil.
Let the soil dry out completely afterward. This is critical: a single female fungus gnat can lay up to 200 eggs in moist soil during her seven to ten day lifespan, and the entire lifecycle from egg to adult can complete in as little as 17 days. Keeping the top 1 to 2 inches of soil dry between waterings kills eggs and larvae before they ever mature. According to Colorado State University, this drying strategy is the single most important step for preventing fungus gnats in indoor plants.
For persistent infestations, repeat the peroxide drench once a week for two to three weeks to catch successive generations.
BTI Granules for Severe Soil Infestations
If hydrogen peroxide and drying aren’t enough, a naturally occurring soil bacterium called BTI is the most targeted option. It produces a protein that’s toxic specifically to gnat and mosquito larvae but harmless to plants, pets, and people. You can buy BTI granules at most garden centers and sprinkle them onto the soil surface or dissolve them in your watering can. The larvae ingest the bacteria and die within a day or two.
BTI is especially useful when you have many houseplants or when the soil stays moist by necessity (some tropical plants can’t tolerate full drying between waterings). It works as both a treatment and a preventive measure when added to your regular watering routine.
Baking Soda and Vinegar for Drain Gnats
Drain flies breed in the slimy organic buildup inside pipes. Killing the adults won’t help if the gunk stays. A baking soda and vinegar flush breaks down that film.
For each drain in your house (including showers), sprinkle ½ cup baking soda into and around the drain opening. Pour 1 cup of white vinegar over it and let the fizzing reaction work for about 10 minutes. Then flush with very hot water. Use the hottest tap water you can get rather than boiling, which can damage certain pipe materials.
Treat every drain in the house at once, even ones that don’t seem affected. Drain flies can breed in any pipe with standing organic matter, and skipping a drain gives them a backup breeding site. You may actually see more dead gnats in your vinegar traps the day after treating the drains, as the flush dislodges adults from inside the pipes.
Soap Spray for Gnats on Plants
A dilute soap spray kills adult gnats and other soft-bodied insects on contact by breaking down their outer coating. Mix 1 to 2 teaspoons of mild liquid dish soap per quart of water (a 1% to 2% solution). Spray the foliage and the soil surface where adults tend to rest.
A few precautions: never use dry dish soap or laundry detergent, which are too harsh and will burn leaves. Test the spray on a small section of each plant first and wait two days to check for damage, since some plants are more sensitive than others. Wipe leaves with a damp cloth a couple hours after spraying to remove soap residue, which reduces the risk of leaf burn. Nebraska Extension recommends using the lowest soap concentration that still controls the insects.
Rubbing Alcohol Spray
Standard 70% isopropyl alcohol kills gnats and their eggs on contact and evaporates within about five minutes. Spray it directly on plant foliage and soil surfaces. It won’t damage most plants, but keep treated plants away from grow lights and direct sunlight until the leaves are fully dry, because light hitting wet foliage causes burns. For outdoor plants, apply in the evening rather than during the day.
For active infestations, spray once daily for four to five consecutive days to catch newly hatching eggs, then drop back to once a week until the gnats are gone.
Preventing Gnats From Coming Back
Killing the current population is only half the job. Gnats reproduce fast enough that a few survivors can rebuild a full infestation within weeks.
For fungus gnats, water your houseplants only when the top 1 to 2 inches of soil are dry to the touch. Bottom-watering (setting pots in a tray of water and letting soil wick moisture upward) keeps the surface dry where gnats lay eggs. Adding a half-inch layer of sand or decorative gravel on top of the soil also discourages egg-laying.
For fruit flies, store ripe fruit in the refrigerator, empty kitchen trash daily, and clean garbage disposals regularly. Rinse bottles and cans before putting them in recycling bins.
For drain flies, run water through infrequently used drains at least once a week to prevent organic buildup, and repeat the baking soda flush monthly if the problem tends to recur.