What Are Pinworms? Symptoms, Causes, and Treatment

Pinworms are tiny white parasitic worms that live in the human intestine and lay eggs on the skin around the anus, usually at night. They’re the most common worm infection in the United States and affect an estimated 200 million people worldwide. Despite how unsettling they sound, pinworm infections are generally harmless and easy to treat.

What Pinworms Look Like

Pinworms are small, thin, white worms that resemble a short piece of thread. Females are the ones you’re most likely to spot, measuring 8 to 13 millimeters long, roughly the length of a staple. Males are much smaller at about 2.5 millimeters and are rarely seen. The female has a distinctive pointed tail, which is where the name “pinworm” comes from.

You might notice them in the stool or around the anus, especially at night when the females migrate out of the intestine to lay eggs. They’re often described as looking like tiny wriggling white threads. The eggs themselves are invisible to the naked eye.

Who Gets Pinworms

Children between ages 5 and 10 are by far the most affected group, accounting for over 30% of all cases. A large global analysis found that primary school-aged children had a pooled infection rate of about 34.7%. But pinworms aren’t limited to kids. Parents, caregivers, and anyone living in the same household as an infected child can easily pick them up. Institutional settings like daycares and schools are common hotspots because of how easily the eggs spread between people.

Pinworm infections have nothing to do with hygiene or cleanliness. Even in well-kept homes, the microscopic eggs spread readily through everyday contact.

How Pinworms Spread

The cycle starts when a person unknowingly swallows pinworm eggs. Once in the small intestine, the eggs hatch and the larvae travel to the large intestine, where they mature into adults. At night, female worms crawl out of the anus and deposit thousands of eggs on the surrounding skin. This triggers intense itching. When the person scratches, eggs get under the fingernails and onto the hands, where they transfer to surfaces, food, clothing, or other people.

Eggs can survive on surfaces like countertops, toilet seats, bedding, and toys for two to three weeks. They’re light enough to become airborne when you shake out contaminated bedding or clothing, meaning they can also be inhaled and swallowed. This is one reason reinfection is so common, even after treatment. A single infected person can contaminate an entire household without anyone realizing it.

Symptoms to Recognize

The hallmark symptom is itching around the anus, especially at night. This happens because the female worms deposit eggs on the skin in a sticky substance that irritates the area. The itching can range from mild to intense enough to wake you or your child from sleep.

Beyond itching, common signs include restless sleep, irritability (particularly in young children), and difficulty staying asleep through the night. Some people notice small white worms in their stool or on their underwear. Many infections, however, cause no symptoms at all, which means a person can spread eggs for weeks without knowing they’re infected. Serious complications are rare, though persistent scratching can occasionally lead to skin irritation or secondary bacterial infections around the anus.

How Pinworms Are Diagnosed

Pinworm eggs are rarely found in stool samples, so the standard test uses a different approach: the tape test. You press a piece of clear adhesive tape against the skin around the anus, sticky side down, to collect any eggs the worms deposited overnight. The tape is then placed on a glass slide or sealed in a container and brought to a healthcare provider, who examines it under a microscope.

Timing matters. The test works best first thing in the morning, before the person bathes, uses the bathroom, or gets dressed. It should be repeated on three consecutive mornings because the worms don’t necessarily lay eggs every single night. A single negative test doesn’t rule out infection. Wash your hands thoroughly after handling the tape, and avoid touching your face during the process.

Treatment

Pinworm infections are treated with a two-dose medication schedule. The first dose kills the adult worms, and the second dose, given two weeks later, eliminates any worms that hatched from eggs in the meantime. This two-dose approach is necessary because the medications don’t kill eggs, only live worms.

One option, pyrantel pamoate, is available over the counter at most pharmacies. Two other options, mebendazole and albendazole, require a prescription. All three are taken by mouth and are effective in a single dose per round. Most healthcare providers recommend treating the entire household at the same time, even family members who don’t have symptoms, because the eggs spread so silently that others are likely already carrying the infection.

Cleaning Your Home During Treatment

Medication alone won’t break the cycle if your home is still contaminated with viable eggs. On the morning you start treatment, wash all bedding, pajamas, underwear, washcloths, and towels in hot water, at least 130°F, and dry them on high heat. The heat kills the eggs. Handle contaminated items carefully and avoid shaking them out, which can send eggs into the air.

Other steps that help prevent reinfection:

  • Fingernails: Keep them trimmed short to reduce the number of eggs that can collect underneath.
  • Morning showers: Bathing first thing in the morning helps wash away eggs deposited overnight.
  • Hand washing: Scrub hands thoroughly with soap and warm water after using the bathroom, before eating, and after changing diapers or bedding.
  • Surfaces: Wipe down bathroom surfaces, doorknobs, and frequently touched areas regularly during the treatment period.
  • Underwear: Change underwear daily, and consider changing it twice a day during active treatment.

Pinworm eggs are hardy, but consistent hygiene for two to three weeks after treatment, combined with the second medication dose, is usually enough to clear the infection completely. Reinfection is common in households with young children, so repeating these cleaning habits during any recurrence makes a real difference.