How to Identify and Remove Maggot-Like Worms in House

Small, pale, worm-like creatures crawling across your floor, ceiling, or kitchen counter are almost always insect larvae, not actual worms. The most common culprits are housefly maggots, pantry moth larvae, drain fly larvae, and carpet beetle larvae. Identifying which one you’re dealing with takes just a few observations about where you found them, what they look like, and what they’re near.

Housefly Maggots

If the creatures are white or cream-colored, legless, and roughly the size of a grain of rice (growing up to about half an inch), you’re likely looking at housefly maggots. They taper to a point at the head end and are wider at the rear. They move by contracting their bodies in a wriggling motion and tend to cluster together.

Housefly maggots show up wherever rotting organic material sits long enough for a fly to lay eggs. The most common spots are trash cans (especially in warm weather), forgotten pet food, a dead animal in a wall or crawlspace, or food waste stuck in a garbage disposal. Flies can lay hundreds of eggs at once, and those eggs hatch into maggots within 8 to 20 hours in warm conditions, which is why an infestation can seem to appear overnight.

Housefly maggots carry real health risks. The adult flies that produced them are known vectors for Salmonella, E. coli, Staphylococcus aureus, Campylobacter, and Shigella. Flies transport bacteria on their legs, body hairs, and foot pads, and they contaminate food by regurgitating saliva and depositing excrement. Finding maggots in your home means flies have been landing on and breeding near your food or waste, so cleaning up quickly matters.

Pantry Moth Larvae

If the small worms are in or near your dry goods (flour, rice, cereal, nuts, dried fruit, pet food, or birdseed), they’re most likely Indianmeal moth larvae. These are slightly off-white to pale yellow or pinkish, about half an inch long, and have a distinct head capsule you can see if you look closely. Unlike fly maggots, they produce fine silky webbing that you’ll notice clumping your food together or stretching across the inside of packaging.

Pantry moth larvae often arrive in food you bought at the store. Eggs or tiny larvae can already be inside sealed packaging. Once they hatch, they feed and grow inside the food, then crawl out to find a spot to pupate. That’s usually when people notice them: small worms inching up walls or across the ceiling, sometimes far from the pantry. If you’re seeing them on the ceiling, check every dry good in your kitchen. The source can be surprisingly hard to find, sometimes a forgotten bag of flour in the back of a cabinet or an old box of crackers.

Drain Fly Larvae

Thin, dark, worm-like larvae near your bathroom or kitchen sink, shower drain, or basement floor drain are likely drain fly larvae. These are aquatic insects that breed in the sludgy buildup of organic matter and bacteria inside pipes. The larvae feed on that biofilm and are remarkably hard to drown because they can trap air bubbles and survive submerged for a day or more.

You’ll often spot the adults first: tiny, fuzzy, moth-like flies resting on walls near the drain. If you’re only seeing the larvae, they’ll appear as thin, slightly translucent worms clustered around the drain opening, especially drains that aren’t used frequently. Guest bathrooms, basement utility sinks, and floor drains are classic breeding sites.

Carpet Beetle Larvae

These look quite different from fly maggots but still catch people off guard. Carpet beetle larvae are oval to carrot-shaped, 3 to 7 mm long, and covered in rows of light brown or golden-brown hairs. Some species have a characteristic tuft of long hairs at the tail end. They’re easy to distinguish from maggots because of that fuzzy, bristled appearance.

Carpet beetle larvae avoid light and burrow into wool, upholstery, carpeting, and stored clothing to feed on animal-based fibers and proteins. You’ll typically find them along baseboards, under heavy furniture, in rarely opened drawers, or in boxes of stored clothing. They move slowly and tend to stay hidden, so by the time you spot one crawling in the open, you may have a larger population tucked away in fabrics nearby. Look for irregular holes in wool items or shed larval skins as additional signs.

How to Identify What You Have

A quick checklist can narrow it down:

  • Found near trash, rotting food, or a dead animal: housefly maggots. White, legless, pointed at one end.
  • Found in dry food or crawling on walls/ceilings with silky webbing in pantry items: Indianmeal moth larvae. Off-white to pinkish with a visible head.
  • Found near drains, especially infrequently used ones: drain fly larvae. Thin, dark, worm-like.
  • Found in carpets, wool, stored clothing, or along baseboards: carpet beetle larvae. Fuzzy, brown-haired, tear-drop or carrot shaped.

Getting Rid of Housefly Maggots

The priority is removing whatever they’re feeding on. Bag up any rotting food or waste and take it outside immediately. Then deal with the maggots themselves. Boiling water kills them on contact: pour it directly over the cluster, let it cool, then scoop up the dead larvae and dispose of them in a sealed bag.

If you’d rather not handle boiling water near your trash can, a mixture of one part white vinegar to three parts hot water (at least 140°F) works well. Pour it into the affected area, close the lid, and let it sit for 30 minutes. Afterward, rinse the area and wipe it down again with the same vinegar solution to deodorize and disinfect. The vinegar helps remove the scent that attracts flies back.

For maggots in dry areas, food-grade diatomaceous earth is effective. Make sure the surface is dry, then spread an even layer of the powder over and around the maggots. It kills them by dehydrating their bodies over several hours. Sweep everything up, seal it in a bag, and clean the area with a vinegar solution or disinfectant. A mix of equal parts lime powder (calcium hydroxide) and salt works the same way if you have it on hand.

Once the immediate problem is handled, the long-term fix is denying flies a place to breed. Take out kitchen trash daily in warm months, rinse your bin regularly, keep lids tightly closed, and clean up pet food promptly.

Getting Rid of Pantry Moth Larvae

Start by inspecting every dry food item in your kitchen and pantry. Check inside bags, boxes, and containers for webbing, small larvae, or clumped-together grains. Throw out anything that shows signs of infestation. If you have items you suspect but aren’t sure about, place them in the freezer for a full week. That temperature exposure kills both eggs and larvae.

After removing infested food, vacuum all pantry shelves, paying attention to cracks and corners where eggs or pupae can hide. Wipe shelves down with a vinegar and water solution. Going forward, store dry goods in hard-sided, airtight containers (glass or thick plastic) rather than leaving them in original packaging. This contains any future infestation before it spreads and makes it easy to spot problems early.

Getting Rid of Drain Fly Larvae

Because drain fly larvae live inside the slimy buildup coating the inside of pipes, simply pouring bleach or hot water down the drain rarely solves the problem on its own. The biofilm protects them. The most effective approach is physically cleaning the inside of the drain. Remove the drain cover, use a stiff pipe brush to scrub the walls of the pipe as far down as you can reach, and flush with hot water. For floor drains or drains you can’t easily brush, an enzyme-based drain cleaner designed to break down organic buildup works better than chemical drain cleaners.

Run water through infrequently used drains at least once a week to prevent the stagnant conditions these larvae thrive in. If you have a drain in a basement or guest bath that sits dry for weeks at a time, that’s almost certainly where they’re breeding.

Getting Rid of Carpet Beetle Larvae

Vacuum thoroughly and repeatedly. Focus on edges of carpets, under furniture, along baseboards, and inside closets where wool, silk, or fur items are stored. Launder or dry-clean any affected fabrics. For items that can’t be washed, placing them in the freezer for a week kills larvae and eggs. Regular vacuuming is the single best prevention, since it removes both larvae and the hair, lint, and skin flakes they feed on.

Store out-of-season wool and natural-fiber clothing in sealed plastic bins or garment bags rather than open closets or cardboard boxes. Carpet beetle larvae can’t chew through plastic, so sealed storage cuts off their food supply entirely.