The human body is an intricate biochemical factory, capable of manufacturing countless compounds essential for survival. However, when it comes to vitamins, our capacity is surprisingly limited. The traditional definition of a vitamin is an organic compound required by an organism in small quantities that cannot be synthesized by the organism itself. By this strict definition, the few vitamins our bodies can produce are technically not vitamins, but the term is still widely used. The synthesis that does occur is a crucial part of our metabolic health, although dietary intake remains the primary source for most nutrients.
The Sunshine Vitamin: Endogenous Vitamin D Synthesis
Perhaps the most well-known example of a vitamin synthesized by humans is vitamin D, often called the “sunshine vitamin.” This process begins when ultraviolet B (UVB) radiation from sunlight strikes the skin. Within the epidermis, a cholesterol precursor called 7-dehydrocholesterol is converted into previtamin D3. This previtamin then undergoes a temperature-dependent rearrangement to form vitamin D3 (cholecalciferol).
However, this is just the beginning of the story. The resulting cholecalciferol is an inactive prohormone. It travels through the bloodstream to the liver, where it undergoes a first hydroxylation step to become 25-hydroxyvitamin D [25(OH)D], also known as calcidiol. This is the major circulating form of vitamin D and what is typically measured in blood tests to assess a person's vitamin D status. A second hydroxylation occurs primarily in the kidneys, converting 25(OH)D into the biologically active hormone, 1,25-dihydroxyvitamin D, or calcitriol. This final active form is essential for regulating calcium and phosphate levels, which is critical for bone health, immune function, and cell growth.
Several factors can influence the efficiency of this skin-based synthesis. People with darker skin tones have more melanin, which acts as a natural sunscreen and can reduce the rate of vitamin D production. Other variables, such as latitude, season, time of day, and the use of sunscreen, all impact the amount of UVB radiation available and, consequently, the amount of vitamin D the body can produce.
Niacin (Vitamin B3) from a Protein Building Block
While most B vitamins cannot be produced by the human body, a small amount of niacin (vitamin B3) can be synthesized endogenously. This conversion process utilizes the amino acid tryptophan, a component found in many protein-rich foods. The conversion pathway is relatively inefficient, with approximately 60 milligrams of tryptophan required to produce just 1 milligram of niacin. As a result, dietary niacin and niacin from enriched foods are still the most reliable sources for meeting the body's needs. The body's ability to produce niacin serves as a metabolic backup but is not a replacement for sufficient dietary intake, especially given the various factors that can affect the conversion process.
The Gut Microbiome's Production House
The human digestive tract is home to a vast and complex community of microorganisms known as the gut microbiome, which plays a surprising role in vitamin production.
- 
Vitamin K2 (Menaquinone): Bacteria in the large intestine synthesize various forms of vitamin K2, which contribute to the body's overall vitamin K status. Vitamin K is crucial for blood clotting and bone health. However, the primary site of absorption for vitamins is the small intestine, and since much of the bacterial synthesis occurs further down in the large intestine, the amount of K2 the body can absorb from this source is limited. Dietary sources, particularly fermented foods and animal products, are still vital for adequate intake. 
- 
B-Vitamins: Many types of gut bacteria, including species of Bacteroidetes, Bifidobacterium, and Lactobacillus, can synthesize various B-vitamins, including folate (B9), biotin (B7), riboflavin (B2), and even cobalamin (B12). Similar to vitamin K2, the location of this synthesis in the large intestine poses a challenge for efficient absorption, as most absorption transporters for B-vitamins are located in the small intestine. Therefore, while the gut microbes can produce these compounds, they cannot be relied upon as the sole source, and dietary intake is essential. 
Vitamins Humans Cannot Synthesize
To better understand what vitamins humans can produce, it is helpful to look at the ones we cannot. The most prominent example is vitamin C (ascorbic acid), which is required for collagen synthesis and acts as an antioxidant. Humans, along with other primates and guinea pigs, lack the functional enzyme L-gulonolactone oxidase, which is necessary for the final step of vitamin C biosynthesis. This genetic mutation occurred millions of years ago, making humans entirely dependent on fruits and vegetables for vitamin C intake.
Vitamin A is another essential nutrient that humans cannot synthesize from scratch. Instead, the body converts provitamin A carotenoids, like beta-carotene found in plants, into the active form of vitamin A (retinol). This conversion process is regulated and dependent on dietary sources, not endogenous synthesis.
Endogenous vs. Dietary Vitamin Production
| Feature | Vitamin D | Niacin (B3) | Gut-Produced Vitamins (K2, B-Vitamins) | Exclusively Dietary Vitamins (C, E) | 
|---|---|---|---|---|
| Source | Skin exposure to UVB radiation | Amino acid tryptophan | Synthesized by gut bacteria | Food and supplements | 
| Efficiency | Highly efficient in optimal conditions | Inefficient; requires 60mg tryptophan for 1mg niacin | Variable; often poor due to synthesis location | Not applicable | 
| Bioavailability | Depends on sun exposure, skin tone, etc. | Dependent on tryptophan intake and conversion | Limited due to large intestine production | High, especially with balanced diet | 
| Regulation | Governed by factors like sunlight and melanin | Regulated conversion, dependent on diet | Influenced by gut microbiota composition | Absorbed based on intestinal capacity | 
| Dietary Importance | Supplements needed with insufficient sun exposure | Still the primary source to meet daily needs | Cannot rely on gut production alone | Crucial for survival; no internal source | 
Conclusion
The question of what vitamin is synthesized by humans reveals a fascinating aspect of our evolution and physiology. While vitamin D is effectively synthesized in the skin with sun exposure, and a limited amount of niacin can be made from tryptophan, the reality is that the body's internal production is either conditional or insufficient. The contribution of our gut microbiome to our vitamin supply, while supportive, is not enough to meet all of our nutritional demands. A balanced diet rich in fruits, vegetables, and other nutrient-dense foods remains the gold standard for ensuring adequate intake of all essential vitamins, both those we can and cannot produce. Understanding these metabolic pathways can inform healthier lifestyle choices and highlight why reliance on diet is non-negotiable for complete nutrition. For more information on vitamin functions, visit the National Institutes of Health's fact sheets.