Mayo Clinic Health Manager
Get free personalized health guidance for you and your family.
Get StartedTests and diagnosis
By Mayo Clinic staff- Tape test. The most accurate test for pinworms is a cellophane tape test. Your doctor will press a piece of clear plastic tape against the skin around your anus and then examine the tape under a microscope for pinworm eggs. Because the parasite typically lays eggs at night, you may be able to get a good sample by testing yourself first thing in the morning before defecating or bathing. Press a piece of clear plastic tape to your anus, and then take the sample to your doctor. Several tape samples may be necessary to establish the diagnosis.
- Direct sighting of a worm. Sometimes the presence of pinworms is more obvious, as is the case when an adult worm is seen in the area around your anus, in your underwear or in the toilet after going to the bathroom.