What Is Vitamin D For? Key Roles from Bones to Immunity

Vitamin D is best known for helping your body absorb calcium and build strong bones, but its influence reaches far beyond the skeleton. Receptors for vitamin D sit in tissues throughout the body, from immune cells to brain neurons to muscle fibers, and the vitamin acts more like a hormone than a typical nutrient. That wide reach is why deficiency has been linked to such a varied list of health problems, and why researchers have spent decades trying to figure out exactly which of those links hold up under rigorous testing.

How Your Body Makes and Uses Vitamin D

Most of your vitamin D comes not from food but from sunlight. When ultraviolet B rays hit your skin, they convert a cholesterol compound called 7-dehydrocholesterol into a precursor molecule, which then rearranges itself into vitamin D3.1PubMed Central. Sunlight and Vitamin D: A global perspective for health That raw vitamin D is not yet useful. It travels to the liver, where enzymes convert it into 25-hydroxyvitamin D (the form doctors measure in blood tests), and then to the kidneys, where a second conversion produces the active hormone, 1,25-dihydroxyvitamin D.2PubMed Central. Vitamin D metabolism, mechanism of action, and clinical applications That second step depends on healthy kidney tissue, which is one reason people with kidney disease are especially vulnerable to vitamin D problems.3PubMed. Vitamin D metabolism and vitamin D traditional and nontraditional, target organs: implications for kidney patients

Once activated, vitamin D works by docking with vitamin D receptors (VDRs), which are found in a remarkably wide range of tissues. These receptors sit in the nucleus of cells and regulate the expression of hundreds of genes, adjusting different biological processes depending on the cell type involved.4PubMed Central. Vitamin D and Its Target Genes This is why vitamin D has such far-reaching effects: it is not just doing one job in one place, it is fine-tuning gene activity across the body.5PubMed Central. Vitamin D: An Overview of Gene Regulation, Ranging from Metabolism to Genomic Effects

Calcium Absorption and Bone Health

The most established role for vitamin D is keeping your skeleton intact. Its primary job in calcium balance is boosting calcium absorption from food in the intestine. Without enough active vitamin D, your gut absorbs a much smaller fraction of the calcium you eat, and the body starts pulling calcium from bone to maintain blood levels.6PubMed Central. Vitamin D and intestinal calcium absorption Over time, that leads to weakened bones, and in severe cases, diseases like rickets in children or osteomalacia (soft bones) in adults. Vitamin D also helps regulate phosphorus, another mineral critical for bone density.7PubMed Central. Calcium and vitamin D: skeletal and extraskeletal health

This bone-protective function is the least controversial thing vitamin D does. It is the reason milk and cereal are fortified with it in many countries, and it is the basis for clinical guidelines recommending supplementation in older adults at risk of fractures. Where things get more complicated, and more interesting, is when you look beyond the skeleton.

Immune Defense

Vitamin D shapes how your immune system responds to infections. One well-studied pathway involves cathelicidin, an antimicrobial protein your body produces to fight off bacteria and other intracellular pathogens. Vitamin D signaling directly triggers the production of cathelicidin, and without adequate vitamin D, that defense mechanism weakens.8PubMed Central. Vitamin D-Cathelicidin Axis: at the Crossroads between Protective Immunity and Pathological Inflammation during Infection Immune cells themselves, including T cells, B cells, and antigen-presenting cells, carry vitamin D receptors and can even produce the active form of the vitamin locally, allowing vitamin D to act right at the site of an immune response.9PubMed Central. Vitamin D and the immune system

Beyond fighting infections, vitamin D also appears to dial down excessive immune activity. Deficiency has been associated with a higher risk of autoimmune conditions, where the immune system mistakenly attacks the body’s own tissues.10PubMed Central. Vitamin D and the immune system The idea is that vitamin D helps the immune system distinguish between genuine threats and the body’s own cells, though nailing down the specifics in human trials has been slow going.

Does Vitamin D Supplementation Prevent Colds and Flu?

This is one of the most debated questions in vitamin D research. A major 2017 meta-analysis pooling individual participant data from thousands of people found that vitamin D supplements modestly reduced the risk of acute respiratory infections. The benefit was strongest in people who were very deficient at the start (blood levels below about 10 ng/mL), where the odds of infection dropped substantially. People who took daily or weekly doses saw more protection than those who took large, infrequent bolus doses.11PubMed Central. Vitamin D supplementation to prevent acute respiratory tract infections: systematic review and meta-analysis of individual participant data

