The need for a colonoscopy for stomach pain depends mainly on the location of the pain. If the pain is in the upper abdomen, colonoscopy is usually not considered. If the pain is around the umbilicus or lower abdomen and is accompanied by a change in the frequency of stools or a change in the stool pattern, and if the pain is followed by an urge to pass stools, most of the time a complete colonoscopy is recommended, and it is often possible that the condition is a disorder of the intestinal tract. If the stool has a clear mucus-purulent stool or mucus without pus and blood, colonoscopy should be performed. It may be the result of ulcerative colitis or Crohn’s disease. Therefore, if you often have stomach pain, you should have a colonoscopy if you have lower abdominal pain, or a gastroscopy if you have upper abdominal pain, to determine whether you have gastritis, gastric ulcer or digestive malfunction. For lower abdominal pain, ultrasound is also needed to assist in the diagnosis.