How to Treat Worms in Kids: Meds and Prevention

The most common worm infection in children is pinworms, and treating it is straightforward: a single dose of over-the-counter deworming medication, followed by a second dose two weeks later. Most cases clear up quickly with this approach, combined with thorough household hygiene to prevent reinfection. Here’s what you need to know to handle it from start to finish.

Pinworms Are by Far the Most Common

If your child lives in the U.S., Canada, Europe, or Australia, the worm you’re almost certainly dealing with is pinworm. These tiny, white, thread-like worms live in the intestines and come out at night to lay eggs around the anus. The hallmark symptom is intense itching around the bottom at night. Some kids also have trouble sleeping, become irritable, or have no obvious symptoms at all.

Other intestinal worms like roundworms, hookworms, and whipworms are more common in tropical regions where sanitation is limited. Roundworms alone infect an estimated 800 million people globally, mostly through contaminated soil. Heavy roundworm infections can cause abdominal pain, coughing (as larvae migrate through the lungs), and slowed growth in children. If your child has recently traveled to a tropical area and has persistent stomach pain or unexplained weight loss, a different type of worm may be involved, and that requires a doctor’s visit for proper identification.

How to Confirm It’s Worms

You can sometimes spot pinworms directly. Check around your child’s anus with a flashlight about two to three hours after they’ve fallen asleep. The worms are small, white, and wiggle.

The more reliable method is the tape test, recommended by the CDC. Press the sticky side of a piece of clear tape against the skin near your child’s anus first thing in the morning, before they use the bathroom, bathe, or get dressed. This picks up any eggs the worms deposited overnight. Repeat this three mornings in a row for accuracy, sealing the tape in a plastic bag each time. Bring the samples to your child’s doctor, who can examine them under a microscope to confirm pinworm eggs.

Over-the-Counter Medication

Pyrantel pamoate is the main deworming medication available without a prescription in the U.S. It paralyzes the worms so the body can expel them naturally. The dose is based on your child’s weight: 5 milligrams per pound of body weight, up to a maximum of 1 gram. It comes as a liquid suspension, which makes dosing easier for young children. You’ll find it at most pharmacies under various brand names.

Your child takes one dose now, then a second dose exactly two weeks later. That two-week gap matters. The medication kills live worms but cannot kill eggs. Any eggs present during the first dose will hatch into new worms over the next couple of weeks, and the second dose wipes those out before they can lay new eggs and restart the cycle. Skipping the second dose is one of the most common reasons pinworm infections keep coming back.

Prescription Options

If the over-the-counter option doesn’t resolve the infection, or if your child has a different type of worm, a doctor can prescribe stronger medications. These prescription treatments work against a broader range of intestinal parasites and follow the same two-dose schedule for pinworms. The World Health Organization considers these medications safe for children as young as 12 months, with a reduced dose for children under 24 months. Safety data for children under 1 year is limited, so treatment in infants requires a doctor’s guidance.

Side effects from deworming medications are generally mild. Some children experience temporary stomach cramps, nausea, or diarrhea as the worms are being expelled. These symptoms typically pass within a day or two and don’t require treatment on their own.

Household Cleaning to Prevent Reinfection

Medication alone won’t solve the problem if your home is still full of pinworm eggs. A single female pinworm lays thousands of eggs, and those eggs are microscopic, sticky, and can survive on household surfaces. This is why reinfection is so common, especially in families with multiple children.

On the morning you give the first dose of medication, do a thorough cleaning:

  • Bedding and pajamas: Strip all sheets, pillowcases, and sleepwear and wash them in hot water, at least 130°F. Dry on high heat.
  • Underwear: Change your child’s underwear every morning and wash it in hot water daily for the two weeks between doses.
  • Towels: Give each family member their own towel and wash towels frequently in hot water. Don’t share.
  • Surfaces: Wipe down toilet seats, bathroom counters, and doorknobs. Vacuum carpets and upholstered furniture, especially in bedrooms.
  • Fingernails: Keep your child’s nails trimmed short. Eggs collect under the nails when children scratch, and those eggs travel straight to the mouth, toys, and shared surfaces.

Handwashing is the single most effective prevention tool. Have your child wash with soap and warm water after using the toilet, before eating, and first thing in the morning. This breaks the hand-to-mouth cycle that keeps the infection going.

Treat the Whole Family

Pinworms spread easily within households. Eggs can transfer through shared bedding, towels, doorknobs, or even floating briefly in the air when you shake out sheets. If one child is infected, there’s a good chance siblings and parents are carrying the parasite too, even without symptoms. Most doctors recommend treating everyone in the household at the same time, not just the child showing symptoms. Otherwise, an untreated family member can silently reinfect the child after treatment.

What About Natural Remedies?

You’ll find plenty of recommendations online for garlic, pumpkin seeds, carrots, papaya seeds, and other foods as natural dewormers. The evidence behind these is extremely thin. While a few small-scale studies have looked at ingredients like pumpkin seeds and garlic, there is almost no reliable evidence that any natural remedy works well enough to clear a worm infection in practice. Some of these foods may have mild antiparasitic properties in a lab setting, but that doesn’t translate to reliably killing worms in your child’s intestines at the amounts you’d realistically eat.

Given that proven medication is inexpensive, widely available, and works within days, natural remedies aren’t a substitute. A prolonged untreated pinworm infection means weeks of disrupted sleep and constant itching for your child, plus ongoing spread to the rest of the family.

Signs That Need Medical Attention

Pinworm infections are annoying but rarely dangerous. Other types of worm infections can cause more serious problems. Bring your child to a doctor if you notice blood in stool, significant weight loss, persistent abdominal pain, skin yellowing, or signs of dehydration like extreme thirst, very little urination, or weakness. These can signal a heavier parasite burden or a different type of infection that needs targeted treatment. Also see a doctor if symptoms haven’t resolved after completing both doses of medication, as reinfection or a different parasite may be involved.