However, a more recent 2025 meta-analysis that incorporated additional trials since then arrived at a less definitive result. The overall effect of vitamin D on respiratory infection risk was similar in direction but no longer reached statistical significance, with the confidence interval just barely crossing the line of no effect. Subgroup analyses by age, baseline vitamin D level, dosing frequency, and dose size did not show clear winners either.12PubMed. Vitamin D supplementation to prevent acute respiratory infections: systematic review and meta-analysis of stratified aggregate data The honest read of the evidence right now is that if you are severely deficient, correcting that deficiency likely helps your immune defenses. For someone with already-adequate levels, popping extra vitamin D pills is unlikely to keep you from catching a cold.

Blood Pressure and the Heart

Vitamin D interacts with the renin-angiotensin system, the hormonal pathway that regulates blood pressure and fluid balance. In animal studies, knocking out the vitamin D receptor leads to overproduction of renin, which raises blood pressure and enlarges the heart.13PubMed. Cardiac hypertrophy in vitamin D receptor knockout mice: role of the systemic and cardiac renin-angiotensin systems Active vitamin D directly suppresses renin gene activity through a receptor-dependent mechanism.14PubMed. Vitamin D: a negative endocrine regulator of the renin-angiotensin system and blood pressure

In humans, data from a study of normotensive individuals found that those with low vitamin D had higher circulating levels of angiotensin II, a hormone that constricts blood vessels, compared with people who had sufficient levels.15PubMed Central. Plasma 25-hydroxyvitamin D and regulation of the renin-angiotensin system in humans These observational links are plausible and consistent. But the largest randomized trial testing vitamin D supplementation for cardiovascular disease prevention, the VITAL trial of over 25,000 participants followed for more than five years, found no reduction in major cardiovascular events among people taking vitamin D compared to placebo.16New England Journal of Medicine. Vitamin D Supplements and Prevention of Cancer and Cardiovascular Disease So while vitamin D clearly participates in blood-pressure biology, supplementing with it does not appear to prevent heart attacks or strokes in people who are not severely deficient.

Insulin and Blood Sugar

Observational studies have repeatedly found that lower vitamin D levels correlate with insulin resistance, metabolic syndrome, and type 2 diabetes. The proposed explanation involves inflammation: vitamin D may shift the balance between pro-inflammatory and anti-inflammatory signaling molecules, improving how cells respond to insulin and how the pancreas secretes it.17PubMed Central. The Role of Vitamin D and Its Molecular Bases in Insulin Resistance, Diabetes, Metabolic Syndrome, and Cardiovascular Disease: State of the Art

When researchers have put this to the test in people who already have type 2 diabetes, the results have been underwhelming. One trial of high-dose vitamin D3 in deficient diabetic patients found only borderline hints of improved insulin secretion and no improvement in insulin resistance, blood pressure, inflammation, or blood sugar control.18PubMed. Effects of 12 weeks high dose vitamin D3 treatment on insulin sensitivity, beta cell function, and metabolic markers in patients with type 2 diabetes and vitamin D insufficiency Another randomized trial in deficient diabetic patients found no change in insulin sensitivity or secretion after vitamin D3 repletion.19PubMed. Effects of Vitamin D Supplementation on Insulin Sensitivity and Insulin Secretion in Subjects With Type 2 Diabetes and Vitamin D Deficiency The pattern here echoes what we see with cardiovascular disease: the biology is real, but giving supplements to people who already have the disease does not seem to reverse it. Whether maintaining adequate vitamin D throughout life helps prevent metabolic problems in the first place is a different question, and one that is much harder to study.

Brain Health, Mood, and Seasonal Depression

Vitamin D receptors are present throughout the brain, and the vitamin appears to influence neurotransmitter systems, protect neurons from damage, and modulate immune activity within the nervous system.20PubMed Central. Neuroprotective Roles of Vitamin D: Bridging the Gap Between Mechanisms and Clinical Applications in Cognitive Decline During brain development, vitamin D may act like a neurosteroid hormone, with roles in neurotransmission and neuroprotection.21Neuropsychobiology. Vitamin D and Ageing: Neurological Issues

