Pinworms are tiny white roundworms (Enterobius vermicularis) that live in the lower intestine and cause anal itching, mostly at night. They are the most common worm infection in the United States, usually caught by children and passed to the rest of the household[1]. Treatment is two doses of medicine two weeks apart, ideally for everyone at home at the same time[1].
Pinworms are not dangerous for most people, but they are persistent. The medicines kill worms, not eggs, and eggs on fingers, sheets and toys restart the cycle[1]. This guide covers the signs, the tape test, why the whole family is treated, and a two-week plan to stop reinfection.
Get medical help promptly if you or your child has belly pain that keeps getting worse, scratched skin around the anus that is red, swollen or oozing, or burning when peeing alongside vaginal itching. Pinworms rarely cause problems beyond itching, but these can signal appendicitis, a skin infection or a urinary tract infection that needs a clinician[2][3].
What are pinworms?
Pinworms are parasitic roundworms that infect only humans. A single worm is about the size of a staple[1]. Females are 9 to 12 mm long and males 3 to 5 mm, both thin, whitish and visible to the naked eye[3]. Doctors call the infection enterobiasis or oxyuriasis; in the UK the worms are called threadworms[1][4].
How common are pinworms?
A 2023 meta-analysis of 42 datasets estimated that 12.9% of young children worldwide were infected over the past 20 years[5]. Rates vary widely: European kindergarten and primary-school studies often find close to 20%, while a Taipei survey of 44,163 preschoolers found just 0.21%[3][6]. Children aged 4 to 11 are affected most; infants under 2, teens over 14 and adults are infected far less often[3].
What is the life cycle of Enterobius vermicularis?
The whole cycle runs between the gut, the skin around the anus and the mouth[3]:
- Someone swallows eggs, usually from fingers. The eggs hatch in the small intestine.
- The worms mature and mate, then settle in the cecum, appendix and ascending colon. Males die soon after mating.
- Two to six weeks after the eggs were swallowed, pregnant females crawl out of the anus, mostly at night, and glue eggs to the surrounding skin. Each female carries more than 10,000 eggs.
- Larvae inside the eggs become infective within 4 to 6 hours. Scratching moves them to fingers, nails and underwear, and from there back to a mouth.
Females live up to 100 days, and the worms do not multiply inside the gut[3]. Every new worm comes from a swallowed egg, which is why stopping egg transfer matters as much as the medicine.
What are the signs of pinworms?
The main sign is itching around the anus that is worse at night, because that is when females lay eggs[1]. About 30 to 40% of infected people have no symptoms at all[7].
| Sign | How common | Why it happens |
|---|---|---|
| Anal itching at night | The most common symptom | Females crawl out and lay eggs on the skin[7] |
| Restless or broken sleep | Common | Itching wakes the child or adult[1] |
| Bedwetting in children | Reported in up to 53% of affected children in some studies | Linked to night-time itching and disturbed sleep[3] |
| Vaginal itching or irritation | Occasional | Worms can move from the anus to the vaginal area[1] |
| Red, scratched skin or rash | Occasional | Repeated scratching; can become infected[1] |
| Belly pain | Some people report it | Less clear; usually mild[1] |
| Weight loss | Less common | Listed as an uncommon sign[4] |
Daytime tiredness and poor concentration can follow from lost sleep[3]. Diarrhea is not a typical pinworm symptom; if it is the main problem, other causes of diarrhea are more likely.
Can adults get pinworms?
Yes, though adults get pinworms far less often than children, and usually because they live with or care for an infected child[3][1]. The symptoms are the same: night-time anal itching, and in women, vaginal itching[1]. Sexual partners can pass pinworms to each other, so a 2019 review recommends including partners in treatment when infections keep returning[3].
What do pinworms look like, and can you see them in poop?
Pinworms look like short pieces of white thread[4]. You are most likely to see them on the skin around the anus 2 to 3 hours after the person falls asleep, or on underwear and sheets[8]. They can show up on the surface of stool, but a 2019 review notes that worms are usually expelled in stool only when the infestation is heavy[4][3].
So how do you know if pinworms are in your poop? Look for thin white threads that move; a worm you can see and identify confirms the infection[3]. The eggs are microscopic and cannot be seen at all.
What gets mistaken for pinworms?
Anal itching has nearly 100 reported causes, and most of them are not worms[9]. If the itch is constant rather than mostly at night, or nobody else at home is affected, another cause is worth considering.
| Look-alike | How it differs | Where to read more |
|---|---|---|
| Hemorrhoids or fissures | The most common cause of anal itch in adults; may bleed or hurt with bowel movements[9] | Fiber for hemorrhoids |
| Fungal infection | Up to 15% of anal itch cases[9] | Candida and yeast infections |
| Contact dermatitis | Triggered by soaps, wet wipes, creams or dyed toilet paper[9] | Eczema |
| Psoriasis | Found in 5 to 55% of people with chronic anal itch in studies[9] | Psoriasis |
| Thread, lint or food fiber in stool | Does not move; pinworms crawl[3] | Bristol stool chart guide |
Diarrhea-causing parasites such as Giardia and Blastocystis hominis are a separate question. They are looked for in stool samples, while pinworm eggs rarely show up there[2]. Our guide to the ova and parasite stool test explains what stool testing can and cannot find.
How do you get pinworms, and why do they spread through families?
You get pinworms by swallowing eggs, usually after touching an infected area, or something an infected person touched, and then touching your mouth[1]. Eggs can also land on diapers, clothes, bedding and food, and rarely they float in the air and are breathed in and swallowed[1].
Families are the main route. An itchy child scratches, eggs collect under the nails and then reach toys, towels, toothbrushes and kitchen surfaces[4]. In the Taipei study, preschoolers with older brothers or sisters were more likely to be infected, and infrequent handwashing after the toilet was another independent risk factor[6]. Pinworm infections often involve more than one person in the same household[1].
How contagious are pinworms in children, and for how long?
Very contagious, and for as long as eggs are being laid. Eggs become infective 2 to 3 hours after they are laid[1]. CDC says they can survive 2 to 3 weeks on objects that are not cleaned, though laboratory work suggests most eggs at room temperature stop being infective after about 5 days[1][3]. Nail biting, thumb sucking and putting toys or pencils in the mouth all raise a child's risk[3].
Two common worries have clear answers. Pets cannot catch human pinworms or give them to you, and you are extremely unlikely to get pinworms in a swimming pool[10].
How to check for pinworms: the tape test
The tape test, also called the Scotch tape or cellophane tape test, is the standard way to diagnose pinworms[2][7]. Your clinician may ask you to collect it at home:
- Do it first thing in the morning, before the person washes, uses the toilet or gets dressed[8].
- Press the sticky side of a 1-inch (2.5 cm) strip of clear tape firmly against the skin around the anus for a few seconds[11].
- Stick the tape to a glass slide if one was provided, or seal it in a zip bag or specimen container[8].
- Repeat on three mornings in a row, then take the samples to the clinic[8].
- Avoid touching your face and wash your hands well afterwards[8].
A positive pinworm tape test means eggs were seen under the microscope, and household members usually need treatment too[11]. Three mornings matter. One tape test finds about 50% of infections, while three tests on separate mornings find about 90%[7]. Some clinics use a commercial paddle kit instead, and a clinician may also check under the fingernails for eggs[8].
A night check is the other option: look at the skin around the anus with a flashlight 2 to 3 hours after the person falls asleep[8]. If you see nothing, MedlinePlus suggests checking on 2 or 3 more nights[11]. Stool samples, urine tests and blood tests are not useful for pinworms[2].
Pinworm treatment: medicine and the two-dose rule
Pinworms are treated with a single dose of an anti-worm medicine, repeated two weeks later[2]. CDC explains that the medicines kill worms but not eggs, so the second dose catches worms that were still eggs during the first one[1].
| Medicine | US availability | Dose CDC lists for clinicians | Notes |
|---|---|---|---|
| Pyrantel pamoate | Over the counter | 11 mg/kg once (max 1 g), repeated in 2 weeks | Liquid, capsules or chewables; kills adult worms only[2][7] |
| Mebendazole | Prescription (sold in UK pharmacies) | 100 mg once, repeated in 2 weeks | Only about 7% is absorbed; reviews describe it as active against eggs too[2][3][4] |
| Albendazole | Prescription | 400 mg once on an empty stomach, repeated in 2 weeks | Reviews describe it as active against eggs too; fewer safety data than mebendazole[2][3] |
Reviews report eradication rates above 90% with these drugs, although no large randomized trials compare them[3]. Side effects are usually short-lived: headache, stomach pain or diarrhea[3]. Follow the product label or your clinician's instructions for the dose; pyrantel is dosed by body weight.
Why the whole household is treated
CDC advises treating the infected person, their caregivers and everyone in the household at the same time, with the same two-dose schedule[1]. Many carriers have no symptoms, and one untreated person can reinfect everyone else[7]. The NHS advises treating everyone aged 2 and over at home, even without symptoms[4].
For infections that keep coming back, a 2019 review describes a "pulse" approach: everyone in the household, including partners, takes a single dose of mebendazole every 14 days for 16 weeks under medical supervision[3]. In childcare centers and institutions, CDC notes that treating everyone at once and again two weeks later can be effective[2].
Children under 2, pregnancy and breastfeeding
These groups need a clinician's or pharmacist's advice first[4]. CDC says the risks and benefits should be weighed for children under 2[2]. In pregnancy, guidance differs: CDC suggests treatment can be considered if the infection is affecting the pregnancy, ideally in the third trimester, while review authors variously favor mebendazole or pyrantel[2][3][7]. CDC notes that breastfeeding does not need to stop during mebendazole treatment[2].
Do home remedies work?
There is no good evidence that home remedies treat pinworms. A 2019 review describes "garlic cures" and intestinal cleansing as obsolete[3]. If someone at home cannot take medicine, the NHS suggests strict hygiene steps for 6 weeks instead of 2, which outlasts the worms' lifespan[4].
How to stop pinworms coming back: a two-week home plan
Reinfection, not the first dose, is the hard part[3]. CDC asks everyone in the household to follow these steps until two weeks after the last dose[10]:
- Wash hands with soap and warm water after the toilet, after diaper changes and before handling food[10].
- Keep nails short and scrub them; trim them after treatment, and discourage nail biting and scratching[10].
- Shower every morning to remove eggs laid overnight, and change underwear daily. Use showers rather than shared baths[10].
- Wash night clothes, underwear, towels and bedding in hot water, at least 130°F, and dry on a hot setting. Do not shake them first[10].
- Use your own towel and washcloth, and rinse toothbrushes before use[10][4].
- Wear underwear at night, so eggs land on fabric rather than sheets[4].
What kills pinworm eggs on surfaces?
Heat and physical removal are what the guidelines rely on. The NHS suggests disinfecting kitchen and bathroom surfaces with hot water, vacuuming, and dusting with a damp cloth[4]. Washing soft toys hot for several days after treatment also helps[4]. There is no need to deep-clean the whole house: house design and cleaning methods were not linked to infection rates in individual studies, and extra scrubbing beyond normal hygiene does not help[3].
Do pinworms change your gut bacteria?
Pinworms live in the large intestine alongside the densest part of the gut microbiome, and research suggests they change it. A 2021 meta-analysis of human studies (424 infected and 497 uninfected people in the pooled data) found that intestinal worms raise microbial diversity and reshuffle which bacteria dominate[12]. Of all the species studied, E. vermicularis and whipworm, the two that live in the large intestine, had the strongest effect[12].
A study of 109 Taiwanese schoolchildren looked at pinworms specifically[13]. Infected children had more diverse gut bacteria, more Bifidobacterium and fewer Fusobacteria than uninfected children. Two weeks after one 100 mg dose of mebendazole, diversity rose further. Secretory IgA, an antibody that helps the gut lining manage its bacteria, was lower in infected children and rose in about half of them after treatment[13].
These are associations from a small study, not proof that pinworms are good or bad for the microbiome[13]. They do not support leaving an infection untreated.
What happens if pinworms are not treated?
Most untreated infections stay mild, but they often keep going because people keep swallowing new eggs[7]. Without that reinfection, the infection would end on its own as the worms die[3]. Complications are uncommon:
- Skin infection from scratching, sometimes with dermatitis or folliculitis[3].
- Vulvovaginitis, and urinary tract infections linked to Escherichia coli carried on the worms[3].
- Poor sleep and daytime tiredness, with knock-on effects on concentration[3]; see our page on insomnia.
- Appendicitis, rarely. A 2020 meta-analysis of 103,195 appendix specimens found pinworms in about 4% of appendicitis cases, but whether they cause it has never been reliably shown[14][3].
Pinworms do not cause invasive infection elsewhere in the body, even in people with weakened immune systems[3].
When to see a doctor
See a clinician or pharmacist if:
- anyone in the house has night-time anal itching, so the cause can be confirmed with a tape test[1];
- the person is under 2, pregnant or breastfeeding, before using any pinworm medicine[4][2];
- symptoms return after two treatment courses, which may call for a supervised longer schedule[3];
- the itch is constant, bleeds, or nobody else at home is affected, which points to other causes[9];
- there is vaginal discharge, pain when peeing, broken or infected skin, or belly pain that keeps getting worse[2][3].
This article is for general educational purposes and is not medical advice. Medicine availability and dosing differ by country and product, so follow the label or your clinician's instructions. Talk to a qualified healthcare professional before treating pinworms, particularly if you are pregnant or breastfeeding, treating a child under 2, immunocompromised, taking prescription medication, or managing a diagnosed condition.
Frequently Asked Questions
Do pinworms go away on their own?
In theory they can, because adult female pinworms live up to about 100 days and the worms do not multiply inside the gut. In practice, scratching carries new eggs from the skin back to the mouth, so the cycle keeps restarting. That is why CDC recommends medicine for the infected person and their household, plus two weeks of hygiene steps after the last dose.
Can I sleep in the same bed as someone with pinworms?
Eggs are laid at night on the skin around the anus and can end up on sheets and pajamas, where they may survive for up to 2 to 3 weeks if not washed. CDC advises changing and hot-washing bedding and night clothes often, without shaking them, during treatment. Because household members are treated at the same time anyway, sharing a bed matters less than washing bedding and hands.
What happens if you take pinworm medicine and don't have pinworms?
Household members are usually treated even without symptoms, because about 30 to 40% of infected people have none and an untreated carrier can reinfect everyone. The drugs are generally well tolerated; reported side effects are mostly short-lived headache, stomach pain, nausea or diarrhea. Ask a pharmacist or clinician first for anyone under 2, pregnant or breastfeeding.
Can you get pinworms from a swimming pool?
It is very unlikely. CDC states that you are extremely unlikely to get a pinworm infection in a swimming pool. Shared tub baths are a different matter: CDC suggests showers instead of baths and separate baths for children during treatment, because bath water can spread eggs.
How did the first human get pinworms?
Nobody knows exactly, but pinworms have lived with people for a very long time. A 2019 review notes that Enterobius vermicularis is thought to have been a human parasite since the evolution of hominids, and fossil findings show the two have coexisted for many thousands of years. Pinworms infect only humans, so they are not caught from pets or other animals today.
Do pinworms mean bad hygiene?
No. Pinworm infection is seen at all social levels in industrialized countries, and the main risk factors in children are ordinary behaviors such as nail biting, putting fingers or toys in the mouth and unsupervised handwashing. Extra scrubbing beyond normal hygiene does not help, according to a 2019 review. A clean house does not rule pinworms out, and infection says nothing about how well a family keeps house.
Can my child go to school or daycare with pinworms?
The NHS advises that there is no need to stay off nursery, school or work with threadworms, the UK name for pinworms. Treatment and handwashing are what limit spread. Because outbreaks are common in childcare settings, CDC notes that facilities sometimes treat everyone at the same time, repeated two weeks later.
References
- Centers for Disease Control and Prevention. About Pinworm Infection. CDC: Pinworm Infection. 2024. Available at: https://www.cdc.gov/pinworm/about/index.html ↩
- Centers for Disease Control and Prevention. Clinical Overview of Pinworm Infection. CDC: Pinworm Infection, For Health Care Providers. 2024. Available at: https://www.cdc.gov/pinworm/hcp/clinical-overview/index.html ↩
- Wendt S, Trawinski H, Schubert S, Rodloff AC, Mössner J, Lübbert C. The Diagnosis and Treatment of Pinworm Infection. Deutsches Ärzteblatt International. 2019;116(13):213-219. doi:10.3238/arztebl.2019.0213 ↩
- National Health Service. Threadworms. NHS Conditions. 2023. Available at: https://www.nhs.uk/conditions/threadworms/ ↩
- Lashaki EK, Mizani A, Hosseini SA, et al.. Global prevalence of enterobiasis in young children over the past 20 years: a systematic review and meta-analysis. Osong Public Health and Research Perspectives. 2023;14(6):441-450. doi:10.24171/j.phrp.2023.0204 ↩
- Chen KY, Yen CM, Hwang KP, Wang LC. Enterobius vermicularis infection and its risk factors among pre-school children in Taipei, Taiwan. Journal of Microbiology, Immunology and Infection. 2018;51(4):559-564. doi:10.1016/j.jmii.2016.12.013 ↩
- Leung AK, Lam JM, Barankin B, Wong AH, Leong KF, Hon KL. Pinworm (Enterobius Vermicularis) Infestation: An Updated Review. Current Pediatric Reviews. 2025;21(4):333-347. doi:10.2174/0115733963283507240115112552 ↩
- Centers for Disease Control and Prevention. Diagnosing Pinworms. CDC: Pinworm Infection. 2024. Available at: https://www.cdc.gov/pinworm/diagnosing/index.html ↩
- Siddiqi S, Vijay V, Ward M, Mahendran R, Warren S. Pruritus Ani. The Annals of The Royal College of Surgeons of England. 2008;90(6):457-463. doi:10.1308/003588408x317940 ↩
- Centers for Disease Control and Prevention. Preventing Pinworm Infection. CDC: Pinworm Infection. 2026. Available at: https://www.cdc.gov/pinworm/prevention/index.html ↩
- MedlinePlus Medical Encyclopedia. Pinworm test. US National Library of Medicine. 2024. Available at: https://medlineplus.gov/ency/article/003452.htm ↩
- Kupritz J, Angelova A, Nutman TB, Gazzinelli-Guimaraes PH. Helminth-Induced Human Gastrointestinal Dysbiosis: a Systematic Review and Meta-Analysis Reveals Insights into Altered Taxon Diversity and Microbial Gradient Collapse. mBio. 2021;12(6):e02890-21. doi:10.1128/mbio.02890-21 ↩
- Yang CA, Liang C, Lin CL, et al.. Impact of Enterobius vermicularis infection and mebendazole treatment on intestinal microbiota and host immune response. PLOS Neglected Tropical Diseases. 2017;11(9):e0005963. doi:10.1371/journal.pntd.0005963 ↩
- Taghipour A, Olfatifar M, Javanmard E, Norouzi M, Mirjalali H, Zali MR. The neglected role of Enterobius vermicularis in appendicitis: A systematic review and meta-analysis. PLOS ONE. 2020;15(4):e0232143. doi:10.1371/journal.pone.0232143 ↩