Both over-the-counter and prescription anthelmintic medications are available for pinworm infections. Treatment typically involves two doses administered two weeks apart. To prevent reinfection and spread, it is generally recommended that household members and caregivers be treated concurrently with the infected individual. Strict hygiene practices are essential throughout the treatment period and until all doses are completed.

Protozoal intestinal infections, however, may not always require treatment. Mild infections in healthy individuals often resolve spontaneously within a few weeks. Nevertheless, severe or persistent infections, as well as infections in individuals with weakened immune systems, typically necessitate medication. Physicians can prescribe various antiparasitic drugs depending on the specific type of parasite. In cases of diarrhea, ensuring adequate fluid intake is also critically important to prevent complications.