Preventing moths comes down to two things: removing what attracts them and creating barriers they can’t get through. The specific steps depend on whether you’re dealing with clothes moths (which eat natural fibers like wool and silk) or pantry moths (which infest dry foods like flour, cereal, and nuts). Most households eventually encounter one or both, and the good news is that prevention is straightforward once you know what these insects are after.
Know Which Moth You’re Dealing With
Clothes moths and pantry moths look different, behave differently, and require different prevention strategies. Clothes moths are small, about half an inch long, beige or buff-colored with narrow, hair-fringed wings. They avoid light and prefer dark, undisturbed spaces like closets, basements, and attics. You’ll rarely see them flying around a room. If you spot a moth fluttering near a kitchen light or window, it’s almost certainly a pantry moth, not a clothes moth.
Pantry moths (often called Indianmeal moths) are slightly larger and have distinctive two-toned wings, usually tan near the head and coppery brown toward the tips. They’re drawn to light and are commonly spotted in kitchens and other well-lit areas. Their larvae feed on stored grains, cereals, dried fruit, nuts, and similar dry goods.
In both cases, it’s the larvae that cause damage, not the adults. Adult clothes moths don’t even have functioning mouthparts. So prevention is really about stopping eggs from being laid on your belongings or in your food, and eliminating the conditions larvae need to thrive.
Preventing Clothes Moths
Clean Before You Store
Clothes moth larvae feed on keratin, the protein in animal-based fibers like wool, cashmere, silk, leather, and fur. They’re especially attracted to fabrics that carry body oils, sweat, or food stains. The single most effective prevention step is to wash or dry-clean garments before putting them into storage. Laundering for 20 to 30 minutes in water that’s at least 120°F kills moth eggs, larvae, and adults at every life stage.
If an item can’t be washed, you can freeze it instead. Place it in a plastic bag and leave it in a freezer set below 18°F for at least 72 hours. This kills any hidden eggs or larvae. You can also kill all life stages by heating an item in an oven above 120°F for at least 30 minutes, though this only works for items that can tolerate heat without damage.
Use Physical Barriers for Storage
Moth-proof storage bags, whether breathable or fully airtight, create a physical barrier that prevents moths from reaching your garments. Breathable bags with durable zippers work well for items you access occasionally. Airtight bags offer the most protection and also guard against moisture and mold. Vacuum-sealed bags are effective too, as long as you’re confident the clothes inside are clean and free of existing eggs or larvae before sealing.
Cardboard boxes and standard plastic tubs are not reliable. They typically aren’t airtight enough to keep moths out. For valuable items made of wool, silk, leather, or cashmere, dedicated moth-proof bags are worth the investment.
Cedar and Natural Repellents
Cedar is a popular moth deterrent, and it does have real repellent properties. The natural oils in cedar wood contain compounds that produce a strong, resinous scent. This scent doesn’t directly repel moths so much as it masks the smell of keratin, making it harder for moths to locate their target fibers. The limitation is that cedar loses its effectiveness as the oils evaporate, typically within about three months. After that, you’ll need to sand down the cedar surface and reapply oil, or replace the cedar items entirely.
Cedar also won’t affect larvae or pupae that are already present on a garment. It works as a deterrent for new moths, not as a treatment for an existing problem. Other natural repellents include lavender, mint, rosemary, cloves, thyme, and eucalyptus. These work on a similar principle: their strong scents interfere with a moth’s ability to find food sources. Neem oil is another option that repels a range of household insects including clothes moths. All natural repellents need regular refreshing to stay effective.
Keep Closets Clean and Disturbed
Clothes moths love dark, still, undisturbed environments. Simply rotating your wardrobe, vacuuming closet floors and corners, and occasionally moving stored items around makes the space less hospitable. Pay attention to areas where lint, hair, and dust accumulate, since these contain enough keratin fibers to sustain larvae even without a wool sweater nearby.
Preventing Pantry Moths
Inspect and Store Food Properly
Pantry moths usually enter your home inside food packaging. Eggs or larvae can be present in flour, rice, cereal, dried pasta, nuts, dried fruit, spices, and other dry goods before you even open the bag. Inspect packaging for small holes, webbing, or tiny caterpillars before bringing items home.
Transfer dry goods into airtight containers as soon as possible. Glass jars, metal canisters, or heavy-duty plastic containers with tight-fitting lids are all effective. Keeping items in their original bags or boxes, even if clipped shut, leaves them vulnerable. Airtight containers serve a dual purpose: they prevent moths from getting into clean food, and if a product was already carrying eggs, the container keeps any emerging moths from spreading to the rest of your pantry.
Freezing flour, meal, and grain products for three to seven days before transferring them to pantry storage kills any eggs or larvae that might have been present at purchase. This is a simple precaution for items you buy in bulk or plan to keep for a while.
Rotate Stock and Reduce Shelf Time
Use older products first and try to consume dry goods within two to four months of purchase. The longer something sits in your pantry, the more opportunity moths have to find it. Buying smaller quantities more frequently is one of the simplest ways to reduce your risk.
Clean the Pantry Regularly
Crumbs, spills, and food residue in pantry corners and shelf cracks provide exactly what moth larvae need. Vacuum pantry shelves, crevices, and the gaps between shelving units regularly. Wipe down surfaces and discard expired items promptly. Keep the storage area cool, dry, and well-ventilated, since warm, humid conditions accelerate moth development.
Don’t overlook less obvious food sources. Birdseed, pet food, dried flower arrangements, bean bag filling, and homemade heating pads stuffed with grain or rice can all harbor pantry moths. If you have an infestation you can’t trace, check these items.
What About Mothballs?
Mothballs do kill moths, but they come with serious health concerns. They work by slowly converting from a solid into a toxic vapor. When you smell mothballs, you are actively inhaling insecticide. The two active chemicals used in mothballs are both toxic to humans and animals at sufficient exposure levels.
Mothballs pose a particular danger to children and pets. A single mothball can cause serious harm if eaten by a small child, and pets may mistake them for food or treats. Given the effectiveness of physical barriers like airtight storage bags, thorough cleaning, and temperature treatments, mothballs are rarely necessary for home moth prevention.
Pheromone Traps: Monitoring, Not Prevention
Pheromone traps use synthetic versions of the scent female moths produce to attract males. The sticky traps catch adult males that fly in. These traps are useful for detecting a moth problem early or confirming that an infestation has been resolved, but they will not prevent or control an infestation on their own. They only capture adult males, leaving females and larvae unaffected. Think of them as an early warning system, not a solution.
If you place pheromone traps in your closet or pantry and start catching moths, that’s your signal to inspect the area thoroughly, clean aggressively, and locate the source of the infestation. The traps themselves won’t reduce the population enough to stop damage.
Quick-Reference Prevention Checklist
- Wash or freeze natural-fiber garments before long-term storage
- Store clothing in airtight or moth-proof bags, not cardboard boxes
- Refresh cedar or herbal sachets every three months
- Transfer dry foods into airtight containers immediately after purchase
- Freeze flour and grains for three to seven days before pantry storage
- Vacuum closets and pantry shelves regularly, including corners and cracks
- Use pheromone traps to monitor for early signs of activity
- Consume dry goods within two to four months and rotate stock