Those small, dark, worm-like creatures showing up on your bathroom floor, kitchen counter, or basement are almost certainly one of a handful of common household invaders. The most frequent culprits are drain fly larvae, millipedes, or carpet beetle larvae, and identifying which one you have usually comes down to where you found them and how they move. None of these are dangerous to people, but they all signal a moisture or cleanliness issue worth addressing.
Drain Fly Larvae Are the Most Common Answer
If you found tiny black or dark gray worm-like creatures near a sink, shower, bathtub, or floor drain, you’re probably looking at drain fly larvae. These are the immature stage of drain flies (also called moth flies), those fuzzy, moth-shaped flies you sometimes see resting on bathroom walls. The larvae are small, typically around 4 to 10 millimeters long, and they look like thin, dark, segmented worms. They thrive in the slimy organic buildup that accumulates inside drain pipes, feeding on bacteria, fungi, and decomposing material.
The giveaway is location. Drain fly larvae almost never stray far from a drain or very wet surface. If you see them clustered near or actually inside a drain opening, that’s your answer. They’re not parasitic and don’t bite. They’re simply the visible symptom of a dirty drain, and the fix is usually straightforward: clean the pipe. A stiff drain brush and enzymatic drain cleaner will break up the organic film the larvae depend on. Bleach alone often doesn’t work well because it slides past the gunk without dissolving it.
Millipedes That Wander In
Millipedes are another extremely common “little black worm” in homes, especially during rainy periods or seasonal transitions. They’re not actually worms at all but arthropods with many legs, though small species can look worm-like at a glance, particularly if they’re curled up. Most species that invade homes are dark brown to black and around one to four centimeters long. When you nudge one, it curls into a tight spiral. That defensive coil is the easiest way to distinguish a millipede from an actual worm or larva.
Millipedes live outdoors in leaf litter, mulch, and soil, where they feed on decaying plant material. They come inside when conditions outside become uncomfortable, and moisture is the driving force. Research on millipede behavior has shown that their responses to moisture are the most important factor in their movement patterns. Drying conditions trigger increased activity and a tendency to move downward, which in practice means they wander toward foundations and through gaps into homes seeking the humidity they need to survive.1Wiley Online Library (Proceedings of the Zoological Society of London). On the responses to environmental stimuli, and the sensory physiology of Millipedes (Diplopoda) Heavy rain can also flush them out of saturated soil, pushing them toward drier ground, which happens to be your house.
Millipedes can’t reproduce indoors and will typically die within a day or two once inside, because most homes aren’t humid enough for them. If you’re finding one or two occasionally, it’s nothing to worry about. If you’re finding dozens, look at the exterior: thick mulch beds against your foundation, leaf debris near entry points, and ground-level cracks or gaps around doors are the usual routes in. Pulling mulch back a few inches from the foundation and sealing gaps makes a real difference.
Carpet Beetle Larvae
Carpet beetle larvae are a different kind of find. They’re small, dark, and somewhat worm-shaped, but if you look closely, they’re bristly or fuzzy rather than smooth. They range from about 4 to 8 millimeters and can be dark brown to almost black depending on the species. Unlike drain fly larvae and millipedes, carpet beetle larvae don’t need moisture. They feed on animal-based fibers and proteins: wool, silk, feathers, pet hair, dead insects, and even lint accumulations under furniture.
You’ll usually find them in closets, along baseboards, under area rugs, or in rarely disturbed corners where hair and lint collect. Sometimes they turn up in pantries if dried goods like pet food or cereals are improperly stored. The damage they cause to fabrics and textiles is the real concern. If you’re seeing larvae, the adults have already laid eggs somewhere in your home, and you’ll want to locate the food source. Thorough vacuuming, especially in the crevices and undisturbed areas where debris accumulates, is the most effective first step. Washing or dry-cleaning stored woolens and inspecting for irregular holes in fabrics helps confirm the infestation’s scope.
How to Tell Them Apart
Since the three main suspects look similar enough to confuse people, here’s what to pay attention to:
- Location found: Near a drain or wet surface points to drain fly larvae. On a dry floor, closet, or baseboard points to carpet beetle larvae. On a basement or ground-level floor, especially after rain, points to millipedes.
- Movement: Drain fly larvae barely move and tend to stay on wet surfaces. Carpet beetle larvae move slowly in a caterpillar-like fashion. Millipedes walk steadily on many tiny legs and curl up when disturbed.
- Texture: Drain fly larvae are smooth and slightly translucent. Carpet beetle larvae are bristly or hairy. Millipedes have a hard, segmented shell.
- Size: Drain fly larvae are the smallest, usually under a centimeter. Carpet beetle larvae are slightly larger. Millipedes are often the biggest of the three, though juveniles of some species overlap in size with the larvae.
A magnifying glass or even a smartphone camera zoomed in can settle most identification questions quickly. The leg count alone is definitive: if you can see legs, it’s a millipede or carpet beetle larva, not a fly larva.
Other Possibilities Worth Considering
While drain fly larvae, millipedes, and carpet beetle larvae cover the vast majority of cases, a few less common creatures also fit the description of “little black worms.”
Fungus gnat larvae are translucent to dark and worm-like, usually found in the soil of overwatered houseplants. If your mystery worms are near potted plants, this is the likely answer. The fix is letting the soil dry out between waterings and, if the infestation is heavy, repotting with fresh soil.
Earthworms occasionally end up on basement floors or in garages after heavy rain drives them out of saturated ground. They’re usually easy to identify by their pink-to-brown color and familiar segmented body, but young earthworms can be quite dark and small enough to cause a moment of confusion.
Black soldier fly larvae sometimes turn up in compost bins, garbage cans, or near pet waste. They’re dark, tough-bodied, and segmented, and they tend to appear suddenly in large numbers when conditions are right. They’re harmless decomposers, but finding them in your kitchen waste bin is understandably alarming.
Land Flatworms and the Pet Connection
One less obvious route for worm-like creatures entering homes involves household pets. Land flatworms, also known as land planarians, are flat, elongated, and often dark-colored. Some species can reach considerable length. The flatworm Caenoplana variegata, for example, can stretch to 170 millimeters when fully extended, with a body only about five millimeters wide.2PeerJ. Cats, dogs, and sticky worms: invasion by land flatworms (Geoplanidae) is facilitated by household pets These are predatory creatures that feed on snails, slugs, and soil-dwelling invertebrates. They’re slimy to the touch, move in a gliding motion, and look distinctly different from insect larvae or millipedes if you examine them closely.
Research has documented that cats and dogs can inadvertently carry land flatworms into homes. The worms produce sticky mucus that adheres to fur, paws, or pet accessories, and pets moving between the garden and indoors transport them.2PeerJ. Cats, dogs, and sticky worms: invasion by land flatworms (Geoplanidae) is facilitated by household pets If you’re finding flat, dark, slimy worms indoors and you have pets that go outside, this is worth considering. The flatworms aren’t harmful to people or pets, but some invasive species in this group are a concern for garden ecosystems because they prey on native earthworms and snails.
Why Moisture Is Almost Always the Common Thread
Regardless of which creature you’re dealing with, the underlying issue is almost always excess moisture somewhere in or around your home. Drain fly larvae breed in wet organic buildup. Millipedes are driven indoors by changes in outdoor moisture levels. Fungus gnat larvae thrive in soggy soil. Land flatworms need humid conditions to survive. Even carpet beetle larvae, which don’t need standing water, do better in slightly humid environments where their food sources stay damp and fungal growth is present.
This means that fixing the moisture problem is the most effective long-term solution across nearly all of these scenarios. Practical steps include:
- Fix leaks: Even a slow drip under a sink creates the kind of constantly wet environment that attracts and supports larvae.
- Improve ventilation: Bathroom exhaust fans, dehumidifiers in basements, and proper attic ventilation all reduce the indoor humidity that makes your home hospitable to these creatures.
- Clean drains regularly: A monthly enzymatic drain treatment prevents the organic film that drain fly larvae depend on.
- Manage exterior moisture: Ensure gutters drain away from the foundation, reduce mulch depth near walls, and eliminate standing water in flower pot saucers or low spots near the house.
- Seal entry points: Weather stripping under doors, caulking around pipes where they enter walls, and sealing foundation cracks keep ground-level invaders out.
These steps address the root cause rather than just removing individual creatures, which is why pest control professionals typically recommend environmental fixes over chemical treatments for these types of invaders.
When the Problem Keeps Coming Back
A one-time appearance of a few dark worms or larvae is common and rarely signals anything serious. A recurring problem suggests an ongoing moisture source or food supply you haven’t found yet. For drain fly larvae, the breeding site might not be the drain you expect. Floor drains in laundry rooms, condensate lines from air conditioners, and the overflow pipes in bathroom sinks are all commonly overlooked breeding spots. For millipedes, an ongoing invasion usually means there’s a large population living in mulch or leaf litter right against your foundation, combined with an entry point you haven’t sealed.
For carpet beetle larvae, recurring infestations often trace to a hidden food source: a dead animal in a wall void, an old wool blanket in storage, a bird nest in a soffit, or even a significant accumulation of pet hair behind or under furniture. The adults are small beetles that fly, so they can re-enter homes through open windows and lay new eggs if conditions remain favorable.
If you’ve addressed moisture, cleaned thoroughly, and sealed entry points but the problem persists, a pest management professional can do a targeted inspection. They’ll often find a source you missed, like a drain pipe joint that’s leaking inside a wall or a forgotten crawl space vent that’s been left open.
Are They Harmful
None of the common “little black worms” found in homes pose a direct health threat to people. Drain fly larvae don’t bite and aren’t known to transmit disease in typical household settings. Millipedes don’t bite either, though some species secrete a mildly irritating fluid when handled that can stain skin temporarily. Carpet beetle larvae can cause skin irritation in some people, not from biting but because their tiny bristles (called hastisetae) break off and trigger a contact dermatitis reaction that looks like small, itchy red bumps. This is sometimes mistaken for bed bug bites. Land flatworms are slimy and unpleasant but harmless to touch.
The one creature in this category that occasionally raises health concerns is the rat-tailed maggot, the larva of certain hover flies, which can be found in extremely unsanitary standing water. These are rare in normal households and are more associated with agricultural or industrial settings. If you’re finding dark larvae in clean, potable water or on food surfaces, that warrants more urgent investigation into the source.
When There Are No Worms at All
This might sound like an unusual thing to include in an article about identifying household worms, but it matters. Some people experience persistent sensations of insects or worms on or under their skin, or report seeing tiny worm-like organisms that others cannot confirm. When these experiences are distressing and recurrent, and no actual organisms can be found despite repeated examination, the condition is known as delusional parasitosis. It’s an uncommon but well-documented psychiatric condition in which the person genuinely believes they are infested with parasites.3PubMed Central. Delusional parasitosis: Worms of the mind
People with this condition typically visit dermatologists or general physicians first, not psychiatrists, because the experience feels entirely physical. They may bring in samples of lint, skin flakes, or fibers that they believe are the organisms, and the distress is very real even when the organisms are not.3PubMed Central. Delusional parasitosis: Worms of the mind This is not something to diagnose casually, and it’s certainly not the explanation for most people Googling “what are these little black worms in my house.” But if someone in your household is repeatedly seeing or feeling worm-like organisms that no one else can find, and pest control professionals have confirmed there is no infestation, a conversation with a doctor is a reasonable next step. The condition is treatable, and outcomes are generally good with appropriate care.
Getting a Reliable Identification
If you want a definitive answer about what you’ve found, the single best thing you can do is take a clear, close-up photograph. Modern smartphone cameras in macro mode can capture enough detail for an expert to identify most household creatures. Your local cooperative extension service, which exists in every U.S. state as part of the land-grant university system, typically offers free pest identification. You can bring in a sample or submit a photo, and an entomologist or trained specialist will tell you exactly what you have and how to deal with it.
Online identification forums can also be helpful, though the quality of answers varies. Subreddits and Facebook groups dedicated to insect identification have active communities of knowledgeable amateurs and professionals, but always cross-reference the answers you receive. The stakes are low for most household worm identifications since the common culprits are all harmless, but knowing which creature you have matters for choosing the right fix. Cleaning a drain won’t solve a carpet beetle problem, and sealing foundation cracks won’t stop drain fly larvae from breeding in your pipes.