Pinworms in Children: Symptoms, Treatment & Prevention

Medically reviewed | Last reviewed: | Evidence level: 1A
Pinworms (threadworms) are the most common intestinal worm infection in children. The main symptom is intense itching around the bottom, especially at night. Treatment involves medication for the whole family combined with strict hygiene measures. Pinworms are not dangerous but are highly contagious and can easily spread within households and schools.
📅 Published:
⏱️ Reading time: 12 minutes
Written and reviewed by iMedic Medical Editorial Team | Specialists in Pediatrics

📊 Quick facts about pinworms

Prevalence
20-40%
of children affected
Most common age
5-10 years
school-age children
Incubation
3-7 weeks
from infection to symptoms
Treatment success
>90%
with 2 doses
Egg survival
2-3 weeks
on surfaces
ICD-10 code
B80
Enterobiasis

💡 Key takeaways about pinworms

  • Treat the whole family: Everyone in the household should take medication at the same time, even without symptoms
  • Two doses required: Take medication again after 2 weeks because the first dose doesn't kill eggs
  • Confirm before treating: Only start medication after actually seeing worms - itching alone can have other causes
  • Hygiene is essential: Handwashing, nail trimming, and daily bedding changes help prevent reinfection
  • Not from pets: Human pinworms only infect humans - you cannot catch them from dogs or cats
  • Children can attend school: Pinworm infection is not a reason to stay home from school or daycare

What Are Pinworms and How Do They Look?

Pinworms (Enterobius vermicularis) are small, thin, white parasitic worms that infect the human intestine. Adult female worms are 8-13mm long and look like tiny pieces of white thread. They are most visible around the anus at night when females emerge to lay eggs.

Pinworm infection, medically known as enterobiasis, is the most common parasitic worm infection in developed countries. It affects an estimated 200 million people worldwide, with children between 5 and 10 years of age being the most commonly affected group. Studies suggest that 20-40% of children will experience a pinworm infection at some point during childhood.

The pinworm lifecycle begins when microscopic eggs are swallowed. These eggs hatch in the small intestine, and the larvae migrate to the large intestine where they mature into adult worms over 2-6 weeks. Adult female pinworms are about 8-13mm (roughly half an inch) long, while males are smaller at 2-5mm. The worms are white, very thin, and resemble small pieces of thread or dental floss.

The female worms live for approximately 6-8 weeks. At night, they migrate out of the anus to lay eggs on the surrounding skin. A single female can deposit 10,000-15,000 eggs before dying. This egg-laying process causes the characteristic intense itching that is the hallmark symptom of pinworm infection. The eggs become infectious within a few hours and can survive on surfaces for 2-3 weeks under favorable conditions.

Why Are Pinworms So Common in Children?

Several factors make children particularly susceptible to pinworm infection. Young children frequently put their hands in their mouths, making it easy to swallow pinworm eggs that may be on their fingers from touching contaminated surfaces. Close contact with other children at school and daycare facilitates transmission, as do shared sleeping arrangements and the common childhood habit of nail-biting.

Importantly, pinworms are not a sign of poor hygiene. Even in the cleanest households, pinworm infections occur regularly. The microscopic eggs are easily spread through normal daily activities, and children naturally engage in behaviors that promote transmission. Understanding this helps reduce the stigma that some families feel when dealing with a pinworm infection.

Medical terminology:

Pinworms are known by several names around the world. In the UK and Australia, they're commonly called "threadworms." The scientific name is Enterobius vermicularis, and the infection is called enterobiasis or oxyuriasis. Despite the different names, they all refer to the same small white worm.

What Are the Symptoms of Pinworms in Children?

The main symptom of pinworms is intense itching around the anus (bottom), which is typically worst at night. Other symptoms include sleep disturbance, irritability, restlessness, and visible white worms around the anus or in stool. Many infections cause no symptoms at all.

The classic symptom of pinworm infection is perianal itching - intense itching around the opening of the bottom. This itching is characteristically worse in the evening and at night because this is when the female worms migrate out of the anus to lay their eggs. The warmth of bedding seems to stimulate this activity, which is why symptoms often appear shortly after a child goes to bed.

