Your child keeps waking up at night, scratching around their bottom. Perhaps you've noticed tiny white threads in their underwear or on the toilet paper. Or maybe someone in your household has been dealing with an unexplained itch that seems to get worse at bedtime.

These could be signs of a pinworm infection.

Pinworms are among the most common intestinal parasites in the United States, especially among school-aged children. Although the idea of having worms living in your intestines may sound alarming, pinworm infections are usually mild and can be treated successfully.

The frustrating part is that they spread easily. One infected family member can unintentionally pass the infection to others, and even after treatment, pinworms may return.

What Are Pinworms?

Pinworms, scientifically known as Enterobius vermicularis, are tiny, white, thread-like parasitic worms that live in the human intestinal tract. The infection they cause is called enterobiasis.

Adult female pinworms typically measure about 8–13 millimeters (roughly ⅓–½ inch) long. Males are considerably smaller, measuring approximately 2–5 millimeters.

They live primarily in the large intestine, but at night, when an infected person is asleep, fertilized female worms migrate out through the anus and deposit thousands of microscopic eggs on the surrounding skin.

These eggs become infectious within just a few hours, creating the conditions for the infection to spread.

Can You Get Pinworms From Dogs or Cats?

No. Pinworms infect humans, not dogs or cats.

Some pet owners regularly give their animals deworming medications and assume this also protects everyone in the household from intestinal parasites.

Dogs and cats can carry other intestinal parasites, some of which can infect humans, but they do not serve as hosts for human pinworms.

Even if your pets receive regular veterinary care and parasite prevention, your family can still develop a pinworm infection.

Likewise, people do not need to take deworming medications simply because they own pets.

How Do Pinworms Spread?

The pinworm life cycle explains why these infections are so contagious.

At night, female worms leave the intestine and lay eggs around the anus. Their movement and the substances associated with egg deposition can cause intense itching.

When an infected person scratches the area, microscopic eggs can become trapped under their fingernails.

Later, the person may touch food, put their fingers in their mouth, or handle objects that other people use.

If the eggs are swallowed, they hatch in the small intestine. The developing worms then migrate to the large intestine, where they mature.

It generally takes about one month from swallowing the eggs until adult female worms begin laying new eggs.

Pinworm eggs can also spread through contaminated household items, including:

  • Bed sheets and pillowcases
  • Underwear and pajamas
  • Towels
  • Children's toys
  • Bathroom surfaces
  • Door handles
  • Furniture and other frequently touched objects

Under favorable conditions, pinworm eggs can survive on surfaces for approximately two to three weeks.

Can You Catch Pinworms in a Swimming Pool?

Technically, pinworm eggs may enter swimming pool water, and the chlorine levels commonly used in pools do not reliably kill them.

However, according to the Centers for Disease Control and Prevention (CDC), catching pinworms from a properly maintained swimming pool is extremely unlikely.

The main route of transmission remains swallowing eggs transferred from contaminated hands, surfaces, or objects.

Good hand hygiene is therefore far more important for prevention than avoiding swimming pools.

What Are the Symptoms of a Pinworm Infection?

The most recognizable symptom is itching around the anus, particularly at night.

This happens because female pinworms usually lay their eggs while the infected person is sleeping.

In some cases, the itching becomes intense enough to repeatedly interrupt sleep.

Symptoms in Children

Children may scratch while asleep or without noticing. Some children have no symptoms.

Common signs include:

  • Frequent scratching around the anus
  • Restless sleep or waking during the night
  • Irritability or unusual tiredness
  • Occasional abdominal discomfort

Parents may sometimes notice tiny white worms moving around the anus, in underwear, or on the surface of stool.

However, symptoms such as abdominal pain and irritability are not specific to pinworms and may have other causes.

Symptoms in Adults

Adults can also become infected, although many experience few symptoms or none at all.

Sometimes an adult discovers they have pinworms only after a child or another household member is diagnosed.

When symptoms occur, they are generally similar to those seen in children: nighttime itching, disturbed sleep, skin irritation, and occasional abdominal discomfort.

An important point is that someone can carry pinworms and spread the infection without having noticeable symptoms.

Can Pinworms Cause Complications?

Most pinworm infections are mild and do not lead to serious health problems.

