Your GI tract, short for gastrointestinal tract, is the continuous tube that runs from your mouth to your anus. It’s the path food travels as your body breaks it down, pulls out nutrients, and gets rid of waste. In an adult, this tube stretches roughly 30 feet long and includes your mouth, esophagus, stomach, small intestine, large intestine, rectum, and anus. Several other organs, including your liver, pancreas, and gallbladder, connect to it and supply the chemicals needed to digest what you eat.
The Organs, in Order
Everything starts in your mouth. Your teeth break food into smaller pieces while saliva moistens it and begins breaking down starches with an enzyme. When you swallow, your tongue pushes food into your throat, and from there it enters the esophagus, a muscular tube that squeezes food downward into the stomach through rhythmic contractions called peristalsis.
Your stomach is essentially a muscular bag. Glands in its lining produce acid with a pH between 1 and 2, acidic enough to dissolve most food into a thick paste. Stomach muscles churn and mix food with this acid and with enzymes that start breaking down protein. The result is a semi-liquid mixture that gets released in small amounts into the small intestine.
The small intestine is where most of the real work happens. It averages about 9.5 feet long and roughly an inch in diameter. Its inner lining is covered in tiny finger-like projections called villi, and those villi are covered in even smaller projections called microvilli. All of these folds dramatically increase the surface area available to absorb nutrients. Here, digestive juices from the pancreas (which break down carbohydrates, fats, and proteins), bile from the liver (which helps digest fats and certain vitamins), and the intestine’s own enzymes finish the job of breaking food into molecules small enough to pass into your bloodstream.
The large intestine (colon) is wider, about two inches across, and roughly 6 feet long. Its primary job is absorbing water and electrolytes from whatever the small intestine didn’t use. As water is pulled out, the remaining material gradually solidifies into stool. The rectum, at the lower end of the large intestine, stores stool until a bowel movement pushes it out through the anus.
How Long the Whole Process Takes
Food moves through the stomach and small intestine in about six hours on average. The large intestine works much more slowly. Material typically spends another 36 to 48 hours there as water is absorbed and stool forms. So from the moment you eat something to the moment your body eliminates it, the total transit time is often two to three days, though this varies widely depending on what you ate, how hydrated you are, and how active your gut is.
Upper vs. Lower GI Tract
Doctors split the GI tract into upper and lower sections, though the exact dividing line depends on context. Conventionally, the upper GI tract includes everything from the mouth through the small intestine, while the lower GI tract starts at the cecum (the beginning of the large intestine) and continues to the anus. When doctors talk about GI bleeding specifically, they draw the line a bit differently, at the junction where the small intestine meets the first part of the jejunum, a landmark called the ligament of Treitz. Anything above that point counts as upper GI bleeding, and anything below is lower.
Your Gut Has Its Own Nervous System
The GI tract contains more than 100 million nerve cells embedded in two thin layers that line the entire tube from esophagus to rectum. This network is called the enteric nervous system, and it’s sometimes referred to as a “second brain.” It can’t think the way your brain does, but it independently controls digestion: triggering swallowing, releasing enzymes, managing blood flow to help absorb nutrients, and coordinating the muscle contractions that push food along.
This gut nervous system also communicates directly with your brain. Researchers at Johns Hopkins Medicine have found that irritation in the GI tract can send signals to the brain that trigger mood changes. This connection may partly explain why people with chronic digestive problems often experience anxiety or depression alongside their gut symptoms. Between 30 and 40 percent of the population deals with functional bowel problems at some point, and this two-way communication is now a major focus in understanding those conditions.
The Microbiome Inside Your GI Tract
Your GI tract is home to roughly 100 trillion microorganisms, mostly bacteria but also viruses, fungi, and other microscopic life. This community, called the gut microbiome, is concentrated in the large intestine and performs work your own cells can’t do on their own.
One of its most important jobs is fermenting dietary fiber and other materials that your small intestine couldn’t break down. This fermentation produces short-chain fatty acids that serve multiple roles throughout your body. One of these fatty acids is the primary energy source for the cells lining your colon. Another travels to the liver and helps regulate blood sugar and feelings of fullness. A third, the most abundant one, reaches tissues throughout the body and plays a part in cholesterol metabolism and fat production. Gut bacteria also help metabolize bile acids into signaling molecules that influence important metabolic pathways.
Beyond digestion, gut microbes shape immune function and even influence brain chemistry and behavior. The composition of your microbiome is affected by what you eat, medications you take (especially antibiotics), and your overall health.
Common Signs Something Is Off
Because the GI tract handles so many tasks across so many organs, problems can show up in different ways depending on where the issue is. Some of the most common GI symptoms include:
- Acid reflux: a burning sensation in the chest or throat when stomach acid moves upward into the esophagus
- Bloating and gas: excess gas production, often related to how your gut bacteria ferment certain foods
- Constipation: infrequent or difficult bowel movements, often linked to slow transit through the colon or insufficient fiber and water
- Diarrhea: loose, watery stools that can result from infections, food intolerances, or conditions like IBS
- Indigestion: discomfort or pain in the upper abdomen, sometimes with nausea, that occurs during or after eating
- Gastroparesis: delayed stomach emptying, where the stomach takes too long to move food into the small intestine
Occasional digestive discomfort is normal. Persistent symptoms that last weeks, involve unexplained weight loss, or include blood in the stool point to something that needs medical evaluation. Many GI conditions are highly treatable once identified, and the specific location of symptoms along the tract often helps pinpoint what’s going on.