How to Get Rid of Pantry Moths for Good
Part of: Kitchen

- Difficulty
- Easy to moderate
- Time
- Two to three hours, plus a few weeks of monitoring
- Tools
- Trash bags, vacuum with crevice tool, hot soapy water, white vinegar, airtight containers, a flashlight
- Call a pro if
- Moths keep returning after a full cleanout and sealed storage, since they may be breeding in a wall void, a pet food bin in the garage or a forgotten stash.
In this guide
- Wear protection
Pantry moths lay eggs in flour, cereal, rice, pasta and pet food, and the larvae spin webbing as they eat. Sprays do not fix it. Only a full cleanout and sealed storage ends the cycle. Here is how to get rid of pantry moths properly.
1. Confirm what you have
1. Look for small tan or gray moths fluttering near the kitchen, often at dusk.
2. Check open packages for fine webbing, clumped grains or tiny cream colored larvae.
3. Look for small cocoons in shelf corners, under shelf lips and along ceiling edges.
4. Check the oldest packages first; infestations usually start in forgotten food.
2. Empty the pantry completely
1. Pull every package, box and jar off the shelves.
2. Inspect each one against the light. Webbing, dust clumps or movement means infested.
3. Bag anything suspect and take the bag straight to the outdoor trash.
4. When in doubt, throw it out. Saving one infested bag of flour restarts the whole cycle.
3. Vacuum every surface
1. Vacuum the shelves, the corners, the shelf pin holes and the undersides.
2. Run the crevice tool along every crack where a larva could hide.
3. Vacuum the floor and the baseboard under the shelves.
4. Empty the vacuum canister or change the bag outside right away.
4. Wash and wipe down
1. Wash the shelves with hot soapy water.
2. Wipe again with white vinegar and let it dry.
3. Clean the walls and the ceiling corners near the pantry; larvae crawl up to pupate.
4. Wash any storage jars and canisters in hot soapy water and dry them fully.
5. Treat the hiding spots
- Check shelf liner edges and replace the liner if it is infested.
- Look behind appliances and under the toaster crumb tray.
- Inspect pet food, birdseed and dry pet treats stored anywhere in the house.
- Check decorative items like dried flowers, wreaths and corn husk arrangements.
6. Restock with sealed storage
1. Move flour, cereal, rice, pasta, nuts and pet food into airtight glass or hard plastic containers.
2. Moths chew through cardboard and thin plastic bags, so original packaging is not protection.
3. Label containers with dates and use the oldest first.
4. Keep new packages sealed and inspect them before they go in the pantry.
7. Trap the leftover adults
- Pantry moth traps use pheromones to catch male moths and show you if any remain.
- Place one in the pantry and one in the kitchen for a few weeks.
- Replace them as they fill.
- Traps monitor and reduce, but they do not replace the cleanout.
8. Prevent the next infestation
- Buy grains in quantities you will use within a couple of months.
- Freeze new flour and grains for a few days before storage to kill any eggs.
- Keep the pantry dry and cool.
- Wipe shelves every month and check dates. Our guide on organizing a pantry makes rotation easy.
Common mistakes
- Keeping one infested package because it looks mostly fine.
- Cleaning the shelves but skipping the shelf pin holes and cracks.
- Putting food back in cardboard boxes after cleaning.
- Ignoring pet food and birdseed stored in the garage or basement.
- Using pesticide sprays near food, which is unsafe and unnecessary.
FAQ
Where do pantry moths come from?
Almost always from eggs already in packaged food when you buy it. They hatch in the pantry and spread from package to package.
Can I eat food that had moths in it?
It is not poisonous, but the webbing, droppings and larvae make it unfit. Throw it out.
How long does it take to get rid of them?
A thorough cleanout ends new larvae immediately, and traps clear the remaining adults within a few weeks.
Do bay leaves or herbs keep moths away?
They may help as a mild deterrent, but sealed containers and regular checks do the real work.
Related guides
- How to Organize a Pantry: How to organize a pantry in a weekend: empty it, sort food into zones, reset shelf heights, use clear...
- How to Clean a Trash Can and Get Rid of the Smell for Good: Learn how to clean a trash can and stop odors: empty and rinse it, scrub with soap, disinfect, dry in the...
- How to Get Rid of Clothes Moths and Save Your Wardrobe: Learn how to get rid of clothes moths: find the infested items, deep clean closets and fabrics, trap the...
- Dishwasher Smells: How to Get Rid of the Odor: Dishwasher smells bad? Clean the filter, drain, spray arms and door seal, then run a vinegar cycle. Easy...
- How to Convert a Closet Into a Pantry: How to convert a closet into a pantry: plan shelf spacing for real food, add sturdy adjustable shelves, light...
