Vitamin D is a nutrient that maintains bone health by regulating the body’s levels of calcium and phosphate. It also supports immune function and is synthesized naturally in the skin through exposure to sunlight. Since many people spend significant time indoors, a common question is whether the sun’s rays passing through a window can still trigger this biological process. The answer lies in understanding the specific type of light required for synthesis and the filtering properties of common glass.
The Specific UV Wavelength Needed for Synthesis
The body’s natural production of Vitamin D is a photobiological process dependent on a specific band of solar radiation. Within the skin, a cholesterol precursor called 7-dehydrocholesterol (7-DHC) must absorb ultraviolet-B (UVB) light to begin conversion. This reaction requires UVB wavelengths, specifically those ranging from 290 to 315 nanometers (nm).
The initial product, pre-vitamin D3, then rearranges to become Vitamin D3, or cholecalciferol. Ultraviolet-A (UVA) radiation (315 to 400 nm) does not possess the necessary energy to initiate this conversion. Therefore, only adequate UVB light at the skin’s surface leads to the creation of Vitamin D.
Window Glass and UV Filtration
Standard window glass, such as the soda-lime glass found in homes and offices, is effective at filtering out the specific energy required for Vitamin D production. This glass blocks nearly all shorter-wavelength UVB radiation. Since the biological mechanism requires UVB light between 290 and 315 nm, the glass filtration prevents the conversion of 7-dehydrocholesterol in the skin. This filtering capability is why you will not synthesize Vitamin D while sitting next to a sunny window.
While the glass allows visible light to pass through, it selectively eliminates the UVB rays. Specialized glass materials, such as quartz, can transmit UVB light, but these are not used for typical residential or automotive windows. Car side and rear windows block most UVB, though the laminated front windshield blocks an even higher percentage of UV rays.
Skin Effects of Sun Exposure Through Glass
Although standard glass blocks beneficial UVB rays, it allows a significant portion of longer-wavelength UVA radiation to pass through. UVA rays penetrate the skin more deeply than UVB, reaching the underlying dermal layers. UVA radiation is a primary factor in photoaging, leading to the breakdown of collagen and the development of wrinkles and sunspots.
Prolonged exposure to UVA through windows also contributes to the risk of skin cancer. Studies have observed higher rates of skin cancer on the side of the body consistently exposed to sunlight while driving. Sitting by a window offers exposure that is “D-free” but not risk-free, making protective measures advisable for those who spend long periods near sunlit windows.
Non-Sunlight Sources for Vitamin D
Since sun exposure through glass is ineffective for Vitamin D synthesis, alternative sources are necessary to maintain sufficient levels, particularly during winter months or for individuals with limited outdoor access. The diet offers a limited number of natural sources, including fatty fish like salmon, mackerel, and sardines, which are among the richest food sources. Egg yolks also provide some Vitamin D, with the amount varying based on the chicken’s diet. Mushrooms are unique non-animal sources, as they produce Vitamin D2 when exposed to ultraviolet light.
Many common foods are fortified with Vitamin D to help the general population meet their needs, such as milk, certain cereals, and orange juice. For those who struggle to maintain adequate levels through diet or outdoor exposure, a daily supplement of Vitamin D3 is an effective method to ensure the body receives the necessary nutrient.

