Several essential oils can kill or repel gnats, with peppermint, clove, lemongrass, and cedarwood among the most effective. These oils work through direct contact with the insects, disrupting their nervous systems and breaking down their protective outer coating. Whether you’re dealing with fungus gnats hovering around houseplants or fruit flies in the kitchen, essential oils offer a low-toxicity option that the EPA classifies as minimum risk.
The Most Effective Oils for Gnats
Not all essential oils work equally well. The ones with the strongest evidence for killing or repelling gnats share a common trait: they contain compounds that interfere with insect nerve signaling. Here are the top performers.
Clove oil is one of the most potent options. Its main active compound binds to multiple receptor sites in insect nervous systems, essentially short-circuiting their ability to function. It disrupts both the signaling pathways that control movement and the channels that regulate sensory input, making it lethal on contact at sufficient concentrations.
Peppermint oil works as both a repellent and a contact killer. The menthol penetrates insects’ waxy outer shells, which is what makes it effective when mixed with a small amount of soap (the soap helps break down that shell further). Gnats actively avoid areas treated with peppermint, which makes it useful for keeping them away from plants while other control methods take effect.
Lemongrass oil contains citral, a compound with well-documented insecticidal properties against small flying insects. It doubles as a strong repellent and smells far more pleasant indoors than most chemical sprays.
Cedarwood oil suffocates insects by disrupting their breathing. It’s particularly useful for soil-dwelling gnat larvae because it can be diluted in water and applied as a soil drench.
Oil of lemon eucalyptus stands out as a repellent. At 20% concentration, it provides up to five or six hours of protection against biting flies and gnats before you need to reapply. This makes it a practical choice for outdoor situations where gnats are swarming around you rather than your plants.
How to Mix a Gnat Spray
The University of Hawaii’s agricultural extension program recommends a simple formula for a peppermint-based insect spray: 2 teaspoons of peppermint oil and 2 tablespoons of liquid dish soap in 1 gallon of warm water. The soap serves a critical purpose here. It acts as an emulsifier (keeping the oil mixed into the water instead of floating on top) and helps the solution penetrate the gnat’s waxy protective layer.
For a smaller batch, that ratio works out to roughly 10 drops of essential oil and a few drops of dish soap per cup of water. You can substitute clove, lemongrass, or cedarwood oil for the peppermint, or combine two or three oils together. Spray directly onto adult gnats, onto the surface of potting soil where larvae live, or onto surfaces where gnats tend to land.
For fungus gnats in houseplants specifically, a soil drench is more effective than a surface spray. Mix the solution at the same ratio and pour it through the soil during your normal watering routine. This targets the larvae living in the top inch or two of moist potting mix, which is where the real population lives. The adults you see flying around are only a fraction of the problem.
Repelling vs. Actually Killing
There’s an important distinction between oils that kill gnats on contact and oils that simply keep them away. Most essential oils are stronger repellents than they are insecticides. Peppermint, citronella, and rosemary are excellent at making gnats avoid a treated area, but they won’t eliminate an existing infestation on their own. Clove and thyme oils tend to have more direct insecticidal action.
For an active infestation, especially fungus gnats breeding in houseplant soil, essential oils work best as part of a combined approach. Use the oil spray to reduce adult numbers and repel new arrivals while addressing the larvae in the soil through drenches or by letting the soil dry out between waterings. Fungus gnat larvae need consistently moist soil to survive, so breaking the moisture cycle is often more effective than any spray alone.
Pet Safety Concerns
If you have cats or dogs, some essential oils commonly used for gnat control pose real risks. Tea tree oil is the most frequently reported cause of essential oil poisoning in pets. Cinnamon oil can damage the liver in cats and dogs. Cedar and eucalyptus oils can trigger seizures in sensitive animals.
Cats are especially vulnerable because they lack a key liver enzyme that breaks down many essential oil compounds. Even diffusing certain oils into the air can cause respiratory distress in cats. If you have cats, peppermint oil at low dilutions is a safer choice than cedarwood or cinnamon, though you should still keep treated plants out of areas where your cat likes to chew on leaves. For homes with dogs, avoid tea tree oil entirely and keep all essential oil solutions stored where curious noses can’t reach them.
Protecting Your Plants
Essential oils can burn plant leaves if applied too heavily. High concentrations cause chlorosis (yellowing) and necrosis (browning and tissue death), particularly on tender new growth. The key is dilution. The ratios recommended above (roughly 10 drops per cup of water) are generally safe for most houseplants, but it’s worth testing on a single leaf first and waiting 24 hours before treating the whole plant.
Avoid spraying in direct sunlight or under grow lights, since heat intensifies the oils’ interaction with leaf tissue. Spraying in the evening or moving plants to a shaded spot before treatment gives the solution time to dry without baking into the leaves. Soil drenches carry less risk of leaf damage than foliar sprays, which is another reason they’re the better choice for fungus gnats specifically.
Which Oils Are EPA-Approved
The EPA maintains a list of essential oils that qualify as “minimum risk” pesticides under Section 25(b) of federal pesticide law. Products made with these oils don’t require EPA registration, which means you can legally mix and apply them at home without restriction. The oils on this list that are most relevant to gnat control include peppermint, clove, cinnamon, citronella, cedarwood, lemongrass, rosemary, thyme, geranium, and spearmint.
This classification doesn’t mean these oils are harmless to everything. It means the EPA considers them low enough in toxicity to humans and the environment that they don’t need the same regulatory oversight as conventional pesticides. You’re still working with concentrated plant compounds that can irritate skin, harm pets, and damage plants if misused. Treat them with the same common sense you’d apply to any pest control product.

