Pinworms in children: the night-time itch, treatment, and breaking the cycle

Last updated September 3, 2026.

Pinworms are the most common worm infection in children, they are gross but harmless, and they are easy to treat as long as you treat the whole household and break the re-infection cycle. The classic presentation is a child whose bottom itches intensely at night, sleeps badly, and is scratchy and irritable by day. The worms themselves are tiny white threads, about a centimeter long, sometimes visible in poo or around the anus at night.

How do you know it is pinworms?

The itch is the headline: intense anal itching that is worst at night, when the female worms come out to lay eggs. That leads to disturbed sleep, and in girls the worms can irritate the vulva and cause discomfort or discharge. Some children have no symptoms at all. You can confirm it yourself: check the child's bottom a couple of hours after they fall asleep with a torch, or look at the first poo of the morning for the white threads. In some countries, pharmacies sell the diagnosis over the counter without needing a lab test when the picture is classic.

Find answers to pinworms

Start a free AI doctor consult →

What actually helps?

When is it an emergency?

Pinworms are never an emergency: unpleasant, socially mortifying, and harmless to health. See a doctor rather than self-treating if the child is under 2, if you are pregnant or breastfeeding, if the problem persists after two properly spaced treatment rounds with the hygiene routine (which suggests reinfection from a contact outside the house, or a different cause), or if there is blood in the stool, tummy pain, or weight loss, none of which fit pinworms. Pymander's escalation routing is built and tested specifically for this class of decision; see the safety architecture working paper.

What a Pymander AI doctor consult looks like

Is the itching worst at night around the bottom, and have you seen tiny white thread-like worms in the poo or around the anus?
The night itch is exactly right, and last night I checked with a torch and saw two little white threads moving. Horrible but unmistakable.
Thanks for giving me all this information. Based on what you've said, your child has pinworms. This is treated with a single dose of mebendazole for every household member, repeated after two weeks, plus a strict hygiene routine for the next few weeks: morning showers, short fingernails, hot-washed bedding and sleepwear, damp dusting, and handwashing after the toilet and before food. It is common and harmless, however unpleasant. Here's your care note to share with your care team.
Care note
Pinworms confirmed, treat household
Night-time anal itching with visible white thread worms confirms pinworms. Plan: mebendazole single dose for all household members, repeated at 2 weeks (doctor first for under-2s, pregnancy, breastfeeding); morning showers, short nails, hot-wash bedding and sleepwear, damp dusting, strict handwashing for up to 6 weeks. Recurrence usually means reinfection, not treatment failure.
View care note →

Illustrative example, not a real member's messages.

Common questions

How do I know if my child has pinworms?

The classic sign is intense itching around the bottom at night, because that is when the female worms emerge to lay eggs; the result is broken sleep and a scratchy, tired child. To confirm, check with a torch a couple of hours after your child falls asleep or first thing in the morning, looking for white threads about a centimeter long around the anus, or inspect the first poo of the day. Girls may also have vulval itching or irritation. Some children carry them with no symptoms at all.

How do pinworms spread?

Eggs get under fingernails from scratching the itch, then onto hands, toys, bedding, door handles, and food, and the cycle completes when someone swallows them. The eggs can survive a couple of weeks on surfaces and float in house dust. Children pass them to siblings, parents, and classmates readily. They have nothing to do with household dirtiness; they spread wherever children concentrate, and pets do not carry human pinworms.

What is the treatment for pinworms?

A single dose of mebendazole (or the local equivalent) for every member of the household at the same time, whether or not they have symptoms, then a second dose two weeks later to catch worms that hatched from eggs after the first round. It is sold over the counter in many countries. The medicine kills worms but not eggs, which is why the repeat dose and the hygiene routine are not optional extras. Under-2s, and pregnant or breastfeeding women, need a doctor's guidance instead of the pharmacy pack.

Does the whole family really need treatment?

Yes, because pinworms circulate silently: some family members carry them with no itch and re-infect the treated child within weeks if they are not treated too. The single-household-dose approach (everyone on day 0, everyone again at week 2) is what breaks the loop. The same logic applies to regular close contacts like sleepover friends and grandparents who babysit daily; the school or nursery does not need to be involved beyond normal hygiene.

Why do pinworms keep coming back?

Almost always reinfection rather than treatment failure: eggs survived on bedding, under nails, or on an untreated family member or classmate, and a new generation hatched after the medication wore off. The fix is the combination done properly: both doses for everyone, morning showers, short nails, no nail-biting, hot-washed bedding and sleepwear at treatment time, and strict handwashing. Two full rounds done with the hygiene routine clears the vast majority; persistence after that earns a doctor's visit.

Are pinworms dangerous?

No. They are one of the most common childhood infections worldwide and do not damage health: no weight loss, no serious complications in the ordinary case, just itch, broken sleep, and irritation. Rare complications exist (the worms wandering into the vulva or, very rarely, the appendix region) but they are genuinely rare. The real cost is social embarrassment and family exhaustion, both of which the two-dose treatment plus hygiene routine ends quickly.

Related questions

Sources

Pymander is not a replacement for a physician and does not provide medical advice, diagnosis, or treatment.

Free AI doctor, 24/7 by textStart a free AI doctor consult