Skip to content
The Bug Identifier

Pantry moths

Pantry Moths: How to Get Rid of Them, and What the Larvae and Webbing Mean

Small moths flying out when you open the cupboard, or silk webbing through a bag of flour? This is the Indian meal moth. Here is how to be sure, whether the food was a risk, and how to clear it out for nothing.

What pantry moths are

Pantry moths are small moths, about 3/8 inch (10 mm) long at rest, whose caterpillars live in stored dry food. In practice one species does nearly all of it in American kitchens: the Indian meal moth, Plodia interpunctella. You can name it from the wings alone, because the third nearest the head is pale grey and the outer two-thirds are coppery red-brown.

That two-tone wing is unusual, and it is the fastest check there is. The wingspan runs 16 to 20 mm, roughly 3/5 to 3/4 inch, so an adult is about the size of a cooked grain of rice. At rest it folds its wings back along the body and sits still. Pantry moths are usually spotted high on a wall or a ceiling, nowhere near the cupboard they came from.

How to recognise a pantry moth

Check each clue below to narrow down what you saw.

  • Two-tone wings: pale grey near the head, coppery red-brown beyond

    This is the single most reliable feature. A plain one-colour moth in the kitchen is something else.

  • About 3/8 inch (10 mm) long at rest, wingspan 16 to 20 mm

    Roughly the size of a cooked grain of rice. Cornell puts the length a little higher, at 3/8 to 1/2 inch.

  • Sits high: walls, ceilings, the tops of door frames

    People usually notice them above head height, nowhere near the food the larvae are in.

  • Flies openly, and will come toward a lamp

    Clothes moths do the opposite and stay in dark closets.

  • No tuft of hair on the head

    A reddish tuft on top of the head means a clothes moth, not a pantry moth.

People name pantry moths by the room rather than the species. So kitchen moths, cupboard moths, food moths, flour moths and grain moths all mean one animal. Wikipedia lists weevil moth as another old name for it. That is confusing, because weevils are beetles and leave no silk at all.

Pantry moth or clothes moth?

Check the wings and check the room, and the answer takes about five seconds. Pantry moths have two-tone copper wings and live on your food. A clothes moth is one plain shade of gold, has a tuft of reddish hair on its head, and lives on wool. They need different traps, so getting this right saves money as well as effort.

Diagram comparing pantry moths and clothes moths at matched scale, with the two-tone copper forewing marked against the plain gold wing and the reddish head tuft
Two-tone copper means the food. One plain gold means the wool.

Which small indoor moth is it?

Wings

Pantry moth
Two-tone: pale grey third nearest the head, coppery red-brown beyond
Clothes moth
One plain shade of gold or buff, with a fringe of long hairs
Moth from outdoors
Usually patterned, often brown or grey

Size at rest

Pantry moth
About 3/8 in (10 mm)
Clothes moth
About 1/4 in (6 to 8 mm)
Moth from outdoors
Many sizes, often much larger

Head

Pantry moth
Bare
Clothes moth
A tuft of reddish hair on top
Moth from outdoors
Varies

Where you find it

Pantry moth
Kitchen, pantry, high on walls and ceilings
Clothes moth
Dark closets, near stored wool
Moth from outdoors
At windows and lights, near a door

What the larvae eat

Pantry moth
Flour, cereal, nuts, dried fruit, pet food, birdseed
Clothes moth
Wool, silk, fur, feathers
Moth from outdoors
Nothing indoors

Behaviour

Pantry moth
Flies openly, comes to lamps
Clothes moth
Flutters or runs, avoids light
Moth from outdoors
Flies to light, then dies at the window

The sign it leaves

Pantry moth
Silk webbing clumping dry food
Clothes moth
Irregular holes, silk under collars and cuffs
Moth from outdoors
None

If the damage is to clothing rather than food, you want the other guide, because the treatment is completely different. Our page on the moths that eat wool covers the washing, freezing and storage numbers for fabric. Something on the bathroom wall that sits flat in a tent shape and barely flies is not a moth. That one is a drain fly.

Pantry moth larvae, eggs and webbing

