Ginger is an effective remedy for diarrhea. It helps restore the normal function of the gastrointestinal tract that helps to firm the stool. Moreover, ginger is known to help reduce abdominal discomfort and cramps associated with diarrhea. It also acts as a carminative and helps in the elimination of intestinal gas produced when the digestive waste is fermented by pathogens. Ginger is considered safe for patients with diarrhea.
There are several options for taking ginger for diarrhea
1. Ginger tea
Ginger tea is beneficial for patients with diarrhea. Traditionally, ginger tea is prepared by grinding a series of pieces of ginger and steeping ground ginger in hot water for several minutes. After the ginger juice infused with water, tea slowly. Drink two cups of ginger tea a day. 
2. dry ginger
dry ginger is considered to be more powerful and effective than raw ginger in relieving diarrhea. For fast relief of diarrhea, drinking ginger tea prepared with dried ginger. You can also cook a pinch of dried ginger powder in ghee and eat. You can even mix dry ginger and clarified butter mixture with a small amount of water and take the mixture before going to sleep. 
3. ginger with sugar and nutmeg
ayurvedic doctors recommend taking ginger with raw sugar, nutmeg and ghee to relieve diarrhea. Diarrhea is often associated with poor digestion. This home-based ginger remedy helps to improve digestion. Nutmeg acts as an astringent and drying agent. This helps in hard stools. In addition, the carminative effect of nutmeg aid in the expulsion of intestinal gas and reduce abdominal discomfort. 
4. the ginger and dried figs
according to Chinese folk medicine, a preparation of ginger and the figure can help people suffering from chronic diarrhea. Separately fry a little ginger and dried figs. Combine ginger and fried figs and boil for a few minutes. Eat this mixture three times daily. 
5. the ginger and rock salt
ginger and rock salt mixture helps to get rid of diarrhea caused by indigestion. Mix dry ginger powder and rock salt powder in equal proportions. Take ¼ teaspoon of the mixture with a small piece of brown sugar. It helps to improve digestion and reduce abdominal discomfort.