Pantry Moth Caterpillar: How to Identify and Get Rid of It

Pantry moth caterpillars are the larval stage of the Indianmeal moth, and they’re almost certainly what you’re looking at if you’ve found small, worm-like creatures crawling through your cereal, flour, rice, or spices. They’re about half an inch long, whitish with a brown head, and they leave behind silky webbing wherever they go. Finding them is unpleasant, but getting rid of them is straightforward once you understand what you’re dealing with.

What Pantry Moth Caterpillars Look Like

These larvae are small, roughly half an inch at full size, with a pale whitish body and a distinctly darker brown head. They look like tiny worms or grubs, and they’re easy to mistake for maggots at first glance. The key difference is the webbing. Pantry moth caterpillars spin silk as they move, leaving behind fine, thread-like trails in your food. If you see clumps of flour or grain stuck together with a web-like material, that’s their signature.

You might also notice their droppings, called frass, which appear as tiny dark specks mixed into the webbing and food. Infested food can contain insect hairs, droppings, webbing, and secretions, all of which make the food unsafe to eat. The larvae go through five to seven growth stages before they’re ready to pupate, so you may spot them at various sizes in the same infestation.

Where You’ll Find Them

Pantry moth caterpillars feed on a wide range of dry goods: flour, cereal, oats, rice, dried fruit, nuts, spices, pet food, birdseed, and even chocolate. They’re not picky. The first sign of an infestation is often opening a box or bag and finding webbing clumped through the contents, or spotting the caterpillars crawling along the surface of the food or up the walls of your pantry.

Look carefully in tight corners of packaging, where webbing tends to accumulate. Tiny holes chewed through food containers are another telltale sign. The larvae can squeeze through surprisingly small gaps, so even packaging that looks sealed isn’t necessarily safe. They’ll also crawl away from their food source when they’re ready to pupate, which is why you sometimes find them on ceilings, walls, or in corners far from your pantry shelves.

How Long They Last

The caterpillar stage is the longest part of the pantry moth life cycle. Larvae can complete their development in six to eight weeks at typical indoor temperatures (roughly 65°F to 95°F). Cooler conditions slow them down, while warm kitchens speed things up. After the larval stage, they spin a cocoon, pupate, and emerge as small moths with a distinctive two-toned wing pattern: copper or bronze on the outer half, grayish on the inner half.

Those adult moths don’t actually eat your food. Their only job is to mate and lay eggs. It’s the caterpillars that do all the damage. A single female moth can lay hundreds of eggs directly on or near food sources, and the eggs are tiny enough that you won’t notice them. This is why infestations seem to appear out of nowhere and can bounce back quickly if you don’t clean thoroughly.

How to Get Rid of Them

Start by pulling everything out of your pantry. Inspect every package, even sealed ones. If you see any webbing, larvae, or clumped-together food, throw the entire package away in an outdoor trash bin. Don’t just toss it in the kitchen trash, or the moths can re-emerge indoors. When in doubt about a product, throw it out. Eggs are invisible to the naked eye, so food that looks clean may already be infested.

Once the shelves are empty, vacuum every surface thoroughly, paying close attention to cracks, corners, shelf supports, and the undersides of shelves where larvae like to pupate. Wipe everything down with warm soapy water or a vinegar solution afterward. The goal is to remove any eggs or pupae hiding in crevices.

For items you want to save that show no signs of contamination, you have two options. Freezing dry goods at 0°F for at least four days kills eggs and larvae at all stages. Alternatively, heating food in the oven at 130°F for 30 minutes accomplishes the same thing, though this works better for grains and flour than for spices or dried fruit.

Preventing Reinfestation

The single most effective step is transferring all dry goods into hard-sided, airtight containers as soon as you bring them home from the store. Pantry moth eggs are often already present in food when you buy it, hitching a ride from warehouses or processing facilities. Storing food in its original cardboard box or plastic bag gives larvae easy access to spread throughout your pantry.

Glass jars with airtight seals, thick plastic containers with locking lids, or any rigid container with a tight-fitting gasket will work. The container doesn’t need to be anything special. It just needs a seal that a tiny caterpillar can’t squeeze past. Thin plastic bags, twist ties, and clip closures are not enough.

Pheromone traps, which are sticky traps baited with a scent that attracts adult male moths, are useful as a monitoring tool. They won’t eliminate an infestation on their own because they only catch males, but they’ll alert you if moths are still present after a cleanout. If you’re still catching moths after two to three weeks of consistent trapping and cleaning, there’s likely a food source you missed. Check less obvious spots: old bags of birdseed in the garage, decorative dried flowers, pet treats, or that bag of whole wheat flour pushed to the back of a high shelf.

Persistence matters more than any single cleaning session. Because the life cycle spans six to eight weeks, a thorough cleanout followed by airtight storage and ongoing monitoring with pheromone traps is the combination that actually breaks the cycle for good.