What Is Vitamin D and Why Does Sunlight Matter?

Vitamin D is a fat-soluble nutrient that your body can produce in the skin when exposed to ultraviolet B (UVB) radiation from the sun. Unlike most vitamins that must be obtained entirely through diet, Vitamin D is unique because sunlight triggers its synthesis directly in your body — making sun exposure a primary and irreplaceable source for most people around the world.

Once produced in the skin, Vitamin D (specifically D3, or cholecalciferol) travels to the liver and kidneys where it is converted into its biologically active form, calcitriol. This active form functions more like a hormone than a traditional vitamin, regulating hundreds of genes and playing a critical role in calcium absorption, bone mineralisation, immune function, mood regulation, and cardiovascular health.

☀️

Key Fact

Approximately 1 billion people worldwide are estimated to be Vitamin D deficient, and up to 50% of the global population has insufficient Vitamin D levels. Despite living on a sun-bathed planet, modern indoor lifestyles, sun avoidance behaviour, and high-latitude living have created a global Vitamin D deficiency epidemic.

How Your Skin Makes Vitamin D from Sunlight

The process of Vitamin D photosynthesis is elegant and specific. When UVB photons (wavelength 290–315 nm) penetrate the outer layers of your skin, they strike a compound called 7-dehydrocholesterol — a precursor molecule found in the skin. This causes a photochemical reaction that converts 7-dehydrocholesterol into pre-Vitamin D3, which then rapidly converts to Vitamin D3 (cholecalciferol) through thermal isomerisation.

This D3 enters the bloodstream, travels to the liver where it is hydroxylated to 25-hydroxyvitamin D (25(OH)D — the form measured in blood tests), and then further activated in the kidneys or locally in tissues to the fully active 1,25-dihydroxyvitamin D (calcitriol).

Importantly, only UVB rays trigger Vitamin D synthesis. UVA rays — which penetrate clouds and glass — do not produce Vitamin D but do cause skin ageing and DNA damage. This distinction is critical: a cloudy day may reduce UVB by 50–90%, and even on a sunny day, UVB is only present when the sun is at a sufficient angle above the horizon.

The Solar Angle Rule

A key concept is the solar zenith angle — the angle of the sun above the horizon. When the sun is low in the sky (early morning, late afternoon, winter, high latitudes), UVB rays travel through a greater thickness of atmosphere and are largely absorbed before reaching Earth’s surface. This is why sun exposure before 10 AM or after 3–4 PM does very little for Vitamin D synthesis, even on a clear sunny day.

The practical rule: if your shadow is longer than your height, UVB levels are insufficient for meaningful Vitamin D production. This quick test works wherever you are.

600–800 IU
Daily RDA for adults (many experts recommend 1,000–2,000 IU)
20,000 IU
Max D3 the body can produce in ~20 min full-body summer sun exposure
50 nmol/L
Minimum blood 25(OH)D level considered sufficient (many recommend 75+)
~80%
Of Vitamin D in most people comes from sun, not diet
More exposure needed for dark skin vs. fair skin in same conditions
-50%
Reduction in synthesis efficiency in adults over 70 vs. young adults

Factors That Determine Your Vitamin D Sun Exposure Time

No single exposure time applies to everyone. How much sun you need to produce adequate Vitamin D depends on a complex interplay of biological and environmental variables — all of which are incorporated into our calculator above.

1. Skin Type (Fitzpatrick Scale)

Melanin — the pigment that gives skin its colour — acts as a natural UVB filter. While this provides protection against UV-induced DNA damage and skin cancer, it also significantly reduces the rate of Vitamin D synthesis. A person with Type VI (deeply pigmented) skin may need 3–6 times more sun exposure than a Type I (very fair) individual to produce the same amount of Vitamin D.

This has important public health implications: dark-skinned populations living at high latitudes (e.g. South Asian or African-heritage individuals in the UK, Canada, or Northern Europe) are at substantially elevated risk of Vitamin D deficiency because their skin requires longer exposure at a time of year and place where adequate UVB is already scarce.

2. Latitude and Season

