Home remedies for pinworms include garlic, wormwood, grapefruit seed extract, vinegar, and a mix of coconut and castor oil, according to HealthGuidance.org. Proper hygiene and a diet that is rich in proteins, vitamins and minerals are also important in getting rid of pinworms.
Garlic and grapefruit contain antibacterial compounds that kill pinworms and eliminate infection. Individuals can eat garlic raw, or grind it into a smooth paste and apply it to the rectum. Wormwood and raw pumpkin seeds contain chemicals that weaken the cell membranes of the parasites causing pinworms, slowly killing them. Applying a mix of castor oil and coconut oil to the rectum reduces inflammation caused by scratching, reports SearchHomeRemedy.com. Those with pinworms should avoid carbohydrates and sugar, as they create an environment in which the parasites can thrive. Regular washing of hands, keeping fingernails short and bathing daily prevent the parasite from spreading, explains WebMD.