However, persistent scratching may damage the skin around the anus, occasionally allowing bacteria to enter and cause a secondary infection.

In girls and women, pinworms may sometimes migrate from the anal area toward the vulva or vagina, causing irritation or inflammation.

Symptoms may include genital itching, discomfort, or unusual discharge.

These symptoms should be evaluated by a healthcare professional because several other conditions can cause similar problems.

Serious complications from pinworms are uncommon.

How Are Pinworms Diagnosed?

An itchy anus does not automatically mean someone has pinworms.

Hemorrhoids, fungal infections, eczema, skin irritation, and other medical conditions can cause similar symptoms.

If itching persists or the diagnosis is uncertain, a healthcare professional can recommend testing.

The Tape Test

The most commonly recommended diagnostic method is the tape test.

It is usually performed first thing in the morning, before the person uses the bathroom, bathes, or gets dressed.

A piece of clear adhesive tape is gently pressed against the skin around the anus.

The laboratory examines the tape under a microscope to look for pinworm eggs. Wash your hands carefully afterward, and follow the laboratory’s instructions for sealing and transporting the sample.

Because females do not necessarily lay eggs every night, healthcare professionals commonly recommend collecting samples on three consecutive mornings.

Your healthcare provider or laboratory can explain how to collect and submit the samples correctly.

Can a Stool Test Detect Pinworms?

Sometimes, but stool testing is not the preferred method.

Unlike many intestinal parasites, pinworms typically deposit their eggs outside the intestine.

As a result, routine stool examinations often fail to detect them.

A negative stool test therefore does not rule out a pinworm infection.

Another way to identify pinworms is to look for adult worms around the anus approximately two to three hours after the infected person falls asleep.

The worms may appear as tiny moving white threads.

Why Is Pinworm Infection Often a Family Problem?

Pinworms spread particularly easily among people who live together.

If a child has pinworms, microscopic eggs may already be present on shared bathroom surfaces, bedding, toys, or other household objects.

Other family members can become infected even if they have no symptoms.

This is why treating only the person with noticeable itching may not be enough.

Someone who has completed treatment can become infected again by swallowing eggs left in the environment or transferred by another household member.

For this reason, the CDC generally recommends treating infected individuals, household members, and caregivers at the same time, unless a particular person requires special medical guidance.

How Are Pinworms Treated?

Fortunately, pinworm infections can usually be treated with antiparasitic medications.

In the United States, commonly used medications include:

  • Pyrantel pamoate: Available in certain over-the-counter formulations.
  • Mebendazole: A prescription medication in the United States.
  • Albendazole: Another prescription medication that may be used to treat pinworm infections.

Do not use veterinary deworming products to treat people.

The appropriate medication and dose depend on the person's age, weight, medical history, and other individual circumstances.

Follow the medication label and ask a pharmacist or clinician to confirm the dose and repeat-treatment plan. Some over-the-counter labels say not to repeat treatment unless directed by a doctor.

Taking more tablets than recommended does not improve treatment and may cause unnecessary side effects.

Why Is a Second Dose Necessary?

Standard pinworm treatment typically involves two doses of medication, taken two weeks apart.

Antiparasitic medications kill worms, but they do not reliably kill pinworm eggs.

Eggs that remain in the environment may still be swallowed, allowing new worms to develop.

The second dose helps eliminate worms that developed after the first treatment.

Even if the itching disappears quickly, completing the recommended treatment schedule is important.

Are These Medications Safe for Young Children?

Treatment requires additional care in certain groups.

Parents should speak with a healthcare professional before treating a child younger than two years old.

Pregnant women and people who are breastfeeding should also consult a healthcare professional before taking pinworm medications.

The decision depends on the specific medication, the person's circumstances, and the potential benefits and risks of treatment.

Can Pinworms Go Away Without Medication?

In theory, yes.

Adult pinworms have a limited lifespan. If a person completely avoids swallowing additional eggs, the infection can eventually disappear as the existing worms die.

However, preventing reinfection is difficult because the eggs are microscopic and can spread throughout the home.

When medication cannot be used, healthcare professionals may recommend a strict hygiene-only approach for approximately six weeks.

For most people, medication combined with careful hygiene is the simpler and more reliable treatment strategy.

