TLDR
To get rid of pinworms, treat everyone in the household on the same day with an anti-worm medicine, take a second dose about two weeks later, and keep up a strict hygiene routine for those two weeks.
The medicine kills the worms but not their eggs. Skipping the second dose or the routine is the most common reason pinworms come back.

If you are reading this late at night because someone in your house cannot stop scratching, take a breath. Pinworms are the most common worm infection in the United States, and they turn up in tidy homes as often as anywhere else.
They are also very treatable. The catch is that most people treat them once, feel relieved, and are back at square one a month later. Here is how to do it properly, including the part almost everyone skips.
What pinworms are, and why they spread so easily
Pinworms (Enterobius vermicularis) are small, white, thread-like worms, roughly a centimetre long. They live in the lower intestine. Humans are their only host, so the family dog is not involved.
At night, the females move to the skin around the anus to lay their eggs. That is what causes the itch. Scratching transfers the microscopic eggs to fingers and under nails, and from there to bedding, towels, toys, door handles and food.
Someone swallows a few eggs, they hatch in the gut, and the cycle starts again. That is the whole story. It says nothing about how clean your home is. It says a lot about how often children touch their faces.
Signs of pinworms
- Itching around the bottom, or the vagina in girls and women, which is usually worse at night.
- Restless sleep and night waking, often with irritability the next day.
- Tiny white threads in the toilet, on underwear, or around the bottom at night.
- Less often: bedwetting in a child who was dry, sore or broken skin from scratching, and a poor appetite.
Plenty of people carry pinworms with no symptoms at all, which matters later when it comes to treating the household. If you are trying to make sense of a wider set of symptoms, our guide to common parasite symptoms covers the other possibilities.
How to check: the tape test
Pinworm eggs are rarely found in stool, so a standard stool test often misses them. The usual check is simpler.
- The torch check. Two or three hours after a child falls asleep, gently look around the bottom with a torch. Adult worms are visible to the naked eye.
- The tape test. First thing in the morning, before washing or using the toilet, press a strip of clear sticky tape against the skin around the anus. A doctor or lab looks at it under a microscope for eggs. Doing it three mornings in a row catches far more than doing it once.
If you have seen a worm, you already have your answer. If you have not, the tape test is worth doing before you treat a whole family for something that might be eczema, thrush or simple irritation.
Why pinworms keep coming back
This is the part that decides whether you are done in two weeks or still dealing with it in spring.
Pinworm medicine kills the worms living in the gut. It does not kill eggs. Eggs already on hands, sheets and surfaces can survive for up to two weeks, and every one that gets swallowed after the first dose hatches into a new worm.
Those new worms take weeks to mature and start laying. The second dose, about two weeks after the first, is timed to catch them before they do. Meanwhile the hygiene routine stops more eggs being swallowed in the first place.
Skip the second dose and the worms that hatched in the gap simply carry on. Skip the routine and you keep re-swallowing eggs. Either way, the infection outlives the treatment.
Key takeaway
Getting rid of pinworms is a two-week project, not a single pill. The medicine clears the worms and the routine clears the eggs. Leave out either one and you are likely to end up back where you started.
Step 1: Treat the whole household on the same day
Pinworms are one of the few situations where a simple pharmacy medicine is the clear first choice. The options depend on where you live.
- United States: pyrantel pamoate is sold over the counter for pinworms. Mebendazole and albendazole are available on prescription.
- UK, Ireland and Australia: mebendazole is sold in pharmacies, usually as a chewable tablet or liquid.
Most treatment plans use two doses about two weeks apart. Follow the label or your pharmacist’s instructions for the exact product and age.
Then treat everyone. The NHS advises treating everyone in the household aged two and over, even people with no symptoms. Remember that symptom-free carriers are common. Treating the child who itches while everyone else passes eggs around without knowing it is how families end up in a months-long loop.
Check with a pharmacist or doctor first for children under two, and for anyone who is pregnant or breastfeeding. The usual medicines may not be suitable, and there are other ways to manage it.
Step 2: The two-week household routine

This is the unglamorous half of the job, and it is the half that works. Start it on the day of the first dose and keep it going for two weeks.
- Wash hands and scrub under nails after the toilet, after nappy changes, and before eating. This is the single most important habit on the list.
- Keep nails short so there is less room for eggs to hide.
- Shower or bathe every morning to wash off eggs laid overnight. A shower is better than sitting in a bath.
- Wear close-fitting underwear at night and change into clean underwear every morning.
- Wash pyjamas, sheets, towels and soft toys on a hot cycle, daily for the first few days.
- Do not shake bedding or clothes before washing them. Shaking sends eggs into the air.
- Vacuum and damp-dust, and wipe bathroom and kitchen surfaces, door handles and taps.
- Do not share towels or flannels, and rinse toothbrushes before use.
- Gently discourage nail-biting and thumb-sucking while you are in the thick of it.

