Yes, bananas are one of the best foods to eat when you have diarrhea. Their starchy content helps absorb excess water in the intestines. Bananas also contain potassium which is lost during bouts of diarrhea. Just don't overdo it - too much fiber from overripe bananas can make diarrhea worse.