The Vitamin D Pathway: How Your Body Creates and Uses It

Vitamin D follows a multi-step pathway that begins in your skin, passes through your liver and kidneys, and ends with an activated hormone that switches on genes in cells throughout the body. What most people call “vitamin D” is actually a precursor that must be chemically modified twice before it can do anything useful. The full process involves ultraviolet light, at least three organs, several enzymes, a dedicated transport protein, and a feedback system that keeps the whole thing in balance. Understanding how these steps connect explains why so many different things, from sunlight exposure to liver health to magnesium intake, can affect your vitamin D status.

How Your Skin Manufactures Vitamin D

The pathway starts when ultraviolet B radiation from sunlight hits a cholesterol-related molecule in your skin called 7-dehydrocholesterol. UVB energy breaks a chemical bond in this molecule, converting it into previtamin D3, which then slowly rearranges itself into vitamin D3 (cholecalciferol).1PubMed Central. Sunlight and Vitamin D: A global perspective for health This is a purely photochemical reaction: no enzyme is required, just the right wavelength of light and a supply of the precursor molecule in the upper layers of the skin.2PubMed. Who, what, where and when-influences on cutaneous vitamin D synthesis

The vitamin D3 produced in skin then enters the bloodstream, where it binds to vitamin D binding protein (DBP) for transport. DBP has a single binding site that it uses for all forms of vitamin D and its metabolites. This protein essentially acts as a reservoir and shuttle service, carrying vitamin D3 to the liver for its first chemical transformation and preventing the body from losing vitamin D metabolites through urine. A cargo receptor called megalin, along with a partner protein cubilin, reclaims DBP and its vitamin D cargo in the kidneys so they are not flushed out.3PubMed Central. Vitamin D Binding Protein: A Historic Overview

The Liver Adds the First Chemical Tag

Vitamin D3, whether made in the skin or absorbed from food or supplements, is biologically inert. It cannot activate genes or regulate calcium on its own. The first activation step happens in the liver, where an enzyme called CYP2R1 adds a hydroxyl group (an oxygen-hydrogen pair) to the molecule, converting it to 25-hydroxyvitamin D, commonly written as 25(OH)D and also known as calcifediol. This is the form that doctors measure in a standard blood test, and it is the main circulating storage form of vitamin D.

Anything that impairs liver function can disrupt this step. Research on fatty liver disease has found that advanced stages of liver scarring are associated with reduced expression of CYP2R1, the key enzyme, along with lower circulating levels of 25(OH)D.4PubMed Central. MASH associated lipotoxicity perturbs the expression of hepatic vitamin D bioactivating gene CYP2R1 in humans and mice This helps explain why people with chronic liver conditions often have low vitamin D despite adequate sunlight or supplementation: the raw material arrives at the liver, but the machinery to process it is compromised.

The Kidneys Produce the Active Hormone

After the liver tags vitamin D with one hydroxyl group, the 25(OH)D circulates back to the kidneys for the second and final activation step. In the proximal tubules of the kidney, another enzyme called CYP27B1 (also known as 1-alpha-hydroxylase) adds a second hydroxyl group, producing 1,25-dihydroxyvitamin D, or 1,25(OH)â‚‚D. This is calcitriol, the fully active hormone. It is the molecule that actually enters cells, binds to vitamin D receptors, and triggers changes in gene expression.

The kidney is the body’s richest source of CYP27B1, and the calcitriol it produces functions as a classical hormone: it enters the bloodstream and travels to distant target tissues.5PubMed Central. Extrarenal expression of the 25-hydroxyvitamin D-1-hydroxylase But CYP27B1 is not exclusive to the kidneys. The same activating enzyme has been found in many other tissues, including immune cells, bone, and the intestinal lining. In those locations, calcitriol acts locally rather than traveling through the bloodstream, which is why some researchers describe vitamin D as having both hormonal and local signaling roles.

How Your Body Keeps the System in Balance

The production of active vitamin D in the kidneys is not left to chance. Three major signals control how much calcitriol gets made at any given time: parathyroid hormone (PTH), fibroblast growth factor 23 (FGF23), and calcitriol itself.

When blood calcium drops, your parathyroid glands release PTH, which ramps up CYP27B1 activity in the kidneys, producing more calcitriol. At the same time, PTH suppresses the enzyme CYP24A1, which is responsible for breaking vitamin D down. The net effect is a surge in active vitamin D, which then works to restore calcium levels.6JBMR Plus. FGF23 and Vitamin D Metabolism

