The GI tract (gastrointestinal tract) is a continuous muscular tube that runs from your mouth to your anus, roughly 5 meters (about 16 feet) long in a living adult. Its job is to break down food, absorb nutrients and water, and expel waste. Every organ along this path plays a specific role, and the whole system coordinates through involuntary muscle contractions that keep things moving without any conscious effort on your part.
The Organs, in Order
The GI tract follows a single path: mouth, esophagus, stomach, small intestine, large intestine (colon), rectum, and anus. Some descriptions also include accessory organs like the liver, pancreas, and gallbladder, which produce digestive juices that empty into the tract but aren’t part of the tube itself.
The small intestine makes up about two-thirds of the total length, averaging just over 6 meters (20 feet) with an inner diameter of about 2.5 cm. The large intestine is wider, averaging 4.8 cm in diameter, but much shorter. Together they account for the vast majority of the tract’s length, with the mouth, esophagus, and stomach forming a comparatively compact upper section.
What Happens in the Mouth and Esophagus
Digestion starts the moment you chew. Your teeth mechanically crush food while your tongue compresses and moves it around. At the same time, your salivary glands release about 1.0 to 1.5 liters of saliva each day. That saliva is 99.4% water, but the remaining fraction contains enzymes that begin breaking down starches and fats before you even swallow. One of those enzymes works across a wide pH range, so it continues breaking down fats even after food reaches the acidic stomach.
Once you swallow, the esophagus takes over. Its only real job is transport. Waves of muscle contraction called peristalsis push the food downward. The upper third of the esophagus uses voluntary skeletal muscle (the same type you use to move your arms), but by the lower third, it transitions to smooth muscle that contracts on its own. A ring-shaped muscle at the bottom relaxes to let food pass into the stomach, then closes again to prevent acid from splashing back up.
How the Stomach Breaks Food Down
The stomach is both a storage tank and a chemical processing plant. It has three layers of muscle that churn and mix food with hydrochloric acid and digestive enzymes. That acid keeps the stomach’s pH between 1.5 and 2.0, acidic enough to break down proteins and kill most bacteria that come in with your food.
The stomach also produces a substance called intrinsic factor, which is essential for absorbing vitamin B12 later in the digestive process. Without it, B12 passes through your system without being taken up. Over time, the stomach gradually releases its contents, now a semi-liquid mixture called chyme, into the small intestine.
The Small Intestine: Where Nutrients Are Absorbed
The small intestine is where the real payoff of digestion happens. This is where your body pulls nearly all its nutrients from food: amino acids from proteins, fatty acids from fats, sugars from carbohydrates, plus vitamins and minerals.
What makes the small intestine so effective is its enormous surface area. The inner lining is covered in tiny finger-like projections called villi, and each cell on those villi has even tinier extensions called microvilli. These structures amplify the absorptive surface nearly 100-fold compared to a flat tube. The total absorptive area of the adult intestine is estimated at about 30 square meters, roughly the size of a small studio apartment. That massive surface means nutrients have ample contact with the intestinal wall as they pass through.
The Large Intestine, Rectum, and Anus
By the time food residue reaches the large intestine, most useful nutrients have already been absorbed. The colon’s primary jobs are absorbing water and electrolytes, forming solid stool, and storing it until you’re ready to have a bowel movement. The rectum acts as a holding area with a complex sensing mechanism that lets you distinguish between gas and stool, and the anus controls the final release.
The colon is also home to the densest microbial community in your body. Bacterial concentrations in the colon reach staggering levels, roughly 10 billion to 1 trillion organisms per milliliter of content. These bacteria ferment fiber and complex carbohydrates that your own enzymes can’t break down, producing short-chain fatty acids that serve as a primary fuel source for the cells lining the colon. Those same fatty acids also have anti-inflammatory effects and influence immune function throughout the body.
How Food Moves Through the System
Peristalsis is the engine that drives everything forward. It’s an involuntary process: circular muscles behind the food bolus contract to push it forward, while longitudinal muscles shorten the tube ahead of it, and the circular muscles just beyond the bolus relax to make room. This coordinated squeeze-and-release cycle moves food a few centimeters at a time and repeats continuously along the entire length of the tract.
The trigger for peristalsis can be physical (food stretching the intestinal wall) or chemical (signals from the parasympathetic nervous system). Specialized pacemaker cells embedded between the muscle layers generate rhythmic electrical waves that keep contractions synchronized, similar to how pacemaker cells in the heart keep it beating in rhythm.
How Long Digestion Takes
Food moves through the stomach and small intestine in about six hours on average. The large intestine is far slower, typically taking 36 to 48 hours to process what remains. That means the total journey from eating to elimination generally takes two to three days, though this varies depending on what you ate, how much fiber was in it, your hydration level, and individual differences in gut motility.
The colon’s slow pace is deliberate. It needs time to extract water and for gut bacteria to ferment remaining material. Stool that moves through too quickly tends to be watery because the colon didn’t have enough time to absorb water. Stool that lingers too long becomes hard and dry for the opposite reason.