Anal Canal and Anus: Anatomy of the End of the Digestive Tract
Canalis analisDigestive system
For general education about how the body works, not medical advice. Medical disclaimer.

The anal canal is the last part of the digestive tract, a short muscular tube about 3 to 4 cm (1.2 to 1.6 in) long. It runs from the rectum down to the anus, the external opening, and lies in the pelvis below the pelvic floor. Its main job is to control the passage of stool out of the body.
Contents
Where is the anal canal?
The anal canal lies in the midline of the pelvis, at the lower end of the large intestine. It begins at the anorectal junction, where the rectum bends backward and downward and passes through the pelvic floor, and it ends at the anal verge, the margin where the lining of the canal meets the skin around the anus. Because it sits in the midline, it is neither on the left nor the right side of the body.
In front of the canal lie the urethra and prostate in men, and the vagina in women. Behind it lies the anococcygeal ligament and the coccyx, or tailbone. On each side are the ischioanal fossae, fat-filled spaces between the muscles of the pelvic floor and the ischial bones, the bones you sit on. These spaces give the canal room to move when it opens and closes.
The anal canal is part of the perineum, the diamond-shaped region at the base of the trunk between the thighs. The anus sits in the anal part of the perineum, between the buttocks. The pelvic floor muscles, especially the levator ani and its puborectalis part, wrap around the junction of the rectum and canal and bend the canal sharply forward. This bend, called the anorectal angle, is an important part of how the canal stays closed when no stool is passing.
Size, shape and weight
In adults the anal canal is typically about 3 to 4 cm (1.2 to 1.6 in) long, roughly the length of a small paper clip. Its walls are normally collapsed against each other, so the open space inside, called the lumen, is only a narrow slit. The shape changes when stool passes, when the sphincters relax, and when the canal is filled with gas or liquid.
Size varies with body size, age and sex, so these figures are typical values rather than exact measurements. The canal is also not weighed as a separate organ in anatomy or physiology. It is a short part of the large intestine, made of the same layers as the rest of the gut, plus a thick ring of muscle at its lower end.
Anatomy: the parts of the anal canal
The anal canal has three main zones, which differ in lining, nerve supply and function. The upper zone lies above the pectinate line. It is lined by a simple columnar lining, a single layer of tall cells that also covers the rectum. In the upper zone, the mucosa forms longitudinal folds called anal columns, about six to ten in number, which are joined at their lower ends by small folds called anal valves. Between the columns are pockets called anal sinuses.
The pectinate line, also called the dentate line, is a wavy ring that runs around the canal about 2 cm above the anal verge. It is not a sharp muscular boundary, but a change in tissue that marks the junction between the two embryonic origins of the canal. The anal glands, small mucus-secreting glands, open into small pockets called anal crypts that lie at the anal valves, just above the pectinate line.
Below the pectinate line is a short band called the anal transitional zone. It is lined by stratified squamous epithelium, a thick, layered tissue that is not keratinized, meaning it does not form the hard protective layer of the outer skin. The lowest part of the canal is lined by anoderm, a skin-like lining that contains sweat glands, sebaceous glands and some hair follicles.
The walls of the canal contain three main muscle layers. The internal anal sphincter is a thickened ring of smooth muscle. It is a continuation of the circular muscle layer of the rectum and is about 2 to 3 cm long in adults. The external anal sphincter is a ring of skeletal muscle with deep, superficial and subcutaneous parts that surround the lower canal. The puborectalis is a U-shaped band of the levator ani that loops around the anorectal junction, although it is not strictly part of the sphincter.
The tissues of the anal canal include epithelium, connective tissue, smooth muscle and skeletal muscle. Blood vessels, nerves and lymphatic vessels run through the connective tissue under the lining, and small amounts of fat and vascular tissue form the anal cushions, which help the canal close.
What does the anal canal do?
The main job of the anal canal is to keep stool in until it is ready to leave the body and then to let it out in a controlled way. It does this with the internal sphincter, the external sphincter and the puborectalis, which work together to create a closed tube at rest.
At rest, the internal anal sphincter contracts continuously without conscious effort. This gives the canal a steady background pressure, which is why the canal stays closed most of the time. The external anal sphincter contracts more strongly when a person tightens the muscle, for example to hold back stool or gas. The puborectalis keeps the anorectal angle sharp, which pulls the canal closed.
Sensation in the canal helps decide whether the contents are gas, liquid or solid. The upper canal, supplied by autonomic nerves, responds mainly to stretch and to the pressure of stool. The lower canal is supplied by somatic nerves and is sensitive to touch, temperature and pain, so it can tell gas from solid stool and help a person act on the urge.
Defecation is a sequence of steps. When the rectum fills, stretch receptors send signals to the spinal cord. The internal sphincter relaxes through a reflex called the rectoanal inhibitory reflex. The external sphincter and puborectalis relax when a person chooses to pass stool, the anorectal angle opens, and the abdominal wall and diaphragm push the contents downward. The canal then widens so stool can pass out through the anus.
The anal glands secrete a small amount of mucus that lubricates the canal and helps stool slide through.
Blood and nerve supply
The arteries that supply the anal canal come from three sources, which matches its embryonic origin. The superior rectal artery is a continuation of the inferior mesenteric artery and supplies the upper canal. The middle rectal artery, a branch of the internal iliac artery, supplies the middle part of the rectum and the canal near the junction. The inferior rectal artery, a branch of the internal pudendal artery, supplies the lower canal and the anal region.
Veins follow a similar pattern. The superior rectal vein drains blood from the upper canal into the inferior mesenteric vein and then into the hepatic portal system, which carries blood to the liver. The middle and inferior rectal veins drain the lower part into the internal iliac and internal pudendal veins, which drain into the general circulation. Connections between these veins at the anorectal junction link the portal and general circulations.
Lymph from the upper canal drains to nodes along the internal iliac and inferior mesenteric vessels. Lymph from the lower canal, below the pectinate line, drains to the superficial inguinal lymph nodes in the groin.
The nerves that control the anal canal come from two systems. Above the pectinate line the canal is supplied by autonomic nerves: sympathetic fibers from the hypogastric plexus and lumbar splanchnic nerves, and parasympathetic fibers in the pelvic splanchnic nerves from the sacral segments. These nerves carry stretch and visceral sensation but do not give precise location of touch or pain.
Below the pectinate line the canal is supplied by somatic nerves. The inferior rectal nerve, a branch of the pudendal nerve from the sacral segments S2 to S4, supplies the external anal sphincter and the lower lining. This nerve carries touch, temperature and pain sensation, which is why the lower canal can locate sensations precisely.
How the anal canal works with other organs
The anal canal belongs to the digestive system, which moves food through the body, breaks it down and absorbs nutrients. The canal does not absorb nutrients or digest food. Its role comes at the end of the process, when the waste material from the colon reaches the rectum.
The sigmoid colon, the last part of the large intestine before the rectum, moves stool into the rectum in waves of movement called mass movements. The rectum acts as a storage chamber, so stool can collect there before it reaches the anal canal. Once the rectum is full, the canal decides whether stool can pass.
The pelvic floor muscles support the canal and the organs around it. The levator ani and the perineal body anchor the canal in place and help shape the anorectal angle. The urinary bladder, urethra and reproductive organs lie in front of the canal and share the pelvic floor with it.
The canal also relates to the nervous system, which controls its muscles and sensations, and to the spinal cord segments that send signals to the sphincters. Because the internal sphincter is controlled by autonomic reflexes and the external sphincter by voluntary commands, the canal combines involuntary and conscious control in one structure.
How the anal canal develops and changes with age
The anal canal develops from two embryonic sources. The upper part comes from the hindgut, which is lined by endoderm and forms the lower colon and rectum. The lower part develops from an ectodermal pit called the proctodeum, which forms at the surface of the embryo. Between these two parts the anal membrane separates the canal from the outside until it breaks down, at about the eighth week of development.
The pectinate line marks the boundary between the two sources. Because the upper and lower parts have different origins, they also have different linings, blood supplies and nerves. These differences remain in the adult canal, which is why the pectinate line matters in anatomy.
At birth the anal canal is fully formed, but the muscles that control it are not yet under conscious control. Newborns have reflex defecation, and voluntary control develops during early childhood as the nervous system matures and the external sphincter is trained to respond to conscious commands. Most children gain this control at about two to three years old, although the timing varies.
In older adults the muscles and connective tissue of the pelvic floor and sphincters change gradually. Muscle mass tends to decline, the connective tissue becomes less elastic, and the strength of the sphincters can change. These are normal changes of ageing, and anatomists describe them as variations in the tissue rather than as a disease.
Facts and common myths
The anal canal is about 3 to 4 cm (1.2 to 1.6 in) long in adults, and it is the final segment of the digestive tract. A common myth is that the anus and the anal canal are the same thing. The anal canal is the internal tube, and the anus is the external opening at its lower end. The anal verge is the boundary between them.
Another myth is that the anal canal has only one sphincter. In fact it has two main sphincter muscles, the internal anal sphincter and the external anal sphincter, and the puborectalis adds a third muscle loop around the anorectal junction.
Some people think all control over stool passage is conscious. The internal sphincter works without conscious control, and the rectoanal inhibitory reflex relaxes it when the rectum fills. Conscious control applies mainly to the external sphincter and the puborectalis.
Finally, the lining of the canal is not the same throughout. The pectinate line divides it into a gut-type lining above and a skin-type lining below, and the two areas have different nerves that respond to different types of sensation.
Anal canal: more questions and guides
Frequently asked questions
What is the anal canal?
The anal canal is the final section of the digestive tract, a short tube about 3 to 4 cm (1.2 to 1.6 in) long. It runs from the rectum to the anus and is surrounded by two anal sphincter muscles. Its main job is to control the passage of stool out of the body.
What is the difference between the anus and the anal canal?
The anal canal is the internal tube, while the anus is the external opening at its lower end. The boundary between them is the anal verge, where the lining of the canal meets the skin around the opening.
What is the pectinate line?
The pectinate line, also called the dentate line, is a wavy ring about 2 cm above the anal verge. It marks where the lining changes from gut-type to skin-type tissue and where the nerve supply changes from autonomic to somatic.
How many sphincters does the anal canal have?
The anal canal has two sphincter muscles. The internal anal sphincter is smooth muscle that works without conscious control, while the external anal sphincter is skeletal muscle that a person can tighten or relax voluntarily.
Why does the anal canal have two different linings?
The upper part develops from the hindgut, which comes from the endoderm, while the lower part develops from the ectoderm of the proctodeum. The two origins give the upper and lower canal different linings, blood supply and nerves.
Sources and further reading
- Standring, Susan (ed.), Gray's Anatomy: The Anatomical Basis of Clinical Practice
- Moore, Keith L., and Arthur F. Dalley, "Clinically Oriented Anatomy"
- OpenStax, "Anatomy and Physiology 2e"
Cite this page
“Anal Canal and Anus: Anatomy of the End of the Digestive Tract.” Body Atlas, https://body.bigworldlist.com/anatomy/anal-canal/.