Vitamin D and Windows: Why Indoor Sun Through Glass Doesn't Work

Sitting by a sunny window feels productive for vitamin D — but glass blocks nearly all UVB radiation. Here's what the physics and clinical data actually show.

Vitamin D and Windows: Why Indoor Sun Through Glass Doesn't Work. Stock photo via Pexels (Nagy Arnold).

Glass Blocks the UV That Matters

Standard soda-lime glass — the kind in virtually every home, office, and car window — transmits about 74% of visible light but blocks 97–99% of UVB radiation at wavelengths below 315 nm. Those UVB photons are precisely the ones that convert 7-dehydrocholesterol in skin into previtamin D3. The warmth you feel through the glass is infrared energy passing freely. The light you see is mostly visible-spectrum photons. The photons that actually drive vitamin D synthesis are almost entirely gone before they reach your skin.

This distinction matters because millions of people spend daylight hours near windows — at standing desks, kitchen tables, car seats, or office perches — and genuinely believe they are getting meaningful sun exposure for vitamin D. The feeling of warmth and bright light is real. The vitamin D output is essentially zero.

The Physics: What Glass Transmits and What It Doesn't

Solar radiation reaching Earth spans roughly 290–2500 nm. UV radiation subdivides into UVA (320–400 nm) and UVB (280–315 nm). Vitamin D synthesis requires UVB, specifically the 295–315 nm range, with peak efficiency around 300 nm. A 2013 measurement study published in Photochemistry and Photobiology confirmed that standard window glass cuts UVB transmittance to less than 1%, while transmitting UVA relatively freely (around 50–70% depending on glass type and thickness).

UVA at higher doses causes skin aging and DNA damage over time, but it does not meaningfully drive vitamin D synthesis. The photochemistry simply does not work: UVA cannot convert 7-dehydrocholesterol into previtamin D3 at the skin surface. So a person bathed in UVA through a window all day gets tanning and oxidative stress, but not vitamin D.

Some specialty glass types — UV-transmitting glass, quartz glass, or certain laboratory-grade panels — do transmit UVB, but these are not standard building materials. Modern double-pane and low-emissivity (low-E) glass often blocks even more of the UV spectrum than older single-pane windows.

What Clinical and Observational Data Show

The practical consequence shows up in blood work. A study measuring 25-hydroxyvitamin D (25(OH)D — the standard marker of vitamin D status) in office workers found no correlation between time spent near windows and serum levels. What correlated was actual outdoor time during UV-active hours. Research from PLOS ONE (2020) tracking photosensitive wristbands on indoor workers confirmed that those near windows received sunlight visually similar to outdoor exposure, but spectrally, the UVB component was almost entirely absent.

Population data support this consistently. A large cohort analysis in The Journal of Clinical Endocrinology & Metabolism found that indoor workers in sun-rich regions still had high rates of vitamin D insufficiency (25(OH)D below 20 ng/mL), driven largely by their inability to get effective UVB during work hours — even when seated near well-lit windows.

Office workers in modern buildings can spend the entire solar noon period in full visible light and register almost no UVB on the skin. The building itself functions as a UV filter. This is why Rays' post on standing desks and window exposure covers this angle for people who assume a window-facing workspace solves the vitamin D problem.

Cars, Skylights, and Other Common Glass Surfaces

Car windshields typically block nearly 100% of UVB. Side windows in most cars block UVB almost completely as well, with some variation by manufacturer and tint. A study published in JAMA Ophthalmology (2016) investigated UV transmission through 15 car windshields and 15 side windows, finding that all windshields transmitted less than 2% of UVB, and most side windows transmitted less than 10%. From a vitamin D standpoint, that residual amount during a typical commute is not meaningful.

Skylights present a more complex picture. Some older acrylic or polycarbonate skylights transmit UVB somewhat better than standard glass, depending on their composition. Glass-paned skylights generally behave like standard windows. Polycarbonate panels can transmit 5–30% of UVB depending on thickness and UV-inhibitor additives — still far below the 100% available outdoors, but not quite zero. If you have a polycarbonate greenhouse or conservatory, some limited UVB may reach skin, though this is not a reliable vitamin D source for most people.

Why This Matters for Remote Workers and Office Populations

Remote workers tend to spend even more of their day indoors than traditional office workers, with outdoor time fragmented or absent. Survey data consistently show that work-from-home schedules compress outdoor time — people save commute time but rarely convert it into sunlight. The assumption that "I can just sit by my window" is a common and understandable substitute, but it does not close the UVB gap.

A 2021 survey-linked analysis published in Nutrients noted that vitamin D insufficiency rates among remote-working professionals correlated with self-reported outdoor time rather than proximity to windows during work hours, reinforcing that glass exposure simply doesn't substitute for genuine sun time.

Office workers face a related pattern. Buildings in city centers often have adjacent tall structures blocking direct sun from reaching windows at the sun angles where UVB would be highest (solar elevation above roughly 35 degrees). Even in those rare moments when direct sunlight passes through glass, the glass itself eliminates the useful UVB component.

What About UVA Tanning Through Glass?

Some people notice they can get a slight tan on a forearm left resting near a window for extended periods. This tanning comes from UVA, which does pass through glass. UVA can oxidize existing melanin and cause some new melanin production via different pathways than UVB, so visible color change is possible. This creates a misleading perception: "I tanned, so I must be getting vitamin D." The two processes use different UV wavelengths. UVA tanning through glass does not indicate vitamin D synthesis.