Your geographical location profoundly affects how much UVB reaches you. At the equator, UVB rays hit the Earth’s surface at a nearly direct angle year-round, making Vitamin D synthesis possible throughout the day in all seasons. As you move toward the poles, the sun’s angle decreases — especially in winter — and UVB is filtered out more aggressively by the atmosphere.

Above approximately 51°N (the latitude of London, Brussels, Calgary, and Kiev), UVB levels from October to March are so low that virtually no Vitamin D synthesis occurs regardless of how long you spend outdoors. In these regions and seasons, dietary sources and supplementation become essential for maintaining adequate Vitamin D levels.

3. Time of Day

UVB intensity varies dramatically throughout the day. The optimal window for Vitamin D synthesis is centred around solar noon — typically between 10 AM and 2 PM in most locations. During this window, the sun is at its highest point, UVB rays travel the shortest atmospheric path, and Vitamin D production is maximised.

Many people deliberately avoid midday sun for fear of burning — but ironically, this is precisely when the sun is most efficient for Vitamin D and where the exposure-to-burn ratio is most favourable. Short, intentional midday exposures produce more Vitamin D per minute while minimising cumulative UVA exposure (which is more evenly distributed throughout the day and causes skin ageing).

4. Body Surface Area Exposed

Vitamin D synthesis happens in the skin, so the amount of skin exposed to sunlight directly determines total production. Exposing the face and hands alone produces much less than exposing the arms, legs, and torso. This is why people in cultures or professions with covered bodies (full-length clothing, indoor work) are at much higher risk of Vitamin D deficiency, even in sunny climates.

Research suggests that exposing 25% of body surface area (both arms and legs) for the recommended time is sufficient to produce adequate Vitamin D for most people. Full body exposure dramatically reduces the time needed.

5. Sunscreen Use

This is one of the most debated topics in Vitamin D research. Theoretically, sunscreen (which blocks UVB) should significantly reduce Vitamin D synthesis. Mathematically, SPF 15 sunscreen reduces UVB by 93%, and SPF 30 reduces it by 97%. However, numerous real-world studies have found that sunscreen use has a surprisingly modest effect on Vitamin D levels in practice — largely because most people apply too little, miss areas, or spend more time outside than they would without protection.

The current consensus from dermatological and endocrinological bodies is: apply sunscreen liberally after getting your short daily Vitamin D exposure, rather than trying to time unprotected exposure around sunscreen application. Prioritise sun safety for prolonged outdoor time, especially in summer.

6. Age

The skin’s capacity to produce Vitamin D declines significantly with age. Studies show that the concentration of 7-dehydrocholesterol in the skin — the precursor molecule needed for Vitamin D synthesis — decreases by approximately 75% between age 20 and age 70. This means older adults (especially those over 65) may need considerably longer sun exposure to produce the same Vitamin D as younger adults, even under identical conditions.

This biological reduction, combined with the tendency for older adults to spend less time outdoors, wear more clothing, and have higher deficiency rates, is why many physicians recommend Vitamin D supplementation as routine practice for individuals over 65, especially in northern climates.

7. Cloud Cover, Pollution, and Altitude

Heavy cloud cover can reduce UVB by 50–90%. Urban air pollution (particularly particulate matter) absorbs and scatters UVB. Conversely, high altitude increases UVB intensity — locations above 3,000 metres can have 2–3 times the UVB of sea-level sites at the same latitude. Reflective surfaces like snow and water also increase UV exposure by bouncing rays back at the body.

🧪

Research Highlight

A landmark study in the Journal of Steroid Biochemistry and Molecular Biology found that a person with Type III skin in Boston could only synthesise Vitamin D from the sun for approximately 5 months of the year (April–October), with peak synthesis occurring between 10 AM and 2 PM. For 7 months, dietary and supplemental sources were the only viable options.

Signs and Symptoms of Vitamin D Deficiency

