How I Got Rid of Pantry Moths (And How You Can Too)
I got hit with a pantry moth infestation—here’s the step-by-step method I used to clean, get rid of pantry moths fast, and prevent them from coming back.
I never thought I’d be the person writing a blog post about pantry moths, but here we are. A few weeks ago, I walked into my pantry to grab oatmeal and instead got hit with a full-on horror movie moment–tiny fluttery invaders, weird little webby cocoons, and evidence (aka crumbs that were definitely not crumbs) that something had been partying in my dry goods.
Yep. Pantry moths.
If you’ve ever dealt with these sneaky little pests, you know the emotional damage they can cause. If you haven’t, consider this your sign to check your flour right now. Today I’m walking you through exactly how I got rid of them, what I learned, and how I’m preventing them from ever taking over my pantry again. Because once is enough.

What Even Are Pantry Moths?
Pantry moths–also called Indian meal moths–are tiny, beige-gray moths that love dry food more than I love a clean closet. They’re notorious for showing up in:
- Flour
- Rice and grains
- Cereal
- Pasta
- Nuts
- Bird seed
- Pet food
- Random unopened boxes of snacks you haven’t touched since 2022
And here’s the worst part: a single female moth can lay hundreds of eggs. Hundreds. And those eggs can be hiding in even the smallest crease of a box or bag.
A huge number of pantry moth infestations actually start before the food ever hits your kitchen. Grocery stores keep tons of dry goods in giant warehouses. All it takes is one infested shipment, and suddenly every box on the pallet is a potential Trojan horse of larvae.
Delicious, right?

Step 1: Empty the Entire Pantry (Yes, All of It)
This is the part where you find out just how many open, half-used, or forgotten dry goods you own. Everything must come out. Everything.
Here’s what to do:
Trash anything questionable
If it’s in a paper bag, thin plastic bag, or cardboard box, just throw it out. Even unopened boxes can have larvae hidden in the flaps. The truth is: if they could wiggle into it, they probably already did.
Contain the food you’re keeping
If something looks safe or comes in a solid sealed container, place it in a temporary plastic bin or box with a lid. You’re not saving it forever–you’re quarantining it. If you see moths or larvae appear in the bin later, that food is done.
Prepare for downtime
You’ll need to leave your pantry completely empty for a few days during the cleaning and monitoring process. Think of it as giving your pantry a spa retreat… except it’s recovering from trauma.
Step 2: Vacuum Like You Mean It
Now is the time to become one with your vacuum’s crevice tool.
Use it to suck up:
- Live moths
- Eggs
- Webbing/cocoons
- ANY crumbs (they could be larvae droppings, so don’t try to analyze too hard)

Step 3: Clean Every Square Inch (and Then Some)
Pantry moths don’t limit themselves to shelves–they love corners, cracks, hardware holes, and even the ceiling. So we’re cleaning everything.
What to use:
- I cleaned mine with warm water + a little Dawn dish soap.
- If your shelves are laminate, melamine, or metal, you can also use diluted vinegar.
- If your shelves are painted wood (like mine), skip the vinegar–it can damage the finish.
Where to clean:
- Shelves (tops and undersides)
- Walls
- Corners and seams
- Ceiling
- Any trim, caulking, or decorative molding
- Inside cabinets (remove drawers and shelves)
- Baseboards
- The pantry floor
Look closely for white, webby cocoons stuck to corners or small crevices. Those are the pupae that hatch into adults. (Thanks 5th grade science teacher, I actually remembered that!) Remove anything you find.
Important:
If your vacuum uses bags, toss the bag immediately.
If it’s a canister vacuum, empty the canister into a trash bag, seal it, and wash the canister with hot soapy water.
Pantry moths are determined little creatures, and the last thing you want is a re-infestation coming from your vacuum.

Step 4: Wash All the Storage Bins and Organizers
Anything reusable needs a bath:
- Plastic bins
- Canisters
- Food storage racks
- Turntables
- Can risers
Hot soapy water works best. Put those rubber gloves on to protect your hands, and use this opportunity to go get a manicure afterward. You deserve it after all this work!
About woven baskets…
Woven baskets are basically moth Airbnb. Larvae can tuck themselves deep into the cracks where you’ll never reach them. You can clean them and leave them outside in the sun for a few days–or do what I did and just toss them. I love a good basket moment, but not enough to take that risk.

Step 5: Set Pheromone Traps and Wait
Once the pantry is clean and empty, place pantry moth pheromone traps inside and shut the doors. Leave the pantry dark and untouched for 2–3 days.
These traps attract adult moths and help you:
- Catch any remaining adult males
- Monitor how active the infestation still is
- Know when it’s safe to refill
Check the traps each day. If you’re still catching moths, keep waiting. Replace traps when needed.
Step 6: Clean Again
Yep. Before you refill the pantry, wipe everything down one more time. It seems excessive, but trust me–this is not the pest you want to gamble with.
You don’t have to deep clean as much as you did before, but think of this as the preventative measure that keeps you from having to do this all over again in a month.
Step 7: Refill With Airtight Storage
Here’s the fun part: putting everything back.
Invest in airtight containers
Pantry moths can’t chew through solid plastic, glass, or metal. Airtight containers:
- Keep new moths out
- Contain any undetected eggs or larvae that were already in the food
- Keep your pantry way more organized and visually satisfying
You don’t need to buy 30 containers all at once. Build your collection slowly–one section of the pantry at a time.
Organized-ish Tip
Pop new bags and containers of rice, flour, oats, and other grains in the freezer after grocery shopping for 48 hours to kill any hidden eggs before decanting them.

Bonus Step: Make a Natural Moth Deterrent
Moths hate certain scents, which is great because I love a pantry that smells like a cozy apothecary.
Make a sachet using:
- 2 parts dried lavender
- 1 part dried rosemary
- 1 part whole cloves
Mix them, scoop into an organza pouch, and hang it in the pantry. Replace the herbs every 2 months for best results.
You CAN Win This Battle
Pantry moths feel overwhelming, but they’re absolutely manageable once you know what you’re looking for–and once you stop pretending that every tiny flutter is a figment of your imagination.
If you find yourself dealing with them, just take it step by step:
Empty → Vacuum → Clean → Trap → Wait → Clean again → Refill intentionally.
Your pantry (and your sanity) will thank you.
PS: Love my small but ultra organized custom pantry closet? Here’s the build plans for exactly how we made it!



Thank you for such a comprehension lowdown on getting rid once and for all pantry moths. Aren’t they despicable?
They sure are. Glad you found it helpful, and hopefully we’ll never see one in our kitchens again.