The intense anal itching caused by pinworms can be relieved with a combination of over-the-counter topical treatments for immediate comfort and anti-parasitic medication to eliminate the worms themselves. The itching is worst at night because female pinworms migrate to the skin around the anus while you sleep, laying thousands of eggs in the surrounding folds of skin. Stopping the itch for good means killing the worms, preventing reinfection, and managing the irritation while your body heals.
Why the Itching Is Worse at Night
Pinworms are small, white, thread-like parasites that live in the intestines. During the day, they stay put. But at night, female worms crawl out to the anal area and deposit eggs on the surrounding skin. This movement and egg-laying triggers intense itching, which leads to scratching, which spreads eggs to your fingers, under your nails, and onto bedding and surfaces. Those eggs can survive on household surfaces for two to three weeks, making reinfection extremely easy.
The scratching itself creates a second problem. Broken skin around the anus can develop a bacterial infection, causing redness, swelling, warmth, or discharge. If you notice these signs, that’s a separate issue that needs medical attention beyond treating the worms.
Immediate Itch Relief
While you wait for anti-worm medication to work, several options can reduce the itching enough to let you sleep:
- Hydrocortisone cream: An over-the-counter 1% hydrocortisone cream applied to the skin around the anus two to three times daily reduces inflammation and calms the itch. Don’t use it for more than a week without guidance, as prolonged use can thin the skin.
- Moisture-absorbing products: A small amount of cornstarch or unmedicated talcum powder, or even a small piece of cotton placed against the area, absorbs moisture and reduces irritation.
- Warm baths: Soaking in a warm bath before bed can soothe irritated skin. This also helps wash away eggs deposited on the skin’s surface.
Resist the urge to scratch, even though that feels nearly impossible. Scratching picks up eggs under your fingernails and restarts the cycle of reinfection every time you touch your mouth, food, or surfaces. Wearing snug-fitting underwear or cotton gloves at night can help, especially for children.
Treating the Worms Themselves
The only way to permanently stop the itching is to kill the pinworms. Pyrantel pamoate is available without a prescription in liquid, capsule, and chewable tablet forms. Treatment requires two doses: one now, and a second dose two weeks later. The medication kills live worms but cannot destroy eggs, so that second dose is essential. It catches newly hatched worms that were still eggs during the first round.
Prescription alternatives exist if over-the-counter treatment doesn’t resolve the infection. Your doctor can determine whether a different medication is appropriate based on your situation.
Common side effects of pyrantel pamoate include upset stomach, stomach cramps, diarrhea, nausea, and loss of appetite. These are typically mild and short-lived.
Confirming the Infection
If you’re not sure pinworms are the cause, a simple tape test can confirm it. First thing in the morning, before bathing, using the toilet, or getting dressed, press a strip of clear adhesive tape against the skin near the anus. The eggs stick to the tape and can be identified under a microscope. Do this on three consecutive mornings for the most reliable result, since the worms don’t necessarily lay eggs every single night. Place the tape in a sealed plastic bag or specimen container and bring it to your doctor’s office.
Household Cleaning to Prevent Reinfection
Medication alone often fails if you don’t address the eggs already scattered around your home. Pinworm eggs are microscopic, light, and drift easily through the air when disturbed. A thorough cleaning routine during and after treatment makes the difference between a one-time infection and a recurring problem.
Wash all underwear, pajamas, sheets, blankets, and towels in hot water and dry them on high heat. Do this daily during the treatment period. Pinworm eggs are sensitive to sunlight, so open the blinds in bedrooms during the day. When dusting, use a damp cloth or oiled rag rather than a dry duster, which flings eggs into the air. Vacuum carpets and upholstered furniture carefully. The cloth you use for dusting can be boiled afterward or thrown away.
Everyone in the household should wash their hands thoroughly after using the bathroom and before eating. Keep fingernails trimmed short, since eggs collect under the nails after scratching. Morning showers are better than evening baths during an active infection because they wash away eggs deposited overnight.
How Long Until the Itching Stops
After the first dose of medication, live worms begin dying within a few days. The itching typically starts to fade as the worms stop their nightly migration to lay eggs. However, some residual irritation can linger for several days after treatment, especially if the skin has been damaged by scratching. Using hydrocortisone cream or a soothing bath during this window helps bridge the gap.
If itching returns after the second dose of medication, reinfection is the most likely explanation. This is common in households with young children, who easily transfer eggs through normal contact. In these cases, treating every member of the household at the same time, along with a thorough cleaning, breaks the cycle more effectively than treating one person at a time.
Treating the Whole Household
Pinworms spread so easily that if one person in a home is infected, others likely are too, even without symptoms. Many doctors recommend treating all household members simultaneously. This prevents the common scenario where one person clears the infection only to pick it up again from a family member who’s carrying it without noticeable itching. Combined with the cleaning steps above, household-wide treatment gives you the best chance of eliminating the problem in a single round.

