• food-storage
  • guide
  • How to Get Rid of Pantry Moths and Keep Them Out for Good

    Oct 16, 2026

    Knowing how to get rid of pantry moths comes down to one rule: take away everything they can eat and every place they can hide. Empty the cupboard, bin anything with webbing, vacuum the cracks, wipe the shelves, freeze the food you keep, and decant every dry food into sealed containers. Then watch for six to eight weeks.

    That last step is the one most guides rush, and it is the one that stops a second round. Moths come home in shop packaging, and cardboard boxes, paper bags and folded plastic give their larvae an easy way in and out. Rigid airtight food storage containers with a sealed lid give them nothing to chew through and no gap to squeeze past.

    Key takeaways

    • The damage is done by the larvae in your food. The moths fluttering out of the cupboard are adults looking for a place to lay eggs.
    • A thorough clean-out (bin, vacuum, wipe, freeze) beats any spray. You do not need insecticide in a food cupboard.
    • Expect six to eight weeks before you can call it over, because eggs you missed will still hatch.
    • Bay leaves and lavender may put adults off, but they kill nothing.
    • The permanent fix is storage: every dry food in a rigid, sealed container, never in its original bag.

    How to tell it is pantry moths

    The usual culprit is the Indian meal moth: small, about a centimetre long, with wings that look coppery at the tips. The giveaways are fine silky webbing in flour or cereal, grains clumped together, small cream-coloured larvae crawling up the cupboard walls, and moths flying in a zigzag when you open the door. If you see the larvae on the ceiling of the cupboard, the infestation has been going for a few weeks. They climb up there to pupate.

    How to get rid of pantry moths in seven steps

    Block out an hour and do the whole cupboard in one go. Half a clean-out just moves the problem to the next shelf.

    1. Empty the cupboard completely. Everything comes out, including tins and jars you are sure are fine. Larvae pupate under rims and behind labels.
    2. Check every packet. Look for webbing, clumps, tiny holes in bags and larvae in the folds. Anything open or doubtful goes into a sealed bag and straight to the outside bin, the same day.
    3. Vacuum every crack. Shelf-pin holes, corners, hinges, the seam where shelf meets wall, the underside of each shelf and the cupboard ceiling. Empty the vacuum outside immediately, or the eggs simply move into the hallway cupboard.
    4. Wipe everything down. Warm soapy water first, then a mix of one part vinegar to one part water. Vinegar helps lift eggs and residue off the surface, but it does not reach deep into cracks, which is why the vacuum comes first. Let the shelves dry fully.
    5. Freeze what you are keeping. Sealed or clean-looking flour, rice, oats and nuts go into the freezer at -18°C for at least 72 hours, a full week if you have the space. That kills eggs you cannot see. Let the food return to room temperature before opening, so condensation does not make it damp.
    6. Decant into sealed containers. Nothing goes back in its original packaging. More on why below.
    7. Monitor with a pheromone trap. It attracts male moths only, so treat it as a warning light, not a cure. Place it once the clean-out is done and check it every week.

    Which foods to bin, freeze or keep

    Pantry moth larvae are not fussy. Anything dry, starchy, nutty or sweet is on the menu.

    Food Risk What to do
    Flour, semolina, cornmeal High Bin if opened or webbed. Freeze if still sealed.
    Cereal, oats, muesli High Bin if opened or webbed. Freeze if still sealed.
    Nuts, seeds, dried fruit High Bin at the first sign of webbing. Freeze the rest.
    Dry pet food, birdseed High Often the original source. Bin open bags and store the rest sealed.
    Rice, pasta Medium Inspect closely, then freeze before decanting.
    Dried herbs, spices, cocoa Medium Check for clumps. Freeze small packets for 72 hours.
    Tins, glass jars with intact lids Low Wipe the outside and the rim, then put them back.

    The permanent fix: seal every dry food

    Here is how most infestations start. A bag of flour comes home with a few eggs in it, nobody notices, and the larvae that hatch crawl out through the fold, into the cereal box next door and the paper bag of nuts behind it. Clips, twist ties and folded-over tops slow them down a little. They do not stop them, and larvae can chew through thin plastic and cardboard.

    A rigid container with a properly sealed lid closes that route in both directions. Moths cannot reach the food to lay eggs, and if a new bag did bring eggs home, the problem stays inside one container instead of spreading across the shelf. With a clear body you can see webbing before it becomes a cupboard-wide job.

    This is where a TightVac earns its place. Press the button and the lid settles with a soft pfff as the air is pushed out. The lid seals all the way round, so there is no loose edge for a larva to work through. The same seal keeps out moisture and the oxygen that makes dry food go stale, so flour and oats stay fresh up to 3x longer than in the bag they came in. Most kitchens are covered by the TightVac 1.3L for rice, oats and opened bags, and the TightVac 2.35L for pasta and cereal.

    One honest note: a container keeps moths out, but it cannot clean food that already came home with eggs in it. Freeze new bulk bags first, or decant them and keep an eye on them for the first couple of weeks. If something does hatch, you lose one container's worth, not the whole cupboard. And wash the containers by hand, never in the dishwasher, so the seal keeps doing its job.

    For specific foods, see our flour storage containers, the cereal containers for breakfast staples, and dog food storage containers, because an open sack of kibble is one of the most common places a moth problem starts.

    How to prevent pantry moths coming back

    Once the cupboard is clean, a few habits keep it that way.

    • Check packaging in the shop. Small holes, webbing in the corners or clumped contents mean leave it on the shelf.
    • Freeze bulk buys of flour, nuts and grains for 72 hours before they go into the cupboard.
    • Buy rarely used items in smaller amounts. A bag of polenta that sits for a year is an open invitation.
    • Use the oldest food first, and wipe up spilled flour and crumbs as you go.
    • Keep pet food and birdseed sealed and, ideally, out of the food cupboard.
    • Look through the cupboard every couple of months, especially in late summer when moths are most active.

    What smells deter pantry moths?

    Bay leaves, lavender, cedar, cloves and peppermint are the usual suggestions, and people do report fewer moths with a few bay leaves on the shelf. The evidence is thin, though, and none of these smells kill eggs or larvae that are already in your food. A bay leaf is a pleasant thing to find in a cupboard. It is not a security system. Use scents as a light extra once the clean-out is done, never as the clean-out itself.

    How long does it take to get rid of pantry moths?

    The clean-out takes an afternoon. Being sure it worked takes longer, because the moth's life cycle sets the pace. In a warm kitchen an egg becomes an adult moth in roughly four to eight weeks, and slower in a cold one. So you may still see the odd moth in the first two or three weeks, hatching from pupae that were hidden in a crack.

    That is normal. If your trap stays empty for six to eight weeks, you are done. If new moths keep appearing after week four, there is a source you missed. Check the pet food, the birdseed, the forgotten packet of nuts in a drawer and any dry food stored in another room.

    Ready to restock? Find your size and put every dry food behind a sealed lid.

    Frequently asked questions

    How do I permanently get rid of pantry moths?

    Do a complete clean-out in one go: empty the cupboard, bin anything with webbing or larvae, vacuum every crack and wipe the shelves with soapy water and vinegar. Freeze the food you keep for at least 72 hours. Then store every dry food in rigid, sealed containers instead of its original packaging, so moths can no longer reach it or spread from one bag to the next.

    What smells deter pantry moths?

    Bay leaves, lavender, cedar, cloves and peppermint are the most common suggestions, and some people find adult moths avoid them. The evidence is limited, and none of these smells kill eggs or larvae already in your food. Use them as a light extra after a proper clean-out, never as the main treatment.

    How long will it take to get rid of pantry moths?

    The clean-out itself takes an afternoon, but plan on six to eight weeks before you can call it finished. In a warm kitchen the life cycle from egg to moth takes roughly four to eight weeks, so hidden pupae can still hatch after you have cleaned. If moths keep appearing after week four, look for a source you missed, such as pet food or birdseed.

    What do pantry moths hate?

    Cold and closed doors. Freezing kills eggs and larvae, and a rigid, sealed container leaves them nothing to get into. They also do badly in a clean, dry cupboard without spilled flour or crumbs. Strong scents such as bay or lavender may discourage adults a little, but a sealed lid does far more than any smell.


    More from > food-storage guide