The link between vitamin D and mood, especially seasonal depression, gets a lot of attention because it maps so neatly onto seasonal patterns of sunlight exposure. People in higher latitudes produce less vitamin D in winter, and seasonal affective disorder peaks during the same months. But neatness is not proof. Reviews of supplementation trials for depression and seasonal affective disorder have found inconsistent results, with some studies reporting modest improvements and others finding no effect. Study designs vary widely in dose, duration, and how depression was measured, making it hard to draw firm conclusions.22PubMed Central. The Role of Water-Soluble Vitamins and Vitamin D in Prevention and Treatment of Depression and Seasonal Affective Disorder in Adults One small trial in deficient diabetic women with anxiety found that depression scores dropped within the vitamin D group over the course of treatment, though the improvement was not statistically different from the control group.23PubMed Central. Effect of Vitamin D Supplement on Mood Status and Inflammation in Vitamin D Deficient Type 2 Diabetic Women with Anxiety In short, there is biological plausibility and suggestive evidence, but not yet the kind of clear trial data that would make supplementation a recommended treatment for depression.

Muscle Function and Fall Prevention

Vitamin D influences skeletal muscle cells and may improve the way muscles contract and generate force. Research has found evidence for a direct vitamin D effect on postural stability, including the neuromuscular coordination required to keep your balance.24PubMed Central. Fall prevention and vitamin D in the elderly: an overview of the key role of the non-bone effects This matters most for older adults, where a fall can be catastrophic. Multiple studies have linked vitamin D supplementation with reduced fall rates in elderly populations, and this muscle-and-balance benefit may be just as important as its effect on bone density in preventing fractures.

Pregnancy and Fetal Development

Vitamin D takes on extra importance during pregnancy. Deficiency in expectant mothers has been associated with impaired bone development in the fetus, reduced birth weight, and other effects on the musculoskeletal system of the offspring. A review of multiple trials and cohort studies found that vitamin D supplementation during pregnancy had a positive impact on fetal growth, including birth weight and length.25PubMed Central. Vitamin D and its impact on maternal-fetal outcomes in pregnancy: A critical review One cohort study even found that low maternal vitamin D was associated with wider, flatter fetal thighbones as early as 19 weeks of gestation, a sign of altered skeletal development that worsened with more severe deficiency.26PubMed Central. Low maternal vitamin D status and fetal bone development: cohort study This is one area where the case for maintaining adequate vitamin D levels is strong, and many prenatal care guidelines include vitamin D supplementation.

Why Some People Are More Prone to Deficiency

If your body makes vitamin D from sunlight, it seems like deficiency should be easy to avoid. But the skin’s ability to produce vitamin D varies dramatically depending on a few factors. Darker skin contains more melanin, which competes with the cholesterol compound in skin for UVB photons, meaning darker-skinned people need more sun exposure to produce the same amount of vitamin D.27PubMed Central. Factors that influence the cutaneous synthesis and dietary sources of vitamin D Aging also reduces the skin’s production capacity, as does sunscreen use.28The American Journal of Clinical Nutrition. Environmental factors that influence the cutaneous production of vitamin D Geography plays a big role too: at higher latitudes, the angle of sunlight in winter is too shallow for UVB rays to reach the ground effectively, meaning your skin produces little to no vitamin D for months at a stretch.

Obesity is another risk factor, because vitamin D is fat-soluble and gets sequestered in fat tissue, reducing the amount circulating in the blood. People with conditions affecting fat absorption (like Crohn’s disease or celiac disease) can also struggle to absorb dietary vitamin D. Indoor lifestyles, shift work, and covering most of the skin for cultural or religious reasons all add to the list of reasons deficiency is surprisingly common worldwide.

How Doctors Measure Vitamin D Status

The standard test measures 25-hydroxyvitamin D in the blood, the liver-processed form that has a half-life of about three weeks and reflects your overall vitamin D supply from all sources, including sunlight, food, and supplements.29Endocrine Connections. Vitamin D testing and treatment: a narrative review of current evidence Where experts disagree is on what counts as “enough.” Many guidelines set the target at 20 ng/mL or above, but some professional groups argue for 30 ng/mL. The one thing nearly everyone agrees on is that levels below about 10 to 12 ng/mL represent clear deficiency that should be treated.30Endocrine Connections. Vitamin D testing and treatment: a narrative review of current evidence The lack of consensus on optimal levels is one reason the supplementation debate keeps going: different cutoffs lead to very different estimates of how many people are “deficient” and how many would benefit from a supplement.31Journal of Bone and Mineral Research. Serum 25‐Hydroxyvitamin D Levels: Variability, Knowledge Gaps, and the Concept of a Desirable Range

