There are several over-the-counter medications that can help with diarrhea. The most common ones are loperamide (Imodium) and bismuth subsalicylate (Pepto-Bismol, Kaopectate) . Loperamide slows the movement of food through the intestines, which allows the body to absorb more liquid, while bismuth subsalicylate balances the way fluid moves through the intestines and reduces inflammation. Both medications can help relieve diarrhea symptoms in adults, but they are not recommended for children without consulting a doctor first. It is important to note that over-the-counter medications should not be taken if there is blood present in the stool, the person has a fever, or there are other signs of bacterial or parasitic infection. If diarrhea persists for more than two days, it is advisable to consult a doctor.