Thymus: Location, Function and How the Thymus Shrinks With Age
ThymusLymphatic and immune system
For general education about how the body works, not medical advice. Medical disclaimer.

The thymus is a soft, two-lobed organ in the upper chest, behind the breastbone (sternum) and in front of the heart. It belongs to the lymphatic and immune system and to the endocrine system. Its main job is to train T cells, a type of white blood cell that recognizes threats.
Contents
Where is the thymus?
The thymus sits in the upper front part of the chest, in the middle section called the anterior mediastinum. This is the space between the two lungs. It lies directly behind the sternum, or breastbone, and in front of the aortic arch and the large veins that return blood to the heart.
The lower part of the thymus rests on the upper surface of the heart and is separated from it by the pericardium, the thin sac that surrounds the heart. The trachea, or windpipe, lies behind the organ, and the great arteries and veins that leave the heart run close to its sides. In infants and children the thymus can extend upward into the lower neck, where its upper tips lie near the thyroid gland.
The organ has a left lobe and a right lobe. The two lobes lie side by side and are joined by connective tissue, so they look like one flattened organ with two halves. The lobes are not always the same size. Anatomists place the thymus in the chest region, although it is often described together with the neck and the upper mediastinum because of how close it lies to both.
Size, shape and weight
In a newborn baby the thymus is relatively large. It weighs about 10 to 15 g (0.35 to 0.5 oz), which is about as much as a large egg yolk. Its surface is soft and pinkish gray, and its lobes are easy to separate from the tissues around them.
The thymus keeps growing through childhood. It reaches its largest weight, about 30 to 40 g (1.1 to 1.4 oz), around puberty. In an adult it is a few centimeters (about 2 in) long, but its exact size depends on age, sex and body size, so published figures vary.
After puberty the organ gets smaller. In older adults it can weigh much less than at its peak, and its appearance changes from pinkish gray to a more yellow color as fat takes up much of the space. Because these figures are estimates from autopsy and imaging studies, they should be read as typical ranges rather than exact values.
Anatomy: the parts of the thymus
Each lobe is enclosed in a thin capsule of connective tissue. Partitions called septa run inward from the capsule and divide each lobe into many small units called lobules. Each lobule has two zones: an outer cortex and an inner medulla.
The cortex is the darker, denser outer zone. It is packed with immature T cells, called thymocytes, which are closely packed around a network of thymic epithelial cells. These epithelial cells form a framework that holds the developing T cells and presents them with signals from the body’s own proteins. The cortex also contains some macrophages, which are cells that clear dead cells.
The medulla is paler and contains fewer thymocytes. It holds more mature T cells and a different group of medullary epithelial cells. Within the medulla are Hassall’s corpuscles, small round bodies made of flattened epithelial cells arranged in concentric layers. They were named after Arthur Hill Hassall, who described them in the mid-1800s. Their exact function is still not fully understood.
The thymus has a blood-thymus barrier. The blood vessels in the cortex are lined with cells that restrict what can pass from the blood into the tissue. This barrier keeps the developing T cells from meeting many foreign proteins before they are trained. The main tissue types are epithelial tissue, which forms the framework, and lymphoid tissue, which is made of the T cells.
What does the thymus do?
The thymus turns immature T cells into a working population of T cells. Immature T cells originate in the bone marrow and enter the thymus through the blood. Inside the thymus each cell has to pass a series of tests before it is released.
The first test is positive selection, which happens in the cortex. The T cell’s receptor must be able to bind to molecules called MHC proteins on the surface of the thymic epithelial cells. Cells that cannot bind these molecules are not useful and die by neglect.
The second test is negative selection, which happens mainly in the medulla. Medullary epithelial cells express a gene called AIRE, which causes them to display many proteins normally found in other organs, such as the pancreas and the thyroid. T cells that bind these self proteins too strongly are removed. Some of these cells are instead converted into regulatory T cells, which help keep the immune system from attacking the body.
Most developing T cells do not pass these tests. Estimates suggest that more than 90 percent die inside the thymus. The survivors leave the organ as naive T cells and travel through the blood and lymph to lymph nodes and other tissues. The thymus also produces hormone-like proteins such as thymulin and thymosin, which were studied in the 1970s and 1980s. Their precise role in T-cell development is still debated.
Blood and nerve supply
Arteries bring blood to the thymus from several sources. The internal thoracic arteries, which branch from the subclavian arteries, send thymic branches to the organ. In the lower neck, the inferior thyroid arteries supply the upper parts of the thymus. Small pericardiacophrenic branches of the internal thoracic arteries also reach the lower portion.
Veins drain blood from the thymus into the left brachiocephalic vein, the internal thoracic veins and the thyroid veins. The blood then returns to the heart through the large veins of the upper chest. The thymus has lymphatic vessels that drain fluid to the parasternal and mediastinal lymph nodes.
Nerves reach the thymus from the sympathetic trunk and from branches of the vagus nerve. Sympathetic fibers help control the small blood vessels in the organ, while vagal fibers carry signals that run to and from the central nervous system. The exact pattern of these nerve branches varies from person to person.
How the thymus works with other organs
The thymus belongs to the lymphatic and immune system. It is called a primary lymphoid organ because it is where T cells mature. The other primary lymphoid organ is the bone marrow, which makes the immature T cells and all other blood cells. Bone marrow also makes B cells, which mature there instead of in the thymus.
Once T cells leave the thymus, they move into the secondary lymphoid organs, including the lymph nodes, the spleen, the tonsils and the lymphoid tissue in the lining of the gut and airways. These organs are where T cells meet antigens and begin immune responses. The lymphatic system carries the cells between these sites.
The thymus is also counted as an endocrine gland because it produces hormone-like proteins that act on nearby cells. Its activity is influenced by sex hormones, which are one reason the organ shrinks after puberty. Its position in the upper chest places it close to the heart and great vessels, but the organ itself does not control them directly.
How the thymus develops and changes with age
The thymus develops from the embryo’s pharyngeal pouches, which are paired outgrowths of the gut lining in the throat region. The third pair of pouches gives rise to the thymus, and the tissue of each side later fuses in the midline. Around the fifth or sixth week of development, the thymus begins to form, and it then moves down into the chest. Lymphoid precursor cells reach it from the blood during the fetal period.
At birth the thymus is active and large relative to the body. Through childhood its lymphoid tissue grows and the body builds a large population of naive T cells. This early output is important for establishing the immune system’s range of T-cell receptors.
From puberty onward, the thymus undergoes involution. Its lymphoid tissue thins, and fat cells gradually take over much of the organ. The output of new T cells falls, but the organ never becomes entirely inactive. In older age the thymus is small and mostly fatty, and the T cells made earlier in life continue to circulate.
Facts and common myths
The thymus is the main site where T cells mature. B cells mature in the bone marrow, and the T-cell training that happens in the thymus cannot take place anywhere else in the adult body.
Common myth: the thymus is useless after childhood. The organ does shrink, and its output of new T cells declines, but it still produces some cells in adults. Many of the T cells that protect the body come from earlier training.
Common myth: the thymus and the thyroid are the same organ. They are separate glands. The thymus sits in the upper chest and trains T cells, while the thyroid sits in the front of the lower neck and makes thyroid hormones.
Fact: the thymus is largest, relative to body size, in early life. Its weight peaks around puberty, which is much later than the peak of many other organs.
Fact: the thymus is found in all jawed vertebrates, including mammals, birds, reptiles, amphibians and fish, which shows how old the T-cell training system is in evolution.
Thymus: more questions and guides
- Evolution and life stagesHow the Thymus Shrinks With Age: Thymic Involution Explained
- ListOrgans of the Lymphatic System: Nodes, Spleen, Thymus and More
- ComparisonPrimary vs Secondary Lymphoid Organs: Where Immune Cells Grow
- QuestionWhat Does the Thymus Do? How It Trains T Cells
- QuestionWhere Are White Blood Cells Made? Bone Marrow and Lymph Organs
Frequently asked questions
Where is the thymus located?
The thymus lies in the upper front of the chest, directly behind the breastbone and in front of the heart and the large blood vessels that leave it. It sits in the middle part of the chest between the two lungs, in a region called the anterior mediastinum.
What is the main job of the thymus?
The thymus trains T cells, a type of white blood cell, so that they can recognize foreign invaders and do not attack the body's own tissues. Most developing T cells die inside the thymus during this training, and the survivors leave to circulate in the blood and lymph.
How big is the thymus?
In adults the thymus is a few centimeters long and weighs much less than it did in childhood. At birth it weighs about 10 to 15 g, and it reaches its largest weight of about 30 to 40 g around puberty. Figures vary between people, so these are estimates.
Does the thymus shrink with age?
The thymus becomes smaller after puberty, and fat gradually replaces much of its lymphoid tissue. Its output of new T cells falls, but T cells made earlier in life can persist for many years. The process is called thymic involution.
Is the thymus the same as the thyroid?
No. The thymus lies in the chest behind the breastbone, while the thyroid gland lies in the front of the lower neck. The thymus trains T cells, and the thyroid makes hormones that control metabolism.
Sources and further reading
- OpenStax, "Anatomy and Physiology 2e"
- Gray's Anatomy (Susan Standring, ed.)
- Cleveland Clinic, "Thymus"
Cite this page
“Thymus: Location, Function and How the Thymus Shrinks With Age.” Body Atlas, https://body.bigworldlist.com/anatomy/thymus/.