Doctors Note Logo

Published on: 9/14/2026

How do I get rid of pinworms and stop the nighttime itching fast?

Getting rid of pinworms usually takes an anti-parasitic medication such as mebendazole, albendazole, or over-the-counter pyrantel pamoate, repeated after two weeks to kill newly hatched worms, plus treating everyone in the household at the same time to stop reinfection. Nighttime itching can ease within a day or two by washing the anal area each morning, applying a soothing or anti-itch cream, wearing snug underwear to bed, and keeping fingernails short and clean. Hot-washing all bedding, pajamas, towels, and underwear, vacuuming bedrooms, and handwashing after every bathroom trip are essential, because eggs survive on surfaces for up to three weeks. There are important dosing, age, pregnancy, and reinfection details to consider, so review the complete answer below before starting treatment.

If the itching keeps returning, worsens at night, or comes with rash, vaginal irritation, abdominal pain, poor sleep, or symptoms in other family members, it helps to know whether pinworms are truly the cause or whether something else is being missed. A free, instant, online symptom check can help you sort through your specific symptoms in a few minutes, point to the most likely explanations, and show you what to do next, including whether you need a prescription or an in-person visit, so you stop guessing and start sleeping again.

Last reviewed for medical accuracy: 09/13/2026

answer background

Explanation

How to Get Rid of Pinworms and Stop Nighttime Itching Fast

Pinworms (Enterobius vermicularis) are tiny, white intestinal worms that cause itching around the anus, especially at night. While they’re common—particularly in children—they can be uncomfortable and disruptive to sleep. The good news is that pinworm infections are treatable, and you can take steps to relieve itching quickly while preventing reinfection.


What Are Pinworms?

  • Size & Color: Adults are about 1 cm long, white or off-white.
  • Life Cycle: Eggs hatch in the small intestine, mature in the colon, and the female travels to the anus at night to lay eggs.
  • Transmission: Through direct contact with contaminated surfaces, bedding, clothing, or nails.

Common Symptoms

  • Intense nighttime itching around the anus or vulva
  • Restless sleep due to itching
  • Irritability and poor concentration (especially in children)
  • Occasionally mild lower abdominal pain

Some people have pinworms without noticeable symptoms.


Fast Relief for Nighttime Itching

  1. Cool Compresses

    • Apply a cold pack or a cool, damp cloth to the itchy area for 10–15 minutes.
    • Repeat as needed until itching subsides.
  2. Topical Soothing Agents

    • 1% hydrocortisone cream (over-the-counter) can reduce inflammation and itch.
    • Calamine lotion provides a cooling effect.
    • Apply sparingly to avoid skin irritation; wash hands before and after.
  3. Oral Antihistamines

    • A single dose of diphenhydramine (Benadryl) or loratadine (Claritin) can help you rest by reducing histamine-driven itching.
    • Follow package directions and consider drowsiness as a side effect.
  4. Keep the Area Clean

    • Gently wash the anal area with mild, fragrance-free soap and warm water after waking and before bed.
    • Pat dry—do not rub.
  5. Avoid Scratching

    • Trim fingernails short and discourage scratching in children.
    • Consider wearing snug-fitting cotton underwear at night to create a barrier.

Medical Treatment

Effective treatment requires killing both adult worms and eggs:

Over-the-Counter Medication

  • Pyrantel Pamoate
    • Single-dose oral suspension or tablet.
    • Available without prescription in many pharmacies.
    • Dose based on weight; follow package instructions.

Prescription Medications

  • Mebendazole (Vermox)
    • 100 mg oral dose, repeated in 2 weeks to catch newly hatched worms.
  • Albendazole (Albenza)
    • 400 mg oral dose, often repeated after 2 weeks.

Note: Treat all household members at the same time, even if they have no symptoms.


Preventing Reinfection

Pinworm eggs can survive up to two weeks on surfaces. To avoid bounce-back infections:

Daily Habits

  • Wash Hands Frequently
    • Especially after using the toilet, changing diapers, and before eating.
  • Keep Fingernails Short & Clean
    • Prevent eggs from collecting under nails.
  • Shower Each Morning
    • Removes eggs laid overnight.
  • Change Underwear & Nightclothes Daily
    • Place soiled garments in a closed laundry basket.

