How Does the Sun Actually Give You Vitamin D?

Your skin manufactures vitamin D when a specific type of ultraviolet light from the sun triggers a chemical reaction beneath the surface. The process starts in your skin but finishes in your liver and kidneys, where the raw material gets converted into a hormone your body can actually use. It’s one of the few essential nutrients your body can produce on its own, and sunlight is the primary source for most people.

The Chemical Reaction in Your Skin

Your skin contains a cholesterol-based compound sitting in the outer layers, ready to react when the right kind of light hits it. When UVB rays, specifically in the 295 to 315 nanometer wavelength range, penetrate your skin, they strike this compound and break open one of its chemical rings. That creates a precursor molecule, which then slowly rearranges itself over the next several hours into vitamin D3 (cholecalciferol) through body heat alone.

This is where most people assume the process ends, but vitamin D3 is not yet active. It’s essentially a raw ingredient. Your bloodstream carries it to your liver, where an enzyme adds an oxygen-hydrogen group to create a storage form. That storage form then travels to your kidneys, where a second enzyme modifies it again into the fully active hormone. This final form is what regulates calcium absorption, supports bone health, and influences immune function. Your parathyroid hormone controls this last conversion step, acting like a thermostat that ramps up production when calcium levels drop.

Why Only UVB Light Works

Not all sunlight contributes equally. UVA rays, which make up the majority of ultraviolet light reaching the ground, don’t have enough energy to trigger the reaction. Only UVB rays in that narrow 295 to 315 nanometer band can break the molecular bond needed to start the conversion. This distinction matters because UVB availability changes dramatically based on where you are, what time it is, and what’s between you and the sun.

The sun’s angle determines how much UVB actually reaches your skin. When sunlight enters the atmosphere at a steep angle (midday, summer, lower latitudes), UVB passes through less atmosphere and more of it reaches the surface. When the sun sits low on the horizon, UVB travels through a thicker slice of atmosphere and gets absorbed before it ever reaches you. This is why early morning and late afternoon sun feels warm but produces very little vitamin D.

Geography, Season, and the Winter Cutoff

If you live above the 37th parallel, roughly the latitude of Los Angeles, UVB levels drop so low from November through March that your skin essentially cannot produce meaningful vitamin D regardless of how long you stay outside. That covers most of the United States, all of Canada, the UK, and much of Europe and Asia. During these months, your body relies on whatever vitamin D it stored during sunnier months, plus dietary sources and supplements.

Even during months when UVB is available, clouds, haze, dust, and air pollution all reduce what reaches your skin. Thick cloud cover blocks a significant portion of UVB. Smog from traffic and industrial emissions absorbs and scatters it further. One exception: towering cumulus clouds can actually reflect UVB off their sides, temporarily boosting surface levels on partly cloudy days.

How Much Sun Exposure You Actually Need

The amount of sun needed for adequate vitamin D production is far less than most people expect. Research on balancing vitamin D synthesis against sunburn risk suggests that exposing about a quarter of your body (arms and legs, for instance) to roughly a quarter of the UV dose that would cause redness is sufficient. At a UV index of 10, full-body exposure for just one minute can produce a meaningful dose. In practical terms during the warmer months at mid-latitudes, useful exposures are generally under an hour, and often much shorter, depending on skin type and time of day.

The goal is to get brief, regular exposure rather than prolonged sessions. Your skin has a built-in ceiling: once a certain amount of the precursor compound has been converted, the same UVB light starts breaking down the vitamin D products, so longer exposure doesn’t keep increasing production.

How Skin Tone Affects Production

Melanin, the pigment that gives skin its color, absorbs UVB. This means darker skin tones require more sun exposure to produce the same amount of vitamin D as lighter skin tones. Research comparing the lightest and darkest skin types found that melanin creates an inhibition factor of roughly 1.3 to 1.4 times, meaning people with very dark skin need moderately longer exposure to achieve similar vitamin D levels. This doesn’t mean dark skin can’t produce vitamin D. It means the process is slower, which becomes especially relevant during seasons or at latitudes where UVB is already limited.

Sunscreen’s Real-World Effect

In laboratory conditions, applying sunscreen at the recommended thickness (a full 2 milligrams per square centimeter) can reduce vitamin D production by as much as 99%, simply because so few UVB photons reach the precursor compound in your skin. At half that thickness, which is closer to how most people actually apply sunscreen, conversion drops to about 22% of what unprotected skin would produce.

In practice, most people apply sunscreen unevenly, miss spots, and don’t reapply consistently. Population studies have generally not found that regular sunscreen users have significantly lower vitamin D levels, likely because of this gap between lab-perfect application and real-world use. The practical takeaway: sunscreen does reduce vitamin D synthesis, but typical use patterns leave enough gaps that most people still get some production.

Does Aging Reduce Vitamin D Production?

It was long assumed that older adults produce much less vitamin D because their skin contains less of the precursor compound. More recent research challenges this. A comparative study of healthy younger and older adults found no significant difference in the concentration of the precursor molecule in their skin. Both age groups also showed significant increases in blood vitamin D levels after the same low-dose UVB exposure. The younger group’s increase was somewhat larger (107% versus 67%), but the baseline starting material was essentially identical.

This suggests that for healthy older adults, age alone may not be as limiting as previously thought. Other factors common in aging, like spending less time outdoors, covering more skin with clothing, and reduced kidney function (which impairs that final activation step), likely explain much of the vitamin D deficiency seen in older populations.

What “Adequate” Levels Look Like

Vitamin D status is measured through a blood test that checks the storage form produced by your liver. The National Academies of Sciences considers levels at or above 20 ng/mL adequate for bone and overall health. Below 12 ng/mL qualifies as deficient and raises the risk of bone-softening conditions. Levels between 12 and 20 ng/mL are considered inadequate. On the upper end, levels above 50 ng/mL are associated with potential harm, particularly above 60 ng/mL.

Toxicity from sun exposure alone is essentially impossible because of that built-in ceiling where excess precursor gets broken down. Vitamin D toxicity comes from supplements, not sunlight.