A pinworm infection is one of the most common worm infections worldwide. Pinworms are thin and white. They're about 1/4 to 1/2 inch — about 6 to 13 millimeters — long.
Pinworm infections are caused by swallowing or breathing in pinworm eggs. These tiny eggs are too small to see with the eyes. Infection happens most often in school-age and preschool-age children.
Symptoms of a pinworm infection can include anal itching and restless sleep. That's because when their hosts sleep, female pinworms lay thousands of eggs in the folds of skin that surround the anus. But many people with pinworm infections have no symptoms.
Treatment for a pinworm infection involves taking anti-parasite medicines that kill the pinworms. For best results, everyone in the family of the person with the infection should be treated. All bedding, pajamas and underwear should be washed in hot water too.
Help prevent pinworm infections by bathing often and washing hands regularly. Wash laundry such as bedsheets and underwear in hot water. Keep fingernails short and don't scratch the anal area.

An adult pinworm generally is 1/4 to 1/2 inch (about 6 to 13 millimeters) in length. The most common symptom of infection is anal itching, particularly at night, as worms migrate to the host's anal area to lay their eggs.
Symptoms of a pinworm infection can include:
But pinworm infections often cause no symptoms.
Talk with your healthcare professional if you or your child has serious anal itching, especially at night.
Most often, swallowing pinworm eggs causes a pinworm infection. The eggs spread through stool. This can be carried to the mouth by tainted food or drink or by unwashed fingers. Once swallowed, the eggs hatch in the small intestine. They grow into adult worms within a few weeks.
Female pinworms move to the anal area to lay their eggs. This often causes anal itching. If you scratch the itchy area, the eggs cling to your fingers and get under your fingernails. The eggs then get transferred to other surfaces, such as toys, bedding or toilet seats. The eggs also can be transferred from fingers to food, liquids, clothes or other people.
Pinworm eggs can survive on surfaces indoors for 2 to 3 weeks.
Much less often, pinworm eggs get into the air and are inhaled and swallowed.
Risk factors for a pinworm infection include:
Most often, pinworm infections don't cause serious problems called complications. Rarely, having many pinworms in the body can cause infection of female genitals. The worms can travel from the anal area to the vagina.
Other rare complications of a pinworm infection can include:
You can take the following steps to help prevent a pinworm infection. If you've had a recent infection, these steps also can help lower the risk of another one: