Pinworms
Pinworms are tiny white worms that live in the gut and lay eggs around the anus, causing itching. The infection is common, easy to spread and easy to treat.

Overview
Pinworms are small, thin, white worms. An adult female is about 1 cm (less than half an inch) long, and males are even smaller. They live in the lower part of the bowel (the large intestine). The medical name for the infection is enterobiasis, after the worm's scientific name, Enterobius vermicularis. In some countries pinworms are called threadworms.
Pinworm infection is one of the most common worm infections in the world, including in Canada and the United States. It is most common in school-age children, but anyone can get it, and it often spreads to other people in the same home. Having pinworms does not mean your home is dirty or that you have done anything wrong. They spread easily wherever people live and play closely together.
The good news is that pinworms are not usually dangerous. Most people have mild symptoms or none at all, and the infection is easy to treat with medicine and good hand washing.
Symptoms
Many people with pinworms have no symptoms. When symptoms happen, the main one is itching around the anus (the opening where stool leaves the body). This happens because female worms crawl out of the bowel at night to lay their eggs on the skin around the anus.
Common symptoms
- Itching around the anus, often worse at night
- Trouble sleeping, or waking at night because of the itch
- Restlessness and irritability, especially in children
- Sore, red or scratched skin around the anus from scratching
- In girls and women, itching or irritation around the vagina, if worms move there
Some people see the worms. They look like tiny pieces of white thread, and they may move. You might see them around the anus, on underwear or bedding, or on the surface of stool in the toilet.
Pinworms do not usually cause weight loss, tummy pain or diarrhea. If your child has these symptoms, it is worth checking with a doctor for another cause.
How pinworms spread
Pinworms spread when someone swallows the tiny eggs. The eggs are too small to see without a microscope.
The life cycle
- A person swallows pinworm eggs, usually from their fingers.
- The eggs hatch in the gut, and the worms grow into adults over about 1 to 2 months.
- At night, female worms crawl out of the anus and lay thousands of eggs on the nearby skin.
- The eggs cause itching. Scratching moves the eggs onto fingers and under fingernails.
- From the fingers, the eggs get into the mouth again, or onto surfaces, food, toys, bedding and clothes, where other people pick them up.
Eggs can survive on surfaces and fabric for up to 2 to 3 weeks. Sometimes the eggs can float in the air when bedding is shaken and be breathed in and swallowed. Because the eggs spread so easily, it is common for several people in one home to be infected.
Pinworms only infect people. You cannot catch them from pets, and pets do not need treatment.
Risk factors
Anyone can get pinworms. You are more likely to get them if you:
- Are a child, especially between about 5 and 10 years old
- Live with a child who has pinworms
- Spend time in crowded places where people are in close contact, such as child care centres, schools, camps or group homes
- Care for young children or people who need help with toileting
- Bite your nails or suck your thumb
Diagnosis
Your doctor or nurse practitioner may suspect pinworms from your symptoms. Seeing a worm is often enough to know the cause. If no worms are seen, a simple test can find the eggs.
The tape test
The most common test is called the tape test. You press the sticky side of clear tape against the skin around the anus, then stick the tape onto a glass slide or into a container your clinic gives you. A lab looks at it under a microscope for eggs.
- Do the test first thing in the morning, as soon as you or your child wakes up.
- Do it before using the toilet, bathing or washing.
- You may be asked to repeat it on 3 mornings in a row, because eggs are not laid every night.
Your clinic will tell you exactly how to collect and return the sample. A regular stool test is not a good way to find pinworms, because the eggs are laid on the skin, not in the stool.
Some people check at night with a flashlight, 2 to 3 hours after a child falls asleep, to look for worms around the anus. This can be helpful, but it is not needed if your doctor has already confirmed the diagnosis.
Treatment
Pinworms are treated with medicine that kills the worms. Treatment works well, but good hygiene is just as important to stop the infection from coming back.
Medicines
- mebendazole stops the worms from using sugar for energy, so they die.
- albendazole works in the same way as mebendazole.
- pyrantel paralyses the worms so they pass out of the body in stool. It is available without a prescription in many places.
Each medicine is usually taken as one dose, as a tablet (often chewable) or a liquid. The medicine kills the worms but not always the eggs, so a second dose is usually taken 2 weeks later. This kills any worms that hatched from eggs swallowed after the first dose.
Your doctor will often suggest that everyone in the home is treated at the same time, even people without symptoms. This helps stop the worms from passing back and forth.
Pregnancy, breastfeeding and young children
If you are pregnant or breastfeeding, or the person with pinworms is a child under 2 years old, talk to a doctor or pharmacist before using any worm medicine. Sometimes careful hygiene alone is recommended for a while, because the worms do not live long and can be cleared if no new eggs are swallowed.
Side effects of these medicines are usually mild and may include tummy pain, nausea or diarrhea. Always follow the directions from your pharmacist or doctor.
Self-care and hygiene
Hygiene steps help clear the infection and protect others. Keep them up for at least 2 weeks after treatment, and ideally for about 6 weeks.
- Wash hands well with soap and warm water after using the toilet, after changing diapers and before eating or preparing food.
- Keep fingernails short and clean. Try to stop nail biting and thumb sucking.
- Avoid scratching the area around the anus. Close-fitting underwear or pajamas at night can help children avoid scratching.
- Shower or bathe each morning to wash off eggs laid during the night. A shower is better than sharing bath water.
- Change underwear every day, and change pajamas and bed sheets often.
- Wash bedding, towels and clothes in hot water and dry them on a hot setting. Do not shake them out, as this can spread eggs into the air.
- Do not share towels or washcloths.
- Clean surfaces such as toilet seats, taps, door handles and toys regularly. Vacuum carpets.
To soothe itchy skin, keep the area clean and dry. A pharmacist can suggest a gentle cream if the skin is sore.
Children with pinworms can usually go to school or child care once treatment has started, as long as they follow good hand washing.
Complications
Complications are uncommon. They can include:
- Skin infection around the anus from scratching, which can make the skin red, swollen and painful
- Vaginal irritation or infection in girls and women, and rarely urinary tract infection
- Poor sleep, which can affect mood and concentration at school
Very rarely, worms travel to other parts of the body, such as the female reproductive organs or the appendix. These problems are unusual.
Outlook
Pinworm infection is not serious for most people. Treatment clears it in nearly everyone. However, it is very common to get pinworms again, because the eggs spread so easily. Getting it again is not a sign that treatment failed. If symptoms come back, see your doctor or pharmacist about another course of treatment, and review the hygiene steps for the whole household.
Prevention
There is no vaccine for pinworms. The best protection is everyday hygiene:
- Teach children to wash their hands well, especially after using the toilet and before eating.
- Keep fingernails short and discourage nail biting.
- Shower daily and change underwear every day.
- Wash bedding and towels regularly.
- If one person has pinworms, follow the hygiene steps for the whole home, and ask about treating everyone together.
In Canada
In Canada, pyrantel is available from pharmacies without a prescription, and pharmacists can advise on its use. Mebendazole is available by prescription. Albendazole is not widely marketed in Canada. Check with your provincial or territorial health plan or private insurance about coverage for prescription medicines.
When to get medical help
See a doctor, nurse practitioner or pharmacist if:
- You or your child has itching around the anus, especially at night
- You see small white worms around the anus, on underwear or in stool
- Symptoms come back after treatment
- You are pregnant or breastfeeding, or the child is under 2 years old, before using any worm medicine
- The skin around the anus becomes red, swollen, painful or oozes, which can mean a skin infection
- A girl or woman has vaginal itching, discharge or pain when peeing
- Your child has tummy pain, weight loss or diarrhea, as these are not typical of pinworms and may have another cause
Go to the emergency department or call emergency services if you or your child has severe or worsening belly pain, especially on the lower right side, with fever or vomiting. This could be appendicitis or another serious problem that needs urgent care.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Enterobiasis. meshb.nlm.nih.gov
- CDC: Pinworm infection. cdc.gov/pinworm/
- MedlinePlus: Pinworms. medlineplus.gov/pinworms.html
- NHS: Threadworms. nhs.uk/conditions/threadworms/