Sunlight converts 7-dehydrocholesterol in your skin into vitamin D3 when ultraviolet B (UVB) photons of roughly 290–315 nm strike the epidermis. That single photochemical step supplies most humans with their vitamin D, but the conversion depends on latitude, season, skin pigmentation, age, and time of day—factors that determine whether you make meaningful amounts at all.
The Photochemistry: Why UVB and Cholesterol Matter
Vitamin D synthesis begins with a molecule most people do not associate with sunlight: 7-dehydrocholesterol (7-DHC), a sterol embedded in the plasma membranes of keratinocytes in the epidermis and dermis. When a UVB photon of sufficient energy penetrates the skin, it is absorbed by the conjugated double bonds in 7-DHC's B-ring. That absorption opens the ring through a photochemical electrocyclic reaction, producing previtamin D3. The reaction is unstable and driven purely by physics—no enzyme is required.
Previtamin D3 is thermally unstable and rearranges into vitamin D3 (cholecalciferol) over roughly 24 to 48 hours at body temperature in a membrane environment. This slow isomerization is partly why solar vitamin D rises gradually rather than instantly. Once formed, vitamin D3 exits the keratinocyte and binds vitamin D-binding protein (DBP) in the circulation, which transports it to the liver.
Why UVB and not UVA? The energy of a photon scales with frequency. UVB photons carry enough energy to break the specific bond in 7-DHC; UVA photons (315–400 nm) generally do not, and they penetrate deeper into the dermis where 7-DHC is sparse. This is why tanning beds emitting mostly UVA produce little vitamin D despite high visible light exposure. The wavelength window matters more than the brightness of the light.
There is a second, lesser-known UVB product: lumisterol and tachysterol, which form when previtamin D3 absorbs a second photon and reverts. This branching means the skin never converts all available 7-DHC to vitamin D3—a natural cap rather than a true self-regulating thermostat.
Quantified Context: How Much, How Fast, and Where
The amount of vitamin D3 made per unit of UVB exposure depends on the UV index (UVI), the exposed skin area, and the starting 7-DHC concentration. In practice, a whole-body exposure to one minimal erythemal dose (MED)—the dose that causes faint redness—can raise circulating 25-hydroxyvitamin D (25(OH)D, the clinical marker) by an amount comparable to ingesting roughly 10,000 to 25,000 international units (IU) of vitamin D3. That figure is a physiological approximation from controlled studies, not a dosing prescription.
Typical synthesis rates by scenario:
| Exposure scenario | Approximate UVB dose | Time to meaningful synthesis | Practical caveat |
|---|---|---|---|
| Summer noon sun, temperate latitude (~40°N), 25% skin exposed | UVI 6–8 | 10–20 minutes | Clouds reduce UVB ~50–90% |
| Summer noon sun, full-body, light skin | UVI 8–10 | 15–30 minutes to 1 MED | Erythema risk rises steeply |
| Winter noon sun, latitude >40°N | UVI 1–2 | Effectively negligible | Solar elevation angle too low |
| Early morning or late afternoon, summer | UVI 2–3 | Minimal previtamin D3 | Long path through atmosphere absorbs UVB |
| Tanning bed, UVA-dominant | High visible, low UVB | Little vitamin D3 | Not a recommended source |
| High altitude (2,000 m), clear sky | UVI elevated ~10–20% | 10–15 minutes | Less atmosphere to absorb UVB |
Two thresholds matter and should be reconciled explicitly. The UV index threshold for cutaneous synthesis is approximately UVI 3 or higher; below that, UVB is largely absorbed by the atmosphere. The 25(OH)D threshold for "sufficient" status is typically cited as 20 ng/mL (50 nmol/L) by major bodies such as the Institute of Medicine, with some societies arguing for 30 ng/mL (75 nmol/L). These thresholds describe blood status, not sun time, and the relationship between minutes of sun and blood level is nonlinear. Do not convert one into the other mechanically.
Latitude and season interact through solar elevation angle. Above roughly 35°N, between November and February, the sun's rays travel through too much atmosphere for UVB to reach the skin at useful intensity. In Boston (42°N), the "vitamin D winter" runs roughly October through March; in Miami (26°N), year-round synthesis is feasible. This is a geometric fact, not a matter of temperature or cloud cover.
Edge Cases: Skin Tone, Age, Medication, and Glass
Melanin absorbs UVB, so darker skin requires longer exposure for the same previtamin D3 yield. A person with deeply pigmented skin (Fitzpatrick type V–VI) may need five to ten times the exposure duration of a type I–II person to reach comparable synthesis—a range reflecting the optical density of melanin, not a fixed conversion factor. This does not mean darker-skinned people are deficient by default; it means the sun-exposure calculus shifts.
Age reduces 7-DHC concentration in the epidermis. By age 70, cutaneous 7-DHC is roughly a quarter of young-adult levels in some studies, so older adults synthesize less vitamin D3 per UVB dose. This is one reason dietary and supplemental sources matter more with age.
Window glass blocks UVB almost completely while transmitting UVA and visible light. Sitting in a sunlit window therefore does not produce vitamin D3, even though it feels like sun exposure. Sunscreen with a high sun protection factor (SPF) attenuates UVB and reduces synthesis, though real-world application is usually thinner than tested, so the effect is partial rather than absolute.
Certain medications (some anticonvulsants, glucocorticoids) increase vitamin D catabolism, and obesity is associated with lower circulating 25(OH)D because vitamin D3 sequesters in adipose tissue. These are physiological modifiers, not reasons to abandon sun exposure.
Red flag: Never allow sun exposure to cause sunburn; erythema is tissue injury, not a vitamin D signal. Red flag: Do not use tanning beds as a vitamin D strategy; UVA dominance and skin-cancer risk outweigh any marginal synthesis. Red flag: Do not assume a sunny window or cloudy summer day delivers UVB; check UV index instead. Red flag: Do not extend exposure indefinitely expecting more vitamin D; previtamin D3 reverts to inert products after a second photon. Red flag: If you have a history of skin cancer or photosensitivity, sun-based synthesis may be inappropriate—consult a clinician.
Misconceptions: Heat, Clouds, and the "More Sun, More D" Myth
A common belief is that feeling warm means vitamin D is being made. Temperature and UVB are independent: a hot, hazy afternoon can have low UVB, while a cool, clear spring day can have high UVB. Heat tells you about infrared radiation, not the 290–315 nm band.
Another misconception is that clouds block all UVB. Thick overcast can reduce UVB by 50–90%, but scattered cloud cover may transmit most of it, and a partly cloudy sky can even scatter UVB in ways that increase exposure at certain angles. The UV index accounts for this; your skin sensation does not.
The counterintuitive detail worth flagging: after a certain UVB dose, additional exposure does not increase vitamin D3 proportionally. Previtamin D3 and vitamin D3 themselves absorb UVB and convert to lumisterol, tachysterol, and other photoproducts. The skin reaches a photochemical plateau rather than a linear "more sun equals more vitamin D" curve. This is why extended sunbathing yields diminishing returns and rising skin damage. The professional caveat: a plateau is not a precise safety valve, and it does not justify long exposures.
A third misconception is that dietary vitamin D and solar vitamin D are interchangeable at face value. Both raise 25(OH)D, but the kinetics differ: oral cholecalciferol is absorbed with fat and peaks in blood within hours to days, while cutaneous synthesis is slower and membrane-dependent. The liver and kidney conversion steps—to calcifediol (25(OH)D) then calcitriol (1,25(OH)2D, the active hormone)—are shared, so the endpoint is the same marker.
Practical Actions: Using Sunlight Deliberately
The following steps translate mechanism into behavior without prescribing a treatment plan. They are general guidance, not medical advice.
Check the UV index for your location and time before exposing skin. Below UVI 3, cutaneous synthesis is negligible; above UVI 3, short exposures are effective. Expose a meaningful skin area—arms and face, or more—for 10 to 20 minutes near solar noon (roughly 10 a.m. to 3 p.m.) when the UV index is 3 or higher. The exact time depends on skin type and latitude. Stop before redness. The erythemal threshold is the practical upper bound; a faint pink is already injury. In vitamin D winter (roughly November–February above 35°N), rely on dietary sources or supplements rather than extended sun time, which will not synthesize vitamin D. Do not rely on windows, tanning beds, or UVA-dominant light for synthesis. If you have darker skin, are older, or use medications that accelerate vitamin D catabolism, discuss 25(OH)D testing with a clinician rather than guessing exposure times.
Cost is not a barrier to the sun-based route—sunlight is free—but supplementation (typically USD 10–20 monthly for standard cholecalciferol) is inexpensive where sun is insufficient. Prices vary; confirm locally.
Limitations: What Sunlight Cannot Guarantee
Sun exposure cannot reliably deliver a specific 25(OH)D level. The yield depends on skin reflectance, body surface exposed, age, latitude, season, time, cloud cover, pollution, and individual 7-DHC concentration—variables too numerous for a precise prescription. Blood measurement (25(OH)D) is the only way to know status; exposure minutes are a rough proxy.
Two clinical limits deserve emphasis. First, solar synthesis is geographically and seasonally unavailable to a large share of the world's population for part of the year, so sun exposure cannot be a year-round strategy at high latitudes. Second, the relationship between sun exposure and skin cancer risk is dose-dependent and cumulative; any sun-based plan must weigh synthesis against dermatologic risk, particularly for fair-skinned individuals and those with photosensitivity.
There is also a regulatory and evidence limit: no major body publishes a "sun exposure prescription" with verified minutes-to-IU conversions for individuals, because the biology does not support that precision. Guidance emphasizes UV index awareness, avoiding erythema, and using food or supplements when sun is inadequate, rather than fixed sunbathing schedules.
Finally, the mechanism itself has a ceiling: once previtamin D3 reaches its photochemical plateau, more UVB does not yield more vitamin D3. Sunlight is an effective but self-limiting and context-dependent source. Pair it with dietary intake and, where indicated, measured supplementation rather than treating it as a complete solution.
What the sun reliably does is start the chain—7-DHC to previtamin D3 to vitamin D3—and what your body reliably does is finish it in the liver and kidney. The variables in between determine how much you actually get, and those variables are best managed with UV index data, skin-type awareness, and, when in doubt, a blood test.