Vitamin D deficiency is often called the “silent epidemic” because symptoms are frequently subtle, non-specific, and easy to attribute to other causes. The most serious consequence of prolonged, severe deficiency is osteomalacia (soft bones) in adults and rickets in children. However, suboptimal Vitamin D levels — even without overt deficiency — have been linked to a wide range of health concerns:

  • Fatigue and low energy — one of the most commonly reported symptoms, though non-specific
  • Bone pain and muscle weakness — especially in the lower back, hips, and legs
  • Frequent infections — Vitamin D plays a key regulatory role in innate and adaptive immunity
  • Depression and mood changes — particularly Seasonal Affective Disorder (SAD) in winter months
  • Hair loss — some research links severe deficiency to alopecia
  • Poor wound healing — Vitamin D influences skin repair and inflammatory response
  • Bone fractures — reduced calcium absorption impairs bone mineral density

The only definitive way to diagnose Vitamin D deficiency is a blood test measuring serum 25-hydroxyvitamin D (25(OH)D). Most laboratories use the following thresholds:

  • Deficient: below 25 nmol/L (10 ng/mL)
  • Insufficient: 25–50 nmol/L (10–20 ng/mL)
  • Sufficient: 50–125 nmol/L (20–50 ng/mL)
  • Optimal (many researchers recommend): 75–150 nmol/L (30–60 ng/mL)

Seasonal Sun Exposure Strategy: A Month-by-Month Approach

🌞
Summer
Best UV — shortest exposure needed. Caution: burn risk high.
🌸
Spring
Good UV. ~40% more time than summer needed. Ideal season to build stores.
🍂
Autumn
Declining UV. ~60% more time needed. Act before winter sets in.
❄️
Winter
Low/no UVB at high latitudes. Supplement advised. Sun still beneficial at low latitudes.

The ideal strategy is to build up Vitamin D stores during summer and spring by obtaining regular, short, unprotected midday exposures — then supplementing (or prioritising dietary sources) through autumn and winter when sun-based synthesis is limited.

Vitamin D from Food: Can Diet Compensate?

While sunlight is the primary natural source of Vitamin D for most humans, diet plays an important supplementary role — especially when sun exposure is insufficient. The main dietary sources of Vitamin D include:

  • Fatty fish — salmon, mackerel, sardines, herring (400–1,300 IU per 100g serving)
  • Cod liver oil — historically a primary anti-rickets remedy (1,360 IU per tablespoon)
  • Egg yolks — modest amounts (20–40 IU each); higher in pasture-raised eggs
  • Mushrooms — especially those UV-exposed; shiitake, maitake, and UV-treated white button mushrooms can provide useful amounts
  • Fortified foods — milk, plant milks, breakfast cereals, and orange juice in many countries are fortified with Vitamin D2 or D3
  • Liver — beef liver contains reasonable amounts (~50 IU per 100g)

The challenge is that dietary Vitamin D alone is rarely sufficient to meet daily requirements, particularly in people with high physiological needs (older adults, pregnant women, darker skin tones at high latitudes). Even a diet rich in fatty fish and fortified foods typically provides only 200–400 IU/day — well below the 1,000–2,000 IU many researchers now recommend for most adults.

Vitamin D Supplementation: When It Makes Sense

Supplementation with Vitamin D3 (cholecalciferol) — the same form produced in skin — is safe, affordable, and highly effective at raising serum 25(OH)D levels. Most authorities now recommend supplementation in the following situations:

  • People living above 40°N latitude during autumn and winter months
  • Individuals with dark skin tones living at high latitudes year-round
  • Adults over 65 (reduced synthesis capacity + reduced outdoor time)
  • People who cover most of their skin for cultural, occupational, or medical reasons
  • Exclusively breastfed infants (breast milk is low in Vitamin D)
  • People with obesity (Vitamin D is sequestered in adipose tissue)
  • Individuals with malabsorption conditions (Crohn’s disease, coeliac disease, gastric bypass)
  • Anyone diagnosed with deficiency or insufficiency by blood test

Typical supplemental doses range from 400–2,000 IU/day for maintenance, with higher therapeutic doses used under medical supervision. Vitamin D toxicity is rare but possible at very high doses (generally above 10,000 IU/day sustained for months); always confirm with a blood test before taking high-dose supplements.