The itching can be quite distressing for children. Young children who cannot yet verbalize their discomfort may show their distress through specific behaviors. Toddlers and babies may kick their legs vigorously, wriggle around on their bottoms, or seem generally irritable, especially at bedtime. Older children will often complain directly about itching or may be caught scratching.

Sleep disturbance is a common consequence of the nighttime itching. Children may have difficulty falling asleep, wake frequently during the night, or sleep restlessly. This can lead to daytime tiredness, irritability, difficulty concentrating at school, and behavioral changes. Parents sometimes notice that their child seems unusually cranky or moody before the pinworm infection is discovered.

Visible Signs of Pinworms

Adult pinworms can often be seen with the naked eye. They appear as small, thin, white worms - about the length and thickness of a staple - around the anal opening. The best time to look for them is 2-3 hours after the child has fallen asleep or first thing in the morning before the child bathes or uses the toilet. Using a flashlight, gently spread the buttocks and look around the anal area for moving white threads.

You may also notice pinworms in your child's stool (bowel movements). They appear as small white threads, sometimes moving, mixed with the feces. Occasionally, worms may be visible on the child's underwear or pajamas in the morning. Seeing actual worms is the most reliable way to confirm a pinworm infection.

Symptoms in Girls

In girls, pinworms can sometimes migrate from the anal area into the vagina, causing vaginal itching, discharge, or irritation. The vulva and vaginal opening may appear red and swollen. This is called vulvovaginitis and is a relatively common complication in girls with pinworm infection. If your daughter has unexplained vaginal symptoms, pinworms should be considered as a possible cause.

When There Are No Symptoms

It's important to know that many people with pinworms have no symptoms at all, especially if it's a mild infection with few worms. This is why pinworms can spread through families and classrooms - infected individuals who don't know they're infected continue to spread eggs. When one family member is diagnosed with pinworms, the entire household should be treated even if others have no symptoms.

When to be concerned:

While pinworms themselves are not dangerous, excessive scratching can lead to secondary bacterial skin infections. If you notice redness, swelling, warmth, or discharge around the anal area beyond what would be expected from the pinworm infection itself, consult a healthcare provider as antibiotic treatment may be needed.

How Do Children Get Pinworms?

Pinworms spread through the fecal-oral route when microscopic eggs are swallowed. Children typically become infected by touching contaminated surfaces (toys, bedding, doorknobs) and then putting their fingers in their mouths. Reinfection is extremely common because children scratch the itchy area and transfer eggs to their mouths.

Understanding how pinworms spread is essential for preventing reinfection. The transmission cycle begins when pinworm eggs are accidentally swallowed. These eggs are microscopic - completely invisible to the naked eye - and can survive on surfaces for 2-3 weeks. When eggs reach the small intestine, they hatch, and the larvae migrate to the large intestine to mature into adult worms.

After mating, the female worms migrate to the anal area at night to lay eggs. This egg-laying causes intense itching, which leads children to scratch. When they scratch, eggs get under their fingernails and onto their hands. If the child then touches their mouth - which children do constantly throughout the day - they swallow the eggs and become reinfected. This is called autoinfection (self-reinfection) and is why pinworm infections are so persistent.

The eggs also spread to the environment. When an infected person handles objects, eggs transfer to those surfaces. Eggs can be found on doorknobs, toys, toilet seats, bathroom fixtures, food, drinking glasses, eating utensils, clothing, bedding, and furniture. When another person touches these contaminated surfaces and then touches their mouth, they become infected.

Airborne Transmission

Pinworm eggs can become airborne when contaminated bedding, clothing, or towels are shaken. The eggs are light enough to float in the air and may be inhaled or may settle on food or surfaces. This is why it's important not to shake bedding when washing it - carefully bundle it and place it directly in the washing machine.

Timeline of Infection

