The “worms” in your house are almost certainly not worms at all. In the vast majority of cases, they’re insect larvae, and the species depends on where you’re finding them. A white, legless creature near your trash is likely a fly maggot. Something similar crawling up your kitchen wall is probably a pantry moth larva. Tiny fuzzy things in your closet point to carpet beetles. Each one arrives for a different reason, and identifying which you have is the first step to getting rid of them.
Fly Maggots Near Trash or Drains
House fly and blow fly maggots are the most common “worms” people find on floors and countertops. They’re whitish, about half an inch long, with no visible head. Flies can lay eggs on any decaying organic matter, and those eggs can hatch into visible larvae in as little as six hours depending on temperature. A forgotten piece of fruit, a trash bag that sat too long, or a dead animal in a wall void are all it takes. If maggots seem to be coming from a vent or fireplace, a bird or rodent may have died in an inaccessible spot.
The fix is straightforward: find and remove the food source, then clean the area thoroughly. Without something to feed on, the larvae can’t survive. Take trash out more frequently, keep bins sealed, and check for any decaying material you may have missed.
Drain Fly Larvae in Bathrooms
If you’re finding tiny worm-like creatures in or around a bathroom drain, drain fly larvae are the likely culprit. These small, dark larvae develop in the slimy organic buildup inside pipes, feeding on soap scum, algae, fungi, and bacteria. They thrive in stagnant water, which is why they’re most common in drains that don’t get regular use, like a guest bathroom shower or a basement floor drain where water sits in the trap for long periods.
Drain fly larvae go through four growth stages over roughly 18 days before becoming the small, fuzzy-winged adult flies you might also be noticing on walls. They can also show up beneath leaking pipes where moisture collects, or occasionally enter from sewer lines that back up into the home. Running water through unused drains weekly and scrubbing out the organic film inside the pipe (a stiff brush works better than chemical drain cleaners for this) will eliminate their breeding site.
Pantry Moth Larvae in the Kitchen
Indian meal moth larvae are one of the most common pantry pests, and they often look alarming because they crawl far from their food source. You might spot them on walls or ceilings, sometimes several rooms away from your kitchen. They’re about half an inch long with a brownish head, and their body color ranges from whitish to yellowish, greenish, or pinkish depending on what they’ve been eating.
A single female moth can lay 100 to 300 eggs directly on food, either one at a time or in clusters of 12 to 30. The eggs are tiny and white, nearly impossible to see. Larvae feed on grains, cereals, dried fruits, nuts, and many processed foods. A telltale sign is fine silken webbing in a bag of flour or rice, since the larvae spin threads as they grow and leave silk trails wherever they crawl. Newly hatched larvae are extremely small and hard to spot, so an infestation can build for weeks before you notice it.
To deal with them, inspect every dry good in your pantry. Discard anything with webbing, clumping, or visible larvae. Wipe down all shelves, paying attention to crevices. Store replacement foods in airtight glass or hard plastic containers to prevent reinfestation.
Carpet Beetle Larvae in Closets and Bedrooms
Carpet beetle larvae look less like traditional “worms” and more like tiny, fuzzy, carrot-shaped caterpillars. They’re a quarter inch long or less, and depending on the species, they may be striped brown, dark red, or nearly black. Some are broader at the rear and taper toward the front, while others taper in the opposite direction. If you disturb one, it may flare its hair tufts upright into a small plume.
These larvae feed on animal-based fibers: wool, silk, leather, fur, feathers, and pet hair. They don’t eat synthetic fabrics. You’ll find them in closets, along baseboards, under furniture, or anywhere pet hair accumulates. The giveaway signs are tiny brown shell-like cast skins they leave behind when they molt, along with fecal pellets about the size of a grain of salt. Unlike clothes moths, carpet beetle larvae don’t produce webbing, so if you see damage to natural-fiber clothing or rugs without any silk threads present, carpet beetles are the more likely cause.
Regular vacuuming, especially in corners, under furniture, and inside closets, removes both larvae and the hair and lint they feed on. Dry cleaning or laundering woolens before storing them eliminates eggs.
Actual Earthworms After Rain
If what you’re finding genuinely looks like an earthworm, not a larva, heavy rain is the usual explanation. Scientists used to think earthworms surfaced during storms simply to avoid drowning, but soil experts now believe the primary reason is migration. Wet conditions let earthworms travel much greater distances across the surface than they could underground, and they need that surface moisture to keep their skin from drying out. Some species also surface to mate, though this accounts for only a small fraction of the 4,400 known earthworm species.
Once on the surface, earthworms can slip under doors, through foundation cracks, or through gaps around basement windows. This is a seasonal nuisance rather than an infestation. Sealing gaps under exterior doors with weather stripping and caulking cracks in the foundation will keep them out.
Flea Larvae in Carpets and Pet Bedding
If you have pets and notice tiny, whitish, worm-like creatures in carpeting or around pet beds, flea larvae are a strong possibility. They’re about one-fifth of an inch long when mature, and they live in carpet fibers, cracks in hardwood floors, and anywhere your pet rests. They feed on organic debris and dried blood from adult flea droppings. Treating your pet for fleas and thoroughly vacuuming carpets and upholstered furniture (then discarding the vacuum bag) addresses both the adults and the larvae.
Pinworms: The Actual Parasite
Pinworms are one of the few true worms you might encounter in a home, and they’re a human parasite rather than a household pest. They’re tiny, white, and thread-like. Female pinworms leave the intestine at night and deposit eggs on the skin around the anus, which causes intense itching. The eggs become infectious within two to three hours, and they can survive on surfaces like bedding, clothing, and toys for two to three weeks if not properly cleaned. Transmission happens when someone touches a contaminated surface and then touches their mouth, which is why pinworm infections are especially common in young children.
If you suspect pinworms, a doctor can confirm the diagnosis with a simple tape test. Treatment is a single dose of medication, typically repeated two weeks later, and the whole household is usually treated at the same time to prevent reinfection. Washing all bedding and towels in hot water on the same day helps eliminate lingering eggs.
How They Get Inside
Most larvae don’t enter your home from outside. They hatch from eggs laid indoors by adult insects that flew or crawled in. But for the pests that do migrate in, the entry points are predictable: gaps under doors, cracks between slab foundations and walls, unsealed openings around pipes and wiring, damaged window screens, and routing holes for cable, phone, or electrical lines. Termite larvae and other soil-dwelling insects exploit any wood-to-soil contact, such as porch steps or support posts resting directly on the ground.
Caulking around windows, doors, and pipe penetrations, installing door sweeps, and screening attic and soffit vents will block most of these pathways. For insects that are breeding inside, like drain flies or pantry moths, sealing entry points won’t help. You need to eliminate the moisture or food source sustaining them.

