How to Get Rid of Pantry Moths: The 4-Step Reset and Traps That Work
Pantry moths start in one infested package. Toss it, clean the shelves, seal your food, and use traps to catch the last of them.
By Jamilur Rahman Updated November 5, 2026 · 6 min read
- Time
- 2 hours
- Cost
- Under $20
- Difficulty
- Medium
In this guide
Quick answer
To get rid of pantry moths, find and throw out every infested package, vacuum and wash the shelves, and move your dry food into airtight containers. Then add traps as the fourth step. Pheromone traps catch the adult males you miss, so the moths cannot keep breeding, and they warn you early if one comes back.
Free fix vs. permanent fix
Toss, clean and seal
- Check every dry food package for webbing, larvae and holes
- Bag infested food and take it outside
- Vacuum and wash the shelves, corners and shelf-pin holes
- Freeze unopened flour and grains for 4 days if you are unsure
How long it lasts: It ends this batch if you find every source. One missed package or bag of pet food restarts it within weeks.

Pantry moth pheromone traps
Pheromone traps lure adult males onto a sticky card, which breaks the breeding cycle and tells you if moths are still around. They cannot remove infested food, which is why the reset comes first. After that, traps catch the stragglers and warn you early.
How long it lasts: Each trap works for roughly 2 to 3 months, per the label. Keep one up all year to spot a new moth early.
As an Amazon Associate I earn from qualifying purchases.
What you'll need
-
Trash bags
Seal infested food and take it outside
You have it -
Vacuum with crevice tool
For corners, cracks and shelf-pin holes
You have it -
Freezer space
Holds unopened packs at 0°F for 4 days
Free - Our pick Illustration

Pantry moth pheromone traps
Catches the adult males you miss
- Illustration

Airtight containers
Glass, metal or thick hard plastic with a gasket lid
Why it happens
They arrive in the package
Eggs hide in flour, cereal, rice, pet food and bird seed, often from the store. Nobody sees them.
Larvae chew through packaging
The larvae chew through paper, cardboard and thin plastic, and spread to neighboring packages.
Warm kitchens speed it up
In a warm kitchen, egg to adult can take about 4 to 6 weeks, so a small problem becomes a flying one.
Food that sits for months
Old, half-used packages at the back of the shelf are where moths breed unnoticed.
Try this first (free)
Do these in order, starting with the simplest.
-
Empty the pantry and inspect
Check flour, cereal, rice, pasta, oats, nuts, dried fruit, spices, pet food and bird seed. Look for webbing, clumped grain, small cream-colored larvae or tiny holes in the pack.
-
Bag it and take it out
Tool used: Trash bagsSeal infested food in a bag and put it in the outside trash today, so larvae cannot crawl back in.
-
Freeze what you want to keep
Tool used: Freezer spaceUnopened packages you are unsure about go in the freezer at 0°F for at least 4 days, which kills eggs and larvae. Then store them sealed.
-
Vacuum, then wash everything
Tool used: Vacuum with crevice toolVacuum shelves, corners, cracks and shelf-pin holes, then empty the vacuum outside. Wash with hot, soapy water and let it dry. Do not spray insecticide where food sits.
-
Seal what stays
Tool used: Airtight containersMove flour, grains, cereal and pet food into airtight containers. Moth larvae cannot chew through glass or metal.
Illustration
Check price on AmazonTool for this step
Airtight containers · Glass, metal or thick hard plastic with a gasket lid
-
Put out traps and check weekly
Tool used: Pantry moth pheromone trapsPlace a trap on a pantry shelf and replace it as the label says. Expect to catch moths for 2 or 3 weeks as the last ones hatch.
Illustration
Check price on AmazonTool for this step
Pantry moth pheromone traps · Catches the adult males you miss
When free fixes aren't enough
A reset removes the source, but one missed package, or a bag of bird seed in the garage, restarts the cycle. Traps tell you whether moths are still emerging. If you catch more than a few after two weeks, look again at what you did not check, such as pet food, dried flowers, spice racks and nearby cabinets. Traps do not kill larvae. If moths show up in several rooms, or you are still catching them after 2 to 3 months, call a pest professional.
Buy the fix
Still stuck after the free fixes? These are the products we would look at.
| Pick | Product | Fixes | Who it's for | Buy |
|---|---|---|---|---|
| Best pick | ![]() Pantry moth pheromone traps | the adult moths you miss and the next generation | Anyone still seeing moths after the reset, or who wants an early-warning system. | Check price |
| Upgrade pick | ![]() Airtight pantry food storage containers | new infestations spreading from package to package | Anyone with a pantry full of flour, grains and cereal in bags. | Check price |

Pantry moth pheromone traps
Fixes: the adult moths you miss and the next generation
Look for: Made for Indian meal moths, also called pantry moths; Pheromone-baited sticky cards with no insecticide inside; A multi-pack, so you can place one and replace it later.
- Who it's for
- Anyone still seeing moths after the reset, or who wants an early-warning system.
- Honest downside
- You have not cleared out the infested food yet. Traps alone will not end it.

Airtight pantry food storage containers
Fixes: new infestations spreading from package to package
Look for: A gasket seal lid with a locking latch; Glass, metal or thick hard plastic, which larvae cannot chew; Sizes for flour, cereal, pasta and pet food.
- Who it's for
- Anyone with a pantry full of flour, grains and cereal in bags.
- Honest downside
- You buy small amounts and use them within a week or two. A freezer and sealed bags may do.
As an Amazon Associate I earn from qualifying purchases. We don't show prices because they change, so use the button to see today's price.
How we picked: How we picked: this page is based on pantry pest guides from university extension offices, product labels from trap makers, and what owners report in reviews. We do not test products by hand.
Pantry moth traps: where to put them and how long they last
Place a trap on a pantry shelf, away from open food, and keep it flat. Replace it as the label says, often every 2 to 3 months. Traps lure adult males only, so they will not clear an infestation on their own.
How to get rid of pantry moths in the house: other places to check
Moths travel. Check bird seed, pet food, dried flowers, spice racks and the cabinets nearest the pantry. If you find webbing or larvae in another room, repeat the reset there.
What to skip
Bay leaves and bug spray
Bay leaves and lavender may repel some insects, but there is little evidence that they kill moths or larvae. Insecticide sprays are unnecessary near food. Do not wait it out either, since eggs hatch fast.
Frequently asked questions
How to get rid of pantry moths fast?
How to get rid of pantry moths for good, or forever?
How to get rid of pantry moths naturally?
How to get rid of pantry moths and larvae?
As an Amazon Associate I earn from qualifying purchases. Affiliate disclosure