There is no need to keep a child off school or nursery. By the time you have noticed pinworms, they have usually been around the class for a while.
Can you get rid of pinworms naturally?
Yes, though probably not the way most people mean it.
The best-supported natural route is the hygiene routine on its own, kept up strictly for six weeks rather than two. Adult pinworms do not live long. If no new eggs are swallowed, the existing worms die off and the infection ends. The NHS gives this as the option for people who cannot take the medicine.
Herbs are a different matter. Garlic, pumpkin seed, papaya seed and the classic black walnut, wormwood and clove combination all have a traditional history against intestinal worms. There is very little clinical evidence that any of them clears pinworms on its own.
If you want to add herbal or food-based support, add it alongside the routine, never instead of it. And keep wormwood away from children, pregnancy and breastfeeding.
Pinworms in children
Pinworms are most common in school-age children, and the way they are handled can matter as much as the treatment. Keep it calm and matter-of-fact. Children pick up very quickly on whether something is gross or shameful, and neither is true here.
Frame the routine as something the whole family is doing together, not a punishment for the child who itched. Short nails, morning showers and clean pyjamas are easy to sell as a two-week family project.
Dealing with this in a child?
Our guide to cleansing for kids covers what is safe at each age, the herbs to avoid, and when a child needs a doctor instead.
Read the Kids’ GuidePinworms in adults
Adults catch pinworms too, almost always from a child in the house or from caring for children. The treatment and the routine are exactly the same.
The difference is that adults are more likely to have no symptoms, or to put a little night-time itching down to something else. That is why treating the adults in a household matters even when they feel fine.
When to see a doctor
- Symptoms are still there after two full rounds of treatment and routine.
- The person affected is under two, pregnant or breastfeeding.
- There is vaginal itching or discharge, or pain when passing urine.
- The skin around the bottom is broken, weeping or looks infected from scratching.
- There is tummy pain, weight loss, or blood in the stool.
- There is itching but no worms have been seen and the tape test is clear. Something else may be going on.
Pinworms are a nuisance, not a reflection on you or your home. Two weeks of treatment and routine, done by everyone at once, is usually the end of it.
If you are curious how pharmacy dewormers compare with the herbal traditions more broadly, we have a balanced guide to dewormers for humans.
Herbal or pharmaceutical?
How mebendazole, pyrantel and ivermectin compare with wormwood, black walnut and clove, and where each one fits.
Compare DewormersFrequently Asked Questions
How long does it take to get rid of pinworms?
With medicine, plan on about two weeks: a first dose, a second dose roughly two weeks later, and a strict hygiene routine in between. Without medicine, the hygiene routine needs to be kept up for about six weeks so that the existing worms die off without being replaced.
Why do pinworms keep coming back?
Usually because the medicine killed the worms but not the eggs. Eggs on hands, bedding and surfaces can survive for up to two weeks, and any that are swallowed hatch into new worms. Missing the second dose, skipping the hygiene routine, or treating only one person in the household are the most common reasons for reinfection.
Do I need to treat the whole family for pinworms?
Generally, yes. Many people carry pinworms without symptoms, so treating only the person who itches leaves eggs circulating in the house. The NHS advises treating everyone aged two and over on the same day. Check with a pharmacist or doctor first for children under two and anyone pregnant or breastfeeding.
Can pinworms go away on their own?
They can, because adult pinworms are short-lived. The problem is that they keep laying eggs that get swallowed again, so in practice the infection rarely ends by itself. A strict six-week hygiene routine breaks that cycle and is the usual option for people who cannot take medicine.
Can adults get pinworms?
Yes. Adults usually catch pinworms from children in the household or from caring for children. Adults are more likely to have mild symptoms or none at all, which is why they are included when the household is treated.
How long do pinworm eggs live on surfaces?
Up to about two weeks outside the body. That is why bedding, towels and pyjamas are washed hot, surfaces are wiped down, and the hygiene routine runs for the full two weeks between doses.
Medical note
This guide is general education, not medical advice. Pinworm medicines, doses and age limits vary by product and country, so follow the label or your pharmacist’s instructions. Speak to a doctor or pharmacist before treating a child under two or anyone who is pregnant or breastfeeding.