The larva is the one that matters. It is a cream caterpillar with a dark brown head. It grows to about 1/2 inch (12 to 14 mm), and only that stage eats anything of yours. The adults do no damage at all. So the webbing, the clumping and the small caterpillars in a packet are the real evidence, not the moths flying around.

What pantry moth larvae look like

Cream, off-white or pale yellow, soft, and segmented like any caterpillar. The head capsule is darker, a tan or brown, and that contrast is the giveaway. Their colour follows what they are eating, so they come out yellower in cornmeal and almost white in plain flour.

Larvae or maggots?

Look for a head and legs. A pantry moth larva is a caterpillar. It has a clear dark head capsule and three pairs of true legs near the front. Five pairs of stubby prolegs follow behind. A maggot is a fly larva, and it has neither: no legs, and no defined head. Dry food in a cupboard also makes a maggot very unlikely.

Pantry moth larva, maggot, or clothes moth larva?

Head

Pantry moth larva
Dark brown head capsule, easy to see
Maggot
No defined head
Clothes moth larva
Brown head capsule

Legs

Pantry moth larva
Three pairs of true legs plus prolegs
Maggot
None at all
Clothes moth larva
Three pairs plus prolegs

Shape

Pantry moth larva
Even width, caterpillar-like
Maggot
Tapered, fatter at one end
Clothes moth larva
Even width

Length

Pantry moth larva
Up to about 1/2 in (12 to 14 mm)
Maggot
Usually under 1/2 in
Clothes moth larva
Up to about 1/2 in

Where

Pantry moth larva
Dry food: flour, cereal, nuts, pet food
Maggot
Wet or rotting matter, bins, drains
Clothes moth larva
Wool, silk and fur in closets

Silk

Pantry moth larva
Yes, webbing through the food
Maggot
None
Clothes moth larva
Yes, tubes and patches on fabric

The webbing, and what it rules out

Webbing is the single most useful sign on this page. Pantry moths leave a silk thread wherever the larvae crawl. An infested packet ends up with fine threads through it, and the powder or grain stuck together in clumps. Beetles and weevils never do this, so silk means a moth and nothing else.

That one test sorts most kitchen problems quickly. Found small beetles and no silk at all? Read weevils in flour and rice instead. The animal and the advice are both different.

Eggs, cocoons and the part people call poop

Eggs are 0.3 to 0.5 mm across and laid in groups of up to thirty, so almost nobody sees them without a lens. Cocoons are easier: small flat silk cases, usually along a shelf edge or where the wall meets the ceiling. The gritty dark specks in the food are frass, which is droppings, and they stay behind even after the insects are gone.

Have you been eating them, and is the rest safe?

Almost certainly yes to the first, and yes to the second. Pantry moths carry no human disease. Insect fragments in milled food are ordinary. The US Food and Drug Administration even publishes a level at which it acts. For wheat flour that level is an average of 75 or more insect fragments per 50 grams, and the FDA classes the significance as aesthetic.

That figure is worth sitting with for a moment. It is not a safety limit, it is the point where the FDA steps in. The handbook says these levels are set on the premise that they pose no inherent hazard to health. Cornmeal is allowed an average of one or more whole insects per 50 grams. So the flour in your kitchen was never guaranteed to be insect-free, and that was true before the moths arrived.

FDA defect action levels, the point at which the FDA acts

Wheat flour

The level
Average of 75 or more insect fragments per 50 g
Significance
Aesthetic

Cornmeal

The level
Average of 1 or more whole insects per 50 g, or 25 or more fragments per 25 g
Significance
Aesthetic

Macaroni and noodles

The level
Average of 225 or more fragments per 225 g, in 6 or more subsamples
Significance
Aesthetic

None of that makes an infested packet pleasant, and most people bin it anyway. But if you are lying awake because the family ate the cereal for a fortnight, the honest answer is simple. Nothing in it was going to make anyone ill.

Where pantry moths came from, and why it is not your housekeeping

They came in with the shopping. Eggs or small larvae travel inside packaging from anywhere between the mill and the shop shelf. Pantry moths chew through thin plastic and cardboard, so an unopened box is not proof. Rutgers Extension answers the awkward part directly: pantry pests are common and are not a reflection of anyone’s housekeeping.