The Supplementation Paradox

A recurring theme in vitamin D research is that observational studies find strong associations between low vitamin D and poor health outcomes, but randomized trials of supplementation often show little or no benefit. The VITAL trial is a prime example: over 25,000 participants were randomized to vitamin D or placebo and followed for over five years, and there was no reduction in either cancer incidence or major cardiovascular events.32New England Journal of Medicine. Vitamin D Supplements and Prevention of Cancer and Cardiovascular Disease

There are a few possible explanations. One is reverse causation: sicker people go outside less, so low vitamin D may be a marker of poor health rather than a cause. Another is that the trials enroll mostly people who already have adequate levels, diluting any benefit that would appear in the truly deficient. A third possibility is that vitamin D’s benefits are real but work over decades of lifetime exposure, not the five-year window of a typical trial. Finally, the biology of vitamin D receptors regulating hundreds of genes suggests its effects are diffuse and context-dependent rather than concentrated on a single dramatic outcome.

Vitamin D2 Versus D3

Supplements come in two forms: vitamin D2 (ergocalciferol, derived from fungi and plants) and vitamin D3 (cholecalciferol, the form your skin makes and the form found in animal-based foods like fatty fish and egg yolks). A meta-analysis of 20 comparative studies found that D3 raises total blood levels of 25-hydroxyvitamin D about 40 percent more effectively than an equivalent dose of D2.33Advances in Nutrition. Comparative bioavailability and biological potency of dietary ergocalciferol (vitamin D2) versus cholecalciferol (vitamin D3) In one trial, volunteers taking D2 actually saw their D3 levels fall over eight weeks, so D2 was partly displacing, not just supplementing, the body’s existing D3.34The Journal of Clinical Endocrinology & Metabolism. Bioavailability of Vitamin D2 and D3 in Healthy Volunteers, a Randomized Placebo-Controlled Trial A clinical comparison in a primary-care setting also showed D3 injections produced roughly double the serum increase of D2 injections.35PubMed Central. Effectiveness of vitamin D2 compared with vitamin D3 replacement therapy in a primary healthcare setting If you are choosing a supplement, D3 is the more effective option for raising and maintaining blood levels. D2 still works, but you need to be aware that the doses may not be interchangeable.

When Too Much Becomes Dangerous

Because vitamin D is fat-soluble, it accumulates in the body, and very high supplement doses can push blood levels into a toxic range. The main danger is hypercalcemia, an excess of calcium in the blood, which can cause nausea, kidney stones, kidney damage, and in extreme cases cardiac problems. Toxicity occurs when massive amounts of vitamin D3 or D2 produce supraphysiological concentrations of 25-hydroxyvitamin D, which then binds to the vitamin D receptor and drives excessive calcium absorption.36PubMed Central. Vitamin D-Mediated Hypercalcemia: Mechanisms, Diagnosis, and Treatment Toxicity is essentially unheard of from sunlight alone, because the skin self-regulates production. It comes from supplements, usually after prolonged intake of doses well above the recommended upper limit of 4,000 IU per day for most adults, or from taking inappropriately concentrated prescription preparations.

Vitamin D and the Evolution of Human Skin Color

One of the most fascinating chapters in vitamin D’s story is the role it played in shaping human evolution. The vitamin D-folate hypothesis proposes that as early humans migrated out of equatorial Africa into higher latitudes with less intense sunlight, lighter skin evolved because it allowed more efficient production of vitamin D from weaker UVB radiation.37PubMed Central. The Vitamin D⁻Folate Hypothesis as an Evolutionary Model for Skin Pigmentation: An Update and Integration of Current Ideas At the same time, dark skin was maintained near the equator because heavy melanin protects folate, another vitamin essential for reproductive success, from being broken down by intense UV rays. Human skin pigmentation, in other words, may represent a balancing act between two competing vitamin needs under different UV environments.38PubMed Central. The evolution of human skin pigmentation: A changing medley of vitamins, genetic variability, and UV radiation during human expansion The hypothesis remains debated in its details, but it underscores how deeply vitamin D is woven into human biology, not as a luxury nutrient but as a selective pressure powerful enough to reshape something as visible as skin color over tens of thousands of years.