Skip to content
The Pest Guide logo: an orange ant behind a magnifying glass The PestGuide
Question · answered · Moths & Butterflies

How do you get rid of pantry moths?

Updated · The Pest Guide · Editorial policy

Illustration of the moths & butterflies
Moths & Butterflies
Short answer

To get rid of pantry moths, you must throw out every contaminated food package, vacuum every crumb from your cabinets, and move all your dry goods into airtight glass, metal, or thick plastic containers. If you want to protect bulk items like pet food, you can place them in the freezer at zero degrees Fahrenheit for up to seventy-two hours.

What is actually going on

You reach into the back of the pantry for a bag of flour you bought a couple of months ago, and when you cut open the top, a small, dusty-looking gray moth flutters out and lands on your kitchen wall. Then you notice thin, sticky cobwebs gluing the flour grains together into small clumps. If you are wondering how you are supposed to clear out pantry moths and stop them from coming back, the short answer is that you have to track down every last contaminated food package, throw it out, clean every crumb out of your cabinets, and move all your dry goods into airtight glass, metal, or thick plastic containers.

It sounds simple enough, but most people fail on the first try because they miss how these insects actually live. Pantry moths go through a complete lifecycle of egg, larva, pupa, and adult. The adults do not have mouthparts for eating. They exist solely to mate and lay eggs, which means that the fluttering moth you just saw is not the one chewing up your groceries. The damage is entirely the work of the small, pale caterpillars that hatch from those microscopic eggs.

Those larvae chew through paper sacks, cardboard cereal boxes, and thin plastic film with ease. As they feed on your grains, cereals, nuts, and pet food, they leave behind continuous strands of silken webbing mixed with their droppings. This is why infested food ends up clumping together and spoiling. Once the larvae finish eating, they often crawl right out of the food package and travel up your walls to find a quiet corner or a ceiling joint to spin a cocoon. Throwing away the bad bag of rice will not help much if half a dozen mature caterpillars have already marched out and set up camp behind your cabinet brackets.

How to tell for sure

Adult pantry moths are usually easy to spot if you know what to look for, mostly because of their distinct two-toned wings. Their wingspan measures about five-eighths to three-quarters of an inch, and the outer two-thirds of their forewings are a copper, bronze, or dark brown color, while the section closer to the head is a pale gray or buff. If the lighting is dim or the wings are worn down, you might need a bright light or a magnifying glass to pick out that copper tip.

The larvae are usually cream-colored, pinkish, or pale green caterpillars with a reddish-brown head capsule, growing up to half an inch long. People usually confuse them with clothes moths, but that mistake leads down the wrong path entirely. Clothes moths prefer wool, silk, and feathers, and they actively avoid light, whereas pantry moths stick to the kitchen and ignore your wardrobe completely. You might also run into tiny pantry beetles or grain mites, but beetles do not spin silken webbing, and mites look more like moving dust and usually show up only when the humidity is high.

It is also worth remembering that those small pellet clusters you find in infested oats or flour are larval droppings, not moth eggs. The eggs themselves are too small to spot without a deliberate search. When you find webbing binding your dry goods together, you usually do not need to second-guess the diagnosis.

What usually comes next

Once you know you have an infestation, you have to decide whether to salvage any of your dry goods or clear the shelves entirely. The practical choice usually points toward a complete cleanout. Cardboard and paper offer zero defense against these pests, so any opened package sitting in the pantry without an airtight seal is a suspect.

Start by taking every single item out of your storage space and inspecting the seams. If you spot webbing, clumps, or crawling caterpillars, put that item directly into a heavy-duty trash bag, tie it tight, and carry it out to your garbage bin right away. Do not leave it in the kitchen trash can, or the larvae will just crawl back out. After clearing the shelves, vacuum every corner, crack, and hinge of your cabinets to suck up hidden dust and stray cocoons, and make sure to empty the vacuum canister outside immediately. Wipe down the bare shelves with hot, soapy water.

For the food you decide to keep, or for newly bought flour and grains, transfer them immediately into rigid containers made of glass, metal, or heavy plastic with rubber gaskets. If you want to be extra careful with bulk items like bird seed or pet kibble, you can put them in the freezer at zero degrees Fahrenheit for forty-eight to seventy-two hours to kill off any microscopic eggs you cannot see. People often buy pheromone sticky traps hoping they will solve the problem, but those traps only catch male moths. They are useful for telling you if any adults are still flying around, but they cannot stop the females from laying more eggs.

When to get help

Most pantry moth issues yield to thorough cleaning, but certain situations call for backup. If you have spent a month aggressively cleaning, throwing out food, and sealing everything in glass, and you are still seeing moths crawling across your ceiling or emerging from wall voids, the breeding source is likely hiding somewhere inaccessible, such as behind baseboards, inside light fixtures, or within shared wall chases in an apartment building.

Multi-family housing presents unique challenges because these pests can travel between neighboring units through utility gaps. If the infestation persists despite your best efforts, or if you live in a shared building where the source cannot be pinned down to a single kitchen, you should involve a licensed pest management professional who can inspect structural voids and apply treatments safely.

On the health side, swallowing a moth larva or two in a bowl of cereal is unpleasant, but it does not transmit infectious diseases or parasites. However, if you or someone in your home has severe asthma or allergies, breathing in the dust, shed skins, and airborne frass left behind by a heavy infestation can trigger coughing, skin irritation, or allergic reactions. If anyone experiences persistent respiratory distress or severe allergic symptoms, consult a clinician right away.

Next questions