A stomach ache and going to the toilet after eating may be due to bad eating habits, gastric ulcers, gastrointestinal dysfunction, etc. 1. Bad dietary habits: If there are bad dietary habits such as consuming expired food, unwashed ingredients, consuming moldy or other toxic and harmful food, consuming raw and cold food, etc., stomach pain and diarrhea will be caused by irritation of the digestive tract after the meal, which will have a greater impact on your health. 2. Gastric ulcers: after ingesting food, gastric ulcer patients will squeeze the ulcerated surface of the stomach due to the food filling the space inside the stomach, causing stomach pain, and gastric ulcers will affect the digestive function, leading to diarrhea. 3. Gastrointestinal dysfunction: mental factors are a major trigger of gastrointestinal dysfunction, anxiety, nervousness, panic and other emotions are possible, the patient may appear after meals, abdominal pain, diarrhea and other symptoms. There may be other reasons for stomach pain after eating, it is recommended to go to the hospital in time, improve the examination to clarify the cause of the disease, under the guidance of the doctor to give targeted treatment or treatment.