Sun Exposure & Vitamin D: Synthesis, Deficiency, and Safety
Sunlight is the original and most efficient source of vitamin D for humans. But how the body actually makes vitamin D from UV rays, why so many people are deficient despite living on a sunlit planet, and whether deliberate sun exposure is a safe strategy are questions that deserve careful answers. This article covers all three.
How the Skin Makes Vitamin D
When ultraviolet B (UVB) rays from sunlight hit the skin, they trigger a chemical reaction in the epidermis. UVB photons in the 290–315 nm wavelength range convert 7-dehydrocholesterol — a cholesterol precursor naturally present in skin cells — into previtamin D₃, which then isomerizes into vitamin D₃ (cholecalciferol) [34][35]. This newly made vitamin D₃ enters the bloodstream and travels to the liver, where it is converted to 25-hydroxyvitamin D (calcidiol) — the main form measured in blood tests. Calcidiol is then further converted to the biologically active hormone 1,25-dihydroxyvitamin D (calcitriol), primarily in the kidneys [34]. Calcitriol is the form that binds to vitamin D receptors throughout the body and carries out its functions: regulating calcium absorption, modulating immune response, and influencing gene expression.
In other words, sunlight hitting your skin is the first step in a multi-organ process. This is why vitamin D is often called the "sunshine vitamin" — its primary production pathway is entirely dependent on UV exposure rather than dietary intake.
Factors That Affect How Much Vitamin D You Make
The amount of vitamin D your skin synthesises from any given period of sun exposure is not fixed. It varies significantly based on several interacting factors.
Latitude and Season
Your geographic location and the time of year determine the intensity of UVB reaching the Earth's surface. A high sun angle — which occurs at lower latitudes and during summer midday — delivers the strongest UVB dose for vitamin D production [35]. A short midday summer exposure (10–20 minutes in a t-shirt) can generate a substantial amount of vitamin D. The same length of exposure in early morning, late afternoon, or winter may produce little to none [21][22]. Above roughly 37–40° latitude, the sun's reduced angle through the atmosphere in winter filters out nearly all UVB. At around 42°N (Boston, USA), vitamin D synthesis from sunlight drops to essentially zero from November through early March. Further north — at 52°N (London, UK or Edmonton, Canada) — this "vitamin D winter" stretches from approximately October through April.
Skin Pigmentation
Melanin, the pigment that gives skin its colour, absorbs UV radiation — acting as a natural sunscreen. This provides protective benefits (less DNA damage from UV) but also means less UVB is available to initiate vitamin D production. A deeply pigmented skin can require significantly more sun exposure to make the same amount of vitamin D as fair skin. Someone with very dark skin (Fitzpatrick Type V or VI) may need up to 10 times the sun exposure to synthesise an equivalent amount to someone with very fair skin (Type I) under identical conditions [28]. Melanin competes directly with 7-dehydrocholesterol for UVB photons [28]. This is why people with dark skin who live at high latitudes are at particularly high risk of deficiency — the limited UVB that does reach the surface in those regions is further reduced by skin pigment.
Age
An older person's skin is less efficient at making vitamin D. The concentration of 7-dehydrocholesterol in skin declines with age, so a 70-year-old exposed to the same summer sun as a 20-year-old will produce substantially less vitamin D [30]. Older adults also tend to spend less time outdoors, compounding the risk. This is one of the main reasons vitamin D supplementation is especially recommended for the elderly.
How Much Skin Is Exposed
Vitamin D synthesis is roughly proportional to the skin area exposed (up to a saturation point). Exposing only your face and hands produces far less than exposing your arms, legs, or torso. A person in a swimsuit at midday will make more vitamin D in 10 minutes than someone taking the same walk in long trousers and a long-sleeved shirt. Clothing is therefore a major practical variable — and it is one of the inputs this calculator uses to personalise its estimates.
Sunscreen
Sunscreen blocks UV radiation to protect the skin from sunburn and DNA damage. Any sunscreen effective enough to prevent burning will also reduce vitamin D synthesis. A properly applied high-SPF sunscreen can block 90–98% of cutaneous vitamin D production [23][24]. SPF 15 filters roughly 93% of UVB; SPF 30 filters roughly 97%. In practice, people rarely apply a thick enough layer to achieve the full labelled SPF, so some synthesis may still occur — but it is substantially reduced. Sunscreen use is widespread and medically necessary, which is one reason natural vitamin D levels in many populations have declined.
Other Environmental Factors
Heavy cloud cover, air pollution, and shade all reduce UVB availability. Window glass blocks UVB almost entirely — sitting by a sunny window does not produce vitamin D [36] (the UV that passes through glass is mostly UVA, which ages skin but does not drive vitamin D synthesis). Higher altitude generally means more intense UVB, while snow and water can reflect UV and increase exposure.
Why Vitamin D Deficiency Is So Common
Despite sunlight being freely available, an estimated 1 billion people globally have inadequate vitamin D levels. This seems paradoxical until you consider how many factors work against synthesis simultaneously.
Modern Indoor Lifestyles
Many people simply don't get outside enough during peak UV hours. Work, school, and leisure increasingly happen indoors. When we do go outside, we wear clothing and sunscreen for protection — both of which reduce vitamin D production. Urbanisation adds further barriers: tall buildings cast shade, and pollution can scatter UV. The result is that even in sunny climates, large portions of the population make very little vitamin D from sunlight.
High-Latitude Living
As described above, people who live far from the equator face a built-in seasonal deficit. Even if they are outdoors regularly in summer, vitamin D stores accumulated during the warmer months often deplete over winter. By late winter and early spring, a large proportion of people at high latitudes are deficient — particularly those with darker skin, who need more UV to begin with.
Dark Skin at Northern Latitudes
The combination of high melanin content and low-UV environment is especially problematic. In the US, an estimated 75% of African-American adults have insufficient vitamin D levels, compared to around 20% of White adults — a direct consequence of melanin reducing synthesis efficiency in a climate that already provides limited UVB for much of the year [1][2].
Age-Related Decline
Beyond the skin's reduced synthesis capacity, elderly individuals are disproportionately affected. Many older adults are homebound or institutionalised. Studies in the US and Europe have found that 50–80% of nursing home residents are vitamin D deficient [1][3]. Falls and hip fractures — which vitamin D helps prevent by supporting muscle function and bone density — are a significant public health problem in this group; one CDC analysis found that 83% of hip fracture deaths in the US in 2019 were preceded by a fall [5].
Obesity
Vitamin D is fat-soluble and can be sequestered in adipose (fat) tissue, reducing the amount that circulates in the bloodstream. Obesity is associated with roughly a 35% higher prevalence of vitamin D deficiency compared to non-obese individuals at the same latitude, even with the same sun exposure [1].
Medical and Dietary Factors
Certain conditions impair vitamin D absorption or metabolism: fat malabsorption disorders (celiac disease, Crohn's disease, cystic fibrosis), kidney or liver disease (which disrupt the conversion steps), and some medications that accelerate vitamin D breakdown (certain anticonvulsants, for example). Very few foods naturally contain significant vitamin D, so diet alone rarely compensates for low sun exposure — see Diet & Supplements for more on dietary sources.
Is Sunlight a Safe Way to Get Vitamin D?
This is the central dilemma of vitamin D management: UVB exposure is required for synthesis, yet UV radiation is a classified carcinogen. Cumulative UV exposure — even at sub-burning doses — causes DNA damage in skin cells, and over years this damage accumulates into mutations that can cause basal cell carcinoma, squamous cell carcinoma, and melanoma. The American Academy of Dermatology's official position is that people should obtain vitamin D from diet and supplements rather than from intentional sun exposure, precisely because there is no "safe" threshold beyond which UV carries zero DNA damage risk [38][39].
On the other hand, the human body has a built-in safety mechanism specifically for vitamin D: you cannot overdose on it from sun exposure. Once the skin has produced a certain amount, further UV exposure degrades the excess previtamin D into biologically inert photoproducts (lumisterol, tachysterol) that do not enter circulation [40]. This self-regulation prevents vitamin D toxicity from sunlight — a stark contrast to supplement overdose, which can cause hypercalcaemia. Importantly, this mechanism does not protect you from UV's other harmful effects. It only means you can't get vitamin D poisoning from the sun.
Most health authorities arrive at a practical compromise: sensible sun exposure — short, incidental exposures during daily life — is reasonable for those who can tolerate it, but deliberate sunbathing purely to generate vitamin D is not recommended when safer alternatives exist. Public health agencies in Canada, the UK, and the US all recommend vitamin D supplementation through winter and year-round for at-risk groups, because sun exposure is too inconsistent and carries real cumulative risk to be relied upon as a primary source [39][41][42][43].
The practical takeaway: a few minutes of incidental sun during a daily walk is fine and provides some benefit. Prolonged unprotected exposure in hopes of boosting vitamin D is not warranted — the same result can be achieved safely with a supplement at a fraction of the skin-damage cost.