FGF23 does the opposite. Secreted mainly by bone cells, FGF23 dials down CYP27B1 while simultaneously turning up CYP24A1, the degradation enzyme. The result is less calcitriol production and faster breakdown of what already exists.7PubMed Central. Interaction of Vitamin D with Peptide Hormones with Emphasis on Parathyroid Hormone, FGF23, and the Renin-Angiotensin-Aldosterone System In a final layer of control, calcitriol regulates its own production through a negative feedback loop: when calcitriol levels rise, the molecule suppresses the very enzyme that creates it (CYP27B1) and stimulates the enzyme that destroys it (CYP24A1). PTH, FGF23, and calcitriol all act on these two enzymes in a push-and-pull pattern that keeps active vitamin D within a narrow range.6JBMR Plus. FGF23 and Vitamin D Metabolism

What Active Vitamin D Does Inside Cells

Once calcitriol reaches a target cell, it binds to the vitamin D receptor (VDR), a protein that sits inside the cell nucleus. The VDR-calcitriol complex then attaches to specific stretches of DNA and turns genes on or off. A time-course study in immune cells identified over 22,000 VDR binding sites across the genome, with more than 5,100 of those sites showing increased occupancy over time after vitamin D stimulation. The number of vitamin D-responsive genes expanded dramatically from early time points to later ones, evolving from a limited initial response into a broad transcriptional program affecting hundreds of genes.8PubMed Central. Temporal stratification of promoter-proximal versus enhancer VDR binding directs vitamin D-responsive transcription

Not all of vitamin D’s actions work through this slow, gene-based route. Some responses happen within seconds to minutes, far too quickly to involve new gene transcription. These rapid, non-genomic effects were first identified in the mid-1980s and include things like fast calcium influx across cell membranes and activation of intracellular signaling cascades.9PubMed Central. The Non-Genomic Actions of Vitamin D A separate membrane-bound receptor, protein disulfide-isomerase A3, appears to mediate at least some of these rapid responses, triggering secondary messengers that influence cell growth, immune signaling, and other processes independently of the classical VDR pathway.10PubMed Central. Nongenomic Activities of Vitamin D

Calcium Absorption and Bone Health

The most well-known job of active vitamin D is regulating calcium. In the intestine, calcium crosses the gut lining through two routes: a paracellular pathway (between cells) and a transcellular pathway (through cells). Both routes are regulated by calcitriol and other hormones, as well as by dietary factors. FGF23 opposes vitamin D’s action here as well, acting as a strong antagonist. Some intestinal calcium movement also appears to operate independently of vitamin D entirely.11PubMed Central. Intestinal Ca2+ absorption revisited: A molecular and clinical approach

Without enough calcitriol, calcium absorption drops, which can eventually weaken bones. This is why severe vitamin D deficiency causes rickets in children and osteomalacia (soft bones) in adults. The skeleton is the body’s calcium bank, and when dietary calcium is not being absorbed efficiently, PTH signals the bones to release their stores, which over time erodes bone density.

Immune Cells, Muscle, Brain, and Pancreas

Vitamin D’s influence extends well beyond calcium and bone. In immune cells, calcitriol triggers the production of cathelicidin, an antimicrobial peptide that is part of the innate immune response. Macrophages and skin cells express the CYP27B1 enzyme, allowing them to make their own calcitriol locally and ramp up cathelicidin production in response to infection.12The Journal of Rheumatology. Vitamin D and the Immune System Calcitriol also dials down certain aspects of immune activation, including the display of recognition molecules on cell surfaces, which helps prevent the immune system from overreacting.

Skeletal muscle expresses the vitamin D receptor, and treating muscle cells with calcitriol increases VDR expression in a dose-dependent manner. Muscle fibers also take up circulating 25(OH)D, suggesting they may activate vitamin D locally as well.13PubMed Central. The vitamin D receptor (VDR) is expressed in skeletal muscle of male mice and modulates 25-hydroxyvitamin D (25OHD) uptake in myofibers This could help explain the muscle weakness and increased fall risk observed in people with very low vitamin D levels.

