How long does it take for pinworms to come out is mainly determined by the location and number of pinworms in the intestine and whether the anal sphincter is relaxed. Adult pinworms are mainly found in the ileocecal region of the body, with the colon, lower ileum and rectum being the most common areas. The female worms usually crawl out of the intestinal tract after going to sleep, i.e., around 11:00 p.m., and lay eggs in the perianal area. The greater the number of pinworms in the intestine, the closer the location to the anus, and the more relaxed the anal sphincter. It should be noted, however, that the use of fragrant oil to attract pinworms is generally of little use; pinworms have no sense of taste, they cannot smell fragrant oil, and their crawl to the outside of the anus is mostly due to gravity, or they move near the anus with the stool. Pinworms can only crawl outside the anus after the anal sphincter is relaxed. If smearing with sesame oil can have some therapeutic effect, it is possible that the oil adheres to the pinworm and thus affects its peristalsis. When patients are infected with pinworms, it is recommended that they go to the anorectal department of the hospital for active drug deworming treatment in a timely manner, and do not use prescriptions at home to avoid delaying the condition.