Jakub Laszczyk

How Much Vitamin D Can You Get from the Sun? A Science-Based Guide

Over 1 billion people worldwide are vitamin D deficient. The irony? Your body can produce all the vitamin D it needs — for free — from sunlight. The challenge is knowing when, how long, and how safely to be outside.

This guide breaks down the science of vitamin D production from sun exposure and shows you how to calculate your personal optimal exposure time.

How Your Body Makes Vitamin D from Sunlight

When UVB rays (wavelength 290–315 nm) hit your skin, they convert 7-dehydrocholesterol into previtamin D₃, which is then thermally isomerized into vitamin D₃ (cholecalciferol). Your liver and kidneys convert this into the active hormone form, calcitriol.

The key insight: not all sunlight produces vitamin D. Only UVB radiation at sufficient intensity triggers the conversion — and that depends on the sun’s angle above the horizon.

The 35-Degree Rule: When UVB Actually Reaches You

UVB rays are absorbed by the ozone layer at shallow angles. When the sun is below approximately 35° altitude, virtually all UVB is filtered out before it reaches the ground. You could stand outside for hours and produce zero vitamin D.

This is why:

  • Winter at high latitudes (above ~37°N or below ~37°S) has months with no vitamin D production possible
  • Early morning and late afternoon sun feels warm but produces little to no vitamin D
  • The “D-Window” — the daily period when the sun is above 35° — is the only time your body can synthesize vitamin D from sunlight

The D-Window varies dramatically by location and season. In Miami (25°N), it can span 6+ hours in summer. In London (51°N), it may not exist at all from November through February.

Holick’s Rule: Quantifying Vitamin D Production

Dermatologist Michael Holick established a practical guideline for estimating vitamin D production:

1/4 of a Minimal Erythemal Dose (MED) on 25% of your body surface area produces approximately 1,000 IU of vitamin D₃.

Let’s unpack that:

  • MED = the UV dose that causes first reddening (sunburn) on your skin. It varies by skin type.
  • 25% body area ≈ arms and face, or legs exposed — roughly what you’d show in a t-shirt and shorts
  • 1/4 MED = well below sunburn threshold — typically 5–30 minutes depending on conditions

This means you can hit your daily vitamin D target long before you risk a burn.

Fitzpatrick Skin Type and Exposure Time

Your skin’s melanin content directly affects how quickly you produce vitamin D:

Skin TypeDescriptionMED (J/m²)Approx. Time to ¼ MED*
Type IVery fair, always burns2005–10 min
Type IIFair, burns easily2508–15 min
Type IIIMedium, sometimes burns35012–20 min
Type IVOlive, rarely burns45018–30 min
Type VBrown, very rarely burns60025–45 min
Type VIDark brown, never burns100040–60 min

At midday, clear sky, moderate latitude, summer. Actual times vary significantly.

People with darker skin need substantially more time to produce the same amount of vitamin D — which is one reason vitamin D deficiency disproportionately affects darker-skinned populations, especially at higher latitudes.

Factors That Increase or Decrease Vitamin D Production

Factors that boost production:

  • Higher sun angle — more UVB reaches the surface. Production peaks when the sun is above 50°
  • Higher altitude — UV intensity increases ~11% per 1,000 meters of elevation
  • Snow and sand — snow reflects 40–80% of UV back upward, effectively doubling your dose. Sand reflects ~15%
  • Clear skies — no cloud filtering
  • More exposed skin — shorts and a tank top vs. long sleeves

Factors that reduce production:

  • Cloud cover — reduces UVB transmission quadratically. Heavy overcast can cut production by 75%+
  • SPF sunscreen — SPF 15 blocks ~93% of UVB, SPF 30 blocks ~97%. Applied sunscreen dramatically reduces vitamin D synthesis
  • Window glass — blocks virtually all UVB. You cannot produce vitamin D through a window
  • Clothing — covered skin produces no vitamin D
  • Air pollution — particulate matter absorbs and scatters UVB
  • Age — vitamin D synthesis efficiency decreases with age. A 70-year-old produces ~25% of what a 20-year-old does

Surface Albedo: The Hidden UV Multiplier

Most people overlook surface reflection. The ground beneath you reflects UV back up to your skin:

  • Fresh snow: 40–80% reflection — this is why you can sunburn on a ski slope even in winter
  • Sand/beach: 10–18% reflection
  • Water: 5–10% reflection
  • Concrete: 5–10% reflection
  • Grass/vegetation: 2–4% reflection

If you’re at a high-altitude ski resort on fresh powder, you may receive nearly double the UVB compared to standing on grass at the same latitude.

Practical Protocol: Getting Your Vitamin D Safely

Here’s a practical approach based on the science:

  1. Know your D-Window — Find the time range when the sun is above 35° at your location. Outside this window, sun exposure won’t produce vitamin D regardless of duration.

  2. Start with short exposures — Begin at 1/4 to 1/3 of your estimated MED time. For Type II skin at midday in summer, that’s roughly 10–15 minutes.

  3. Expose enough skin — Arms and legs provide sufficient surface area. Face alone is only ~5% of body area and produces minimal vitamin D.

  4. Skip sunscreen for the D-Window — Apply it after your vitamin D exposure period, or to your face/décolletage while leaving arms and legs briefly unprotected.

  5. Account for conditions — Cloudy? You need longer. High altitude or snow? You need less. SPF on? You’re blocking production.

  6. Track it — Guessing doesn’t work well because too many variables interact. The conditions change daily.

Why Tracking Matters

The challenge with vitamin D from sun exposure is that the optimal time varies every single day based on your location, the season, weather conditions, your skin type, what you’re wearing, and whether you’ve applied SPF.

RayDay was built to solve exactly this problem. It uses NOAA solar position algorithms to calculate your daily D-Window, then tracks your vitamin D (IU) production in real-time during a sun session — accounting for all the factors above. You get a burn countdown timer so you never overdo it, and a 7-day forecast so you can plan ahead.

The goal isn’t to spend more time in the sun. It’s to spend the right amount of time, at the right time, with the right amount of skin exposed — and to know exactly when to stop.