Your skin is a vitamin D factory. When sunlight hits exposed skin, a specific type of ultraviolet radiation triggers a chemical reaction that produces vitamin D3, which your body then converts into a hormone essential for bone health, immune function, and more. This process is the source of roughly 80% to 90% of the vitamin D most people get, making it far more significant than dietary intake for the majority of the population.
How Your Skin Makes Vitamin D
The outer layer of your skin, the epidermis, contains a cholesterol-based compound called 7-dehydrocholesterol. When UVB radiation from the sun, specifically wavelengths between 290 and 315 nanometers, penetrates the skin and reaches this compound, it breaks open part of the molecule’s ring structure. That creates a precursor called previtamin D3, which then naturally rearranges itself into vitamin D3 over the next several hours due to body heat.
The most efficient wavelengths for this reaction are around 298 nanometers, right in the middle of the UVB range. UVA rays, which make up the vast majority of ultraviolet light reaching the ground, do not trigger this conversion. This is why the specific quality of sunlight matters just as much as the quantity.
Vitamin D3 produced in the skin isn’t immediately active. It first travels to the liver, where it’s converted into a form called 25-hydroxyvitamin D, the marker doctors measure in blood tests. From there, the kidneys (and other tissues) convert it a second time into its fully active hormonal form. So the journey from sunlight on your skin to a working hormone involves three distinct steps: skin production, liver processing, and kidney activation.
Why Time of Day, Season, and Location Matter
The sun’s angle in the sky determines how much UVB actually reaches the ground. When sunlight enters the atmosphere at a steep angle, as it does in early morning, late afternoon, or during winter months at higher latitudes, more UVB gets absorbed by the ozone layer before it ever reaches your skin. This is why the window for effective vitamin D production is roughly between 10 a.m. and 4 p.m., and why people living farther from the equator produce little to no vitamin D during winter.
The solar zenith angle, which describes how directly overhead the sun is, is the single clearest predictor of whether your skin can make vitamin D at any given moment. At large zenith angles (sun low in the sky), there simply isn’t enough UVB to initiate meaningful synthesis. Cloud cover, air pollution, and altitude also play roles, but latitude and season are the dominant factors. If you live above roughly 35 degrees north (think Atlanta, or anywhere farther north), your skin effectively stops making vitamin D for several months each winter.
Skin Tone Changes the Equation
Melanin, the pigment that gives skin its color, absorbs UVB radiation. This means darker skin tones require significantly more sun exposure to produce the same amount of vitamin D as lighter skin. Research on people in the UK found that individuals with very dark skin (Fitzpatrick type V) needed about 25 minutes of midday sun exposure daily from March through September to maintain adequate vitamin D levels. People with light skin needed only about 9 minutes for the same result. Put another way, dark skin requires a UVB dose roughly 2.5 to 3 times greater than light skin to raise blood levels of vitamin D by the same amount.
This biological difference has major real-world consequences. People with darker skin who live at higher latitudes are at substantially greater risk of vitamin D deficiency, particularly during months when UVB exposure is already limited.
Age Reduces Your Skin’s Capacity
As you get older, the concentration of 7-dehydrocholesterol in your skin declines. A comparison between young subjects (ages 8 and 18) and older adults (ages 77 and 82) found that aging can decrease the skin’s ability to produce previtamin D3 by more than twofold. An older adult standing in the same sunlight for the same duration as a younger person will produce less than half as much vitamin D. This is one reason vitamin D deficiency becomes increasingly common with age, and why dietary sources and supplements become more important later in life.
How Much Sun Exposure You Need
General guidance suggests exposing the face, arms, hands, and legs to sunlight without sunscreen for 5 to 30 minutes at least twice a week between 10 a.m. and 4 p.m. The wide range reflects the many variables involved: your skin tone, your latitude, the season, and how much skin you expose. Even SPF 8 sunscreen can block enough UVB to significantly reduce vitamin D production, so the recommendation specifically involves unprotected skin for that brief window.
That said, this doesn’t mean you should skip sun protection entirely. The same UVB rays that produce vitamin D also cause sunburn and increase skin cancer risk. The practical approach many dermatologists suggest is to get brief, regular unprotected exposure (closer to the shorter end of that range for lighter skin) and then apply sunscreen for longer time outdoors.
What Adequate Vitamin D Levels Look Like
Doctors assess your vitamin D status through a blood test measuring 25-hydroxyvitamin D, the liver-processed form. The National Academies of Sciences, Engineering, and Medicine define the key thresholds this way:
- Below 12 ng/mL: Deficiency, associated with rickets in children and soft, weakened bones in adults
- 12 to 20 ng/mL: Generally considered inadequate for bone and overall health
- 20 ng/mL or above: Sufficient for most people
- Above 50 ng/mL: Potentially harmful, particularly above 60 ng/mL
If you have risk factors for deficiency, such as dark skin, limited sun exposure, older age, or living at a northern latitude, a blood test is the most reliable way to know where you stand. From there, the gap can be closed through a combination of strategic sun exposure, vitamin D-rich foods like fatty fish and fortified dairy, or supplements.