In the brain, vitamin D shows neurotrophic and neuroprotective effects and influences neurotransmission and synaptic plasticity.14PubMed Central. Microglia and Brain Disorders: The Role of Vitamin D and Its Receptor And in the pancreas, calcitriol modulates the local renin-angiotensin system within the insulin-producing islet cells. When pancreatic islets are exposed to high glucose, they ramp up renin-angiotensin components, which impairs insulin secretion. Calcitriol prevents and reverses this effect.15PubMed. A novel role for vitamin D: modulation of expression and function of the local renin-angiotensin system in mouse pancreatic islets In animal studies, vitamin D deficiency upregulates this same islet stress pathway and increases insulin resistance, effects that persist independently of whether vitamin D is later restored, though blocking the renin-angiotensin system pharmacologically can correct them.16PubMed. Modulation of hypovitaminosis D-induced islet dysfunction and insulin resistance through direct suppression of the pancreatic islet renin-angiotensin system in mice

How the Body Breaks Down Vitamin D

What goes up must come down, and the body has a dedicated system for dismantling vitamin D once it has served its purpose. The enzyme CYP24A1 (24-hydroxylase) is the main off switch. It catalyzes a multi-step breakdown process that converts calcitriol into a water-soluble end product called calcitroic acid, which can then be excreted. Research using recombinant human CYP24A1 confirmed that this single enzyme handles the entire six-step degradation chain from calcitriol all the way to calcitroic acid.17PubMed Central. Calcitroic acid – a review

This degradation pathway is tightly coordinated with production. As noted earlier, the same hormones that stimulate calcitriol production (PTH) suppress CYP24A1, and the same signals that suppress production (FGF23 and calcitriol itself) boost CYP24A1 activity. The reciprocal regulation of synthesis and breakdown is what keeps active vitamin D levels stable.

D2 versus D3 from Food and Supplements

There are two dietary forms of vitamin D: D2 (ergocalciferol, from fungi and fortified foods) and D3 (cholecalciferol, from animal sources and the form your skin makes). Both enter the same liver pathway and get converted to their respective 25-hydroxylated forms. But they do not behave identically.

A randomized trial in healthy volunteers found that after eight weeks, the D3 group roughly doubled their 25(OH)D3 levels (from about 42 to 88 nmol/L). The D2 group raised their 25(OH)D2 levels, but their 25(OH)D3 levels actually fell by more than half, from about 36 to 17 nmol/L. Total 25(OH)D ended up significantly higher in the D3 group.18PubMed. Bioavailability of vitamin D(2) and D(3) in healthy volunteers, a randomized placebo-controlled trial The likely explanation is that D2 competes with D3 for the liver enzyme and may also accelerate the breakdown of 25(OH)D3. For raising and maintaining overall vitamin D status, D3 appears to be the more effective form.

Why Measuring Vitamin D Is Trickier Than It Sounds

The standard clinical test measures circulating 25(OH)D, the storage form produced by the liver. Most guidelines place deficiency below 20 ng/mL (50 nmol/L) and sufficiency at or above 30 ng/mL (75 nmol/L), though expert bodies do not all agree on these thresholds. What adds a further wrinkle is that the test result you get can depend on which laboratory method is used.

Different automated immunoassay platforms can produce meaningfully different numbers from the same blood sample. A study comparing three common platforms found that one system consistently read higher than the other two within the critical clinical range of 10 to 30 ng/mL, with proportional bias slopes exceeding 1.5. The other two platforms agreed closely with each other.19PubMed Central. Clinical Reclassification of Vitamin D Status Across Three Automated Immunoassays After Comparability Study A separate comparison of an immunoassay against liquid chromatography-tandem mass spectrometry (generally considered the gold standard method) found a proportional bias with a slope of 1.33, meaning the mass spectrometry method tended to read about a third higher.20PubMed Central. Comparison of LC–MS/MS and CLIA Methods for Vitamin D Measurement in an Unselected Outpatient Cohort: Statistical Evaluation and Impact on Clinical Classification

The practical upshot: a person sitting right at a clinical cutoff might be classified as deficient by one lab and sufficient by another. If you have been told your level is borderline, the method used matters. It is worth asking which assay your lab uses, and interpreting borderline results with some flexibility rather than treating the number as absolute truth.

Magnesium and Other Cofactors

Vitamin D does not work in isolation. Magnesium is required as a cofactor for the enzymes that metabolize vitamin D at every step of the pathway, both in the liver and in the kidneys.21PubMed. Role of Magnesium in Vitamin D Activation and Function If your magnesium is low, the enzymes that convert vitamin D to its storage and active forms may not work efficiently, even if your vitamin D intake is adequate. Magnesium also has a protective role against oxidative stress, and the interplay between magnesium deficiency and vitamin D deficiency has drawn increasing attention, particularly in the context of immune dysfunction.22PubMed Central. Magnesium and Vitamin D Deficiency as a Potential Cause of Immune Dysfunction, Cytokine Storm and Disseminated Intravascular Coagulation in covid-19 patients

