Published August 8, 2026
Reviewed by Julie Miller, BA in Language Arts, Editorial Lead, Dr. Killigan's
TL;DR: Pantry moth larvae are the caterpillar stage of the Indian meal moth. They are usually off-white or cream-colored, grow up to about ½ inch long and have a darker brown head. Larvae crawl onto walls and ceilings when they leave their food source to pupate. The fix is to find and remove the infested food, clean the pantry carefully and use pheromone traps to catch adult male moths.
If you have found a small white worm crawling through flour, across a pantry shelf or up your kitchen wall, it may be a pantry moth larva.
What do pantry moth larvae look like?
Pantry moth larvae are usually:

- Off-white, cream or pale yellow
- Up to about ½ inch long when fully grown
- Segmented, with a soft caterpillar-like body
- Marked by a darker tan or brown head
Their color can vary slightly depending on what they have been eating. A larva feeding in cornmeal may look more yellow, while one found in flour may appear almost white. Pantry moth larvae also have small legs, although they may be difficult to see.
You may also notice fine silk webbing near the larvae, but webbing is more a sign of their feeding activity than part of their appearance.
Pantry moth larvae or maggots?
The easiest way to tell them apart is by the head and legs. Pantry moth larvae are small caterpillars with a distinct brown head and tiny legs, while maggots are legless fly larvae without the same clearly defined head capsule. If you found the larva in or near dry pantry food, that also points more strongly to pantry moths.
Pantry moth larvae or clothing moth larvae?
Both can be pale caterpillars with darker heads. Location usually tells the story.
Pantry moth larvae are found in dry foods such as flour, cereal and pet food, whereas clothing moth larvae are associated with fabrics and animal-based fibers such as wool, fur and feathers.
Why are pantry moth larvae on my walls or ceiling?
Once mature, a pantry moth larva may leave its food package and crawl across shelves, walls or ceilings in search of a protected place to form a cocoon. It may settle in a corner, cabinet joint, screw hole or another sheltered crevice.
Because larvae can travel away from the original package, do not limit your search to the area where you found one. Inspect the entire pantry and nearby food-storage areas. Check less obvious sources, including pet treats, birdseed, decorative dried corn, baking chocolate and forgotten bags stored on upper shelves.
Tip: If you continue to find larvae after cleaning, an infested food source or hidden pupa may still remain.
Where do pantry moth larvae come from?
In many homes, pantry moths arrive inside a purchased dry-food product.
A package may contain eggs or very young larvae that were difficult to see during processing, shipping or storage. Once inside a warm pantry with steady access to food, the larvae continue developing and may move into nearby products.

When inspecting packages for larvae, begin with opened packages, but do not stop there. Larvae may enter boxes, paper bags, thin plastic and other lightweight packaging. Look for:
- Fine webbing around package seams
- Clumped food
- Small holes in bags or boxes
- Larvae, shed skins or cocoons
- An unusual odor or discoloration
- Adult moths resting near the pantry
Pay particular attention to foods that have remained untouched for several weeks or months.
For the foods larvae infest most often, see What do pantry moths eatÂ
Are pantry moth larvae harmful if eaten?
Accidentally eating a pantry moth larva is unlikely to make you sick. Pantry moth larvae do not bite or sting, and pantry moths are not known to transmit human pathogens.
Still, discard visibly infested food rather than trying to remove the larvae and keep the rest.
How do you get rid of pantry moth larvae?
The key is to remove the infested food source, clean the affected storage area and address the adult moths that can continue the cycle.Â
After cleaning, use Pantry Moth Traps to catch adult male pantry moths. The traps do not catch larvae, but they help interrupt the next generation by reducing mating.
For the complete cleanup and prevention process, read our full step-by-step guide: How to get rid of pantry moths: 8 proven ways
Does killing the larvae end the infestation?
No. Killing the larvae you can see does not remove eggs hidden in food, pupae tucked into crevices or adult moths already flying through the home.

Pantry moths develop through four stages: egg, larva, pupa and adult. Each stage can be present simultaneously, which is why a successful response must address both the food source and the reproductive adults.
Removing infested food stops developing larvae from continuing to feed. Vacuuming removes wandering larvae, pupae and food debris. Pantry Moth Traps help reduce the chance of successful mating.
You may still see an occasional moth or larva after the first cleaning. That does not mean the plan has failed. It means you should continue checking for a missed package, cleaning hidden crevices and monitoring the traps.
Explore More
-
Why pantry moths keep coming back (and how to prevent them)
(Deeper answers on persistence, food disposal and long-term prevention.) -
How to get rid of pantry moths: 8 proven ways
(The step-by-step removal checklist for eliminating every life stage.) -
What is the life cycle of a pantry moth?
(How larvae fit into the four-stage cycle and how long each stage lasts.) -
What do pantry moths eat?
(Which dry goods larvae infest most often and where to look first.)

















