Most people know vitamin D as the bone health nutrient. Take your calcium. Get some sun. Drink your milk. That is approximately the extent of what most of us were taught about it growing up, and for most of us that framing has not changed much since childhood.

What the research of the past two decades has revealed is a picture significantly more complex and more consequential than bone density. Vitamin D is not behaving like a vitamin at all. It is behaving like a hormone, and what it does in the brain, the immune system, the muscles, and the hormonal regulation systems of the body represents one of the most widespread and underaddressed deficiencies in modern health.

Why Vitamin D Is Not Actually a Vitamin

Vitamins, by definition, are compounds the body cannot produce on its own and must obtain from food. Vitamin D does not fit that definition. When your skin is exposed to ultraviolet B radiation from sunlight, it synthesizes vitamin D from cholesterol already present in the skin. Your body makes it. That is not how vitamins work. That is how hormones work.

Once produced in the skin, vitamin D undergoes conversion in the liver and kidneys into its active hormonal form, calcitriol. In that form it binds to vitamin D receptors found in virtually every tissue in the body, including the brain, the immune system, the muscles, the cardiovascular system, and the reproductive organs. It regulates gene expression across hundreds of biological processes. The breadth of its influence in the body is far closer to a steroid hormone than to a dietary micronutrient.

Understanding this distinction matters for one practical reason: you cannot reliably get enough vitamin D from food alone. The food sources of vitamin D, primarily fatty fish, egg yolks, and fortified dairy products, provide amounts that are meaningful as a supplement to sun exposure but are not sufficient as a primary source. The body was designed to make this compound from sunlight. When sunlight is absent, the system runs short.

What Vitamin D Does in the Brain

Vitamin D receptors are found throughout the brain, including in regions involved in mood regulation, memory formation, and executive function. Researchers have identified several mechanisms through which vitamin D influences neurological health.

Vitamin D supports the production of neurotrophins, which are proteins that promote the growth, maintenance, and survival of neurons. Brain-derived neurotrophic factor, commonly called BDNF, is one of the most important of these proteins and is sometimes described as fertilizer for the brain. Low vitamin D levels are associated with reduced BDNF activity, which in turn is associated with depression, cognitive decline, and reduced neuroplasticity.

Vitamin D also regulates the production of serotonin in the brain. Serotonin is the neurotransmitter most closely associated with mood stability, emotional resilience, and the feeling of calm wellbeing. The enzyme that converts tryptophan into serotonin is activated by vitamin D. When vitamin D is low, serotonin synthesis is impaired, and the effects on mood and emotional regulation can be significant.

Chronic inflammation in the brain, sometimes called neuroinflammation, is increasingly implicated in depression, anxiety, cognitive decline, and neurodegenerative disease. Vitamin D has measurable anti-inflammatory effects in the central nervous system and helps regulate the immune cells of the brain called microglia, which, when chronically activated, contribute to neuroinflammation.

For women in perimenopause and menopause, where estrogen decline is already affecting mood, cognitive function, and emotional regulation, the compounding effect of vitamin D deficiency on the same systems is clinically significant. These are not separate problems. They are overlapping vulnerabilities that interact.

How Widespread the Deficiency Actually Is

Estimates of vitamin D deficiency vary depending on the threshold used, but research consistently suggests that a substantial portion of the population, often cited at 40 percent or more of American adults, has vitamin D levels below what is considered optimal for health. Among women, particularly those who spend most of their time indoors, those with darker skin tones, and those living at higher latitudes where sun angle limits UVB exposure for much of the year, deficiency rates are considerably higher.

The standard reference range for vitamin D on most lab panels, typically defined as anything above 20 ng/mL, is widely considered by researchers to be set too low for optimal health outcomes. Many practitioners working in integrative and functional medicine recommend a target range of 50 to 80 ng/mL for optimal neurological, immune, and hormonal function. Most people who are technically in the normal range by standard lab criteria are not in the optimal range by functional criteria.

This matters because a woman can receive her annual lab results, see that her vitamin D falls within the normal range, and still be operating with levels that are suboptimal for brain health, immune function, and hormonal regulation. Normal and optimal are not the same thing.

We Have Become an Indoor Generation

Previous generations spent considerably more time outdoors than most people do today. Agricultural and outdoor labor, outdoor recreation as a primary form of leisure, and homes and workplaces that were less climate controlled all meant more consistent sun exposure across the lifespan. The modern lifestyle has inverted that pattern almost entirely.

Many people today wake up indoors, commute in a car or enclosed transit, work indoors under artificial light for eight or more hours, commute home, and spend their evenings indoors. On weekends, air conditioning, streaming entertainment, and indoor gyms further reduce outdoor time. When people do go outside, sunscreen, clothing, and the timing of outdoor activity, often during midday when UVB radiation is highest but sun exposure feels most uncomfortable, further limit vitamin D synthesis.

The result is a population that is structurally disconnected from the primary mechanism through which the body was designed to maintain adequate vitamin D levels. No amount of dietary adjustment fully compensates for that disconnect.

Sunlight Versus Supplements

Vitamin D supplementation is widely available, relatively inexpensive, and can meaningfully improve vitamin D status in people who are deficient. For people living at higher latitudes, spending most of their time indoors, or with conditions that affect vitamin D absorption, supplementation is a practical and often necessary intervention.

That said, sunlight and supplementation are not equivalent in their effects. Sun exposure on the skin produces not only vitamin D but also other photoproducts, including lumisterol and tachysterol, whose biological roles are still being studied. Sun exposure also triggers the release of nitric oxide from the skin, which has cardiovascular and blood pressure benefits independent of vitamin D. The full biological response to sunlight is more complex than simply elevating a single nutrient.

The practical implication is that supplementation is a useful tool, particularly in the absence of adequate sun exposure, but regular outdoor time remains the more complete intervention. The goal is not to choose between them but to use both appropriately.

Vitamin D3 is the preferred supplemental form, as it is the same form the body produces from sunlight and is more effective at raising blood levels than vitamin D2. Taking vitamin D with vitamin K2 is advisable, as K2 helps direct the calcium that vitamin D mobilizes into bones rather than arterial walls. Magnesium is also required for vitamin D activation, meaning that magnesium deficiency can limit the effectiveness of vitamin D supplementation regardless of dose.

How to Find Out Where You Stand

The test to request is a 25-OH vitamin D blood test, sometimes called a 25-hydroxyvitamin D test. This is a standard lab test available through virtually any primary care provider. Ask for it specifically by name, as it is not typically included in routine annual bloodwork by default.

When reviewing your results, note that the standard normal range begins at 20 ng/mL on most panels. For the purposes of brain health, immune function, and hormonal regulation, a more functional target is 50 to 80 ng/mL. If your level falls within the standard normal range but below 50 ng/mL, a conversation with your provider about supplementation is worthwhile.

Small Habits With Large Returns

The most accessible intervention for vitamin D status is also the simplest. Spending 10 to 20 minutes outdoors in direct sunlight during midday hours, when UVB radiation is present, on as many days as possible provides meaningful vitamin D synthesis for most people with light to medium skin tones. Darker skin tones require longer exposure to synthesize equivalent amounts.

Coffee on the back patio instead of the kitchen. A short walk at lunch rather than eating at a desk. Reading outside in the afternoon rather than on a couch indoors. Tending a garden. Walking to a destination rather than driving when the option exists.

These are not dramatic lifestyle changes. They are small recalibrations of existing habits that, repeated consistently over time, restore a pattern of sun exposure the body was designed around.

The return on that investment, in mood, cognitive function, immune resilience, hormonal balance, and long-term neurological health, is disproportionately large relative to the effort required.

Source: Holick MF. Vitamin D Deficiency. New England Journal of Medicine, 2007. Patrick RP, Ames BN. Vitamin D and the omega-3 fatty acids control serotonin synthesis and action. FASEB Journal, 2015.