Finding worms in the stool is a sign of pinworms or ascaris worm infestation. This is not necessarily associated with painful muscle spasms, but the symptoms could co-exist at the same time. Be sure to seek medical advice and treatment if you notice worms in your stool.
While the list below can be considered as a guide to educate yourself about these conditions, this is not a substitute for a diagnosis from a health care provider. There are many other medical conditions that also can be associated with your symptoms and signs. Here are a number of those from MedicineNet:
Pinworm infection is an intestinal infection caused by a pinworm, seatworm, or threadworm. Female pinworms leave the intestine through the ankus and deposit eggs on the skin around the anus while a person is asleep. Pinworm infection is the most common worm infection in the U.S. Symptoms include anal itching or vaginal itching. Pinworm infection is generally spread by inadequate handwashing from infected persons. Treatment is effective after a diagnosis is made with a pinworm test.
A parasite names Ascaris lumbricoides causes ascariasis. Symptoms and signs include abdominal pain, abdominal swelling, nausea, vomiting, fever, and passage of parasites and eggs in stool. Treatment involves taking oral medications for one to three days.
Muscle spasms are involuntary muscle contractions that come on suddenly and are usually quite painful. Dehydration, doing strenuous exercise in a hot environment, prolonged muscle use, and certain diseases of the nervous system may cause muscle spasms. Symptoms and signs of a muscle spasm include an acute onset of pain and a possible bulge seen or felt beneath the skin where the muscle is located. Gently stretching the muscle usually resolves a muscle spasm.
At MedicineNet, we believe it is important to take charge of your health through measures such as a living healthy lifestyle, practicing preventative medicine, following a nutrition plan, and getting regular exercise. Understanding your symptoms and signs and educating yourself about health conditions are also a part of living your healthiest life. The links above will provide you with more detailed information on these medical conditions to help you inform yourself about the causes and available treatments for these conditions.