How to Keep Bugs Out of Stored Food
Pantry weevils and moths often arrive in the food itself. The freeze-first trick and pest-proof containers that keep them out.

Opening a bag of flour to find it crawling is a rite of passage, and almost always the bugs came in with the food, not from your shelves. Here's how to keep stored food bug-free.
Where the bugs come from
Pantry pests like weevils and flour moths usually arrive as microscopic eggs already present in grains, flour, rice and beans when you buy them. Warmth then hatches them weeks or months later. That's why sealing alone isn't enough, you have to deal with the eggs first.
The two-part defence
- Freeze new dry goods for 3 to 4 days before storing. The cold kills any eggs or larvae hiding in the grain or flour. Let it return to room temperature and make sure it's dry before sealing.
- Seal it in mylar inside a bucket. Mylar bags and food-grade buckets are physical barriers pests can't chew through, and the oxygen absorber inside removes the oxygen they need to survive anyway.
Freeze first, then seal. Sealing infested food just traps the bugs inside with your grain. Kill the eggs with a few days in the freezer, then lock everything out with mylar and a bucket.
What about bay leaves?
Bay leaves and other folk remedies are mild deterrents at best. They may discourage moths a little in an open pantry, but they won't kill eggs or stop an active infestation. Rely on freezing and sealing, not herbs.
If you find an infestation
Throw out any infested food (sealed, so they don't spread), vacuum the shelves and cracks, wipe them down, and check nearby packages. Then restock using the freeze-and-seal method.
The verdict
Pantry bugs come in with the food, so freeze new grains, flour and beans for 3 to 4 days to kill the eggs, then store everything sealed in mylar inside food-grade buckets. That combination, kill the eggs and lock out new pests, keeps stored food bug-free for the long haul.
Most pantry bugs arrive as eggs inside the grain itself, so freeze new dry goods for 3 to 4 days to kill them, then store everything sealed in mylar bags inside food-grade buckets that pests can't penetrate. Bay leaves are only a mild deterrent; freezing and sealing are what actually work.
Frequently asked questions
Where do pantry bugs come from?
Most weevils and flour moths arrive as eggs already inside grains and flour from the mill, not from your kitchen. That is why sealed food can still hatch bugs, and why treating new grain matters.
How do you prevent bugs in stored grains?
Freeze new grains, flour and beans for 3 to 4 days to kill any eggs, then store them airtight in mylar or sealed containers. Oxygen absorbers also help, since pests cannot survive without oxygen.
Do oxygen absorbers kill pantry bugs?
They deprive insects and eggs of the oxygen they need, so a properly sealed mylar bag with an absorber prevents an infestation developing. Freezing first adds a second layer for grains prone to weevils.
Some links are affiliate links: if you buy through them we may earn a commission at no extra cost to you. It never changes our rankings. Full disclosure.