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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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:
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.
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.
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.
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.
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.
| 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 |
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.
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:
Thorough handwashing is the single most important measure. All family members should wash their hands:
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.
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.
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.
During treatment, implement these measures:
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.
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.
While your child can attend school, taking some precautions helps limit spread:
While not required, telling your child's school or daycare about the pinworm infection can be helpful. This allows staff to:
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.
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:
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.
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.
Prevention ultimately depends on children developing good hygiene habits. Teach children to:
Make handwashing fun with songs or timers. Praise children when they remember to wash their hands without being reminded.
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.
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.
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.
Our medical writers are healthcare professionals with expertise in translating complex medical information into clear, accessible content for patients and families.
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:
Pinworms are common in children and do not usually require long isolation in the way some contagious illnesses do. The main concern is spread of microscopic eggs from hands, nails, underwear, bedding, or shared surfaces. School and daycare policies can vary, so many families follow the setting's local rules while treatment and hygiene measures are underway. Research-based infection-control guidance emphasizes handwashing, short clean nails, morning bathing, clean underwear, and careful laundering rather than prolonged absence from normal activities.
Pinworms can recur because the eggs survive long enough to be swallowed again, especially when they remain under fingernails, on bedding, pajamas, towels, or bathroom surfaces. Standard medicines such as mebendazole, pyrantel pamoate, or albendazole kill worms but do not reliably kill eggs, which is why clinicians often use a repeat dose about two weeks later. Recurrence does not necessarily mean the medicine failed; it often reflects reinfection from the child's own environment or from untreated close contacts.
Pinworms are not considered a reliable sign of neglect. They spread easily among children because eggs are microscopic, sticky, and transferred by ordinary hand-to-mouth contact. Preschool and school-age children are especially affected because they share spaces, toys, bathrooms, and bedding during sleepovers or childcare. Good hygiene reduces spread, but even careful families can experience repeat infections. Educational guidance frames pinworms as a common, treatable childhood infection rather than a marker of cleanliness, parenting quality, or household conditions.
Last reviewed: ยท Reviewed by iMedic Medical Editorial Team