What Kind of Worm Is This? Identify by Location

The answer depends almost entirely on where you found it. A tiny white worm near your bed is a completely different creature than a dark, segmented one in your garden soil or a wriggling larva in your bathroom drain. Most “worms” people encounter aren’t even worms at all. They’re insect larvae, which lack the segmented, legless body of a true worm. By matching what you see with where you found it, you can narrow down the identity quickly.

Worms Found in the Kitchen or Pantry

Small, pale, caterpillar-like creatures in your dry goods are almost always Indian meal moth larvae. They’re cream or off-white, roughly half an inch long, and often leave behind fine silk webbing inside bags of rice, cereal, flour, or pet food. They have tiny legs near the head end, which distinguishes them from true worms. If you spot one crawling up a wall or across the ceiling, it’s likely heading somewhere to pupate into a small brown moth.

Mealworms, the larvae of darkling beetles, also turn up in pantries. They look noticeably different: hard-bodied, shiny, and yellow-brown with a segmented, almost crunchy appearance. They’re larger than moth larvae and tend to infest forgotten bags of grain or birdseed stored in dark corners.

Worms Found in the Bathroom or Drain

Thin, dark, wriggling creatures in your sink, shower, or toilet are most likely drain fly larvae. These feed on the slimy film of organic material that builds up inside pipes and stay near the surface of that gunk to breathe. They’re small (usually under half an inch), grayish or translucent, and slightly flattened. You’ll typically see them right at the drain opening or clinging to the wet walls of the basin.

If you spot tiny wriggling things in standing toilet water, they may actually be mosquito larvae rather than any kind of worm. Researchers have documented cases where flying insects laid eggs in toilet bowls that went unused for days, and the hatched larvae were mistaken for parasitic worms. These larvae get flushed away with normal daily use, so they only appear when water sits undisturbed.

Worms Found in the Garden or Soil

Most worms you’ll dig up in garden soil are common earthworms, and a few features help you tell the beneficial ones from the invasive species worth worrying about.

Angle worms are the classic garden earthworm. They live in the top 15 to 20 inches of soil, have a pink-peach color, and sport a well-defined raised band (called the clitellum) positioned lower on the body.

Nightcrawlers are the large ones you see on sidewalks after rain. They burrow deep and have a swollen, collar-like band that wraps only partway around the body in a saddle shape.

Red wigglers live at the surface, are 1 to 5 inches long, and have a strong red-brown back with yellow bands visible between their segments. Handle them roughly and they release a pungent liquid.

Jumping worms are the invasive ones to watch for. They range from 1.5 to over 8 inches, live in leaf litter and the top few inches of soil rather than burrowing, and thrash wildly when disturbed. The key identifier: their band is smooth, cloudy-white, and sits about one-third of the way down from the head, unlike the pinkish, raised band on native earthworms. If the soil in your garden looks like dry coffee grounds, jumping worms may be responsible.

Worms Found on or Near Pets

If you see something worm-like in your dog’s or cat’s stool, or stuck to the fur around their rear end, the most common culprit is tapeworm segments. These look like small, flat, white or cream-colored pieces roughly the size and shape of a grain of rice or a pumpkin seed. They may still be moving when fresh. Each segment is a self-contained egg packet that breaks off the longer tapeworm living inside the intestine.

Roundworms are the other common find. In pets, they look like pale, smooth, spaghetti-like strands several inches long. They sometimes appear in vomit as well as stool. Hookworms and whipworms, by contrast, are small enough that you’re unlikely to spot them with the naked eye. Their eggs are microscopic, requiring a vet’s fecal exam to detect.

Worms Found on or in the Body

Pinworms are the most common human worm infection, especially in children. The adult worms are tiny, white, and thread-thin, roughly a quarter to half an inch long. You’re most likely to spot them at night: they emerge around the anus to lay eggs, causing intense itching. Many people with pinworms have no symptoms at all beyond that stubborn nighttime itch.

To confirm pinworms, a “tape test” works best. First thing in the morning, before washing or using the bathroom, press a strip of clear tape against the skin near the anus, then seal it in a bag for your healthcare provider. Repeating this three mornings in a row gives the most reliable results, since the worms don’t emerge every night. Eggs can also accumulate under fingernails from scratching.

Tapeworm segments in human stool look similar to what you’d see in pet stool: flat, white, rice-grain-sized pieces about 12 to 20 millimeters long depending on the species. Roundworm infections are rarer in developed countries but produce large, unmistakable worms (up to several inches) that are pale and smooth.

How to Tell a Worm From an Insect Larva

This is the single most useful distinction you can make. True worms (earthworms, roundworms, flatworms) have no legs at any point along their body. They move by contracting segments or by a smooth, gliding motion. Insect larvae, on the other hand, often have tiny legs near the head, small prolegs along the body, or a distinct head capsule that’s darker than the rest. Adult insects end up with six legs, three body sections, and wings, but in the larval stage they can look convincingly worm-like.

If the creature has any visible legs, nubs, or a clearly defined dark head, it’s almost certainly an insect larva rather than a parasitic or soil worm. Carpet beetle larvae, for example, are small, fuzzy, and brown with visible segments. Fly maggots are legless but taper to a point at the head end, unlike the uniform tube shape of a true worm.

Flat Worms With a Strange Head Shape

If you’ve found a long, flat, slimy creature with a half-moon or hammer-shaped head in your garden, you’re looking at a hammerhead flatworm. These invasive land planarians can be several inches long and are predators of earthworms. Despite alarming social media posts about their toxicity, the actual risk to humans is minimal. They do contain trace amounts of a paralytic compound, but the quantity per worm is extremely low, less than 200 nanograms. Researchers estimate that poisoning a mammal would require ingesting hundreds of them. Accidental skin contact doesn’t cause significant reactions or transmit disease. If you handle one, just wash your hands. The real concern is ecological: they eat the earthworms your garden depends on.

Quick Identification by Location

  • Kitchen pantry: Indian meal moth larvae (pale, with webbing) or mealworms (hard, shiny, yellow-brown)
  • Bathroom drain: Drain fly larvae (small, dark, near slimy buildup)
  • Standing water or toilet: Likely mosquito larvae, not parasitic worms
  • Garden soil: Earthworms (segmented, no legs, pink to brown); check for jumping worms if the band is smooth and white
  • Pet stool or fur: Tapeworm segments (rice-grain-sized, flat) or roundworms (spaghetti-like)
  • Near the anus at night: Pinworms (tiny, white, thread-thin)
  • Garden surface, flat body, arrow-shaped head: Hammerhead flatworm (invasive but not dangerous to handle)