The Feast

Home cooking recipes for everyday dinners and easy entertaining

How to Get Rid of Pantry Moths in Food

· 4 min read · Dinners

Getting rid of pantry moths in food requires a thorough cleaning and elimination process to remove all life stages of the insect—eggs, larvae, adults, and webbing. Pantry moths often infest dry goods like flour, cereal, rice, pasta, and pet food, and can spread quickly if not addressed. The goal is to completely sanitize your storage areas, discard contaminated items, and prevent reinfestation. Before beginning, remove all food items from your pantry and cabinets to inspect them closely.

What You'll Need

  • Vacuum cleaner with a crevice tool
  • Hot, soapy water or a vinegar-water solution (1:1 ratio)
  • Microfiber cloths or sponges
  • Sealable plastic containers with tight-fitting lids
  • Freezer-safe bags or containers
  • Trash bags
  • Pantry moth traps (pheromone-based)
  • Freezer (for freezing infested items if salvageable)

Step-by-Step

  1. Remove all items from pantry and cabinets. Take everything out, including packaged goods, spices, and containers. Place them on a clean counter or table for inspection.
  2. Inspect every package for signs of moths. Look for tiny holes in packaging, webbing, clumped food, or visible larvae or adults. Even unopened boxes can be infested if moths laid eggs before sealing.
  3. Discard infested food immediately. Place contaminated items in sealed trash bags and dispose of them outside your home to prevent adult moths from escaping and reinfesting.
  4. Freeze questionable but unopened items. If you're unsure whether an item is infested but want to save it, place it in the freezer at 0°F (-18°C) for at least four days. This kills all life stages of pantry moths.
  5. Vacuum all pantry shelves and corners. Use a crevice tool to remove eggs and larvae from cracks, seams, and corners. Pay special attention to edges, joints, and behind shelf liners.
  6. Wash shelves and cabinet interiors. Clean all surfaces with hot, soapy water or a vinegar-water solution. Rinse with clean water and dry completely. Avoid using pesticides in food storage areas.
  7. Wash or discard shelf liners. If you use liners, wash them in hot, soapy water or replace them. Moth eggs can hide in creases and folds.
  8. Transfer safe, dry goods to airtight containers. Use glass or hard plastic containers with tight seals. This prevents future infestations and makes monitoring easier.
  9. Place pheromone traps in the pantry. Hang or set out pantry moth traps to catch adult males. This helps monitor activity and reduces mating. Replace as directed by the manufacturer.
  10. Monitor for two to three weeks. Watch for new moths or signs of infestation. If moths appear, repeat the cleaning process and check nearby areas like basements, garages, or pet food storage.
  11. Check other storage areas. Inspect spices, baking supplies, birdseed, and pet food. Moths can travel through walls or spread via cardboard boxes stored nearby.
  12. Seal pantry gaps. Use caulk to close cracks around shelves, baseboards, or entry points where moths might enter from outside or adjacent spaces.

Common Mistakes

Failing to check all food items—even those in sealed packaging—can leave eggs or larvae behind. Many people overlook spices, dried herbs, or items in paper bags, which moths can penetrate. Another error is reusing infested containers without washing them. Using cardboard boxes for long-term storage invites reinfestation. Some also neglect to vacuum thoroughly, missing eggs in crevices. Lastly, removing only visible moths without cleaning or using traps leads to recurring problems.

Tips

Buy dry goods in smaller quantities if you don’t use them often. Store bulk items in the freezer for four days before transferring to airtight containers. Rotate stock using the “first in, first out” method to prevent old food from sitting too long. Consider keeping a log of when you open new packages. Natural deterrents like bay leaves or cloves may help repel moths but are not proven to eliminate infestations—use them as a supplement, not a solution.

Troubleshooting

If moths reappear after cleaning, the infestation may have spread to adjacent areas like walls, ceiling corners, or nearby appliances. Check behind refrigerators, under sinks, or in storage closets. Replace pheromone traps if they’re old or no longer sticky. If moths persist, inspect pet food, birdseed, or decorative dried goods like potpourri. In severe cases, professional pest control may be needed, especially if moths are entering from outside. Never use chemical pesticides in food storage areas unless labeled safe and applied by a licensed technician.

Frequently Asked Questions

Can you eat food that had pantry moths?

No. Discard any food with visible moths, larvae, webbing, or clumping. Consuming infested food poses no serious health risk but is unappetizing and may contain insect waste or mold.

How do pantry moths get into sealed packages?

Moths lay eggs on food before packaging, or larvae chew through thin plastic, cardboard, or paper. Even tightly sealed bags aren’t always impenetrable if eggs were already inside.

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

Complete elimination takes two to four weeks. This includes killing all life stages and confirming no new moths appear. Continuous monitoring is essential.

Can freezing kill pantry moths?

Yes. Freezing items at 0°F (-18°C) for at least four days kills eggs, larvae, and adults. This is effective for items you want to salvage.

Are pantry moths dangerous?

No. They don’t bite or spread disease, but they contaminate food with webs, feces, and shed skins. The main risk is spoiled food and repeated infestations.

How do you prevent pantry moths from coming back?

Store all dry goods in airtight containers, clean shelves regularly, use pheromone traps year-round, and inspect new groceries before storing. Avoid bulk bins if possible, as they’re common contamination sources.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions