The thymus is a small organ in your chest that serves as the training ground for T cells, the white blood cells that coordinate and carry out much of your immune defense. It is most active during childhood, gradually shrinking after puberty, and its role was so poorly understood for centuries that scientists once dismissed it as vestigial. Research over the past several decades has revealed that the thymus is anything but useless, and a landmark 2023 study found that adults who had their thymus removed faced roughly triple the risk of death within five years compared to similar patients who kept theirs.
Where It Sits and What It Looks Like
The thymus sits in the upper chest, just behind the breastbone and in front of the heart, in an area doctors call the anterior mediastinum.1PubMed Central. Solid Ectopic Cervical Thymus: A Case Report In a newborn, it is relatively large for the body’s size and has a pinkish-gray, two-lobed shape. Each lobe is divided into an outer region called the cortex and an inner region called the medulla. The cortex is packed with immature T cells undergoing development, while the medulla contains more mature T cells along with a richer population of specialized epithelial cells and other support cells.2PubMed. Normal structure, function and histology of the thymus
Occasionally, thymic tissue ends up somewhere it shouldn’t. During embryonic development, the thymus migrates downward from the neck region, and sometimes bits of tissue get left behind along the way. These remnants, called ectopic cervical thymus, can show up as neck masses in children and, very rarely, in adults.3PubMed Central. Ectopic Cervical Thymus in an Adult: A Rare Presentation They are almost always benign but can cause alarm if mistaken for something more serious.
How the Thymus Trains Your T Cells
The thymus does not make T cells from scratch. Instead, immature blood cell precursors leave the bone marrow, circulate in the bloodstream, and settle in the thymus.4PubMed Central. Hematopoietic progenitor migration to the adult thymus Once there, these precursors undergo a rigorous education process that determines whether they will become functional defenders or get eliminated. The whole point is quality control: making sure the body’s immune soldiers can recognize genuine threats without also attacking the body’s own tissues.
Training happens in two main stages. In positive selection, developing T cells are tested for whether they can interact with the body’s own molecules. Those that fail this test, meaning they cannot recognize the self-molecules at all, are useless and die off. The ones that pass have demonstrated they can engage with the cellular machinery they will later need to detect infections. This step links the ability to recognize the body’s own proteins with the ability to respond to foreign invaders, producing a diverse yet functional population of T cells.5PubMed Central. Revisiting thymic positive selection and the mature T cell repertoire for antigen
In negative selection, T cells that react too strongly to the body’s own tissues are identified and destroyed. This is the step that prevents autoimmune disease: if a T cell would attack your liver, your thyroid, or your skin, negative selection catches it before it ever leaves the thymus. Only a small fraction of T cells survive both rounds. The survivors are released into the bloodstream as mature, functional T cells ready to patrol for infections and cancerous cells.
How the Thymus Prevents Autoimmune Disease
Negative selection depends on an elegant trick. For the thymus to test whether a developing T cell would attack, say, the pancreas, the thymus needs to display pancreas-specific proteins even though it is not a pancreas. A gene called AIRE (autoimmune regulator) makes this possible. AIRE drives thymic epithelial cells to produce small amounts of proteins that are normally found only in specific organs throughout the body.6PubMed Central. AIRE in the thymus and beyond This turns the thymus into a kind of miniature sampling station for the entire body, allowing it to screen T cells against a wide catalog of self-proteins.
When AIRE does not work properly, the consequences are severe. Patients with mutations in the AIRE gene develop multi-organ autoimmune syndromes because their thymus cannot weed out self-reactive T cells effectively.7PubMed. The role of AIRE in human autoimmune disease The most well-known condition linked to AIRE mutations is autoimmune polyendocrinopathy-candidiasis-ectodermal dystrophy, or APECED, in which the immune system attacks multiple endocrine glands and other tissues.
Beyond simply destroying dangerous T cells, the thymus also produces a special class of immune cells called regulatory T cells. These cells act as peacekeepers once they leave the thymus, dampening excessive immune responses and preventing other immune cells from going rogue. Regulatory T cell development in the thymus requires exposure to self-antigens and specific signaling molecules, and it proceeds through distinct stages that researchers are still working to fully map out.8PubMed Central. Regulatory T Cell Development in the Thymus AIRE itself contributes to this process by helping generate some of the conditions needed for regulatory T cell maturation.9PubMed. AIRE-mutations and autoimmune disease
Hormones the Thymus Produces
The thymus is not just a training camp. Its epithelial cells produce dozens of hormone-like peptides that influence immune function and communicate with other organ systems. At least four of these peptides have been well characterized: thymosin alpha 1, thymopoietin, thymulin, and thymic humoral factor.10PubMed. Thymic hormones. Neuroendocrine interactions and clinical use in congenital and acquired immune deficiencies These hormones help stimulate T cell maturation, modulate immune responses, and even play roles in wound healing and blood vessel formation.11International Journal of Peptide Research and Therapeutics. Review of Thymic Peptides and Hormones: From Their Properties to Clinical Application
Some of these thymic hormones have been explored as therapies. Thymosin alpha 1, for instance, has been used clinically in several countries to boost immune responses in people with hepatitis B and certain cancers. The thymus’s hormone production declines along with its overall size as you age, which may partly explain why immune function weakens in older adults.
Why the Thymus Shrinks With Age
The thymus begins to shrink surprisingly early. Unlike most organs, which grow throughout childhood and then stabilize, the thymus reaches its peak size around puberty and then progressively shrinks in a process called thymic involution. The organized cortex and medulla gradually lose their clear boundaries, the specialized epithelial cells that support T cell training decrease in number, and fat and fibrous tissue fill in the space where functional thymic tissue once stood.12PubMed Central. Age-related thymic involution: Mechanisms and functional impact
This shrinkage has real consequences. As the thymus involutes, the production of new naive T cells steadily declines. With fewer fresh T cells entering the circulation, the immune system increasingly relies on its existing pool of memory T cells, the ones already trained against past infections. Over time, this results in a less diverse T cell population and weaker responses to new threats, a pattern that contributes to the broader decline in immune function seen in older adults.13PubMed Central. Thymus Size and Age-related Thymic Involution: Early Programming, Sexual Dimorphism, Progenitors and Stroma
Sex hormones play a significant role in driving involution. The thymus has receptors for both androgens and estrogens, and the surge of sex hormones at puberty accelerates the shrinkage process. Research has shown that sex hormones directly affect thymic epithelial cells, altering the production of thymic hormones like thymulin and thymosin alpha 1 and changing the balance of T cell populations within the thymus.14PubMed. Sex hormones and the thymus in relation to thymocyte proliferation and maturation There is also a notable sex difference in how this plays out: male thymic epithelial cells in the cortex tend to proliferate more slowly and show lower expression of key genes involved in T cell development, though males paradoxically accumulate more of these cells due to differences in how cell survival is regulated.15Scientific Reports. Sex hormones have pervasive effects on thymic epithelial cells
What Happens When the Thymus Is Removed
For decades, surgeons routinely removed the thymus during heart operations in adults, partly because it sits right in the surgical field and partly because the conventional wisdom held that it was not doing much after childhood. A large study published in the New England Journal of Medicine in 2023 challenged that assumption sharply. Researchers compared over 1,400 patients who had undergone thymectomy with matched controls who had the same type of cardiac surgery but kept their thymus. At five years, all-cause mortality was about 8.1% in the thymectomy group compared to 2.8% in controls, and the risk of developing cancer was roughly double in patients who lost their thymus.16PubMed Central. Health Consequences of Thymus Removal in Adults
Blood tests in a subgroup of these patients confirmed what the clinical outcomes suggested: people who had undergone thymectomy years earlier were producing far fewer new T cells than controls, and they had higher levels of inflammatory molecules in their blood. The findings strongly suggest that even in adults, the thymus continues to contribute meaningfully to immune surveillance, and losing it leaves a measurable gap.
That said, the picture is more nuanced for patients who have their thymus removed for a medical reason. In myasthenia gravis, for example, the thymus is often directly involved in the disease process, and removing it can bring substantial improvement. For patients with certain thymic tumors, removal is clearly necessary. A multidisciplinary review concluded that for these populations, the benefits of thymectomy clearly outweigh the potential long-term risks, though the authors recommended that surgeons avoid incidentally removing thymic tissue during unrelated chest surgeries whenever feasible.17PubMed Central. Does Surgical Removal of the Thymus Have Deleterious Consequences?
The Thymus and Myasthenia Gravis
Myasthenia gravis is an autoimmune disease that causes muscle weakness and fatigue, and the thymus sits at the center of its story. In many patients with myasthenia gravis, the thymus is abnormal. Researchers examining the thymuses of consecutive myasthenia gravis patients found lympho-follicular hyperplasia (an overgrowth of immune cell clusters) in nine out of ten cases and a benign tumor called a thymoma in the tenth. Critically, these thymuses contained T cells that were specifically reactive against the acetylcholine receptor, the very protein that myasthenia gravis antibodies attack at the junction between nerves and muscles.18PubMed Central. Thymus in myasthenia gravis. Isolation of T-lymphocyte lines specific for the nicotinic acetylcholine receptor from thymuses of myasthenic patients
The connection is strong enough that thymectomy has become a standard treatment for many myasthenia gravis patients. The functional and structural changes in the thymus, combined with the improvement patients experience after removal and the correlation between follicular hyperplasia and antibody levels, all point toward the thymus as a driving force in the disease rather than a bystander.19Clinical and Experimental Neuroimmunology. Role of the thymus in autoimmune myasthenia gravis Myasthenia gravis is one of the clearest examples of what can go wrong when the thymus’s tolerance mechanisms break down in a targeted way.
Stress, Infection, and Temporary Thymic Shrinkage
The thymus is remarkably sensitive to stress. Severe infections, malnutrition, pregnancy, chemotherapy, and intense psychological stress can all cause the thymus to shrink rapidly, sometimes within days. This acute thymic atrophy is distinct from the slow age-related involution described earlier. It involves a sudden loss of developing T cells and, in severe cases, disruption of the organ’s architecture by bacteria, viruses, parasites, or fungi.20PubMed. Acute Thymic Involution and Mechanisms for Recovery
The practical concern is that acute thymic atrophy weakens the body’s ability to rebuild its T cell population and respond to new infections right when it needs that capacity most. There are currently no approved treatments specifically designed to protect against this kind of thymic damage or to speed recovery from it.21PubMed Central. Cytokines, leptin, and stress-induced thymic atrophy However, growing evidence suggests that the damage is reversible in many cases once the underlying stressor resolves.
Nutritional zinc deficiency provides a useful illustration. Zinc deficiency causes thymic atrophy and disrupts normal T cell maturation, but animal studies have shown that both zinc supplementation and treatment with certain immune-signaling molecules can restore thymic size and function to normal levels.22PubMed. Effectiveness of interleukin-4 administration or zinc supplementation in improving zinc deficiency-associated thymic atrophy and fatty degeneration and in normalizing T cell maturation process This reversibility is an encouraging sign for researchers trying to develop targeted therapies to protect or restore the thymus during illness.
When the Thymus Never Develops
Some children are born without a functional thymus, a condition called congenital athymia. This can result from mutations in genes involved in thymic development, such as FOXN1 and PAX1, or from broader developmental syndromes like 22q11.2 deletion syndrome (also known as DiGeorge syndrome). Without a thymus, these children produce essentially no T cells, even though their B cells and natural killer cells may be present in normal numbers.23PubMed Central. Congenital Athymia: Genetic Etiologies, Clinical Manifestations, Diagnosis, and Treatment
The immune profile of congenital athymia closely resembles severe combined immunodeficiency, and without treatment, affected children face life-threatening infections early in life. Treatment options have historically been limited, but thymic tissue transplantation has shown success in restoring T cell development in some patients. This approach essentially gives the child someone else’s thymic tissue to serve as a training ground for their own T cell precursors.
The Discovery That Changed Immunology
The thymus was one of the last major organs to have its function explained. For most of medical history, it was considered a mystery or a leftover from earlier stages of evolution. The breakthrough came in 1961, when researchers demonstrated that mice whose thymus was removed immediately after birth developed severely impaired immune systems: poorly developed lymphoid tissues, weak immune responses, and extreme vulnerability to infections.24PubMed. The discovery of thymus function and of thymus-derived lymphocytes That experiment established the thymus as essential to immune development and kicked off decades of research that eventually identified T cells, explained their maturation, and revealed the mechanisms of immune tolerance.
In evolutionary terms, the thymus appears to be very old. All jawed vertebrates have one, and research on lampreys, which are among the most ancient surviving vertebrates, has identified a primitive thymus-like structure, suggesting that the T cell and thymus co-evolved hundreds of millions of years ago. The organ’s deep evolutionary conservation underscores how fundamental its function is to vertebrate immune defense.
Efforts to Regenerate or Rejuvenate the Thymus
Given how much the aging thymus affects immune health, researchers have been looking for ways to reverse the decline. Several approaches are under investigation. Some teams are working on thymic organoids, lab-grown structures that mimic thymic tissue and could potentially be transplanted to restore T cell production.25PubMed Central. Recent Advancements in Regenerative Approaches for Thymus Rejuvenation Others have developed protocols to turn stem cells into thymic epithelial progenitor cells that can support T cell maturation in laboratory and animal models.26Trends in Molecular Medicine. Thymus regeneration therapies: entering a new era
These remain early-stage efforts, and no thymus-regeneration therapy is in routine clinical use. But the 2023 findings on the health consequences of thymus removal have added urgency. If even a partially involuted adult thymus provides measurable immune benefits, finding ways to slow or reverse that involution could improve immune function in older adults, enhance responses to vaccines, and potentially reduce cancer risk. For a small organ that was written off as useless not that long ago, the thymus has turned out to be one of the more consequential pieces of the immune system to understand.