First Home Fixes logo

Home / Kitchen

How to Get Rid of Pantry Moths for Good

4 min read · Updated 28 November 2026 ·

Part of: Kitchen

Simple diagram for the guide: How to Get Rid of Pantry Moths for Good
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
  1. Confirm what you have
  2. Empty the pantry completely
  3. Vacuum every surface
  4. Wash and wipe down
  5. Treat the hiding spots
  6. Restock with sealed storage
  7. Trap the leftover adults
  8. Prevent the next infestation
  9. Common mistakes
  10. FAQ
  11. When to call a pro
Safety. Throw infested food out; do not try to save it by freezing or sifting once you see larvae or webbing. Wear a dust mask if you are sensitive, since old flour dust and webbing irritate airways. Keep moth traps out of reach of children and pets.

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

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

8. Prevent the next infestation

Common mistakes

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.

Follow us on
how to get rid of pantry mothspantry mothsindian meal mothsfood mothsinfested flour

Related guides

Simple diagram for the guide: How to Organize a PantryKitchenHow to Organize a PantryHow to organize a pantry in a weekend: empty it, sort food into zones, reset shelf heights, use clear containers and set a simple restock rule.Product photo related to: How to Clean a Trash Can and Get Rid of the Smell for GoodCleaningHow to Clean a Trash Can and Get Rid of the Smell for GoodLearn how to clean a trash can and stop odors: empty and rinse it, scrub with soap, disinfect, dry in the sun, and use simple habits to keep it fresh.Simple illustration for the guide How to Get Rid of Clothes Moths and Save Your WardrobeFirst HomeHow to Get Rid of Clothes Moths and Save Your WardrobeLearn how to get rid of clothes moths: find the infested items, deep clean closets and fabrics, trap the adults and protect wool long term.Illustration of an open dishwasher with food debris and odor lines at the filter, a cup of vinegar and a sponge on the top rackKitchenDishwasher Smells: How to Get Rid of the OdorDishwasher smells bad? Clean the filter, drain, spray arms and door seal, then run a vinegar cycle. Easy steps, tools and ways to stop it coming back.Simple illustration for the guide How to Convert a Closet Into a PantryKitchenHow to Convert a Closet Into a PantryHow to convert a closet into a pantry: plan shelf spacing for real food, add sturdy adjustable shelves, light it, and keep it cool and dry.