Skip to content
HassleFix

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
A pantry shelf with an open cereal box and flour bag, and a small brown moth resting at the edge of the shelf
In this guide
  1. Quick answer
  2. Free vs. permanent fix
  3. What you'll need
  4. Why it happens
  5. Try this first (free)
  6. When free fixes aren't enough
  7. Buy the fix
  8. Pantry moth traps: where to put them and how long they last
  9. How to get rid of pantry moths in the house: other places to check
  10. What to skip
  11. FAQ
  12. Related problems

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

Free fix · 2 hours

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.

Most readers choose Permanent fix
Pantry moth pheromone traps (illustration)
Illustration

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
    Pantry moth pheromone traps (illustration)
    Illustration

    Pantry moth pheromone traps

    Catches the adult males you miss

  • Airtight containers (illustration)
    Illustration

    Airtight containers

    Glass, metal or thick hard plastic with a gasket lid

Why it happens

1

They arrive in the package

Eggs hide in flour, cereal, rice, pet food and bird seed, often from the store. Nobody sees them.

2

Larvae chew through packaging

The larvae chew through paper, cardboard and thin plastic, and spread to neighboring packages.

3

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.

4

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.

  1. 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.

  2. Bag it and take it out

    Tool used: Trash bags

    Seal infested food in a bag and put it in the outside trash today, so larvae cannot crawl back in.

  3. Freeze what you want to keep

    Tool used: Freezer space

    Unopened 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.

  4. Vacuum, then wash everything

    Tool used: Vacuum with crevice tool

    Vacuum 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.

  5. Seal what stays

    Tool used: Airtight containers

    Move flour, grains, cereal and pet food into airtight containers. Moth larvae cannot chew through glass or metal.

    Airtight containers (illustration)
    Illustration

    Tool for this step

    Airtight containers · Glass, metal or thick hard plastic with a gasket lid

    Check price on Amazon
  6. Put out traps and check weekly

    Tool used: Pantry moth pheromone traps

    Place 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.

    Pantry moth pheromone traps (illustration)
    Illustration

    Tool for this step

    Pantry moth pheromone traps · Catches the adult males you miss

    Check price on Amazon

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.

Our picks compared
PickProductFixesWho it's forBuy
Best pick
Pantry moth pheromone traps (illustration)
Illustration
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 (illustration)
Illustration
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
Best pick
Pantry moth pheromone traps (illustration)
Illustration

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.
Upgrade pick
Airtight pantry food storage containers (illustration)
Illustration

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?
Do the reset in one afternoon: toss infested food, vacuum and wash the shelves, and seal the rest. Hang a trap the same day. Most pantries clear in a few weeks.
How to get rid of pantry moths for good, or forever?
Keep food in airtight containers, check new groceries and pet food before storing them, and keep one trap up all year. Most re-infestations arrive in store-bought packages.
How to get rid of pantry moths naturally?
Hand-removal works: toss infested food, vacuum and wash with hot soapy water, and freeze the keepers. Traps use no insecticide either.
How to get rid of pantry moths and larvae?
Larvae are in the food and the cracks, not on the traps. Throw out infested packs, vacuum the corners where larvae crawl to pupate, and wash the shelves.

As an Amazon Associate I earn from qualifying purchases. Affiliate disclosure

Pantry moth pheromone traps (illustration)
Illustration

Our pick: Pantry moth pheromone traps

Check price