Itching around the anus that flares up at night β especially in a child β has one very common, very treatable explanation: pinworms. It is not a hygiene problem, it is rarely dangerous, and it usually clears with medicine you can buy without a prescription. Here is how to tell whether that is what you are dealing with, what else it could be, and the plan that actually stops it coming back.
This is the part that makes everything else make sense. The adult female pinworm lives in the colon — but she doesn't lay her eggs there. Gravid females migrate nocturnally outside the anus and lay eggs while crawling on the skin of the perianal area.
So the itching isn't random and it isn't in your head. It's a physical event happening on the skin, at night, on a schedule. CDC puts it plainly: female pinworms lay their eggs at night on the skin around the anus, which can cause the skin to itch — and disturbed sleep or restlessness often follows.
It also explains the tape test below. If the eggs arrive overnight, morning — before washing — is when they're there to be found.
How common is this? Not a rare tropical curiosity: pinworm is the most common worm infection in the United States, and CDC data puts US infections at around 40 million.
Pinworms are the classic explanation, but they're not the only one — and assuming is how people end up treating the wrong thing. Anal itching has its own medical name, pruritus ani, and only 25–75% of cases turn out to have an identifiable cause at all.
| Cause | What tends to go with it |
|---|---|
| Pinworms | Night-time itch, restless sleep, a child in the house, sometimes visible threads |
| Haemorrhoids, skin tags, fissures | Moisture and irritation; often pain, or blood on the paper |
| Eczema or contact dermatitis | Dry, scaly or inflamed skin; often a reaction to soaps, wipes or fragrance |
| Diet | Caffeine, alcohol and spicy food are recognised triggers via anal leakage |
| Diarrhoea or loose stool | Stool consistency alone irritates the skin |
The distinguishing feature of pinworm isn't the itch itself — it's the timing. A rash that itches all day is more likely skin. An itch that reliably arrives at night, in a household with school-age children, is worth a tape test.
This is how pinworm is actually confirmed — not from a symptom list, and not from a standard stool sample. Pinworm eggs are laid on the skin rather than passed in stool, so a routine stool test is the wrong test for it.
Two practical points people get wrong. First, timing: it has to be before washing, before the toilet, and before getting dressed — anything else wipes the evidence away. Second, handling: CDC advises putting the tape in a sealed container, a zipping bag, or the specimen container provided, then washing your hands thoroughly afterwards.
The route is unglamorous but worth understanding, because it's what the whole treatment plan is built around. Infection occurs by self-inoculation — transferring eggs to the mouth with hands that have scratched the perianal area — or through exposure to eggs in the environment: contaminated surfaces, clothes and bed linens. Swallowed eggs hatch in the small intestine, and the adults settle in the colon.
Which means the cycle is: itch at night → scratch → eggs on fingers and under nails → hand to mouth, or hand to bedding, towel or door handle → someone swallows them → round again. Nobody has to do anything wrong for this to happen.
The good news is that this is one of the genuinely easy ones.
Ask a pharmacist before buying if it's for a young child, during pregnancy, or alongside other medication. It's free advice and takes two minutes.
This is where treatment most often fails, and the reason is specific rather than vague: young pinworms tend to resist treatment, which is why two doses two weeks apart are recommended. The first dose clears the adults. The second catches what has hatched since.
The other half is the household. Reinfection is common, so treating everyone in the household — symptomatic or not — is recommended to prevent recurrence. Treat one child and leave the rest, and it comes straight back.
Alongside the medication:
Yes — but with an important twist that most pages miss.
Adults absolutely get them, particularly parents and carers: infection is commonly seen in adults who care for children. If it's going round the house, treating only the children misses the point.
But if you're an adult with anal itching and no children around, the odds shift sharply. Pinworm is commonly blamed for anal itching, but it is rarely the actual cause in adults. The table above is a better place to start looking, and this page walks through what actually tells you.
For a straightforward case in an otherwise healthy adult or older child, a pharmacist is usually enough. Book an actual appointment if:
Are pinworms dangerous?
Rarely. The main problems are the itching and disturbed sleep. Plenty of people have no symptoms at all. It's the treatment cycle that causes most of the frustration, not the worms.
How long until they're gone?
The medication works quickly, but a second dose two weeks later is recommended because young pinworms resist the first one. Skipping it is the usual reason an infection appears to come back.
Does everyone in the house need treating?
That's the recommendation — symptomatic or not. Reinfection between household members is the normal pattern.
I'm an adult with no children around. Is it pinworms?
Probably not. Pinworm gets blamed for anal itching far more often than it causes it in adults. Haemorrhoids, fissures, eczema, contact irritation and diet are all more likely.
Can I just do one tape test?
You can, but one report found a single examination gave 50% sensitivity against 90% for three. CDC advises three consecutive mornings, prior to bathing.
Is It a Parasite? — four pages, plain English, from CDC and WHO sources. The red flags and a printable prevention checklist.