Jakub Laszczyk

Best Time of Day to Get Vitamin D from the Sun (It's Not When You Think)

You’ve probably heard the advice: get some morning sun for vitamin D. It sounds right — early sun feels gentle, the light is golden, and you’re less likely to burn.

There’s one problem: morning sun doesn’t produce vitamin D.

Neither does late afternoon sun. In most locations, neither does sun before 10am or after 3pm. And depending on where you live and the time of year, the window might be even narrower — or nonexistent.

Here’s why timing matters more than duration, and how to find your exact vitamin D window.

Why Most Sunlight Doesn’t Produce Vitamin D

Vitamin D synthesis requires UVB radiation — a specific band of ultraviolet light with wavelengths between 290 and 315 nm. UVB is what triggers the chemical conversion of 7-dehydrocholesterol in your skin into previtamin D₃.

The problem is that UVB doesn’t always reach the ground. When the sun is low in the sky, its light travels through more atmosphere. The ozone layer absorbs UVB at these shallow angles, effectively filtering it out before it reaches you.

The critical threshold is approximately 35° solar altitude. Below this angle, negligible UVB penetrates the atmosphere. You can feel warmth (that’s infrared), you can see brightness (visible light), and you can even get some UVA exposure — but the UVB that triggers vitamin D production simply isn’t there.

This means:

  • Early morning sun (sun below 35°) = warm and pleasant, but zero vitamin D
  • Late afternoon sun (sun below 35°) = same story
  • Winter at high latitudes = the sun may never reach 35° for weeks or months
  • Midday in summer = the only time most people can actually produce vitamin D

The conventional wisdom to “avoid midday sun” is good advice for preventing sunburn. But it’s exactly wrong for vitamin D.

The D-Window: Your Daily Vitamin D Production Period

The time range when the sun is above 35° is called the D-Window. It’s the only part of the day when your body can synthesize vitamin D from sunlight.

The D-Window varies dramatically based on three factors:

1. Latitude

The closer you are to the equator, the longer your D-Window. The further away, the shorter — until it disappears entirely in winter.

Example D-Windows in summer (June):

CityLatitudeD-Window (approx.)
Miami25°N9:00am – 5:30pm (8.5 hours)
Los Angeles34°N9:30am – 5:00pm (7.5 hours)
New York40°N10:00am – 4:30pm (6.5 hours)
London51°N11:00am – 3:30pm (4.5 hours)
Stockholm59°N11:30am – 3:00pm (3.5 hours)

Example D-Windows in winter (December):

CityLatitudeD-Window (approx.)
Miami25°N10:30am – 3:00pm (4.5 hours)
Los Angeles34°N11:00am – 2:00pm (3 hours)
New York40°N11:30am – 1:30pm (2 hours)
London51°NNone — sun never reaches 35°
Stockholm59°NNone

If you live above ~37°N latitude (roughly San Francisco, Denver, or Richmond, Virginia), you have zero D-Window during some winter months. No amount of time outdoors will produce vitamin D.

2. Season

The Earth’s axial tilt means the sun’s maximum altitude changes throughout the year. In summer, the sun climbs much higher — extending the D-Window. In winter, it stays low — shrinking or eliminating it.

The transition happens gradually. March and October are borderline months at mid-latitudes where the D-Window might only be 30–60 minutes around solar noon.

3. Date

The D-Window shifts by a few minutes every single day as the sun’s path changes. It’s not a fixed schedule you can memorize — it’s a moving target that needs to be recalculated daily for your specific location.

Peak and Super Peak: When Production Is Fastest

Not all minutes within the D-Window are equal. Vitamin D production follows a sigmoid curve that accelerates as the sun climbs higher:

  • 35°–45° sun altitude: Moderate UVB — vitamin D production is possible but relatively slow
  • 45°–50° (Peak): Strong UVB — production ramps up significantly
  • 50°+ (Super Peak): Optimal UVB — maximum production efficiency

This means the middle of your D-Window — around solar noon — is when you produce vitamin D fastest. A 10-minute session at solar noon can produce more vitamin D than 30 minutes at the edges of the D-Window.

If your goal is efficiency — maximum vitamin D in minimum time — aim for solar noon ± 1 hour.

The Practical Problem: You Can’t Eyeball It

Here’s why this is hard to do without help:

  1. The D-Window changes daily — you can’t just memorize “noon to 2pm” and call it done
  2. Cloud cover matters — overcast skies reduce UVB transmission quadratically, meaning your production rate drops significantly
  3. Your skin type matters — a person with Fitzpatrick Type I skin produces vitamin D in 5–10 minutes, while Type VI may need 40–60 minutes under the same conditions
  4. Altitude matters — UV intensity increases ~11% per 1,000 meters of elevation
  5. Surface reflection matters — snow reflects 40–80% of UV, effectively doubling your exposure. Sand reflects ~15%. Grass reflects ~3%
  6. SPF blocks production — SPF 30 blocks 97% of UVB, so if you’ve already applied sunscreen, you’re barely producing vitamin D

All of these factors interact simultaneously. A cloudy day at sea level in October is fundamentally different from a clear day at 2,000m in July — even at the same latitude and clock time.

A Better Approach: Calculate Your Personal Window

Instead of guessing, you need to know three things for today, specifically:

  1. What time does your D-Window start and end? (based on your exact location and today’s date)
  2. How long should you stay out? (based on your skin type, clothing, SPF, and current weather)
  3. When should you stop? (based on your burn threshold)

This is exactly what RayDay calculates. It uses NOAA solar position algorithms to compute your D-Window, Peak, and Super Peak times for today and the week ahead. When you start a sun session, it tracks your vitamin D (IU) production in real-time — factoring in your Fitzpatrick skin type, what you’re wearing, SPF level, cloud cover, altitude, and surface albedo.

It also runs a burn countdown timer so you know exactly how many minutes you have before reaching your Minimal Erythemal Dose. Get your vitamin D, then stop — no guessing required.

The Bottom Line

The best time of day to get vitamin D is midday — specifically, during your D-Window when the sun is above 35°. Early morning and late afternoon sun feel pleasant but produce no vitamin D. And the exact timing shifts every day based on your location, season, and weather.

Short, targeted midday sessions — 10 to 30 minutes depending on your skin type — are far more effective than hours of low-angle sun. Know your window, use it efficiently, and protect your skin the rest of the time.