To get rid of worms without going to the doctor you can use over the counter deworming tablets.
Oral dewormer tablets are available directly from your local pharmacy without the need for a prescription and can work on most worms.
Medications that contain pyrantel pamoate (such as Reeseās Pinworm Medicine) are widely available at pharmacies without a prescription and work for most common intestinal worms like pinworms.
To treat the worms at home with the over the counter deworming medication you take a single dose and then 2 weeks later you take another dose to prevent reinfection from any lingering worm eggs in the body.
Although pinworms spread easily, so everyone that lives in your home with you must also be treated with the deworming medication at the same time, even if they show no signs or symptoms of having worms.
The deworming medication that you take to kill the worms, only kills the adult worms and not the microscopic eggs, which can still survive easily on surfaces for up to 2 weeks time.
So to prevent a reinfection of the worms, you should aggressively clean the area.
Wash everything, including all bed lines, blankets, towels, sleepwear and underwear in hot water and dry them using high heat.
And take a morning shower daily, instead of a bath and wash your anal area thoroughly to remove any eggs that were laid overnight.
Be sure to also disinfect kitchen and bathroom surfaces and vacuum or wet mop the floors and keep your fingernails cut very short to prevent eggs from becoming trapped underneath them.
Although if you have any intense itching, nausea, abdominal pain that persist or if a different type of worm infection is suspected and the at home deworming medication is not working, you should see a doctor.
Some worms may require a prescription deworming medication to get rid of as some worms can be resistant to the over the counter deworming medication.