The most common symptom of a pinworm infection is intense itching around the anus. Infections are contagious and can be prevented with handwashing and other hygiene practices.

A pinworm infection, also known as enterobiasis or oxyuriasis, is one of the most common types of human intestinal worm infections in the United States. Pinworms are white, narrow worms that can range in size from 8 to 13 millimeters for females and 2 to 5 millimeters for males.

Pinworm infections can spread easily. They most commonly occur in school-aged children and people who live in close quarters (such as institutions). They also occur often in those who have regular, close contact with individuals in these groups.

Medication can effectively treat pinworm infections, though reinfection is possible. Serious complications and long-term health effects are rare.

Learn more about the signs of a pinworm infection and some steps to take to prevent pinworm infection.

Pinworms are tiny, parasitic nematodes that live in the intestines and lay eggs on the skin around the anus. They are named for the pin-like tail on the female worms.

This is a nematode worm that is a parasite of the small intestines of numerous animals. enterobius vermicularis, nematode, parasite, parasitic, pinworm, roundworm, threadworm, wormShare on Pinterest
This is a nematode worm that is a parasite of the small intestines of numerous animals. E. R. Degginger/Science Source
Threadworms in the gut.Share on Pinterest
Threadworms in the gut. Charles R. Belinky/Science Source
Pinworm eggsShare on Pinterest
Pinworm infection is caused by accidentally swallowing pinworm eggs, which are transparent and too small to see with the naked eye. Charles R. Belinky/Science Source

The most common symptom of a pinworm infection is intense itching around the anus, but some individuals with pinworm infections may not experience any symptoms.

Symptoms can include:

  • strong, frequent itching of the anal area
  • restless sleep due to anal itching and discomfort
  • pain, rash, or other skin irritation around the anus
  • pinworms in your anal area
  • pinworms in your stool

Pinworm infections are highly contagious. The infection cycle typically follows these steps:

  1. An individual acquires an infection by ingesting or inhaling pinworm eggs. These microscopic eggs are usually deposited onto a surface by a person with the infection.
  2. The eggs remain in the intestine until they hatch and mature.
  3. Adult female pinworms move into the colon and exit the body through the anus at night. They lay eggs in the folds of skin around the anus and then return to the colon. These eggs often cause itching and irritation.

When the person with a pinworm infection scratches the affected area, the eggs transfer to the fingers and under the fingernails. The eggs can transfer to anything the person touches and survive on an indoor surface, such as fabric, for 2 to 3 weeks.

Surfaces that commonly host pinworms can include:

  • bedding
  • towels
  • clothing
  • toilet seats
  • toys
  • food

While uncommon, it is also possible to inhale airborne eggs, according to the Centers for Disease Control and Prevention (CDC ). This may happen when shaking contaminated bedding, towels, or clothing.

Scratching an affected area and then eating can lead to unintentionally ingesting pinworm eggs. This can lead to a repeat pinworm infection.

Sometimes eggs on the anus hatch, and the larvae can reenter the large intestine. If not treated, this can cause the infection to continue indefinitely.

Pinworm infections are highly contagious, especially among people in close quarters. This can include:

  • households
  • dormitories
  • institutions
  • child care centers
  • schools

Children can transfer pinworm eggs easily because they may put toys or objects containing pinworm eggs in their mouths.

Pinworm infections affect people of all ages and geographic regions. Since pinworm eggs are so small, it can be difficult to avoid individuals or areas with the infection.

While anyone can get a pinworm infection, the following groups can be more susceptible:

  • children who attend day care, preschool, or elementary school
  • children who suck their thumbs
  • people who chew their fingernails
  • individuals who live in crowded accommodations, such as institutions or dormitories
  • people who may not practice regular handwashing prior to eating
  • family members or caregivers of people with a pinworm infection

Only humans can get a pinworm infection. Cats, dogs, and other animals can’t acquire or transmit them. It’s not necessary to treat your pets for the infection, even if people in your household may have pinworms.

A tape test is the most reliable method for diagnosing a pinworm infection. This test involves pressing the sticky, adhesive side of clear cellophane tape against the skin around the anus.

