Several factors affect emptying of the stomach, including the kind of food and the degree of muscle action of the emptying stomach and the small intestine. Carbohydrates, for example, spend the least amount of time in the stomach, while protein stays in the stomach longer, and fats the longest. As the food dissolves into the juices from the pancreas, liver, and intestine, the contents of the intestine are mixed and pushed forward to allow further digestion.
Finally, the digested nutrients are absorbed through the intestinal walls and transported throughout the body. The waste products of this process include undigested parts of the food, known as fiber, and older cells that have been shed from the mucosa. These materials are pushed into the colon, where they remain until the feces are expelled by a bowel movement