Lavender, cedarwood, thyme, and several other essential oils repel moths effectively, though they work differently than chemical mothballs and need regular refreshing to stay potent. The active compounds in these oils disrupt moths’ ability to detect food and nesting sites, and some can even kill larvae on contact at sufficient concentrations.
The Most Effective Oils
Not all essential oils repel moths equally. The ones with the strongest evidence behind them fall into a short list, each working through slightly different mechanisms.
Lavender oil is the most widely studied moth repellent among essential oils. Its effectiveness comes primarily from linalool, a compound that makes up roughly 42% of lavender oil. Research has shown that linalool is the only component of lavender oil that triggers a measurable response in insects’ antennae, meaning it’s the ingredient doing the real work. Other components like linalyl acetate (which gives lavender its sweet floral scent) don’t appear to contribute to repellency on their own.
Cedarwood oil has a long history as a moth deterrent, and cedarwood shavings remain one of the most popular natural options for closet storage. The oil works by masking the scent signals moths use to find wool, silk, and other animal-based fibers. Cedar needs reapplication every 45 to 90 days to maintain its repellent strength, depending on how much moth activity you’re dealing with.
Thyme oil contains thymol, which stands out in lab research as the most toxic natural compound to moth larvae and adults alike. In a study published in the Journal of Economic Entomology, thymol was the most potent of eight plant-derived compounds tested, requiring the lowest concentration to kill both larvae and adult moths. Carvacrol (found in oregano oil) ranked second, followed by citral (found in lemongrass) and carvone (found in spearmint).
Other useful oils include eucalyptus, peppermint, rosemary, and clove. These are commonly included in moth-repelling blends, though they have less standalone research behind them than lavender, cedar, and thyme.
Do They Work on Larvae or Just Adults?
This is the critical question, because adult moths don’t actually damage your clothes or food. It’s the larvae that chew through wool sweaters and contaminate pantry staples. The good news is that several essential oil compounds affect both life stages. Thymol, carvacrol, citral, carvone, linalool, and limonene all showed insecticidal activity against larvae in controlled testing. Thymol was the most effective larvicide of the group, needing the smallest dose to reach a lethal concentration.
That said, there’s an important distinction between lab conditions and your closet. In research settings, moths are exposed to concentrated vapors in enclosed spaces. In a large wardrobe or open pantry, the concentration drops quickly. Essential oils are better understood as deterrents that discourage moths from settling in an area rather than as reliable killers of an active infestation. If you already see larvae or damage, you’ll likely need to clean thoroughly and remove affected items before relying on oils to prevent a recurrence.
How They Compare to Mothballs
Traditional mothballs use naphthalene or paradichlorobenzene, chemicals that release a continuous vapor toxic to moths over many months. In a sealed container, a single application can last up to 12 months. Essential oils, by contrast, typically fade noticeably within two to four weeks and need regular refreshing.
The tradeoff is safety. Naphthalene is a possible human carcinogen, and both chemicals in traditional mothballs produce fumes that can cause headaches, nausea, and respiratory irritation in enclosed spaces. Essential oils don’t carry these risks for most people (though they do pose risks for pets, covered below). The practical difference: essential oils require more maintenance but are safer to use in living spaces, bedrooms, and anywhere you’re regularly breathing the air. Mothballs are more appropriate for long-term sealed storage where you won’t be opening the container frequently.
Making Your Own Moth Sachets
A simple sachet combines dried herbs with essential oils in a small drawstring bag. A good recipe for one sachet includes two tablespoons of dried lavender, two tablespoons of cedarwood shavings, one teaspoon each of dried thyme, mint, and rosemary, half a teaspoon of whole cloves, and one bay leaf. Add about seven drops total of essential oil to the mix. You can use a single oil like lavender or blend several: lavender, cedarwood, thyme, and peppermint is a common combination.
Place sachets directly in drawers, on closet shelves, or hanging from the rod near vulnerable items like wool coats and cashmere sweaters. For pantry moths, tuck them near dry goods storage after you’ve cleaned the shelves. Plan to refresh the essential oil drops every two to three weeks or whenever you notice the scent fading. The dried herbs will hold some repellent value on their own, but it’s the oil concentration that does the heavy lifting.
Cotton balls or felt pads soaked in essential oil work as a simpler alternative. Place them in corners of drawers or tape them inside storage bins. These need refreshing on the same schedule.
Pet Safety Concerns
Several moth-repelling essential oils are toxic to cats and dogs, with cats being especially vulnerable. Cats lack certain liver enzymes needed to break down essential oil compounds, making even small exposures potentially dangerous. Oils that are specifically hazardous to cats include peppermint, pine, tea tree, cinnamon, and citrus oils. Both skin contact and ingestion can cause poisoning, and since cats groom themselves constantly, any oil that gets on their fur will likely be swallowed.
If you have cats, lavender and cedarwood are generally considered safer choices, but keep sachets in enclosed spaces your cat can’t access, like sealed drawers or zippered garment bags. Avoid diffusing moth-repelling oils into open rooms where cats spend time. Dogs are somewhat less sensitive but can still be affected by concentrated exposure, particularly to tea tree and peppermint oils. Placing sachets inside closed storage rather than in open areas is the safest approach for any pet household.
Getting the Best Results
Essential oils work best as a preventive layer, not a standalone solution. Clean clothes before storing them, since moths are attracted to body oils, food stains, and sweat residue on fabric. Vacuum closets and drawers regularly to remove eggs and larvae you can’t see. Store vulnerable items like wool and silk in sealed containers or garment bags with sachets inside.
For pantry moths, keep dry goods in airtight glass or hard plastic containers. Wipe down shelves with a diluted essential oil solution (a few drops of lavender or thyme in water) after cleaning up any signs of infestation. The combination of eliminating food sources and maintaining a repellent scent barrier is far more effective than either strategy alone.
Expect to maintain your sachets on a regular cycle. Mark your calendar for every two to three weeks to add fresh oil drops, or every 45 to 90 days if you’re using cedarwood blocks or rings that hold scent longer. Consistency matters more than concentration: a moderate amount of oil refreshed regularly will outperform a heavy initial application that you forget about.

