Skip navigation

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

URL of this page: //medlineplus.gov/ency/article/001152.htm

Pinworms

Pinworms are small worms that infect the intestines.

Causes

Pinworms are the most common worm infection in the United States. School-age children are most often affected.

Pinworm eggs are spread directly from person to person. They can also be spread by touching bedding, food, or other items that are contaminated with the eggs.

Typically, children are infected by touching pinworm eggs without knowing it and then putting their fingers in their mouth. They swallow the eggs, which eventually hatch in the small intestine. The worms mature in the colon.

Female worms then move to the child's anal area, especially at night, and deposit more eggs. This may cause intense itching. The area may even become infected. When the child scratches the anal area, the eggs can get under the child's fingernails. These eggs can be transferred to other children, family members, and items in the house.

Symptoms

Symptoms of pinworm infection include:

  • Difficulty sleeping due to the itching that occurs during the night
  • Intense itching around the anus
  • Irritability due to itching and interrupted sleep
  • Irritated or infected skin around the anus, from constant scratching
  • Irritation or discomfort of the vagina in young girls (if an adult worm enters the vagina rather than the anus)
  • Loss of appetite and weight (uncommon, but can occur in severe infections)

Exams and Tests

Pinworms (one-fourth to one-half inches long) can be spotted in the anal area, mainly at night when the worms lay their eggs there.

Your health care provider may have you do a tape test. A piece of cellophane tape is pressed against the skin around the anus, and removed. This should be done in the morning before bathing or using the toilet, because bathing and wiping may remove eggs. The provider will stick the tape to a slide and look for eggs using a microscope.

Treatment

Anti-worm medicines are used to kill the pinworms (not their eggs). Your provider will likely recommend one dose of medicine that is available over-the-counter and by prescription.

More than one household member is likely to be infected, so the entire household is often treated. Another dose is usually repeated after 2 weeks. This treats worms that hatched since the first treatment.

To control the eggs:

  • Clean toilet seats daily
  • Keep fingernails short and clean
  • Wash all bed linens twice a week
  • Wash hands before meals and after using the toilet

Avoid scratching the infected area around the anus. This can contaminate your fingers and everything else that you touch.

Keep your hands and fingers away from your nose and mouth unless they are freshly washed. Be extra careful while family members are being treated for pinworms.

Outlook (Prognosis)

Pinworm infection is fully treatable with anti-worm medicine.

When to Contact a Medical Professional

Contact your provider for an appointment if:

  • You or your child has symptoms of pinworm infection
  • You have seen pinworms on your child

Prevention

Wash hands after using the bathroom and before preparing food. Wash bedding and underclothing frequently, particularly those of any affected family members.

Alternative Names

Enterobiasis; Oxyuriasis; Threadworm; Seatworm; Enterobius vermicularis; E vermicularis; Helminthic infection

References

Dent AE, Kazura JW. Enterobiasis (Enterobius vermicularis). In: Kliegman RM, St. Geme JW, Blum NJ, Shah SS, Tasker RC, Wilson KM, eds. Nelson Textbook of Pediatrics. 21st ed. Philadelphia, PA: Elsevier; 2020:chap 320.

Hotez PJ. Parasitic nematode infections. In: Cherry JD, Harrison GJ, Kaplan SL, Steinbach WJ, Hotez PJ, eds. Feigin and Cherry's Textbook of Pediatric Infectious Diseases. 8th ed. Philadelphia, PA: Elsevier; 2019:chap 226.

Ince MN, Elliott DE. Intestinal worms. In: Feldman M, Friedman LS, Brandt LJ, eds. Sleisenger & Fordtran's Gastrointestinal and Liver Disease. 11th ed. Philadelphia, PA: Elsevier; 2021:chap 114.

Review Date 10/20/2022

Updated by: Linda J. Vorvick, MD, Clinical Professor, Department of Family Medicine, UW Medicine, School of Medicine, University of Washington, Seattle, WA. Also reviewed by David C. Dugdale, MD, Medical Director, Brenda Conaway, Editorial Director, and the A.D.A.M. Editorial team.

Related MedlinePlus Health Topics