You can get rid of pinworms at home with an over-the-counter medication called pyrantel pamoate, combined with a strict hygiene routine that prevents reinfection. The medication kills adult worms with a single dose, but you need a second dose two weeks later to catch any worms that were still eggs during the first round. Most people clear the infection completely within those two weeks, as long as the whole household follows the same cleaning and hygiene steps.
Confirming You Have Pinworms
Before you start treatment, it helps to confirm pinworms are actually the problem. The most reliable method at home is the tape test. First thing in the morning, before showering, using the toilet, or getting dressed, press the sticky side of a piece of clear tape against the skin around the anus. Female pinworms crawl out overnight to lay eggs, so the morning is when eggs are most likely to be present on the skin.
Fold the tape sticky-side down onto a clean surface or glass slide, seal it in a plastic bag, and bring it to your doctor’s office for examination under a microscope. Do this three mornings in a row. A single test can miss eggs, but three consecutive days catches most infections. You may also spot the worms yourself: they look like tiny white threads, about a quarter to half an inch long, and are sometimes visible around the anus at night or in stool.
Over-the-Counter Treatment
Pyrantel pamoate is available without a prescription at most pharmacies, sold under brand names like Reese’s Pinworm Medicine. The dose is based on body weight: 11 milligrams per kilogram (or 5 milligrams per pound), taken as a single oral dose, with a maximum of 1 gram regardless of weight. It’s a liquid suspension, so measuring carefully matters, especially for children.
This first dose paralyzes and kills the adult worms in the intestine. But it does not kill eggs that are already laid and waiting to hatch. That’s why a second identical dose two weeks later is essential. Those two weeks give any remaining eggs time to hatch into worms, which the second dose then eliminates. Skipping the second dose is the most common reason people think treatment “didn’t work.”
Prescription Alternatives
If pyrantel pamoate doesn’t resolve the infection, or if you prefer a different option, two prescription medications work well. Mebendazole is taken as a single 100 mg tablet, repeated in two weeks. Albendazole is a single 400 mg dose, also repeated in two weeks. Both follow the same two-dose logic: the first round clears adult worms, the second catches newly hatched ones. Your doctor can prescribe either for adults or children.
Does Garlic Actually Work?
Garlic is the most commonly mentioned natural remedy for pinworms, and there is some clinical evidence behind it. A study published in the Journal of the Faculty of Medicine Baghdad tested garlic powder capsules (400 mg, twice daily for three days) against mebendazole in 160 patients, mostly children, with confirmed pinworm infections. The garlic group achieved a 100% eradication rate, and over a six-month follow-up, only 3 patients in the garlic group experienced recurrence compared to 25 in the mebendazole group.
That’s a single study, and it hasn’t been widely replicated, so garlic shouldn’t be your first choice over proven medications. But if you want to try it alongside standard treatment, garlic powder capsules at 400 mg twice daily for three days is the dose that showed results. Other popular natural remedies like coconut oil and papaya seeds lack clinical evidence for pinworm eradication specifically.
The Hygiene Routine That Prevents Reinfection
Medication alone is often not enough. Pinworm eggs can survive on household surfaces for two to three weeks, and reinfection happens when you swallow eggs picked up from contaminated objects, bedding, or your own hands. A thorough hygiene routine during and after treatment is what breaks the cycle.
Morning Showers
Bathe every morning, not at night. Female pinworms deposit eggs around the anus overnight, and a morning shower washes those eggs away before you can transfer them to your hands, clothing, or bedding. Change into fresh underwear immediately after showering.
Hand Hygiene
Wash your hands thoroughly with soap and warm water after using the bathroom, before eating, and after touching bedding or clothing. Keep fingernails trimmed short. Eggs collect under the nails easily, especially if you scratch during sleep, and transfer to your mouth throughout the day.
Laundry
Wash all bedsheets, pajamas, underwear, and towels in hot water, at least 130°F, and dry them on a hot dryer cycle. The heat kills pinworm eggs. Do this on the first day of treatment and continue washing bedding frequently for the full two-week treatment period. Handle contaminated linens carefully to avoid shaking eggs into the air.
Household Surfaces
Wipe down bathroom surfaces, toilet seats, doorknobs, and light switches daily during treatment. Vacuum carpets and upholstered furniture, since eggs can settle on soft surfaces. Avoid shaking out bedding or clothing, which disperses microscopic eggs into the air where they can be inhaled and swallowed.
Treating the Whole Household
Pinworms spread extremely easily within a home. Eggs are microscopic and end up on shared surfaces, towels, and doorknobs. If one person in the household is infected, it’s common for others to be carrying the parasite without symptoms. Many doctors recommend treating all household members at the same time, even those with no itching or visible worms, to prevent the infection from bouncing back and forth between family members.
This is especially important in households with young children, who are more likely to touch contaminated surfaces and put their hands in their mouths. If you treat only the symptomatic person while others silently carry the infection, reinfection is almost inevitable.
What the Full Timeline Looks Like
Day one, take the first dose of medication and begin the hygiene routine: morning showers, hot-water laundry, surface cleaning, and careful handwashing. Itching around the anus typically improves within a few days as the adult worms die off. Two weeks later, take the second dose to eliminate any worms that hatched from surviving eggs. Continue the hygiene routine for at least another week after the second dose.
If symptoms return after completing both doses, the most likely cause is reinfection from eggs in the environment or from an untreated household member, not treatment failure. In that case, repeat the full two-dose cycle, treat everyone in the home simultaneously, and double down on the cleaning routine. Persistent infections after two full treatment rounds warrant a visit to your doctor, who may prescribe a different medication or investigate other causes of the symptoms.

