How to Get Rid of Moths

Moths are either in your food or in your clothes. Those are different species with different habits, and they need different treatments. What they share is a tendency to be further established than you realize by the time you notice them – because the larvae do the damage, and larvae are small, hidden, and easy to miss until the cashmere sweater has holes or the oatmeal is moving.

The moth you see flying is the adult, and adults don’t eat. They just mate and lay eggs. Killing the adults doesn’t fix anything except making you feel like you’re doing something. The eggs and larvae are the problem, and they’re in your pantry shelves and closet corners and carpet edges right now.

Inspection and Triage

Before treating anything, find out what you’re actually dealing with.

Inspect the pantry and toss infested food immediately. Indian meal moths (the common pantry species) leave silken webbing in infested food – often visible as clumps or webs in grains, nuts, dried fruit, and cereals. Check everything. Pull it all out. Any bag or box with webbing, moths, larvae, or even suspicious clumping goes in the bin in a sealed bag. Don’t sort through it, don’t save parts of it.

Check for hidden breeding spots beyond the obvious pantry items. Pet food bags in the garage, open bird seed, dried herbs in the back of a spice cabinet, decorative dried flower arrangements that haven’t been touched in two years. Pantry moths will breed in any dried organic material, and it’s always the thing you forgot about that’s running the operation.

Group remaining unaffected items in one area to monitor. Transfer anything you’re keeping into airtight containers – glass or rigid plastic. If larvae are in one item in the pantry, they’ve likely already colonized adjacent open packaging.

Deep Cleaning

After the purge, clean everything they touched.

Vacuum everything – shelves, corners, cracks between shelf boards, the edges where shelves meet walls, and the floor of the pantry or closet. Eggs and pupae are tiny and can survive in crevices that look clean to the eye. Use the crevice attachment and go over every surface twice.

Clean food storage containers with hot water and soap, then let them dry completely before refilling. Residue inside an old jar or container is enough to restart an infestation.

Heat vinegar and spray it into cracks and corners. The heat helps the vapors penetrate. This is a genuine cleaning step, not just odor control – the acidity kills eggs on contact with surfaces.

Add baking soda or salt to vinegar for pantry moths specifically – both are abrasive and mildly desiccant, and the combination is more effective on egg masses than vinegar alone.

Empty and paint the closet with insect-resistant paint for a clothes moth infestation. This sounds extreme but it’s the right call for a recurring closet moth problem. The paint seals surface micro-crevices where eggs survive cleaning, and the insect-resistant formulations contain pyrethrins that kill larvae on contact.

Kill and Decontaminate Infested Items

For items you want to save rather than throw away, the goal is killing everything on and in them.

Freeze infested items for at least 72 hours at 0°F (-18°C). This kills eggs, larvae, and adults. It works for both pantry items you’re unsure about (grains, nuts, flours) and for non-washable fabric items with clothes moths. Use a sealed freezer bag first. After freezing, inspect before returning items to storage.

Wash or dry clean infested fabrics. Hot washing at 120°F (49°C) or above kills all life stages. Dry cleaning works for items that can’t be washed. Don’t return cleaned items to the closet until you’ve completed the cleaning of the closet itself.

Run a dehumidifier for 2 to 3 days after treatment. Clothes moth larvae prefer relative humidity above 75%. Dropping the closet humidity below 50% kills larvae that survived the cleaning and makes re-infestation less likely.

Food Storage and Sanitation

Once the infestation is cleared, storage is what prevents it coming back.

Lock down food storage. Transfer all dried goods into airtight containers – not the flimsy clip-seal kind, but proper screw-top glass or hard-sided plastic. Flour, rice, oats, pet food, dried pasta, nuts, seeds. Everything. Moths can chew through thin plastic packaging within hours.

Take out trash regularly, especially after the purge. A bin full of infested food inside the house is still a source. Bag it, seal it, get it outside the same day.

Traps and Repellents

Pheromone traps are the most useful maintenance tool in this category. They use synthetic sex attractants that lure male moths (both pantry and clothes moth varieties have their own specific traps) onto a sticky board. They don’t eliminate an infestation by themselves, but they catch adult males before they mate, and they’re excellent monitors – if you’re seeing moths on the trap, you still have a problem somewhere.

Mix essential oils with vinegar as a deterrent in closets and pantry spaces. Lavender, cedar, cloves, and peppermint are all documented clothes moth deterrents. A spray made from 15 to 20 drops of lavender or cedar oil per cup (240 ml) of diluted vinegar, applied to shelf liners and closet corners, disrupts moth navigation and egg-laying. Dried lavender sachets and cedar blocks do the same thing passively.

When to Call a Professional

Most moth infestations are self-solvable. The case for professional treatment is a large-scale clothes moth infestation in carpet or upholstered furniture – places where eggs are densely embedded and impossible to clean mechanically. Professional carpet treatment with residual insecticide (permethrin-based) reaches depths that vacuuming doesn’t. It’s worth the cost for a serious infestation in an expensive carpet or a room-sized problem.

Where It Shows Up

Moths in home – the general infestation scenario. Finding hidden breeding spots, vacuuming comprehensively, setting pheromone traps to monitor activity, running a dehumidifier, and essential oil deterrents for prevention.

How to get rid of moths in home

Moths in pantry – the food moth problem. Full purge-and-clean procedure, which foods to check first, container recommendations, using vinegar with baking soda in cracks, and locking down storage to prevent re-infestation.

How to get rid of moths in pantry

Moths in closet – clothes moths specifically. Washing and dry cleaning protocol, freezing treatment for delicates, dehumidifying the closet, and the closet paint option for persistent recurrence.

How to get rid of moths in closet