Pantry moth larvae are small caterpillars, about 1/2 inch long, dirty white to greenish or pinkish, and they leave silken threads and webbing in the food. That webbing, clumped flour or cereal, and tiny holes in packages are the signs. Larvae often crawl away from the food to pupate, so “white worms” on the ceiling or the shelf edge usually mean pantry moths. Food with larvae or webbing goes out of the house in a sealed bag.

What the Larvae Look Like

University of Illinois Extension describes Indianmeal moth caterpillars as about 1/2 inch long and “dirty white to greenish and pinkish.” UC IPM gives the same picture: fully grown larvae about 1/2 inch, white with a greenish or pinkish tint. All the damage is done by the larvae, not the moths you see flying.

A quick way to tell moth larvae from beetle larvae, according to UC IPM: moth larvae have three pairs of true legs near the head plus leg-like structures farther down the body, while beetle larvae are grub-like and either have no legs or only three pairs near the head. Beetles in your flour instead? See pantry bugs: weevils and beetles.

Signs of Pantry Moths, From First Clue to Full Infestation

  • Small moths flying at night or near lightsIllinois notes that pests are often drawn to lights and can be found away from the infested food.
  • Silky threads or webbing in foodLarvae “leave behind silken threads wherever they crawl” (UC IPM), especially in the corners of a package.
  • Clumps in flour, cereal or riceFood stuck together with webbing (my description of what webbing does to dry food).
  • Tiny holes in packagesUC IPM lists tiny holes in containers as a sign.
  • Worms or cocoons on the ceiling or shelf edgesCaterpillars leave the food to pupate, often where the wall meets the ceiling or on shelving (Illinois).

Pantry Moth Eggs

The females lay their eggs on or near the food, and UC IPM says the eggs hatch “within a few days.” The eggs are tiny, and you’re far more likely to notice webbing or larvae than the eggs themselves. That’s why the advice is to check whole packages, not just the top: Illinois points out that all life stages can be in the same product at the same time.

The Life Cycle, and Why It Matters

According to UC IPM, the egg, larval and pupal stages together take about six to eight weeks in warm weather. Illinois says one generation takes about one to two months. That slow-ish cycle explains two things people notice: moths keep appearing for weeks after a clean-out, and a package that looked fine a month ago can be full of webbing today. UC IPM also warns that pantry pests can survive “for many weeks without food,” which is why it recommends monitoring with traps after the source is gone (see do pantry moth traps work?).

White Worms in the Kitchen: What to Do

  1. Follow the trail back to the food. Larvae on the ceiling came from somewhere: check grains, flour, cereal, pasta, nuts, dried fruit, chocolate, spices, pet food and birdseed.
  2. Seal infested food in a bag and put it in the trash outside (UC IPM, Illinois).
  3. Remove the larvae and cocoons from ceilings, shelf edges and corners, and vacuum the cracks with a crevice tool. Empty the vacuum afterwards (Illinois).
  4. Wash shelves with soap and water and let them dry (UC IPM).
  5. Store what’s left in tight containers of glass, metal or heavy plastic (Illinois).

The full clean-out is in how to get rid of pantry moths.

Handle Infested Food Safely

  • Don’t eat food with larvae or webbing. UC IPM says infested food should be discarded, and warns that pests can bring in microbes that may produce mycotoxins, especially in warm, humid storage. More in are pantry moths harmful.
  • No insecticides on shelves or near food. UC IPM: insecticides “aren’t recommended for any of the pantry pests.”
  • Check pet food and birdseed too, and keep them in closed containers (Illinois lists both as foods these pests infest).

Larvae Questions

What do pantry moth larvae look like?

Small caterpillars about 1/2 inch long, dirty white to greenish or pinkish, that leave silky threads and webbing in the food. They have three pairs of legs near the head plus leg-like parts further back.

Why are there worms on my kitchen ceiling?

Pantry moth caterpillars leave the food to pupate, often where the wall meets the ceiling or on shelving, according to University of Illinois Extension. Look for the infested food in your pantry.

What do pantry moth eggs look like?

They are tiny and hard to spot. UC IPM says they hatch within a few days, so webbing and larvae are usually the first signs you’ll notice.

How long do pantry moths live?

From egg to adult takes about six to eight weeks in warm weather (UC IPM), or one to two months per generation (Illinois). Pantry pests can survive many weeks without food.

Sources & Transparency

Larvae description, legs of moth vs beetle larvae, silken threads, tiny holes, eggs hatching within a few days, six to eight weeks per cycle, surviving without food and mycotoxins: UC IPM Pest Notes: Pantry Pests (Publication 7452). Caterpillar colors, pupating at the ceiling, all life stages in one product, lights, foods and containers: University of Illinois Extension, “Pantry Pests”. Tips and descriptions marked as mine are my own.

Last updated:

Marleen van der Zijl, author of FreshStorageTips.com

About the author: Marleen van der Zijl

Marleen’s journey into food storage began with a simple goal: to stop wasting food and money. She believes a well-organized kitchen and smart storage habits can transform your life, leading to fresher meals and bigger savings.