To get rid of pantry moths, find the infested food and get it out of the house, sealed in a bag. Then check every package of grains, flour, cereal, nuts, dried fruit, spices and pet food, vacuum the cracks and corners and wash the shelves. Store food in glass, metal or heavy plastic containers with tight lids. UC IPM and University of Illinois Extension both say insecticides are not recommended for pantry pests.
Know Your Moth
The moth fluttering out of your cereal cupboard is almost always the Indianmeal moth. UC IPM calls it the most common moth in the home pantry. University of Illinois Extension describes the adult as about 1/2 inch long, with the wing part nearest the body whitish-gray and the rest coppery with black stripes. The real damage comes from the caterpillars: about 1/2 inch long, dirty white to greenish or pinkish, and they leave silken threads and webbing in the food. What the eggs, larvae and webbing look like is in pantry moth larvae and eggs.
Seeing small moths in a closet instead of the kitchen? Those may be clothes moths, which need a different approach: pantry moths vs clothes moths.
Where They Come From
UC IPM says pantry pests “usually enter your home in an infested package of food.” Infestations often start in packages that were damaged at the store, or in opened packages that sat unused for a long time. Indianmeal moth larvae eat a wide range of foods: cereal, flour, rice, dried fruit, nuts, chocolate and candy (UC IPM), and Illinois adds pasta, cornmeal, oatmeal, birdseed, dry pet food, dried flower arrangements and ornamental corn.
The Clean-Out, Step by Step
- Find the sourceLook for webbing, clumps and caterpillars in grains, flour, cereal, nuts, dried fruit, spices, pet food and birdseed.
- Bag it and take it outsideUC IPM: seal the infested package and dispose of it outside the house.
- Check every packageEspecially opened ones. UC IPM says to destroy any with “the slightest indication of infestation.”
- Vacuum the corners and cracksUse a crevice tool. Illinois: empty the vacuum or throw out the bag afterwards.
- Wash and dryShelves with soap and water (UC IPM). Clean old containers before you refill them (UC IPM).
- Look upCaterpillars leave the food to pupate, often where the wall meets the ceiling or on shelving (Illinois).
- MonitorPheromone traps show whether moths are still around; UC IPM says pests can survive many weeks without food.
Throw Out or Save? Freezing and Heating
Heavily infested food goes in the trash, sealed in a bag and placed outdoors (Illinois). For food that’s only lightly infested, or food you want to protect, the extension services give two options:
- Freezing: University of Illinois Extension gives 27°F or colder for at least 3 to 7 days; Utah State University gives 0°F or lower for 4 to 7 days so the whole package freezes through. Neither source explains why its numbers differ, but a home freezer should already be at 0°F (FDA), which meets both. My default: a full week in a normal freezer, a bit longer for big or thick packages so they freeze all the way through.
- Heating: Illinois gives an oven at 140°F for one hour. Utah State says to spread grain products on a tray and heat them at 130 to 140°F for 30 to 60 minutes.
Important: Utah State warns: “Do not heat finely ground grains such as flour due to the danger of fire or explosion in the oven.” Freeze flour instead. My own rule: if I see larvae or webbing in it, I throw it out rather than try to save it. More on whether infested food is safe in are pantry moths harmful.
Do Traps Get Rid of Pantry Moths?
Not on their own. UC IPM explains that Indianmeal moth traps use a sex pheromone that attracts adult males and “won’t attract the female moths.” They help you see whether moths are still around and may reduce egg laying, but the clean-out does the real work. How to use them well: do pantry moth traps work?
Keep Them From Coming Back
- Containers that close tight. Illinois recommends tightly closed glass, metal or heavy plastic, because pests can chew through paper, cardboard and thin plastic. UC IPM says plastic bags are not adequate.
- The freezer for slow movers. UC IPM suggests keeping flours, grains and spices you don’t use often in the freezer.
- Buy less, use older first. Illinois advises buying only as much dried food as you’ll use quickly and using older products first. Don’t mix old and new food in one container (UC IPM).
- Check packages before you buy. Avoid broken or damaged ones.
- Keep shelves clean and free of crumbs and spills.
Storage tips for the foods moths love most: flour, rice, rice long term, nuts and peanuts, and the whole pantry storage collection. Found beetles instead of moths? See pantry bugs: weevils and beetles.
Safety First
- No bug bombs or sprays in the pantry. UC IPM: “Insecticides aren’t recommended for any of the pantry pests,” and spraying on or near food “may cause greater harm to you and your family than would pantry pests.” Illinois adds that food that touches an insecticide must be thrown away.
- Never heat flour in the oven to kill insects: Utah State warns of fire or explosion.
- Seal infested food in a bag and take it outside so moths don’t spread to other rooms.
- Pet food counts too. Check dry pet food and birdseed, and store them in closed containers (Illinois lists both).
Pantry Moth Questions
What is the fastest way to get rid of pantry moths?
Find the infested food, seal it in a bag and take it outside. Then check every package, vacuum cracks and corners, wash the shelves, and store dry food in tight glass, metal or heavy plastic containers.
Where do pantry moths come from?
Usually from an infested package of food, according to UC IPM. Damaged packages and opened packages that sit for a long time are common starting points.
Should I use a bug bomb for pantry moths?
No. UC IPM says insecticides aren’t recommended for pantry pests and that spraying near food may cause more harm than the pests. Removing the infested food is what works.
Can I freeze food to kill pantry moths?
Yes, for lightly infested or at-risk food. Illinois says 27°F or colder for 3 to 7 days; Utah State says 0°F or lower for 4 to 7 days. A home freezer should be at 0°F (FDA), so my default is a full week. Heavily infested food should be thrown out.
Why do I still have pantry moths after cleaning?
Larvae may have moved away from the food to pupate, often where the wall meets the ceiling or on shelves, and an infested package may have been missed. Keep checking and use a pheromone trap to monitor.
Sources & Transparency
Pantry pests, entry in infested packages, the clean-out steps, pheromone traps, plastic bags and insecticides: UC IPM Pest Notes: Pantry Pests (Publication 7452, D.H. Choe). Moth and larva description, foods, pupating at the ceiling, freezing at 27°F, heating at 140°F, containers and insecticides: University of Illinois Extension, “Pantry Pests”. Freezing at 0°F, heating at 130 to 140°F and the flour warning: Utah State University Extension, “Winter Pests in Your Pantry” (2013). Freezer temperature: FDA, “Are You Storing Food Safely?”. Tips marked as mine are my own advice.
Last updated:


