What Do Worms Look Like in Baby Poop?

Don’t panic. Get a clear visual guide to identifying parasitic worms in baby stool, plus actionable steps for treatment and prevention.

Worms in a baby’s diaper can look like tiny white threads, longer spaghetti-like strands, or even small rice-shaped segments, depending on the species involved. Pinworms, the most common culprit in young children, are thin white wrigglers roughly half a centimeter to a centimeter long, while roundworms can be disturbingly large and pale, and tapeworm segments resemble flat grains of rice. But plenty of harmless things in baby stool mimic worms convincingly enough to send parents rushing to the pediatrician, and knowing the difference matters.

Pinworms and What They Look Like

Pinworms (Enterobius vermicularis) are by far the most common intestinal worm found in children in temperate, high-income countries. They are small, white, and thread-thin, typically between about 2 and 13 millimeters long. The females, which are the ones you are most likely to spot, are on the larger end of that range and have a pointed, pin-like tail that gives the worm its name. Males are smaller and curl into a hook shape, but you are unlikely to see them because they usually stay inside the intestine.

In a baby’s stool, live pinworms look like short pieces of white thread that may be wriggling. Dead ones look the same but without movement. Because female pinworms migrate out of the anus at night to lay eggs on the surrounding skin, you may spot them around your baby’s bottom during a nighttime diaper change rather than in the stool itself. The eggs are microscopic and invisible to the naked eye, so you will never see those in a diaper.

Diagnosis typically relies on a “tape test” rather than a stool sample. A piece of clear adhesive tape is pressed against the skin around the anus first thing in the morning, then examined under a microscope for eggs. A single tape test catches about half of infections, but repeating the test on three separate mornings raises the detection rate to roughly 90 percent. The reason is simple: pinworms do not lay eggs every single night, so a one-time check can miss an active infection.

Roundworms in Baby Stool

Roundworms, particularly Ascaris lumbricoides, are the largest intestinal worms that infect humans. Adults of this species can grow anywhere from 15 to 35 centimeters long, roughly the length of a pencil or longer. They are pale pink, yellowish, or white, smooth-bodied, and cylindrical. In a diaper, a roundworm is impossible to mistake for a thread or a fiber. It looks like a thick, earthworm-sized creature, and finding one tends to be genuinely alarming.

Ascariasis is estimated to affect somewhere between 800 million and 1.2 billion people worldwide, overwhelmingly in tropical and subtropical regions with poor sanitation. Many people carry the infection for years without symptoms until an adult worm is passed in the stool. In babies and young children, heavy infections can cause belly pain, vomiting, and malnutrition. Infection happens when a child swallows microscopic roundworm eggs from contaminated soil or food, which is why it is largely a disease of areas where open defecation or untreated sewage is common.

Tapeworm Segments

Tapeworm infections look different from threadworms or roundworms. You will not usually see the entire worm, which lives anchored inside the intestine and can grow very long. What parents notice in stool or around the baby’s anus are proglottids: small, flat, whitish segments that break off from the tail end of the tapeworm and are passed out. Fresh proglottids can move, which makes them especially unsettling. Dried ones look like small grains of white or yellowish rice, and they may stick to clothing or bedding.

In babies, the most commonly reported tapeworm is Dipylidium caninum, the dog or cat tapeworm. This worm is extremely common in household dogs and cats but only rarely infects humans. The route of transmission is not direct contact with pet feces. Instead, infants become infected by accidentally swallowing an infected flea, which can happen during normal floor-level play with a pet. Cases have been documented even in infants as young as six months old. Human infection with Dipylidium caninum is considered distinctly uncommon, but households with flea-infested pets and young babies crawling on the floor represent the classic setup.

Hookworms and Less Visible Parasites

Not all intestinal worms are easy to spot. Hookworms, for instance, are small (about 5 to 13 millimeters), thin, and often the same color as the stool they are embedded in. They attach to the intestinal lining and feed on blood, so they are rarely passed intact in a diaper. What a parent would notice instead is the effects of the infection: bloody or dark stool, unexplained anemia, poor weight gain, or persistent fussiness. In one reported case, a two-month-old infant in Italy presented with vomiting and weight loss before stool analysis revealed hookworm eggs, identified as Ancylostoma duodenale.

Whipworms (Trichuris trichiura) are another species unlikely to show up visibly in a diaper. They are thin, whip-shaped worms that embed in the large intestine, and again, diagnosis usually depends on microscopic examination of the stool for eggs rather than spotting an actual worm. For babies in parasite-endemic areas, laboratory stool tests are the only reliable way to detect these less visible species. Research comparing different lab methods for infant stool found that combining two techniques pushed sensitivity up to about 99 percent for detecting eggs of the major soil-transmitted worms. A basic single-technique stool smear, on the other hand, can miss low-intensity infections.

Things That Look Like Worms but Are Not

This is where a lot of parental anxiety gets generated unnecessarily. Babies eat a limited diet, but once they start solids, all kinds of partially digested food fibers can show up in the diaper looking alarmingly worm-like. Banana is the most notorious offender. The dark, thread-like fibers in a banana can pass through the gut nearly intact and look strikingly similar to small parasitic worms. In one documented case, a six-month-old infant was brought in with what appeared to be a thread-like parasite in the stool, but laboratory analysis confirmed the dark strands were simply banana fibers.

Other common worm look-alikes in baby stool include:

  • Mucus strands: Stringy, whitish or clear mucus can appear during teething, minor stomach bugs, or milk-protein sensitivities. These are slippery and uniform in texture, unlike a worm that has a visible body structure.
  • Undigested food fibers: Bits of string bean, celery, or other fibrous vegetables can come through looking thread-like. Similarly, the skins of blueberries, tomatoes, or grapes may appear as dark specks or curled fragments that catch a parent’s eye.
  • Fabric threads: Tiny lint or cotton fibers from clothing, blankets, or cloth diapers can end up in stool if a baby mouths fabric, which babies constantly do.

A useful first check is whether the suspicious strand moves on its own. A live worm will wriggle, at least faintly. A banana fiber or a piece of mucus will not. If the object is dark brown or black, it is almost certainly food debris. Pinworms and tapeworm segments are white or off-white, and roundworms are pale. If you are truly unsure, placing the stool sample in a sealed container and bringing it to your pediatrician’s office is the fastest way to settle the question.

Which Babies Are Most at Risk

Intestinal worm infections in babies are not equally distributed. In high-income countries with modern sanitation, pinworms are the standout parasite, transmitted hand-to-mouth in daycares and households regardless of cleanliness or income. Other worm infections are relatively rare. In low-income tropical settings, the picture is very different. Studies from Ethiopia found that children under two were nearly five times more likely to test positive for intestinal parasites compared to those aged three to five. The youngest children appear especially vulnerable, likely because they are crawling on contaminated ground and putting everything into their mouths while having immature immune defenses.

Risk factors for soil-transmitted worms in young children include rural residence, lack of handwashing before meals, untrimmed fingernails, and reliance on unprotected water sources like ponds. In one population-based study of mothers and infants in Ethiopia, about 5 percent of infants had soil-transmitted helminth infections, with the household water source being the only significant predictor of risk. For families in higher-income settings, the relevant risk factors are different: close contact with flea-carrying pets (for Dipylidium tapeworm), attendance at group childcare (for pinworms), and travel to endemic regions.

What Worm Infections Can Do to a Baby

A light pinworm infection may cause nothing more than itching around the anus, especially at night when the female worms emerge to lay eggs. Heavy or chronic infections with other species carry more serious consequences. Intestinal worms can affect a growing child’s nutrition in several overlapping ways: by causing blood loss and iron-deficiency anemia, by competing for nutrients or reducing absorption in the gut, and by provoking loss of appetite, vomiting, or diarrhea that further cuts into food intake. For a baby whose brain and body are developing rapidly, chronic worm infection can translate into poor weight gain and stunted growth.

Hookworms are the most concerning in this regard because they actively feed on intestinal blood, and even a moderate worm burden can push an infant into anemia. Roundworms, if present in large numbers, can cause intestinal blockages, a surgical emergency. These complications are uncommon in well-resourced settings but represent a real danger in regions where children carry heavy parasite loads without treatment.

Treating Worms in Babies and Very Young Children

Treatment depends on the type of worm, and your pediatrician will want to confirm the species before prescribing anything. Mebendazole and albendazole are the standard antiparasitic medications for most common worms. There has historically been hesitation about treating children under two years old, partly because clinical trial data in that age group was thin. A study that directly addressed this question found no significant adverse effects in children under 24 months treated with mebendazole compared to placebo. The only practical issue was that very young children had trouble chewing the tablets, which was solved by crushing them and mixing with water.

For breastfeeding mothers who need treatment themselves, mebendazole appears safe. A case series examining lactating mothers treated with both single and repeated doses found no adverse effects in their nursing infants. This matters because if a mother is infected, the baby’s environment is likely contaminated too, and treating only the child without addressing the household source leads to reinfection.

For pinworms specifically, a single dose of medication is typically given, then repeated two weeks later to catch any worms that hatched from eggs laid before the first dose. Tapeworm infections like Dipylidium caninum are treated with praziquantel, a different drug. Your pediatrician will choose the medication and dose based on the worm species, the baby’s age, and body weight.

Preventing Reinfection and Protecting the Household

Worm infections, especially pinworms, are notorious for cycling through a household. A baby gets treated, improves, and then picks the infection right back up because eggs have survived in the environment or other family members are still carrying the parasite. Successful eradication almost always requires treating the whole household at the same time and paying close attention to hygiene measures.

Practical steps that actually help include washing bedding, towels, and pajamas in hot water on the day treatment starts; keeping fingernails trimmed short (pinworm eggs collect under nails); and daily bathing or showering in the morning to remove eggs deposited overnight. For households with pets, flea control is the relevant intervention if the concern is Dipylidium tapeworm, since the transmission route runs through fleas rather than direct contact with pet feces. Treating your dog or cat for fleas does more to prevent this particular tapeworm than washing your hands after petting them.

For soil-transmitted worms, the stakes are different. Families living in or traveling to endemic areas should focus on safe water, footwear for children old enough to walk (hookworm larvae penetrate the skin of bare feet), and thoroughly washing produce. Babies who are crawling face unique exposure because they are constantly touching the ground and putting their hands and objects in their mouths. In endemic settings, periodic deworming is sometimes recommended even without confirmed infection, a strategy endorsed by the World Health Organization for preschool-age children in high-prevalence areas.

When to Call the Pediatrician

If you see something wriggling in your baby’s diaper, that is a clear reason to call. But even without a visible worm, certain symptoms warrant a stool check: persistent itching around the anus (especially at night), unexplained weight loss or poor weight gain, irritability and disrupted sleep, visible blood in the stool, or ongoing diarrhea. In a baby who has recently traveled to a tropical region or lives in a home with pets that have not been dewormed, the threshold for testing should be lower.

Bring the diaper or a stool sample in a sealed bag or container to the appointment if you can. A visual identification by the doctor is sometimes enough for pinworms or tapeworm segments. For other species, the lab will look for eggs under a microscope. If a tape test or stool test comes back negative but your suspicion remains strong, it is worth repeating. As noted earlier, a single test misses a substantial fraction of active infections, and testing on multiple mornings is standard practice for pinworms. Pediatricians are very used to fielding these concerns, and false alarms caused by banana fibers or mucus strands are just as familiar to them as actual worm sightings.