Pantry moths almost always enter your home inside food you bought at the store. They don’t fly in through open windows or migrate from outdoors. Instead, eggs or tiny larvae are already hiding in dry goods, often long before the package reaches your kitchen shelf. The species responsible for nearly all pantry moth infestations is the Indian meal moth, a small moth with distinctive two-toned wings: silvery gray on the upper third and reddish bronze on the lower two-thirds.
They Come Home in Your Groceries
Pantry moth infestations begin at food processing facilities, warehouses, or grocery stores, where moths lay eggs in or near dry food products. The eggs are tiny enough to go unnoticed on packaging, and larvae can chew through thin plastic bags and cardboard boxes. By the time you carry a bag of flour, rice, cereal, or birdseed into your kitchen, the infestation may already be underway inside the package.
The foods most commonly affected include flour, grains, rice, dried pasta, cereal, nuts, dried fruit, spices, pet food, and birdseed. Essentially any shelf-stable, plant-based dry good is a potential host. Bulk bins at grocery stores are particularly risky because the food sits exposed and gets refilled on top of older product. Even sealed packages aren’t always safe, since larvae can bore through thin plastic wrapping.
What Happens Once They’re Inside
Once larvae have a food source in your pantry, the infestation can expand quickly. A female moth lays eggs directly on or near food, and those eggs hatch in as few as 2 days or as many as 14, depending on temperature. The larvae are the destructive stage. They’re small, usually about half an inch long when fully grown, and range from white to yellowish, greenish, or pinkish depending on what they’ve been eating.
Larvae feed continuously, spinning silk webbing as they move through your food. This is why you might open a bag of flour and find it clumped together with fine, sticky threads. The webbing, along with tiny fecal pellets, is the clearest sign that larvae have been feeding. The larval stage can last anywhere from a few weeks in warm conditions to as long as 41 weeks in cooler environments, which means an infestation can quietly grow for months before you notice adult moths fluttering around your kitchen.
The complete life cycle, from egg to adult moth, takes as little as four weeks under ideal warm conditions and up to 300 days when temperatures are lower. Adult moths live only five to seven days, and their sole purpose during that time is to mate and lay more eggs. They don’t eat your food. The damage is done entirely by the larvae.
How to Spot an Infestation Early
Most people first notice pantry moths when they see small moths flying in the kitchen, usually near the ceiling or around light fixtures in the evening. By that point, the infestation has been building for weeks. The earlier signs are subtler: fine silk webbing inside a bag of grain, small clumps in flour that shouldn’t be there, or tiny holes chewed through plastic packaging.
Check suspect foods by pouring them onto a white plate or baking sheet. Look for webbing, small caterpillar-like larvae, shed skins, or tiny dark specks of frass (insect waste). Larvae often crawl away from the food source when they’re ready to pupate, so you may also find them on pantry walls, along shelf edges, or even on the ceiling. They look like tiny pale worms inching along surfaces.
Getting Rid of Them
The only reliable way to eliminate pantry moths is to remove every contaminated food source. Pull everything out of your pantry and inspect each item individually. Any dry good with signs of webbing, larvae, or damage needs to go, sealed in an outdoor trash bin. Even packages that look fine but were open and stored near infested food should be discarded or, at minimum, frozen for at least a week to kill any eggs you can’t see.
After removing food, vacuum every shelf, corner, crevice, and crack in the pantry thoroughly. Larvae often pupate in tiny gaps between shelves and walls. Wipe all surfaces down with warm soapy water or a vinegar solution. Pay attention to shelf liner edges, hinge areas on cabinet doors, and anywhere crumbs might collect.
Pheromone traps can help you monitor the situation after a cleanout. These traps use synthetic versions of the scent female moths produce to attract males, who then get stuck on a sticky surface. They’re useful for confirming whether moths are still active, but they have real limitations. The traps only catch adult males. They won’t attract females, larvae, or eggs, so they can’t eliminate an infestation on their own. Think of them as a detection tool, not a solution.
Preventing Reinfestation
Since pantry moths arrive in purchased food, prevention starts at the store. Inspect packages before buying. Avoid bags with small holes, torn seals, or any visible webbing. Be cautious with bulk bin purchases, especially from stores with slow product turnover.
At home, transfer dry goods into hard-sided containers with tight-fitting lids as soon as you bring them in. Glass jars, thick plastic containers with rubber-sealed lids, and metal canisters all work. The key is that larvae cannot chew through the material. Thin plastic bags and cardboard boxes offer no real barrier. If you buy in bulk, consider freezing grains, flour, and similar products for a few days before transferring them to storage containers. This kills any eggs or larvae that may have hitched a ride.
Keep your pantry clean and rotate stock regularly. Older products pushed to the back of the shelf create the perfect undisturbed environment for larvae to feed and grow for months. A quick shelf check every few weeks catches problems before they spread.