Small caterpillars in your house are almost always the larvae of pantry moths, clothes moths, or an outdoor moth that hitched a ride inside. The key is to identify which one you have, because the fix is different for each. Most people assume they came in from the garden, but the most common indoor caterpillars are living in your food or your woolens.
What Kind of Caterpillar Is It?
Look closely at the caterpillar and where you find it. Pantry moth larvae are about 1/2 inch (12 mm) long, cream or pinkish with a brown head, and they crawl on ceilings, walls, and inside food packages. Clothes moth larvae are smaller, about 1/4 to 1/2 inch (6–12 mm), white or pale gold, and they stay hidden in dark corners, under rugs, or inside folded clothes. Outdoor caterpillars (like inchworms or cutworms) are usually green, brown, or striped, and they show up one at a time near doors or windows, not in your pantry.
If you see a small, silk-lined tube or webbing on a ceiling corner, that’s a clothes moth caterpillar’s case. If you see fine webbing in a box of cereal or a bag of flour, that’s pantry moths. If the caterpillar is green and wiggles when you touch it, it likely came in on a plant or through a gap in a door.
Where Do They Come From?
Pantry moths (Indian meal moths) lay eggs in dry goods like flour, cereal, pasta, rice, dried fruit, nuts, and pet food. The eggs hatch into caterpillars that feed and spin webs. They can come home in a package from the store, or fly in from outside and find your pantry. Clothes moths (webbing or casemaking) lay eggs on wool, silk, cashmere, fur, and feathers, and the larvae eat the keratin in those fibers. They often come in on secondhand clothes, rugs, or upholstered furniture. Outdoor caterpillars wander in through open doors, torn screens, or gaps under thresholds, especially in late summer and fall when they are looking for a place to pupate.
How Do I Find the Source?
Start with the pantry. Empty every shelf and inspect every package—even sealed cardboard boxes, because moths can chew through thin cardboard and plastic. Look for webbing, clumped grains, tiny holes, or the caterpillars themselves. Check flour, cornmeal, oats, cereal, pasta, rice, dried beans, nuts, chocolate, spices, and dry pet food. Also check the edges of boxes and the folds of paper bags. If you find any sign, that package is the source.
If the pantry is clean, move to closets and drawers. Check wool sweaters, scarves, coats, blankets, and any item that has not been worn or washed in months. Clothes moth larvae avoid light, so look in dark corners, under beds, behind furniture, and inside storage boxes. You may see small, silken tubes or patches of webbing on the fabric, or tiny, bald spots on wool. Also check the underside of rugs and the edges of carpet near baseboards.
If you find nothing in either place, the caterpillar is probably an outdoor species that wandered in. Check window sills, door thresholds, and houseplants for more, and seal any gaps you see.
How to Get Rid of Pantry Moth Caterpillars
Throw away every infested package. Do not try to salvage food that shows webbing or caterpillars—the eggs are too small to see, and the food is not safe to eat. Vacuum the entire pantry, including shelves, corners, cracks, and the floor. Dispose of the vacuum bag or empty the canister outside. Wash the shelves with hot soapy water or a vinegar-water solution, and wipe down jars and cans that were on the same shelf. Let everything dry completely.
Store all dry goods in airtight glass, metal, or thick plastic containers with tight lids. This is the single most important step—moths can chew through cardboard and thin plastic bags. For the next few months, check these containers regularly for any sign of new larvae. You can also put bay leaves in the pantry; they do not kill moths, but some people find the smell discourages them. More reliably, freeze suspect food for 4 days at 0°F (-18°C) or below to kill eggs and larvae, then store it in a sealed container.
How to Get Rid of Clothes Moth Caterpillars
Remove all infested clothing and fabrics. Wash wool and silk items in hot water (above 120°F/49°C) if the care label allows, or dry clean them. For items that cannot be washed, put them in a sealed plastic bag and freeze for at least 4 days at 0°F (-18°C) or below, then thaw and brush off dead larvae. Vacuum the entire closet, including the floor, corners, shelves, and any fabric lining. Pay special attention to the back of the closet and under shelves. Dispose of the vacuum contents outside.
Clean or dry clean all wool, cashmere, silk, and fur items before storing them for the season—moths are attracted to soiled fabric. Store clean items in airtight garment bags, plastic bins with tight lids, or cedar-lined boxes. Cedar oil repels moths but does not kill eggs or larvae, so it is not a substitute for cleaning and sealing. Hang cedar blocks or lavender sachets if you like the scent, but know they are not a reliable cure. Check stored items every few months for signs of activity.
What About Outdoor Caterpillars That Wander In?
If you have a green or brown caterpillar on a wall or floor, and your pantry and closet are clean, it is almost certainly an outdoor species. Pick it up with a tissue and put it outside, or squash it. To keep more from coming in, check window screens for holes, install weather stripping under doors, and seal cracks around windows and doors with caulk. Also check houseplants—a caterpillar can come in on a new plant. Inspect the leaves and soil, and pick off any you see. These wanderers do not multiply indoors, so you only need to deal with the ones you find.
How Do I Prevent Them From Coming Back?
For pantry moths, the prevention is airtight storage and regular cleaning. Wipe down pantry shelves every few months, and do not let crumbs or spilled flour sit. Buy dry goods in smaller quantities so they do not sit for months. For clothes moths, keep wool and silk clean, store them sealed, and vacuum closets and under furniture regularly. For outdoor caterpillars, keep doors and windows screened and sealed, and trim plants away from the house so they have less access. Inspect any secondhand clothing, rugs, or furniture before bringing them inside—look for webbing, holes, or live insects.
If you keep finding caterpillars after cleaning and sealing, check again for a missed source—a bag of birdseed, a box of old chocolate, a wool rug you forgot about. It can take a few weeks to break the cycle, because eggs hatch over time. Stay consistent with vacuuming and inspecting, and the problem will end.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.