top of page
Rinnit logo – modern health products and health news

Pinworm Infection: Complete Guide to Symptoms, Causes, and Treatment

5 days ago
5 min read

Updated: 2 days ago

Medically reviewed by Dr. Baraa Alnahhal, MD · Last reviewed: September 2026

Pinworm Infection: Complete Guide to Symptoms, Causes, and Treatment

TL;DR

Pinworm infection is one of the most common worm infections worldwide, particularly affecting school-age children. It occurs when tiny pinworm eggs are swallowed and hatch in the small intestine. The most common symptom is anal itching, especially at night. Treatment involves taking anti-parasite medicine, and everyone in the household should be treated to prevent reinfection.

Quick Answer

Pinworm infection is caused by swallowing or breathing in microscopic pinworm eggs. The eggs hatch in the small intestine and grow into adult worms. Female worms lay eggs around the anal area at night, causing intense itching. Treatment requires anti-parasite medication for the infected person and all family members, along with strict hygiene to eliminate eggs from the home.

What Is a Pinworm Infection?

A pinworm infection, medically known as enterobiasis, is one of the most common worm infections worldwide. The parasites are thin, white, and measure about 1/4 to 1/2 inch (6 to 13 millimeters) in length.

Infection occurs when a person swallows or breathes in microscopic pinworm eggs. Because the eggs are too small to be seen with the naked eye, they spread easily through contaminated food, surfaces, or unwashed hands. While it affects people of all ages, the infection is most common in school-age and preschool-age children.

Diagram of the pinworm life cycle and transmission

What Are the Symptoms of a Pinworm Infection?

Many people with a pinworm infection have no symptoms at all. When symptoms do occur, they are primarily related to the worms' behavior of laying eggs around the anal area at night.

| Symptom | Description | |---|---| | Anal itching | The most common symptom, especially at night as worms lay eggs. | | Insomnia | Trouble falling or staying asleep due to discomfort. | | Restless mood | Irritability caused by disrupted sleep. | | Teeth grinding | Sometimes associated with the discomfort of the infection. | | Stomach pain | Occasional upset stomach, pain, or vomiting. | | Bedwetting | Can occur in children due to restless sleep. |

How Does a Pinworm Infection Spread?

The transmission of pinworms is a continuous cycle. When a person scratches the itchy anal area, the microscopic eggs cling to their fingers and get under their fingernails.

From there, the eggs can be transferred to other surfaces, such as toys, bedding, or toilet seats. Because pinworm eggs can survive on indoor surfaces for 2 to 3 weeks, they pose a persistent risk of reinfection or spreading to others.

Infographic of pinworm infection symptoms and risk factors

Who Is at Risk for Pinworms?

Risk factors for developing a pinworm infection include being young, particularly between the ages of 5 and 10. The infection is not common in children younger than age 2.

Additionally, people who live in crowded spaces or institutions are at a higher risk. This is because the tiny eggs are easily spread to family members, caregivers, or other children in school or child care centers.

How Is Pinworm Infection Diagnosed?

Diagnosis typically involves checking for the presence of worms or eggs. Healthcare professionals may examine the anal area and underwear for visible worms.

A common at-home diagnostic method is the "tape test." This involves pressing the sticky side of see-through cellophane tape to the skin around the anus immediately upon waking up, before bathing or using the toilet. If eggs are present, they stick to the tape. For the most accurate results, this test should be performed on three consecutive days and then examined under a microscope by a healthcare professional.

How Is Pinworm Infection Treated?

Treatment focuses on using anti-parasite medicines that kill the worms. Because pinworms are so contagious, it is highly recommended that everyone in the family of the infected person takes the medication to prevent reinfection.

The most common medications include:

  • Over-the-counter: Pyrantel pamoate. This is often the preferred treatment for pregnant people and children under 2 years old.

  • Prescription: Mebendazole (Emverm) or Albendazole.

Regardless of the medication used, a second dose must be taken two weeks after the first dose to kill any worms that hatched from remaining eggs.

In addition to taking medication, it is crucial to wash all bedding, pajamas, and underwear in hot water to destroy any lingering eggs.

How Can Pinworm Infection Be Prevented?

Preventing pinworm infection requires strict hygiene and environmental cleaning to break the transmission cycle.

Effective prevention measures include:

  • Washing hands thoroughly: Especially after using the toilet or changing a diaper, and before eating.

  • Washing the anal area in the morning: This helps remove eggs laid during the night. Showering is preferred over bathing to prevent eggs from spreading in the water.

  • Changing underwear daily: This helps remove eggs from clothing.

  • Laundering in hot water: Wash bedsheets, pajamas, underwear, and towels in hot water and dry them on high heat to destroy eggs.

  • Cleaning surfaces: Frequently clean toys, faucets, bedding, and toilet seats, as eggs can survive on these surfaces for up to 3 weeks.

  • Avoiding scratching: Trim fingernails short to reduce the space for eggs to collect, and discourage nail-biting.

Infographic of pinworm infection prevention and treatment steps

What Are the Complications of Pinworm Infection?

In most cases, pinworm infections do not cause serious complications. However, in rare instances, having many pinworms in the body can lead to secondary issues.

These rare complications include infection of the female genitals, as the worms can travel from the anal area to the vagina. Other rare complications may include urinary tract infections, weight loss, or infection of the peritoneal cavity.

Conclusion

While a pinworm infection can be annoying and highly contagious, it is easily treatable with anti-parasite medications. The key to successful management is treating the entire household and maintaining rigorous hygiene to eliminate the microscopic eggs from the environment.

If you or your child are experiencing anal itching, especially at night, consult a healthcare professional for a proper diagnosis. They can recommend the appropriate medication and provide guidance on how to effectively clean your home to prevent reinfection.

Frequently Asked Questions

What is a pinworm infection?

A pinworm infection is a common parasitic infection caused by swallowing microscopic eggs that hatch in the intestines and grow into small, thin, white worms.

What are the main symptoms of pinworms?

The most common symptom is intense anal itching, especially at night. Other symptoms include insomnia, irritability, teeth grinding, and occasional stomach pain.

How do you get pinworms?

Pinworms are spread by swallowing or breathing in the microscopic eggs, which are transferred via contaminated hands, food, water, or surfaces like toys and bedding.

How long do pinworm eggs live on surfaces?

Pinworm eggs can survive on indoor surfaces, such as toys, faucets, and toilet seats, for 2 to 3 weeks.

Do I need to treat my whole family for pinworms?

Yes. Because pinworms are highly contagious, it is recommended that everyone in the household take anti-parasite medication, even if they don't have symptoms.

How do I take medication for pinworms?

Most treatments require taking an initial dose of anti-parasite medication followed by a second dose two weeks later to ensure all worms are eliminated.

What is the tape test for pinworms?

The tape test involves pressing clear tape against the skin around the anus first thing in the morning to collect eggs, which are then examined under a microscope to confirm the infection.

Can adults get pinworms?

Yes, while it is most common in children ages 5 to 10, adults can also become infected, especially if they live with an infected child.

Further Reading

Editorial note: This article is for educational purposes only and does not replace professional medical advice. Always consult a qualified healthcare professional for diagnosis and treatment decisions. Content based on current clinical guidance and published medical sources; reviewed August 2026.

Health information, not medical advice. This article is for general education and is not a substitute for professional diagnosis or treatment. Always consult a qualified healthcare provider about your own health, and seek emergency care for urgent symptoms.

Recent Posts

See All

Comments


bottom of page