The sources people miss are the ones that sit untouched for months. So check these before you decide the cupboard is clear:

Why pantry moths are on the ceiling, and in rooms with no food

Because the larva leaves the food before it pupates. When it is fully grown it crawls away from the packet, sometimes a long way, and spins its cocoon somewhere sheltered. UC IPM says mature larvae are often found in parts of the house far from the original food source. So a cocoon in a bedroom does not mean there is food there.

This also explains the question people ask most: where is the nest? There is not one. Pantry moths build nothing. There is an infested packet, and there are pupation sites scattered away from it, and those are two different places.

Cutaway diagram of a kitchen cupboard showing six places pantry moth larvae and cocoons hide, from the shelf lip to the packet at the back
Throwing out the packet and wiping the shelf misses five of these six.

Honest caveat on distance: no extension source we read puts a number on how far a larva travels. Pest control sites say several feet, and they disagree with each other, so treat the whole cupboard and its surroundings rather than measuring. Want to know what the cocoon stage is doing? We have a guide to the pupal case and how long each insect spends in it.

The pantry moth life cycle, and how long this lasts

Pantry moths can finish a generation in as little as four weeks in a heated house. Six or more generations a year are normal indoors. That is why the problem seems to restart a month after you cleaned. Eggs hatch within about two weeks, and then the larva feeds for anything from 13 days to well over a year.

Diagram of the pantry moth life cycle in five columns, from egg through larva, the crawl away, pupa and adult, with real durations on each stage
Only the larva eats. The crawl away is the step most people miss.

The published figures disagree, and the disagreement is the useful part rather than a flaw. Cornell puts larval feeding at 13 to 288 days. Utah State says it takes from two weeks to two years for larvae to reach full size. Wikipedia gives the whole cycle as 30 to 300 days, typically about 50. All three are right, for different temperatures and different foods, so nobody can tell you exactly when yours will end.

How long each stage takes, and what the sources say

Egg

How long
Hatches within about 2 weeks
What it is doing
0.3 to 0.5 mm, laid in groups of up to 30
Source
Utah State Extension

Larva

How long
13 to 288 days, or 2 weeks to 2 years
What it is doing
The only stage that eats. Leaves silk as it crawls
Source
Cornell IPM, Utah State

Wandering larva

How long
Not measured
What it is doing
Leaves the food to find a pupation site
Source
UC IPM

Pupa

How long
Adult emerges in 4 to 30 days
What it is doing
In a silk cocoon. Does not feed or move
Source
Utah State Extension

Adult

How long
About 1 to 2 weeks
What it is doing
Does not feed on your food. Lays 100 to 400 eggs
Source
Cornell IPM, Utah State

The practical point is simple. Because only the larva eats, killing adults achieves nothing, and the clock only stops when the food source goes. For the wider picture across every moth species, including the ones that never come indoors, see our guide to the moth life cycle.

How to get rid of pantry moths

Start with the steps that cost nothing, and go after the food rather than the pantry moths. Killing the adults you can see is the most common mistake, and it is why people describe fighting the same infestation for months. Work through these in order, and most kitchens are clear in an afternoon.

Clearing pantry moths, in order

  1. Empty the cupboard completely

    Take out every box, bag, jar and tin, and put them on the counter. This costs nothing and it is the step that actually finds the source. A packet can look sealed and still be infested, because larvae chew through thin plastic and cardboard.

  2. Check every single packet, not just the obvious one

    Look for silk webbing, clumped powder, cream caterpillars or small holes in the packaging. Check flour, cereal, rice, pasta, nuts, dried fruit, spices, chocolate, birdseed and dry pet food. The packet at the back that nobody opens is the usual culprit.

  3. Bin what is infested, into an outdoor bin

    Seal infested food in a bag and take it straight outside, because a kitchen bin just moves the problem a few feet. If food is only suspect rather than clearly infested, you can freeze or heat it instead, and the next section gives the numbers.

  4. Vacuum the cracks, the corners and the shelf-pin holes

    Go along the shelf lip, into the corners, around the shelf-pin holes and into the gap at the back where spilled grain collects. Then empty the vacuum outdoors. Skipping this is the single most common reason an infestation restarts a month later.

  5. Wash the shelves with warm soapy water, then dry them

    Soap and water is enough, and the shelf must be properly dry before anything goes back. Minnesota Extension says detergent, bleach and ammonia will not keep pantry pests from returning, and warns that those chemicals are a hazard near food.

  6. Move what is left into rigid sealed containers

    Glass, metal or thick plastic with a tight gasket lid. Paper, cardboard, foil and thin plastic bags do not stop them, and a screw-top jar may not seal fully. This is the step that stops it happening again, so it is worth doing properly.

  7. Put traps out to check your work, not to do it

    Set two or three pheromone traps and check them weekly. An empty trap after three or four weeks means you found the source. A trap that keeps filling means you missed a packet, and the one filling fastest tells you roughly where to look.

