While home remedies can speed up your healing process, you will still need to consult your doctor and get the right medication. It may take about 3 to 7 days for pinworms to clear out of your system.