Because pinworms often exit the anus while a person sleeps, people who suspect they have an infection should conduct a tape test immediately upon waking in the morning. Bathing or using the toilet can remove the eggs from your skin, so perform the test before you do anything else. If eggs are present, they should stick to the tape.

Take the tape to a doctor, who will examine it under a microscope to see if it contains pinworm eggs.

The CDC recommends conducting a tape test on at least three consecutive mornings to increase your likelihood of finding the eggs.

Medications and household cleaning strategies can help eliminate pinworms.


You can treat pinworm infections with either over-the-counter or prescription oral medications. Talk with a doctor to determine which is best for you.

Since pinworms easily pass from one person to another, all household members of a person with an infection — as well as caregivers and anyone else in close contact — will likely need treatment to prevent a pinworm infection or reinfection.

The most common and effective medications to treat pinworm infections include:

  • mebendazole (Vermox)
  • albendazole (Albenza)
  • pyrantel pamoate (Reese’s Pinworm Medicine)

One course of medication usually involves an initial dose followed by a second dose 2 to 3 weeks later. More than one course might be necessary to fully eliminate the eggs.

Creams or ointments can help soothe itchy skin.

Household cleaning

In addition to medication, a hygiene and household cleaning regimen such as the following can help you remove pinworm eggs:

  • Ensure the person with the infection and other household members thoroughly wash their hands with soap and warm water — especially before eating.
  • Encourage household members to shower and change their underwear every morning.
  • Maintain clean, short fingernails.
  • Avoid biting your nails, if you can.
  • Tell the person with the infection to avoid scratching the anal area, if possible.
  • Use hot water to launder all bedding, towels, washcloths, and clothing. Dry on high heat.
  • Avoid shaking clothing and bedding to keep pinworm eggs from spreading through the air.
  • Do not allow children to bathe together, as pinworm eggs can potentially spread in bath water and on washcloths.
  • Thoroughly clean any surfaces that might have eggs, such as toys, floors, countertops, and toilet seats.
  • Carefully vacuum all carpeted areas.

No recent scientific studies show that home remedies for pinworm infections are effective, but anecdotal evidence suggests you may find relief with raw garlic, raw carrots, or coconut oil.

Most people don’t experience serious complications from pinworm infections, but in rare cases the following complications can occur:

  • Urinary tract infections (UTIs). UTIs can develop if you do not treat the pinworm infection.
  • Vaginitis and endometritis. Endometritis infections can occur if pinworms travel from the anus to the vagina, affecting the uterus, fallopian tubes, and other pelvic organs.
  • Abdominal pain. The presence of a significant amount of pinworms can cause discomfort.
  • Weight loss. Substantial pinworm populations can reduce your intake of essential nutrients and cause weight loss.

The best way to prevent pinworm infections and repeat infections is to follow these hygiene routines and encourage other household members — especially children — to do the same:

  • Wash your hands carefully with soap and warm water after using the toilet, especially after bowel movements, after changing diapers, and before preparing and eating food.
  • Keep your fingernails short and clean.
  • Avoid habits that could spread pinworm eggs, such as nail biting or scratching, if possible.
  • Shower every morning to remove eggs deposited overnight, if you can.
  • Change your underwear and clothing daily.
  • Use hot water in the washing machine and hot air in the dryer when laundering bedding, clothing, and towels, if possible.

It’s possible to treat a pinworm infection with medication and a diligent cleaning regimen. However, because pinworm eggs are invisible to the naked eye and highly contagious, repeat infection can easily occur.

A pinworm infection can be acquired again when a pinworm larva hatches and reenters the anus. Reinfection can also occur if pinworm eggs are ingested. This can happen if pinworm eggs are on the hands or if the eggs become airborne.

If you experience recurrent infections after you’ve treated your household, it is possible that outside individuals and locations may be the source.

A pinworm infection is a common intestinal infection. It is contagious and tends to affect school-age children and those in group settings, like nurseries or group homes.

The most common symptom is intense itching around the anus.

Pinworm infection can be treated with medication and household cleaning. However, repeat infection is possible.