What kills pantry moths: the temperatures and times

Cold and heat both work, and both kill every stage including eggs, but only if you hit the real number. Utah State Extension gives 0°F (-18°C) or lower for four to seven days in a freezer. For heat it gives 130 to 140°F (54 to 60°C) for half an hour to an hour in an oven. Guidance that just says a week in the freezer leaves out the temperature, which is the part that matters.

What actually kills every stage

Freezing

The number
0°F (-18°C) or lower, 4 to 7 days
What it kills
Eggs, larvae, pupae and adults
What to watch
Many kitchen freezers run warmer than 0°F. Check yours before you trust it

Heating

The number
130 to 140°F (54 to 60°C), 30 to 60 minutes
What it kills
Every stage, once the food is hot all through
What to watch
Never flour. See the warning below

Binning it

The number
Immediate
What it kills
Everything in the packet
What to watch
Seal the bag and take it to an outdoor bin, not the kitchen bin

Killing the adults

The number
Instant, and pointless
What it kills
Only the moths you hit
What to watch
The larvae in the packet are untouched, so it changes nothing

One thing neither method does is clean the food. Utah State notes that heat and cold both leave the silk, the cocoons, the shed skins, the dead insects and the droppings exactly where they were. Treating is for salvaging something expensive, and for most packets binning it is simpler.

Do pantry moth traps work?

They work as a monitor, not as a cure, and the difference matters. A pantry moth trap is baited with the female sex pheromone, so it catches adult males only. Every female, every egg and every larva in the packet is untouched. NPIC, Cornell and UC IPM all say this, and so do the trap manufacturers.

It is worth being blunt here, because a popular article ranking for this exact question says the opposite. One widely read blog tells readers that the traps kill the moths and prevent them from breeding. They do not. Safer Brand says it plainly, replying to its own reviewers. The trap attracts male pantry moths only, so it is not expected to eliminate an infestation alone.

What a pantry moth trap does, and does not do

What does it catch?

The answer
Adult males, drawn by the female pheromone

Will it clear an infestation?

The answer
No. The larvae in the food are unaffected

So what is it for?

The answer
Telling you whether a source is still active, and roughly where

How long does a lure last?

The answer
About three months, and UC IPM says check the traps weekly

Will it catch clothes moths?

The answer
No. Each lure matches one species, and the makers say so

Will it catch pantry beetles?

The answer
No. A moth lure does not attract beetles

There is a better use for a trap, and it comes from people who have dealt with pantry moths rather than from the articles. Put several traps out across the kitchen, leave them a few days, then see which one filled fastest. That points you at the cupboard holding the source. Used that way a trap earns its money, because finding the packet is the whole job.

What does not work

Three of the most-asked questions about pantry moths are about smells, and the honest answer to all three is the same. Nothing you can smell will clear an infestation. Here is what gets recommended, and what the evidence actually says.

Mothballs come up often enough on this topic to be worth one more line. They are a registered pesticide with a narrow legal use. Our page about moth balls has the full picture, including why they do not repel mice or snakes.

How to stop pantry moths happening again

One habit keeps pantry moths out, and it does almost all of the work: keep dry food in rigid containers with a real seal. Utah State puts it plainly. Glass, metal or thick plastic with tight-fitting lids prevents nearly all stored product pest problems. Paper, cardboard, foil and cloth do not.