Do Garlic, Herbal Remedies, or Enemas Work?

Traditional remedies for intestinal worms have been used for centuries.

Garlic, pumpkin seeds, herbal teas, and certain plant extracts are frequently mentioned as natural parasite treatments.

However, there is insufficient high-quality clinical evidence that these remedies can reliably cure pinworm infections in humans.

Some herbal preparations may also be harmful.

Enemas are not a recommended treatment for pinworms either. They are not a substitute for recommended medication and hygiene measures.

Using an unproven remedy instead of an effective medication can prolong the infection and allow it to spread to other household members.

How to Prevent Pinworms From Coming Back

Treating the worms is only part of the solution.

Preventing reinfection requires reducing the number of eggs that remain on the skin, clothing, bedding, and household surfaces.

1. Wash Your Hands Thoroughly

Handwashing with soap and water is one of the most effective ways to prevent pinworm transmission.

Wash your hands after using the bathroom, changing diapers, and before preparing or eating food.

Pay special attention to your fingertips and the areas beneath your fingernails.

2. Keep Fingernails Short

Pinworm eggs can collect underneath fingernails.

Keeping nails short and clean reduces the places where eggs can accumulate.

Children should also be encouraged to avoid nail-biting and putting their fingers in their mouths.

3. Shower Every Morning

Female pinworms usually lay their eggs at night.

Showering in the morning helps remove eggs deposited on the skin while sleeping.

Pay particular attention to washing the anal area gently with water and a mild cleanser.

Showering is preferable to sharing bathwater, especially while treating an infection.

4. Change Underwear Daily

Put on clean underwear every morning.

During treatment, wash pajamas, towels, and bedding regularly.

Fresh underwear and sleepwear help reduce contact with eggs that may have accumulated overnight.

5. Wash Bedding and Clothes in Hot Water

CDC recommends washing underwear, pajamas, towels, and bed linens in hot water of at least 130°F (54°C), when fabric care instructions allow. This is a laundry temperature, not a bathing temperature.

Drying items thoroughly with heat can also help destroy eggs.

Avoid shaking dirty bedding or clothing, which may disperse eggs into the surrounding environment.

6. Clean Frequently Touched Surfaces

Pay special attention to bathrooms, toilet seats, door handles, and objects that children regularly touch.

Regular vacuuming and damp dusting can help remove eggs from the home.

7. Continue Hygiene Measures After Treatment

Strict hygiene measures should continue for at least two weeks after the final medication dose.

If treatment relies entirely on hygiene rather than medication, these precautions generally need to continue for approximately six weeks.

Can a Child With Pinworms Attend School or Daycare?

In most cases, children with pinworms do not need to remain home from school or daycare solely because of the infection.

The National Health Service (NHS) advises that exclusion is generally unnecessary.

In the United States, parents should also follow their school or childcare facility's policies and any applicable local public health guidance.

Treatment should begin promptly, and children should receive help with proper handwashing and other hygiene habits.

If several children in a classroom or daycare group become infected, additional infection-control measures may be needed.

When Should You See a Doctor?

Although pinworm infections are usually uncomplicated, medical advice is important in certain situations.

Contact a healthcare professional if:

  • Itching continues or returns after completing treatment.
  • A child younger than two years old may need treatment.
  • You are pregnant or breastfeeding.
  • There is severe abdominal pain, vomiting, or other unusual symptoms.
  • The skin around the anus becomes very painful, swollen, or shows signs of infection.
  • A girl or woman develops genital irritation, pain, or unusual discharge.
  • Pinworm infections repeatedly occur in the same household.

A healthcare professional can confirm whether the symptoms are actually caused by pinworms and recommend the most appropriate next steps.

If Pinworms Keep Coming Back

Reinfection does not necessarily mean the medication failed. Eggs left on hands, bedding, or shared surfaces can restart the cycle. Ask your primary care doctor or your child’s pediatrician to reassess persistent symptoms rather than repeatedly taking deworming medicine on your own.

Pinworms can affect families who practice good hygiene. There is no need for embarrassment: confirming the diagnosis, coordinating household treatment, and following the hygiene plan can help break the cycle.

FacebookPinterest

Read the sources

This article explains selected evidence. It is not a systematic review or individual medical advice.

Explore Good to Know