Step 1: Empty the Pantry
This is the part nobody wants to hear.
But if you're serious about getting rid of pantry moths, empty the affected cupboard or pantry completely.
Take everything out.
Don't just move a few boxes around and wipe the visible shelves. You need to be able to inspect the entire area.
Put food on a table or counter where you can examine it properly.
And if you find evidence of an infestation, don't move questionable food into another cupboard.
That's just relocating the problem.
Step 2: Inspect Every Dry Food Package
Now comes the detective work.
Look carefully at every package.
Check for:
- Webbing
- Tiny larvae
- Cocoons
- Clumped food
- Unusual residue
- Holes or damage
- Moths inside packaging
- Food that looks suspicious in any way
Pay particular attention to packages that have been sitting untouched for a long time.
Don't assume an unopened cardboard box is automatically safe.
Pantry moth larvae can sometimes chew through thin packaging, while eggs or larvae may already have been present before you brought the food home.
Step 3: Throw Away Infested Food
If you find clear evidence of pantry moth activity, the safest and simplest solution is usually to discard the affected food.
Put it directly into a trash bag.
Seal the bag well and take it outside rather than leaving an open bag of infested food sitting in the kitchen.
And here's an important mindset shift:
The cost of replacing a bag of flour is much smaller than the cost of letting an infestation spread through your entire pantry.
When in doubt about a dry food with obvious signs of infestation, I would rather lose the package than keep the moth cycle going.
Step 4: Vacuum Every Crack and Corner
This step is easy to skip.
Don't.
Pantry moth larvae may leave the food source and travel elsewhere to pupate. That means the shelves themselves—and especially the cracks and corners—deserve serious attention.
Use your vacuum's crevice attachment around:
- Shelf edges
- Corner seams
- Screw holes
- Brackets
- Cabinet joints
- Cracks
- Behind shelves
- Under liners
- Along the floor of the pantry
Take your time.
You're not just cleaning crumbs. You're trying to physically remove anything hiding there.
Once you're finished, empty the vacuum according to the manufacturer's instructions and dispose of the collected debris appropriately.
Step 5: Wash the Shelves
After vacuuming, wipe the entire pantry with warm, soapy water.
Pay attention to the little places that are easy to ignore.
Corners.
Edges.
Under shelves.
Around hinges.
Along seams.
The goal isn't that soap magically kills every pantry moth stage. The important part is physically cleaning away food particles, residue, eggs, and anything else that could support another infestation.
Let the shelves dry completely before putting food back.
Step 6: Check Nearby Areas
Here's where a lot of people get caught.
If pantry moths have been around for a while, don't assume the problem is limited to one shelf.
Check nearby cupboards and storage areas too.
Look at:
- Baking supplies
- Spices
- Cereal
- Pet food
- Birdseed
- Snack cupboards
- Food stored on top of cabinets
- Open bags
- Older packages hiding in the back
If you have a large infestation, checking only the cupboard where you first spotted a moth can leave the real source untouched.
Step 7: Use Pantry Moth Traps for Monitoring
Pantry moth pheromone traps can be useful, but there's an important distinction.
They're primarily a monitoring tool—not a complete infestation solution.
The pheromone attracts adult male moths, allowing you to see whether adult activity continues.
That can be extremely helpful after you've cleaned the pantry.
If you're still catching moths, keep investigating.
Don't assume that because you've caught several adults, the problem is solved.
You may still have larvae developing somewhere.
Step 8: Move Food Into Airtight Containers
This is one of my favorite long-term pantry habits.
Instead of keeping flour, rice, cereal, grains, nuts, and similar foods in flimsy bags or cardboard boxes, transfer them into airtight containers.
Glass jars and sturdy food-grade plastic containers with tight-fitting lids both work.
There are several benefits:
- You can see what's inside
- Spills are easier to contain
- Food is easier to organize
- You can spot changes quickly
- New infestations are less likely to spread from one package to another
And let's be honest—an organized pantry with matching containers is pretty satisfying, too.
Step 9: Keep Monitoring
This is the step that separates a temporary cleanup from actually getting control of the problem.
Keep checking the pantry after your initial cleanout.
Look for:
- New adult moths
- Larvae
- Webbing
- Cocoons
- Suspicious food packages
- Activity around shelves and corners
If you continue seeing moths, go back through the pantry.
Finding one more source can make all the difference.
Can Pantry Moths Come Back After You Clean?
Unfortunately, yes.
And this is where pantry moths can be incredibly frustrating.
You may clean everything, throw away infested food, vacuum the shelves, and think you're finished—only to see another moth a couple of weeks later.
That doesn't necessarily mean your cleaning failed.
There may have been eggs, larvae, or pupae that were already present before the cleanup.
That's why continued monitoring matters.
The goal isn't simply to have a moth-free afternoon.
The goal is to interrupt the entire life cycle.
How to Keep Pantry Moths Away for Good
Once you've cleared an infestation, prevention becomes much easier.
Store Dry Goods in Airtight Containers
This is probably the single habit I'd recommend most.
Don't rely entirely on the original packaging.
Transfer susceptible dry goods into sealed containers whenever practical.
Don't Ignore Old Pantry Food
That bag of flour you've had forever?
Use it or replace it.
The same goes for forgotten grains, baking mixes, nuts, cereal, and other dry goods.
A pantry becomes much easier to manage when you regularly rotate older food toward the front.
Clean Spills Quickly
Even a tiny amount of flour, cereal, rice, or other dry food can become pantry debris.
If something spills, clean it up rather than pushing it into a corner.
Check New Packages
Here's a habit that can save you a lot of frustration:
Inspect newly purchased dry goods before putting them away.
Pantry moth infestations can sometimes originate from products that were already contaminated before they reached your kitchen.
You don't need to become paranoid about every grocery bag!
Just take a quick look at packages before storing them.
Keep the Pantry Dry and Organized
A clean, organized pantry makes problems much easier to spot.
When everything is crammed together, a single infested package can hide for weeks.
When you can actually see your food, you'll notice something unusual much faster.
Should You Use Mothballs in the Pantry?
No.
Mothballs are designed for specific pest-control uses and are not a food-safe pantry treatment.
Don't place mothballs anywhere near food.
If you're dealing with pantry moths, focus instead on removing infested food, cleaning thoroughly, storing food securely, and monitoring with an appropriate pantry moth trap.
What About Essential Oils?
You'll find plenty of advice online recommending peppermint, bay leaves, lavender, or other strongly scented products as pantry moth repellents.
They may smell lovely, but I wouldn't rely on them as your primary solution.
A strong-smelling herb isn't going to remove an infestation that's already established inside a bag of flour.
Find the food source first.
That's the part that matters most.
What to Do If You Keep Finding Pantry Moths
If you've cleaned the pantry and moths keep appearing, don't panic.
Go back to detective mode.
Look Beyond the Obvious
Check food stored elsewhere in the kitchen.
Then check pet food.
Then birdseed.
Then forgotten baking supplies.
Don't forget the little-used ingredients hiding in the back of cabinets.
Look Up, Too
If adult moths are appearing away from the pantry, inspect upper cabinet corners, ceilings, wall edges, and other sheltered areas.
The larvae may have traveled away from the original food source before pupating.
Don't Stop After One Cleaning
A second inspection can reveal something you missed the first time.
Sometimes the answer really is one forgotten package.
Pantry Moth Prevention Checklist
Here's the simple version you can save:
- ☐ Empty the affected pantry
- ☐ Inspect every dry food package
- ☐ Discard clearly infested food
- ☐ Vacuum cracks and corners
- ☐ Wash shelves thoroughly
- ☐ Check nearby cupboards
- ☐ Inspect pet food and birdseed
- ☐ Use pheromone traps for monitoring
- ☐ Transfer susceptible foods to airtight containers
- ☐ Rotate older food
- ☐ Clean spills promptly
- ☐ Continue monitoring for several weeks
Honestly, this checklist is worth keeping.
Because nobody wants to discover pantry moths twice.
Frequently Asked Questions
How do pantry moths get into my house?
They can sometimes enter through contaminated food products brought home from a store, warehouse, or other source. They can also spread from one stored food item to another after an infestation becomes established.
Can pantry moths live in an unopened package?
Yes, depending on the packaging. Some thin cardboard, paper, and flexible packaging may not provide a reliable barrier.
That's one reason airtight storage containers are so useful.
Do pantry moths bite?
No. Pantry moths aren't known for biting people.
The problem is food contamination and the inconvenience of the infestation.
Are pantry moths the same as clothes moths?
No.
Pantry moths are associated with stored food, while clothes moths are associated with animal-based fibers and fabrics.
If you see a moth in the kitchen, don't automatically assume it's a clothes moth.
How long does it take to get rid of pantry moths?
It depends on how extensive the infestation is and whether you successfully locate every source.
Because eggs, larvae, and pupae may already be present, you should continue monitoring after cleaning rather than assuming the problem is gone immediately.
Should I throw away everything in my pantry?
Not necessarily.
You generally don't need to discard every item simply because one package was infested.
Inspect everything carefully. Discard food showing signs of infestation, and consider transferring suitable foods into clean, airtight containers.
Can I eat food that has pantry moth larvae in it?
I wouldn't.
If you find clear evidence of infestation—such as larvae, webbing, or other contamination—the simplest option is to discard the affected food.
Do pantry moth traps get rid of the infestation?
Not by themselves.
Pheromone traps can help monitor adult male moth activity, but they don't replace finding and removing the infested food source.
Why am I still seeing moths after cleaning?
There may be another infested food source, or moths may still be emerging from earlier stages of the life cycle.
Keep monitoring and inspect the pantry again if activity continues.
Storage and Prevention at a Glance
For everyday pantry maintenance, think:
Inspect → clean → seal → rotate → monitor.
That's it.
You don't need a complicated system.
You just need to make it difficult for pantry moths to find accessible food and easy for you to spot a problem early.
The Bottom Line
Pantry moths are annoying, but they're not unbeatable.
The biggest mistake is treating only the adult moths you see flying around.
Instead, find the food source, discard contaminated products, vacuum and clean the pantry thoroughly, inspect nearby storage areas, and keep susceptible foods in airtight containers.
And please don't skip the monitoring stage!
A few extra minutes of checking your pantry can save you from discovering another infestation months later.
Once you've broken the cycle, keeping pantry moths away becomes much easier.
And there is something deeply satisfying about opening a clean, organized pantry and seeing zero tiny moths fly out.
That's the pantry peace we're after!
More Helpful Home Tips You May Enjoy
If you're tackling pantry moths, you might also enjoy these practical household guides:
- How to Organize a Small Pantry Without Buying a Ton of Stuff
- How to Get Rid of Fruit Flies Naturally
- How to Clean Kitchen Cabinets Without Damaging Them
- How to Keep Flour Fresh for Longer
- How to Organize Your Baking Supplies
- How to Clean a Really Dirty Kitchen Fast
Did This Pantry Moth Guide Help?
If you tried this method, I'd love to hear what worked for you!
Leave a review or share your pantry-cleaning results in the comments.
And if this guide helped you finally get control of those annoying little moths, save it to Pinterest so you can find it again the next time your pantry needs a reset.
You never know when that tiny moth is going to make another appearance!
General Information
This article is intended for general household information. Pantry moth infestations can vary depending on the species, food source, and extent of the infestation. If an infestation is severe, persistent, or difficult to identify, consider contacting a qualified pest-control professional.
For food safety, when in doubt about whether a contaminated food should be consumed, discard it.
Nutritional Information
There is no nutritional information for this household pest-control guide.
If you're looking for nutrition information for a specific recipe from this site, use the nutrition panel provided with that individual recipe.