This means that simply taking a vitamin D supplement without addressing magnesium status may not produce the expected improvement in blood levels. Foods rich in magnesium (nuts, seeds, dark leafy greens, whole grains) or a magnesium supplement may help the vitamin D pathway function as intended. Clinicians increasingly check both nutrients together rather than treating them as separate issues.

When the Pathway Breaks Down

Most discussions of vitamin D toxicity focus on overdosing with supplements, but the pathway itself has built-in vulnerabilities. The degradation enzyme CYP24A1 is the body’s main defense against excess calcitriol. People who carry mutations in the gene encoding CYP24A1 have impaired ability to break down active vitamin D. Even moderate vitamin D intake or sun exposure can produce dangerously high calcium levels in these individuals. Patients with mutations in both copies of the gene, and sometimes even in a single copy, develop elevated calcium, high calcitriol, suppressed PTH, kidney stones, and calcium deposits in the kidneys.23PubMed Central. Vitamin D-Mediated Hypercalcemia: Mechanisms, Diagnosis, and Treatment

In people without genetic mutations, toxicity from supplements can still occur through several mechanisms: excessive activity of the CYP27B1 activating enzyme, reduced CYP24A1 degradation activity, overloaded binding protein capacity, or sheer excess of calcitriol overwhelming the feedback system.24PubMed Central. Vitamin D Toxicity-A Clinical Perspective The hallmark of toxicity is hypercalcemia, which can cause nausea, kidney damage, and in severe cases, cardiac problems. Sunlight exposure alone does not cause vitamin D toxicity because the skin has its own safety valve: prolonged UV exposure breaks down previtamin D3 and vitamin D3 into inactive products before they can accumulate.

Genetic Variation in the Pathway

Not everyone processes vitamin D at the same rate. Common genetic variants in the genes encoding pathway enzymes and the vitamin D receptor influence how efficiently you convert, transport, and respond to vitamin D. A study examining multiple gene variants found that specific versions of the VDR gene (rs731236) and the CYP2R1 gene (rs7116978) were significantly associated with whether a person was classified as vitamin D sufficient, deficient, or insufficient. People carrying the GG genotype of rs731236 and the CC genotype of rs7116978 were more likely to maintain sufficient vitamin D levels.25PubMed Central. The Role of Polymorphisms in Vitamin D-Related Genes in Response to Vitamin D Supplementation

These variants help explain why two people with the same sunlight exposure, diet, and supplement regimen can end up with very different blood levels. They also raise questions about whether one-size-fits-all supplementation recommendations serve everyone equally. Personalized dosing based on genetic profile is not yet standard clinical practice, but the evidence increasingly suggests that individual biology shapes vitamin D status as much as individual behavior does.

A Pathway Shaped by a Billion Years of Evolution

The ability to make sterols that react with UV light is ancient, dating back at least 1.2 billion years to early single-celled organisms. But for most of that history, the product of that reaction was essentially a waste molecule, a UV-absorbing end product with no hormonal role.26PubMed Central. Vitamin D in the Context of Evolution The full vitamin D endocrine system, complete with a high-affinity receptor, dedicated metabolizing enzymes, and a plasma transport protein, is found only in vertebrates.27PubMed Central. Vitamin D: calcium and bone homeostasis during evolution

Around 550 million years ago, the vitamin D receptor evolved from a family of nuclear receptors that originally sensed cholesterol-related molecules like bile acids and controlled metabolic and immune genes.28PubMed. Vitamin D and evolution: Pharmacologic implications When vertebrates left the ocean roughly 400 million years ago, the vitamin D system took on an additional critical role: regulating calcium for a weight-bearing skeleton under gravity. Homo sapiens evolved under intense equatorial sun, with skin, diet, and physiology calibrated to abundant UV-B. The migration out of Africa beginning around 75,000 years ago brought humans into regions with seasonal or absent UV-B, and under those conditions vitamin D truly became a vitamin: a nutrient that must be obtained from the environment because the body can no longer produce enough on its own.26PubMed Central. Vitamin D in the Context of Evolution This evolutionary mismatch is a useful frame for understanding why deficiency is so widespread today, particularly at higher latitudes, among people with darker skin, and in populations that spend most of their time indoors.