In fact, long-term UVA exposure without the balancing UVB component has its own concerns. UVA generates reactive oxygen species in the skin and is the dominant driver of photoaging. The asymmetric facial aging seen more prominently on the left side of the face in truck drivers — documented in a case study in NEJM — illustrates chronic UVA exposure through the driver's side window over decades, without meaningful UVB reaching the skin.

When Does Outdoor Time Actually Produce Vitamin D?

UVB that drives vitamin D synthesis requires a UV index of at least 3, and meaningful synthesis typically requires the sun to be at an elevation of approximately 35 degrees or higher above the horizon. This window varies sharply by latitude and season. At latitudes above 50°N (northern UK, Scandinavia, Canada above the border), that window may shrink to just a few midday hours in summer and disappear entirely in winter. Even at lower latitudes, the early morning and late afternoon windows produce far less UVB than midday hours.

Understanding the actual outdoor synthesis window is covered in detail in the guide to vitamin D and the UV index for remote workers, and the practical timing question is addressed in vitamin D after 4 PM.

How Much Outdoor Time Is Realistically Needed?

With adequate UV index outdoors (UV index 3 or above, sun elevation above 35 degrees), skin exposure time for meaningful vitamin D synthesis ranges from roughly 10 minutes for fair skin at solar noon in summer to 30–60 minutes or more for darker skin tones, or during lower UV-index periods. These figures assume significant body surface area exposed — not just face and hands. A 2010 modeling analysis in Photochemistry and Photobiology estimated that at mid-latitudes in summer, 10–20 minutes of midday exposure for 25% of body surface area in lighter-skinned adults generates roughly 1,000 IU of vitamin D3. Darker skin tones require proportionally more time — roughly 3–5 times as much — for the same output.

No amount of time in front of a window replicates this. The glass removes the photons responsible for the entire synthesis cascade.

Supplements as the Practical Bridge

For people whose schedules, latitude, or season make regular outdoor midday exposure impractical, vitamin D3 supplementation is the evidence-backed alternative. The standard approach is D3 (cholecalciferol) rather than D2, taken with the largest meal of the day given its fat-soluble nature. For adults with confirmed deficiency (25(OH)D below 20 ng/mL), doses in the 2,000–4,000 IU/day range are typical starting points, with testing before initiating higher doses. Pairing D3 with vitamin K2 (MK-7 form) is recommended when supplementing regularly, as covered in detail in the D3 and K2 combination guide.

Unlike high-dose supplementation, sun exposure cannot cause vitamin D toxicity. The skin has a self-limiting mechanism: excess previtamin D3 and vitamin D3 are degraded by continued UV exposure, so the body cannot overproduce from sunlight alone. This means that when outdoor exposure is feasible and UV conditions support it, sun time is a safe and efficient way to raise 25(OH)D — assuming actual outdoor exposure, not window exposure.

The Glass-Free Minimum: Practical Implications

The practical upshot is blunt: for vitamin D purposes, sitting by a window does not count as sun exposure. The strategies that actually move 25(OH)D levels are:

Going outside during the UV-active window (UV index 3 or above, mid-morning to mid-afternoon at mid-latitudes), with enough skin surface exposed to allow synthesis. Even 10–20 minutes of face, arms, and legs exposure in summer at favorable latitudes can be meaningful for fair-skinned adults.

Supplementing with D3 during months or circumstances where outdoor exposure is insufficient — which for many people at latitudes above 40–50°N means most of October through March.

Testing 25(OH)D at least twice per year (end of summer and end of winter) to understand your personal baseline rather than assuming sun exposure or supplementation is working. The standard test is 25-hydroxyvitamin D, not 1,25-dihydroxyvitamin D, which is often confused with the status test.

For people who structure their day around the assumption that window light contributes to vitamin D, this requires a shift: sunlight through glass is valuable for mood, circadian signaling via the eyes, and warmth, but it cannot substitute for direct UVB exposure when vitamin D status is the goal.

Key Takeaways

Standard glass blocks 97–99% of the UVB radiation that drives vitamin D synthesis. Sitting near a sunny window, in a car, or under a glass skylight does not meaningfully raise 25(OH)D levels, regardless of how warm or bright the light appears.

UVA passes through glass and can cause visible tanning, but UVA does not synthesize vitamin D3 in skin. A tan from window exposure does not signal vitamin D production.

Effective sun exposure for vitamin D requires going outdoors during hours when UV index is 3 or above and solar elevation is roughly 35 degrees or higher. Time of year, latitude, and skin tone all shift how long that outdoor session needs to be.

When outdoor UV exposure is not feasible — due to schedule, season, or latitude — vitamin D3 supplementation (taken with the largest meal, paired with K2 for longer-term use) is the evidence-based alternative. Test 25(OH)D before and after to verify that levels are actually moving.

What to do next

If you're unsure whether your location and schedule give you a real outdoor vitamin D window, use the vitamin D sun exposure calculator to estimate how long outside you'd actually need based on your UV index, skin tone, and time of year. For ongoing tracking — detecting when you're actually getting outdoor UVB versus window light throughout the week — Rays tracks your real sun exposure automatically, so you stop guessing whether today's light actually counted.