🩺

Medical Advice Reminder

If you suspect Vitamin D deficiency, get a blood test (serum 25(OH)D). This is the only way to know your true status. Self-diagnosing and self-treating with high-dose supplements without testing can lead to toxicity. Your GP or doctor can prescribe appropriate doses based on your results.

Sun Safety: Balancing Vitamin D with Skin Cancer Risk

Any discussion of sun exposure must address skin cancer risk. Ultraviolet radiation is a known carcinogen — both UVB (which causes direct DNA damage and sunburn) and UVA (which causes oxidative damage and skin ageing) contribute to melanoma and non-melanoma skin cancers. This creates a genuine tension between getting enough sun for Vitamin D and avoiding cumulative UV damage.

The key insight from current research is that the risk-benefit ratio strongly favours short, intentional, non-burning exposures rather than prolonged tanning or burning. Most of the skin cancer risk from UV comes from:

  • Sunburn episodes (especially in childhood and adolescence)
  • Prolonged, repeated UV exposure over decades
  • Tanning bed use
  • Cumulative recreational and occupational exposure without protection

A daily Vitamin D exposure session of 10–20 minutes (depending on skin type and UV index) — staying well within the threshold for burning — poses minimal skin cancer risk while providing meaningful health benefit. The practical guidance: get your short daily dose, then protect your skin with clothing, shade, and sunscreen for any additional time outdoors.

Frequently Asked Questions

How long should I stay in the sun to get enough Vitamin D?
It depends on your skin type, latitude, season, and time of day. Fair-skinned people (Fitzpatrick Type I–II) may only need 10–15 minutes of midday summer sun with arms and legs exposed. Darker-skinned people (Type V–VI) may need 30–90 minutes in the same conditions. In winter at high latitudes, no amount of sun exposure is sufficient — supplementation is needed. Use the calculator above for a personalised estimate based on all your factors.
Can you get Vitamin D through a window?
No. Standard glass blocks virtually all UVB radiation — the wavelength responsible for Vitamin D synthesis. Even sitting next to a sunny window all day will not produce meaningful Vitamin D. You need direct, unfiltered outdoor sunlight on bare skin. Certain specialised UV-transmitting glasses exist but are not found in standard homes or offices.
What is the best time of day to get Vitamin D from the sun?
Between 10 AM and 2 PM (approximately solar noon ±2 hours) when the sun is at its highest angle and UVB rays are most intense. Outside this window — particularly early morning and late afternoon — UVB is largely absorbed by the longer atmospheric path it must travel. This is counterintuitive for many people, but midday sun is actually both the most efficient for Vitamin D and often the least problematic for cumulative skin damage when exposures are kept short.
Does sunscreen completely block Vitamin D production?
Theoretically yes — SPF 30 sunscreen blocks approximately 97% of UVB, which would nearly eliminate Vitamin D synthesis. However, real-world studies consistently show that sunscreen-wearing populations do not have dramatically lower Vitamin D levels than non-wearers. This is because most people don’t apply enough sunscreen, miss areas, and spend more total time outside when protected. The practical advice is to get your short daily Vitamin D exposure on bare skin, then apply sunscreen for prolonged outdoor time.
How do I know if I’m Vitamin D deficient?
The only reliable way to know is a blood test measuring serum 25-hydroxyvitamin D (25(OH)D). Symptoms like fatigue, bone pain, muscle weakness, and frequent infections can suggest deficiency but are non-specific. If you are at high risk (dark skin, high latitude, indoor lifestyle, older age, covered clothing, pregnancy), ask your GP for a blood test. Many pharmacies also offer private Vitamin D testing.
Does cloud cover affect Vitamin D production?
Yes, significantly. Heavy overcast conditions can reduce UVB intensity by 50–90%, making Vitamin D synthesis much slower or negligible. Light cloud cover has a more modest effect — perhaps 20–30% reduction. Even on overcast days, if it’s summer and near midday, some UVB gets through. However, relying on cloud-covered days for Vitamin D is unreliable. On such days, consider supplementation or dietary sources.