Several lab tests exist for diagnosing intestinal worms. Worms in poop can be identified through a stool sample. A tape test confirms the presence of pinworms. For this test, a tape is pressed against the perianal area and then inspected under a microscope. The test is best conducted first thing in the morning since the female worms most often lays eggs during the night.

Zaharia_Bogdan / Getty Images
This site offers information designed for educational purposes only. You should not rely on any information on this site as a substitute for professional medical advice, diagnosis, treatment, or as a substitute for, professional counseling care, advice, diagnosis, or treatment. If you have any concerns or questions about your health, you should always consult with a physician or other healthcare professional.