The time from swallowing eggs to developing symptoms is typically 3-7 weeks. This is how long it takes for eggs to hatch, larvae to mature into adults, and adult females to begin laying eggs. Because of this delay, it can be difficult to identify where an infection came from - by the time symptoms appear, the exposure may have occurred weeks earlier.

Good news about pets:

Human pinworms (Enterobius vermicularis) are species-specific - they only infect humans. Your family cannot catch pinworms from dogs, cats, or other pets, and your pets cannot catch pinworms from infected family members. However, if an infected person pets a cat or dog, eggs could theoretically be present on the animal's fur, though this is an uncommon route of transmission.

How Are Pinworms Diagnosed?

Pinworms are usually diagnosed by seeing the actual worms around the anus or in stool. The "tape test" (pressing clear tape against the anal area in the morning) can collect eggs for microscopic examination. Only treat if you have confirmed worms are present - itching alone can have other causes.

The most straightforward way to diagnose pinworms is to visually identify the worms. Adult female pinworms are large enough to see without any special equipment. They appear as small, thin, white threads - about 8-13mm long - around the anal opening. The best time to look is at night, 2-3 hours after the child has fallen asleep, or first thing in the morning before bathing.

To check for pinworms, use a flashlight and gently spread the child's buttocks to examine the skin around the anus. Look for tiny white threads that may be moving. You may also see pinworms in the child's stool - they appear as small white threads mixed with the feces. Sometimes worms are visible on pajamas or underwear in the morning.

The Tape Test

If you suspect pinworms but cannot see them, your healthcare provider may recommend a "tape test" (also called the paddle test or cellophane tape test). This involves pressing a piece of clear adhesive tape against the skin around the anus first thing in the morning - before the child bathes, uses the toilet, or wipes. The tape picks up any eggs that were deposited overnight.

The tape is then stuck to a glass slide and examined under a microscope to look for eggs. Because female worms don't lay eggs every night, the test may need to be repeated on 3 consecutive mornings to improve accuracy. Your healthcare provider will give you specific instructions and supplies if this test is needed.

When to Seek Professional Diagnosis

In most cases, seeing the actual worms is sufficient to diagnose pinworms, and you can proceed with over-the-counter treatment. However, you should consult a healthcare provider if:

  • You're unsure whether what you're seeing is actually pinworms
  • Itching persists despite treatment
  • The child is under 2 years old
  • The child or any family member is pregnant
  • There are signs of secondary infection (redness, swelling, discharge)
  • You have questions about treatment for your specific situation
Important:

Do not start treatment unless you have actually seen worms. Anal itching can have many causes other than pinworms, including skin conditions, hemorrhoids, allergies, and other issues. Treating for pinworms when there is no infection will not help and may delay proper diagnosis and treatment of the actual problem.

How Are Pinworms Treated?

Pinworms are treated with antiparasitic medication - typically mebendazole or pyrantel pamoate - given as a single dose and repeated after 2 weeks. Everyone in the household should be treated simultaneously. The medications kill adult worms but not eggs, which is why the second dose is essential.

The treatment of pinworm infection involves two key components: medication to kill the worms and hygiene measures to prevent reinfection. Both are necessary for successful treatment - medication alone often fails because of reinfection from eggs in the environment.

Medication Options

Two medications are commonly used to treat pinworms, both of which are highly effective:

Mebendazole (brand names include Vermox, Ovex) is a broad-spectrum antiparasitic medication that works by preventing worms from absorbing sugars, causing them to die. It's available as tablets or liquid. The standard dose is a single tablet (100mg), repeated after 2 weeks. Mebendazole is approved for children aged 2 years and older. One common side effect is that it may temporarily color the stool.

Pyrantel pamoate (brand names include Pin-X, Reese's Pinworm Medicine) works by paralyzing the worms, which are then expelled in the stool. It's available over-the-counter without a prescription in many countries. The dose is based on body weight - typically 11mg per kg, up to a maximum of 1 gram. Like mebendazole, it's given once and repeated after 2 weeks.

Albendazole is another effective option, particularly when other treatments fail or are not available. It requires a prescription in most countries.

Why the Second Dose Is Essential

All pinworm medications kill adult worms and larvae, but they do not kill eggs. Because eggs in the environment can survive for 2-3 weeks and eggs already in the intestine will hatch after the first treatment, a second dose is necessary to kill any newly hatched worms before they can mature and lay more eggs. Without the second dose, reinfection is almost guaranteed.

Treating the Whole Family

Because pinworms spread so easily and many infected people have no symptoms, all household members should be treated at the same time. This includes adults and children, even those without symptoms. Treating only the symptomatic person usually results in reinfection from other household members who are unknowingly infected.

Comparison of Pinworm Medications
Medication Age Limit Prescription How It Works
Mebendazole 2 years and older OTC in some countries, Rx in others Prevents worms from absorbing sugars
Pyrantel pamoate 2 years and older Over-the-counter Paralyzes worms
Albendazole 2 years and older Prescription required Prevents worms from absorbing sugars

Special Considerations

Children under 2 years: Consult a healthcare provider before treating very young children, as medication doses may need adjustment.

Pregnancy: Pregnant women should consult their healthcare provider. Pyrantel is generally considered safe during pregnancy, while mebendazole should be avoided during the first trimester.

Breastfeeding: Both mebendazole and pyrantel are considered safe to use while breastfeeding.

What Hygiene Measures Help Treat and Prevent Pinworms?

Strict hygiene during treatment is crucial to prevent reinfection. Key measures include thorough handwashing, daily bathing or showering in the morning, keeping fingernails short, daily changes of underwear and bedding, and hot water washing of all potentially contaminated items.

Hygiene measures are just as important as medication in treating pinworms. Without proper hygiene, the eggs that remain in the environment will continue to cause reinfection even after taking medication. Here are the essential hygiene practices to follow:

Hand Hygiene

Thorough handwashing is the single most important measure. All family members should wash their hands:

  • After using the toilet
  • After changing diapers
  • Before preparing or eating food
  • First thing in the morning upon waking
  • After scratching the anal area

Use warm water and soap, washing for at least 20 seconds. Pay special attention to cleaning under fingernails, where eggs can hide. Using liquid soap is preferable to bar soap during an active infection.

Morning Bathing

Bathe or shower every morning, first thing upon waking. This removes eggs that were deposited overnight. A morning bath is particularly important during the treatment period. Baths should be followed by a thorough rinse - preferably a shower - as eggs can persist in bath water.

Fingernail Care

Keep everyone's fingernails trimmed short and clean. Eggs accumulate under fingernails when people scratch, and short nails reduce this hiding place. Discourage nail-biting, which transfers eggs from fingers to mouth.

Clothing and Bedding

During treatment, implement these measures:

  • Change underwear and pajamas daily - preferably twice daily if possible
  • Change bed sheets, pillowcases, and blankets daily during the treatment period
  • Don't shake bedding or clothing - this spreads eggs into the air
  • Wash all clothing and bedding in hot water (at least 60°C/140°F)
  • Dry on high heat or in direct sunlight
  • Have children wear snug-fitting underwear to bed (this limits scratching and egg spreading)

Environmental Cleaning

  • Vacuum bedroom floors and mattresses daily
  • Damp-dust surfaces (dry dusting spreads eggs)
  • Clean toilet seats, flush handles, and bathroom faucets daily
  • Wash frequently-touched items like doorknobs and light switches
  • Wash stuffed animals and soft toys in hot water (or seal in plastic bag for 3 weeks)
How long to maintain strict hygiene:

Continue these intensive hygiene measures for at least 2-3 weeks after the second dose of medication. This ensures any remaining eggs in the environment have died (eggs survive about 2-3 weeks outside the body) and any remaining worms have been eliminated.

Can Children with Pinworms Go to School?

Yes, children with pinworms can and should continue attending school and daycare. Pinworm infection is not a reason to stay home. However, extra attention to hand hygiene at school is important, and it may be helpful to inform the school so they can remind all children about handwashing.

Unlike some infections that require children to stay home, pinworm infection is not considered a reason for school exclusion in most countries' health guidelines. Children with pinworms can continue their normal school and daycare attendance whether or not they have started treatment.

The reasoning behind this policy is practical: pinworms are extremely common, often asymptomatic, and excluding symptomatic children would have little impact on overall transmission since many asymptomatic children are also shedding eggs. Additionally, keeping children home causes unnecessary disruption to families and children's education.

What Parents Should Do

While your child can attend school, taking some precautions helps limit spread:

  • Start treatment as soon as possible after confirming the infection
  • Ensure your child washes hands thoroughly before leaving for school in the morning
  • Pack hand sanitizer or remind your child to wash hands before eating at school
  • Keep fingernails short
  • Consider informing the school so staff can reinforce hand hygiene with all students

Informing the School

While not required, telling your child's school or daycare about the pinworm infection can be helpful. This allows staff to:

  • Remind all children about proper handwashing
  • Alert other parents to watch for symptoms
  • Ensure bathroom and hand hygiene protocols are being followed

There is no need to feel embarrassed about reporting pinworms - they are extremely common, not related to cleanliness, and schools deal with them regularly. Some schools and daycare centers have their own policies about notification, so it's worth asking about their specific guidelines.

When Should You See a Doctor for Pinworms?

See a healthcare provider if symptoms persist after completing two doses of medication, if the child is under 2 years old, if anyone in the household is pregnant, if there are signs of secondary infection, or if you're unsure about diagnosis or treatment.

Most pinworm infections can be successfully treated at home with over-the-counter medications. However, certain situations warrant professional medical advice:

  • Treatment failure: If symptoms continue after completing both doses of medication (first dose plus repeat at 2 weeks), see a healthcare provider. Persistent infection may require different medication or investigation of ongoing reinfection sources.
  • Young children: If the child needing treatment is under 2 years old or weighs less than 10 kg, consult a healthcare provider for appropriate dosing guidance.
  • Pregnancy: Pregnant women should discuss treatment options with their healthcare provider before taking any medication.
  • Secondary infection: If the anal area shows signs of bacterial infection - increased redness spreading beyond the immediate area, swelling, warmth, discharge, or if the child develops fever - medical evaluation is needed.
  • Uncertain diagnosis: If you're not sure whether the symptoms are caused by pinworms, a healthcare provider can help determine the cause and appropriate treatment.
  • Severe symptoms: While rare, some children experience significant sleep disturbance, behavioral changes, or vaginal symptoms that warrant medical evaluation.

In most areas, you can contact your primary care provider, pediatrician, or a nurse advice line for guidance. In non-urgent situations, many providers can give advice over the phone or through telehealth visits.

How Can You Prevent Pinworm Reinfection?

Preventing reinfection requires ongoing attention to hygiene: regular handwashing (especially after toilet use and before eating), keeping fingernails short, daily underwear changes, regular washing of bedding, and avoiding nail-biting and scratching.

Even after successful treatment, pinworm reinfection is common because the eggs are so prevalent in the environment and among other children. While you cannot completely eliminate the risk, good hygiene habits significantly reduce the chances of reinfection.

Ongoing Prevention Practices

  • Hand hygiene: Maintain the habit of thorough handwashing after using the toilet and before eating. This is the most effective prevention measure.
  • Nail care: Keep fingernails trimmed short and clean. Discourage nail-biting.
  • Morning hygiene: Have children wash their hands (and optionally shower or bathe) first thing in the morning.
  • Underwear and pajamas: Change daily. Consider having children wear underwear to bed to minimize scratching.
  • Bedding: Wash sheets and pillowcases weekly in hot water.
  • Avoid scratching: Teach children not to scratch their bottoms. If they do, have them wash their hands immediately.

Teaching Children Good Habits

Prevention ultimately depends on children developing good hygiene habits. Teach children to:

  • Wash hands for at least 20 seconds with soap
  • Not put fingers in their mouths
  • Not bite their nails
  • Tell a parent if they have itching

Make handwashing fun with songs or timers. Praise children when they remember to wash their hands without being reminded.

Frequently Asked Questions About Pinworms

Pinworms are small, thin, white worms that look like tiny pieces of thread or dental floss. Adult female pinworms are about 8-13mm (1/3 to 1/2 inch) long, while males are smaller at 2-5mm. You can often see them moving around the anal area at night when the female worms emerge to lay eggs. They may also be visible in stool, looking like small white threads.

Pinworms spread through the fecal-oral route. Microscopic pinworm eggs are swallowed, often by touching contaminated surfaces (toys, bedding, bathroom fixtures) and then touching the mouth. Children commonly reinfect themselves by scratching the itchy anal area and then putting fingers in their mouths. Eggs can survive on surfaces for 2-3 weeks and may become airborne when shaking bedding or clothing.

Pinworm medication (mebendazole or pyrantel) kills adult worms within 1-2 days, and you may see dead worms in the stool. However, the medication does not kill eggs, which is why a second dose is required after 2 weeks to eliminate any newly hatched worms. Full clearance typically takes 2-3 weeks with proper treatment and hygiene measures.

Yes, it is strongly recommended to treat all household members simultaneously, even if they don't have symptoms. Pinworm infection can be asymptomatic, and treating only the symptomatic person often leads to reinfection from other household members. Treating everyone at the same time breaks the transmission cycle and is more effective at eliminating the infection.

No, pinworms (Enterobius vermicularis) are species-specific and only infect humans. Dogs, cats, and other pets have their own species of worms but cannot transmit pinworms to humans or become infected with human pinworms. However, pinworm eggs could theoretically be on a pet's fur if the pet was in contact with contaminated surfaces, though this is rare.

While adult pinworms only live for about 6-8 weeks, pinworm infections rarely resolve without treatment because continuous reinfection occurs. When children scratch the itchy area and put fingers in their mouths, they swallow eggs and restart the infection cycle. Strict hygiene alone might eventually eliminate the infection, but this is very difficult to maintain, especially with children. Medical treatment is much more effective and faster.

References and Sources

Evidence Level 1A

This article is based on systematic reviews, clinical guidelines, and peer-reviewed research from internationally recognized medical organizations. All information follows the GRADE evidence framework.

Clinical Guidelines

  1. Centers for Disease Control and Prevention (CDC). Parasites - Enterobiasis (also known as Pinworm Infection). https://www.cdc.gov/parasites/pinworm/
  2. World Health Organization (WHO). Soil-transmitted helminth infections. Fact sheet. 2024.
  3. American Academy of Pediatrics. Red Book: Report of the Committee on Infectious Diseases. 32nd ed. 2024.

Peer-Reviewed Research

  1. Wendt S, Trawinski H, Schubert S, Rodloff AC, Schwabe D, Stensvold CR. The Diagnosis and Treatment of Pinworm Infection. Dtsch Arztebl Int. 2019;116(13):213-219.
  2. Kucik CJ, Martin GL, Sortor BV. Common intestinal parasites. Am Fam Physician. 2004;69(5):1161-1168.
  3. Burkhart CN, Burkhart CG. Assessment of frequency, transmission, and genitourinary complications of enterobiasis (pinworms). Int J Dermatol. 2005;44(10):837-840.

Treatment Guidelines

  1. UpToDate. Enterobiasis (pinworm) and trichuriasis (whipworm). Wolters Kluwer. 2024.
  2. British National Formulary (BNF). Mebendazole. NICE. 2024.

About Our Medical Editorial Team

Quality Assurance

All content on iMedic is written and reviewed by licensed healthcare professionals. We follow strict editorial guidelines based on the GRADE evidence framework and international medical standards from WHO, CDC, and specialist medical associations.

Medical Writers

Our medical writers are healthcare professionals with expertise in translating complex medical information into clear, accessible content for patients and families.

Medical Reviewers

All articles are reviewed by board-certified physicians with relevant specialty expertise. This article was reviewed by specialists in pediatrics and infectious diseases.

Last medical review:

Next scheduled review: