Can You Get Pinworms From Biting Your Nails? What the Studies Show

Health · 4 min read · Updated

By Igor Gazivoda · Founder, Stop Biting

A software developer who bit his nails for over 20 years, not a clinician.

Studies link nail biting to pinworm in children, but only as an association. What three studies and two reviews found, and what to do if you suspect it.

Can you get pinworms from biting your nails?

Possibly, but the studies show an association, not a proven route. The CDC says pinworm eggs can infect a person who gets eggs under their fingernails and then touches their mouth, and its prevention page includes avoiding biting nails. On its threadworms page, the NHS lists "do not bite nails or suck thumbs and fingers" among the things to avoid at home to stop becoming infected again. Those are routes and precautions, not a finding that nail biting causes infection. In several studies of children, nail biting was more common among those with pinworm (Enterobius vermicularis) infection. A 2019 review lists nail biting among the main risk factors, alongside age 4 to 11, contact between the anus, fingers and mouth, unsupervised body hygiene and poor hand hygiene (Wendt et al., 2019).

A 2025 review adds that egg transmission is mainly by the fecal-oral route, and that infections come back often, likely through repeated reinfection, particularly autoinfection. It lists avoiding finger-sucking, nail biting and scratching the anal area among the preventive measures, with handwashing and clipping the nails (Leung et al., 2025).

Sources for this section:

What did the individual studies find?

In a Taiwanese case-control study of fourth-graders, 429 children who had been infected were compared with 280 uninfected classmates. Nail biting was one of the factors significantly associated with infection (odds ratio 2.1), alongside playing on the floor (2.5) and failing to wash hands before meals (1.7) (Sung et al., 2001).

A cross-sectional survey of 402 children aged 1 to 12 in Yemen found 29.4% infected. The habit of nail biting or cutting nails with the teeth was independently associated with infection (prevalence ratio 1.61, 95% confidence interval 1.18 to 2.21), as were irregular handwashing before meals (2.01) and putting toys or pens in the mouth (1.58) (Al-Adhroey et al., 2022).

Not every study could separate it out. A survey of 211 children in Argentina found the risk of Enterobius infection was greater in children with onychophagia (odds ratio 1.6), but the 95% confidence interval ran from 0.7 to 3.7, which includes no effect (Cociancic, Zonta & Navone, 2018).

All three are observational. They show that nail biting and infection go together, in different countries, but not that biting caused the infection, because a child who bites nails may also wash hands less often.

Sources for this section:

How common is pinworm in children?

Reviews give broad estimates. The German review puts the prevalence among kindergarten and primary-school pupils in Europe generally near 20%, with infants, adolescents and adults only sporadically affected (Wendt et al., 2019). The 2025 review says it affects approximately 30% of children worldwide and up to 60% in some developing countries, and that 30 to 40% of infected people have no symptoms. When there are symptoms, the most common is itching around the anus at night (Leung et al., 2025).

Those are estimates from reviews, and rates differ a lot by country and setting.

What should you do if you suspect pinworm?

See a doctor, who can confirm it. The 2025 review says the diagnosis is best made with the cellophane tape test, and that a single test has a sensitivity of around 50%, rising to about 90% when it is done on three different mornings. Both reviews describe treatment with prescription anthelmintic medicines and say treating everyone in the household should be considered, because reinfection is common (Leung et al., 2025; Wendt et al., 2019). Which medicine and how much is a decision for the doctor or pharmacist.

Does stopping nail biting prevent pinworm?

Nobody has shown it on its own. The preventive advice in the reviews is a package: handwashing, especially after the toilet and before meals, short nails, and avoiding finger-sucking, nail biting and scratching. None of the studies we found tested whether stopping nail biting alone changes infection rates.

If nail biting is part of the picture, habit reversal training is the approach with trials behind it.

Where to go next

Related reading

A note on medical advice

This article is for general information only and is not medical advice. Nail biting and related body-focused repetitive behaviours (BFRBs) can have medical and psychological dimensions that deserve individual attention. For diagnosis or treatment — of BFRBs, infections, or any condition discussed here — consult a qualified professional: a GP or dermatologist for physical symptoms, or a therapist experienced with BFRBs for the habit itself. The TLC Foundation for Body-Focused Repetitive Behaviors (bfrb.org) maintains a directory of BFRB-informed clinicians.

Related articles

About the author

Igor Gazivoda (Founder, Stop Biting). Igor is a software developer, not a doctor, therapist or researcher. He bit his nails for over 20 years, tried bitter polish, reminder bands and willpower without success, and built Stop Biting to supply the one thing none of them did: something outside his own attention that notices when his hand moves toward his mouth.

More about Igor and why he built this · Editorial policy and corrections