What Does Pinworm Medicine Do to Worms?

Pinworm medicine works by either paralyzing the worms or starving them, so your body can flush them out naturally during bowel movements. A single dose kills the live worms in your intestines within hours, but because the medication cannot destroy pinworm eggs, a second dose two weeks later is essential to catch any newly hatched worms.

How the Medicine Kills Pinworms

The most common pinworm treatment is pyrantel pamoate, sold over the counter at most pharmacies. It works by triggering a kind of permanent muscle cramp in the worms. The drug causes a rush of signaling chemicals at the worm’s nerve-muscle junctions while simultaneously blocking the enzyme that would normally shut that signal off. The result is spastic paralysis: the worms lock up, lose their grip on the intestinal wall, and get swept out with stool. They’re alive but completely immobilized, so your digestive system does the rest.

Prescription options like mebendazole work differently. Instead of paralyzing the worms, these drugs block the worms’ ability to absorb glucose and build essential internal structures called microtubules, which cells need to maintain their shape and transport nutrients. Without energy or structural integrity, the worms slowly break down and die. This process takes a bit longer than paralysis but is equally effective.

Why You Need Two Doses

No pinworm medication, whether over the counter or prescription, can kill pinworm eggs. This is the single most important thing to understand about treatment. When you take the first dose, it wipes out the adult worms living in your intestines. But any eggs already laid (and pinworms lay thousands, mostly around the anus at night) will continue developing untouched by the medication.

Those eggs hatch into new worms over roughly two weeks. The second dose, taken exactly two weeks after the first, kills these newly matured worms before they can lay a fresh batch of eggs. Skipping the second dose is the most common reason people end up reinfected and think the medicine didn’t work.

Who Needs to Be Treated

Pinworm eggs spread incredibly easily through a household. They’re microscopic, stick to bedding and clothing, and can survive on surfaces for two to three weeks. Because of this, the CDC recommends treating everyone in the household at the same time, not just the person who has symptoms. That includes caregivers and family members who seem perfectly fine. If even one person harbors worms without knowing it, the cycle of reinfection continues.

Both doses should be given on the same schedule for every person in the household. Staggering treatment or only treating the symptomatic person is a recipe for repeated infections.

What to Expect After Taking It

Pyrantel pamoate is a single oral dose based on body weight, and most people tolerate it well. The most commonly reported side effects are mild: stomach cramps, nausea, diarrhea, headache, and dizziness. Some people feel drowsy or lose their appetite for a day. These effects are uncommon rather than universal, and skin rash is rare. Most people take the medicine and feel nothing unusual at all.

You probably won’t see worms in your stool afterward, though it’s possible. The worms are tiny (about the length of a staple) and often partially digested before they pass. The main sign that the medicine is working is that the intense nighttime itching around the anus starts fading within a day or two of the first dose.

Preventing Reinfection During Treatment

Because the medicine can’t touch the eggs already spread around your home, hygiene measures during the two-week treatment window make a real difference. Wash bedding, pajamas, and towels in hot water on the morning after each dose. Have everyone in the household shower in the morning rather than at night, since female pinworms lay eggs overnight and a morning shower removes them before they can spread. Keep fingernails trimmed short, because eggs collect under nails when someone scratches during sleep.

Pinworm eggs become non-viable after about two to three weeks without a host, so thorough cleaning during the treatment period helps break the cycle. Vacuuming carpets and wiping down bathroom surfaces reduces the number of viable eggs in the environment while the medication handles the worms themselves.

OTC vs. Prescription Options

Pyrantel pamoate is available without a prescription and is the go-to first treatment for most people. Prescription alternatives like mebendazole (sold under the brand name Emverm) are typically reserved for cases where over-the-counter treatment fails or when a doctor prefers the different mechanism of action. Both approaches require the same two-dose, two-week protocol.

For children under two years old or anyone who is pregnant, treatment decisions get more nuanced because safety data varies between medications. In those situations, a healthcare provider will weigh the risks and choose the most appropriate option based on age, weight, and overall health.