Household Cleaning

  • Hot Laundry Cycle
    • Wash bedding, towels, nightclothes daily during treatment.
  • Vacuum & Dust
    • Concentrate on bedrooms, play areas, and carpets.
  • Disinfect Surfaces
    • Wipe with a mild bleach solution or disinfectant wipes.
  • Avoid Shaking Laundry
    • Prevents eggs becoming airborne.

Diet & Lifestyle Support

While no foods kill pinworms directly, a balanced diet and good gut health can help:

  • High-Fiber Foods
    • Promote regular bowel movements, helping expel worms.
  • Probiotics
    • Yogurt, kefir, or supplements may support healthy gut flora.
  • Hydration
    • Adequate fluids keep stools soft and help eliminate parasites.

When to See a Doctor

Most pinworm infections are mild, but consult a healthcare provider if you experience:

  • Severe abdominal pain
  • Persistent vomiting or diarrhea
  • Blood in stools
  • Signs of a secondary skin infection (redness, swelling, pus) from scratching
  • No improvement after two treatment courses

If you’re unsure whether your symptoms are due to pinworms, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. It’s a quick way to understand your symptoms and decide if you need professional care.


Tips for Parents

  • Explain hygiene rules in simple terms: handwashing after bathroom use and before meals.
  • Keep a routine: morning showers, nightly bedding changes.
  • Use positive reinforcement rather than punishment for scratching.

Key Takeaways

  • Pinworms cause intense nighttime itching but are easily treated.
  • Fast relief: cool compresses, topical hydrocortisone, oral antihistamines, and strict hygiene.
  • Medications: pyrantel pamoate (OTC) or prescription mebendazole/albendazole; repeat in 2 weeks.
  • Prevent reinfection with daily laundry, surface disinfection, and handwashing.
  • Treat the entire household at once.
  • If symptoms are severe or persistent, speak to a doctor promptly.

Disclaimer: This information is for educational purposes. Always speak to a doctor about any symptoms that could be life threatening or serious.

(References)

  • * Katz M. Anthelmintics. Drugs. 1977 Feb;13(2):124-36. doi: 10.2165/00003495-197713020-00002. PMID: 319991.

  • * Yoshikawa TT. Antiparasitic drugs. Am Fam Physician. 1980 Mar;21(3):132-8. PMID: 7355683.

  • * O'Brien TJ. Paediatric vulvovaginitis. Australas J Dermatol. 1995 Nov;36(4):216-8. doi: 10.1111/j.1440-0960.1995.tb00979.x. PMID: 8593114.

  • * Harcup J. Tackling threadworms. Prof Care Mother Child. 1995;5(1):15-6. PMID: 8680209.

  • * Wu ML, Kuksuk LK, Olinger EJ. Enterobius vermicularis. Arch Pathol Lab Med. 2000 Apr;124(4):647-8. doi: 10.5858/2000-124-0647-EV. PMID: 10747336.

  • * Faruqi S, Ahmed I, Membreno FE, Molina CP, Raju GS. Pinworms. Gastrointest Endosc. 2003 Apr;57(4):566. doi: 10.1067/mge.2003.88. PMID: 12665774.

  • * WHITE RH. Treatment of enterobiasis. Br Med J. 1963 Jan 26;1(5325):264. doi: 10.1136/bmj.1.5325.264. PMID: 14000355; PMCID: PMC2123657.

  • * Wendt S, Trawinski H, Schubert S, Rodloff AC, Mössner J, Lübbert C. The Diagnosis and Treatment of Pinworm Infection. Dtsch Arztebl Int. 2019 Mar 29;116(13):213-219. doi: 10.3238/arztebl.2019.0213. PMID: 31064642; PMCID: PMC6522669.

  • * Chai JY, Jung BK, Hong SJ. Albendazole and Mebendazole as Anti-Parasitic and Anti-Cancer Agents: an Update. Korean J Parasitol. 2021 Jun;59(3):189-225. doi: 10.3347/kjp.2021.59.3.189. Epub 2021 Jun 21. PMID: 34218593; PMCID: PMC8255490.

  • * Leung AKC, Lam JM, Barankin B, Wong AHC, Leong KF, Hon KL. Pinworm (Enterobius Vermicularis) Infestation: An Updated Review. Curr Pediatr Rev. 2025;21(4):333-347. doi: 10.2174/0115733963283507240115112552. PMID: 38288810.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.