Which containers actually keep pantry moths out

Glass or metal with a gasket lid

Does it work?
Yes
Why
Nothing gets in or out, and you can see what is inside

Thick plastic with a clamp or gasket

Does it work?
Yes
Why
Same, as long as the seal is real rather than a push-on lid

Screw-top jar

Does it work?
Usually
Why
Fine for most, though some screw tops do not seal fully

Zip bag, even doubled

Does it work?
No
Why
Larvae chew through thin plastic, and people on forums report this constantly

Original cardboard box or paper bag

Does it work?
No
Why
They chew straight through, so an unopened packet is not safe either

Foil or cloth

Does it work?
No
Why
Neither is a barrier to a larva

Are pantry moths harmful?

No. Pantry moths do not bite, they do not sting, and they are not known to transmit human pathogens. The adults cannot damage anything at all, and the larvae only eat stored food. The harm is to the contents of your cupboard, and that is the whole of it.

Two related questions come up a lot. They do not eat clothes, so holes in a sweater point to a different insect. Shed wing scales can cause mild respiratory irritation in sensitive people. That is rare, and it is not a reason to worry about an ordinary kitchen infestation.

Pest control disclaimer. Photo-based identification can help, but it is not always perfect. For dangerous spiders, large infestations, or anything you are unsure about, contact a licensed pest control professional.

Other moths and bugs in the same food

Most kitchen infestations are pantry moths, meaning the Indian meal moth, but not all of them. The quickest sort is the silk test: moths leave webbing, and beetles and weevils never do. After that, what the insect looks like and how damp the food was will tell you the rest.

Sorting the other stored food pests

Silk webbing, cream caterpillars, two-tone moth

What it is
Pantry moth, the Indian meal moth
What to do
This page. Find the packet

Webbing, but in damp food in a cellar

What it is
Meal moth, Pyralis farinalis
What to do
Check for mould first, then clear it the same way

Holes bored into whole grains of rice or wheat

What it is
Angoumois grain moth, Sitotroga cerealella
What to do
Same clear-out. It bores into whole grain, which the pantry moth does not

Small beetles, no silk anywhere

What it is
Flour or grain beetles

Beetles with a long snout, in rice

What it is
Rice or granary weevil

Tiny brown beetle in spices or medicine

What it is
Drugstore or biscuit beetle
What to do
biscuit beetle

Something small, dark and unidentified

What it is
Could be several things

Still not sure what you are looking at? Take a clear, well-lit photo and run it through our AI bug identifier by picture. Do that before you throw out a cupboard full of food.

Pantry moths FAQ

How long does a pantry moth infestation last?
It lasts as long as the food source does. Once you find and bin the infested packet and vacuum the cracks, the last adults die within one to two weeks and nothing replaces them. If you only kill the moths you see, it runs on for months, because a generation can finish in about four weeks in a heated house.
Why am I getting pantry moths?
Almost always because they arrived inside something you bought. Eggs and small larvae travel in flour, cereal, nuts, dried fruit, birdseed and dry pet food, anywhere between the mill and the shop shelf. It is not a sign of a dirty kitchen, and extension services say so plainly.
What smell keeps pantry moths away?
None that has been shown to work. Bay leaves, cloves, vinegar and essential oils are all widely recommended, but no extension source we read supports any of them as a control. A rigid airtight container does what the smells are supposed to do, and it works every time.
Are there baby pantry moths?
No, and this trips a lot of people up. A moth hatches as a caterpillar, not as a tiny moth, so a small moth in the cupboard is a different species or a worn adult. The cream caterpillar in your flour is the young stage, and it is the one doing the damage.
Can I sieve the flour and still use it?
You can, though most people would rather not. Sieving takes out the larvae and the clumps, but it leaves the silk, the shed skins and the droppings behind. If the flour smells musty, throw it out instead, because that points to mould rather than insects.
Do pantry moth traps catch clothes moths?
No. Each lure is matched to one species, so a pantry moth trap will not attract clothes moths, and a clothes moth trap will not attract pantry moths. The trap makers say this themselves. Buy the one that matches the room you have the problem in.

Related guides

Sources

Not sure it is this one?

Identify a bug